am f3e291a0: Merge change Id7b9903e into eclair-mr2
Merge commit 'f3e291a05d1e30fe409b06ca43538ca22ee2e69b' into eclair-mr2-plus-aosp * commit 'f3e291a05d1e30fe409b06ca43538ca22ee2e69b': 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