Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f3e291a0 authored by Android (Google) Code Review's avatar Android (Google) Code Review
Browse files

Merge change Id7b9903e into eclair-mr2

* changes:
  Add setAttentionLight() to IPowerManager for the Phone app.
parents a85a0ac1 b11832de
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -34,4 +34,5 @@ interface IPowerManager

    // sets the brightness of the backlights (screen, keyboard, button) 0-255
    void setBacklightBrightness(int brightness);
    void setAttentionLight(boolean on, int color);
}
+5 −0
Original line number Diff line number Diff line
@@ -2476,6 +2476,11 @@ class PowerManagerService extends IPowerManager.Stub
        }
    }

    public void setAttentionLight(boolean on, int color) {
        mContext.enforceCallingOrSelfPermission(android.Manifest.permission.DEVICE_POWER, null);
        mLightsService.setAttentionLight(on, color);
    }

    private void enableProximityLockLocked() {
        if (mDebugProximitySensor) {
            Log.d(TAG, "enableProximityLockLocked");