diff options
author | Michael Wright <michaelwr@google.com> | 2014-08-27 15:36:15 -0700 |
---|---|---|
committer | Michael Wright <michaelwr@google.com> | 2014-08-27 15:37:27 -0700 |
commit | 219857b900e2a15464c6254d8d64b68db7d548c0 (patch) | |
tree | 661a571383481c6a2b7b0c90816f9a3a06e5cfd8 /tests | |
parent | 869a67c0b1ed7fb485851edb99376c4e4099ceae (diff) | |
download | frameworks_base-219857b900e2a15464c6254d8d64b68db7d548c0.zip frameworks_base-219857b900e2a15464c6254d8d64b68db7d548c0.tar.gz frameworks_base-219857b900e2a15464c6254d8d64b68db7d548c0.tar.bz2 |
Change constant to PowerManager#FLAG_WAIT_FOR_DISTANT_PROXIMITY
Also add docs to PowerManager.WakeLock#release(int)
Bug: 17290118
Change-Id: Ibcbc4279efdd0f275808042356e6ff843958e23f
Diffstat (limited to 'tests')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/PowerTest.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java index 0cab10d..2ec620b 100644 --- a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java @@ -77,9 +77,9 @@ public class PowerTest extends TestActivity mProx.release(); } }, - new Test("Disable proximity (WAIT_FOR_PROXIMITY_NEGATIVE)") { + new Test("Disable proximity (WAIT_FOR_DISTANT_PROXIMITY") { public void run() { - mProx.release(PowerManager.WAIT_FOR_PROXIMITY_NEGATIVE); + mProx.release(PowerManager.WAIT_FOR_DISTANT_PROXIMITY); } }, new Test("Enable proximity, wait 5 seconds then disable") { @@ -93,13 +93,13 @@ public class PowerTest extends TestActivity }, 5000); } }, - new Test("Enable proximity, wait 5 seconds then disable (WAIT_FOR_PROXIMITY_NEGATIVE)") { + new Test("Enable proximity, wait 5 seconds then disable (WAIT_FOR_DISTANT_PROXIMITY)") { public void run() { mProx.acquire(); mHandler.postDelayed(new Runnable() { @Override public void run() { - mProx.release(PowerManager.WAIT_FOR_PROXIMITY_NEGATIVE); + mProx.release(PowerManager.WAIT_FOR_DISTANT_PROXIMITY); } }, 5000); } |