diff options
author | Mike Lockwood <lockwood@android.com> | 2009-09-15 14:42:16 -0400 |
---|---|---|
committer | Mike Lockwood <lockwood@android.com> | 2009-09-15 15:47:09 -0400 |
commit | 237a29923a05663a2195bf93b392768dbaf31ebf (patch) | |
tree | 37a21b8413a9c6be00843a56fd0bb63b1cd05e85 /tests/permission | |
parent | f02c0740d3039977149773604a229c9f76c8121d (diff) | |
download | frameworks_base-237a29923a05663a2195bf93b392768dbaf31ebf.zip frameworks_base-237a29923a05663a2195bf93b392768dbaf31ebf.tar.gz frameworks_base-237a29923a05663a2195bf93b392768dbaf31ebf.tar.bz2 |
Move backlight brightness from HardwareService to PowerManager
to prevent apps from changing the hardware behind its back.
Fixes b/2041941 Lock screen flashes the screen very bright before dimming
Change-Id: Ice757f7ae87902bdfb3634471cf44f020ebfaae4
Signed-off-by: Mike Lockwood <lockwood@android.com>
Diffstat (limited to 'tests/permission')
-rw-r--r-- | tests/permission/src/com/android/framework/permission/tests/HardwareServicePermissionTest.java | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/tests/permission/src/com/android/framework/permission/tests/HardwareServicePermissionTest.java b/tests/permission/src/com/android/framework/permission/tests/HardwareServicePermissionTest.java index aebd68c..2290c1d 100644 --- a/tests/permission/src/com/android/framework/permission/tests/HardwareServicePermissionTest.java +++ b/tests/permission/src/com/android/framework/permission/tests/HardwareServicePermissionTest.java @@ -117,20 +117,4 @@ public class HardwareServicePermissionTest extends TestCase { // expected } } - - /** - * Test that calling {@link android.os.IHardwareService#setBacklights(int)} requires - * permissions. - * <p>Tests permission: - * {@link android.Manifest.permission#HARDWARE_TEST} - * @throws RemoteException - */ - public void testSetBacklights() throws RemoteException { - try { - mHardwareService.setBacklights(0); - fail("setBacklights did not throw SecurityException as expected"); - } catch (SecurityException e) { - // expected - } - } } |