Merge change Id7b9903e into eclair-mr2
* changes: Add setAttentionLight() to IPowerManager for the Phone app.
This commit is contained in:
@@ -34,4 +34,5 @@ interface IPowerManager
|
|||||||
|
|
||||||
// sets the brightness of the backlights (screen, keyboard, button) 0-255
|
// sets the brightness of the backlights (screen, keyboard, button) 0-255
|
||||||
void setBacklightBrightness(int brightness);
|
void setBacklightBrightness(int brightness);
|
||||||
|
void setAttentionLight(boolean on, int color);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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() {
|
private void enableProximityLockLocked() {
|
||||||
if (mDebugProximitySensor) {
|
if (mDebugProximitySensor) {
|
||||||
Log.d(TAG, "enableProximityLockLocked");
|
Log.d(TAG, "enableProximityLockLocked");
|
||||||
|
|||||||
Reference in New Issue
Block a user