summaryrefslogtreecommitdiffstats
path: root/tests/StatusBar
diff options
context:
space:
mode:
authorJoe Onorato <>2009-03-24 19:10:48 -0700
committerThe Android Open Source Project <initial-contribution@android.com>2009-03-24 19:10:48 -0700
commit36197e77c34b33135b4a3dc89d36ce80320dcd72 (patch)
treef6df7c9b4f990fcac985fd62a8830119059b2b24 /tests/StatusBar
parentdf940486a401378e6942c06a3b8178c2537ecce0 (diff)
downloadframeworks_base-36197e77c34b33135b4a3dc89d36ce80320dcd72.zip
frameworks_base-36197e77c34b33135b4a3dc89d36ce80320dcd72.tar.gz
frameworks_base-36197e77c34b33135b4a3dc89d36ce80320dcd72.tar.bz2
Automated import from //branches/master/...@141000,141000
Diffstat (limited to 'tests/StatusBar')
-rw-r--r--tests/StatusBar/src/com/android/statusbartest/PowerTest.java24
1 files changed, 22 insertions, 2 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java
index f236a4b..f778cab 100644
--- a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java
+++ b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java
@@ -62,7 +62,7 @@ public class PowerTest extends TestActivity
return mTests;
}
private Test[] mTests = new Test[] {
- new Test("Touch events don't poke") {
+ new Test("Cheek events don't poke") {
public void run() {
mPokeState |= LocalPowerManager.POKE_LOCK_IGNORE_CHEEK_EVENTS;
try {
@@ -72,7 +72,7 @@ public class PowerTest extends TestActivity
}
}
},
- new Test("Touch events poke") {
+ new Test("Cheek events poke") {
public void run() {
mPokeState &= ~LocalPowerManager.POKE_LOCK_IGNORE_CHEEK_EVENTS;
try {
@@ -82,6 +82,26 @@ public class PowerTest extends TestActivity
}
}
},
+ new Test("Touch and Cheek events don't poke") {
+ public void run() {
+ mPokeState |= LocalPowerManager.POKE_LOCK_IGNORE_TOUCH_AND_CHEEK_EVENTS;
+ try {
+ mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG);
+ } catch (RemoteException e) {
+ throw new RuntimeException(e);
+ }
+ }
+ },
+ new Test("Touch and Cheek events poke") {
+ public void run() {
+ mPokeState &= ~LocalPowerManager.POKE_LOCK_IGNORE_TOUCH_AND_CHEEK_EVENTS;
+ try {
+ mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG);
+ } catch (RemoteException e) {
+ throw new RuntimeException(e);
+ }
+ }
+ },
new Test("Short timeout") {
public void run() {
mPokeState &= ~LocalPowerManager.POKE_LOCK_TIMEOUT_MASK;