commit | b11832de735e95aac1a1b9e900dbbd8285cee3ad | [log] [tgz] |
---|---|---|
author | Mike Lockwood <lockwood@android.com> | Wed Nov 25 15:25:55 2009 -0500 |
committer | Mike Lockwood <lockwood@android.com> | Wed Nov 25 15:25:55 2009 -0500 |
tree | ca626dfa84e51a2fec876a8905f16bf89087c62b | |
parent | 3a32213c4029a03fe39486f3d6ebd0ea18928ee1 [diff] [blame] |
Add setAttentionLight() to IPowerManager for the Phone app. Change-Id: Id7b9903e1efaf56a2336519a8653962b6ae2c13d Signed-off-by: Mike Lockwood <lockwood@android.com>
diff --git a/services/java/com/android/server/PowerManagerService.java b/services/java/com/android/server/PowerManagerService.java index b1ecb3c..ca7d94a 100644 --- a/services/java/com/android/server/PowerManagerService.java +++ b/services/java/com/android/server/PowerManagerService.java
@@ -2476,6 +2476,11 @@ } } + 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");