diff options
Diffstat (limited to 'tests/StatusBar/src/com/android/statusbartest/PowerTest.java')
-rw-r--r-- | tests/StatusBar/src/com/android/statusbartest/PowerTest.java | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java index e38bb6ce0640..0cab10defb4f 100644 --- a/tests/StatusBar/src/com/android/statusbartest/PowerTest.java +++ b/tests/StatusBar/src/com/android/statusbartest/PowerTest.java @@ -21,9 +21,7 @@ import android.os.IBinder; import android.os.IPowerManager; import android.content.ComponentName; import android.content.pm.PackageManager; -import android.os.RemoteException; import android.os.Handler; -import android.os.LocalPowerManager; import android.os.ServiceManager; import android.os.PowerManager; @@ -106,69 +104,5 @@ public class PowerTest extends TestActivity }, 5000); } }, - new Test("Touch events don't poke") { - public void run() { - mPokeState |= LocalPowerManager.POKE_LOCK_IGNORE_TOUCH_EVENTS; - try { - mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG); - } catch (RemoteException e) { - throw new RuntimeException(e); - } - } - }, - - new Test("Touch events poke") { - public void run() { - mPokeState &= ~LocalPowerManager.POKE_LOCK_IGNORE_TOUCH_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; - mPokeState |= LocalPowerManager.POKE_LOCK_SHORT_TIMEOUT; - try { - mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG); - } catch (RemoteException e) { - throw new RuntimeException(e); - } - } - }, - new Test("Medium timeout") { - public void run() { - mPokeState &= ~LocalPowerManager.POKE_LOCK_TIMEOUT_MASK; - mPokeState |= LocalPowerManager.POKE_LOCK_MEDIUM_TIMEOUT; - try { - mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG); - } catch (RemoteException e) { - throw new RuntimeException(e); - } - } - }, - new Test("Normal timeout") { - public void run() { - mPokeState &= ~LocalPowerManager.POKE_LOCK_TIMEOUT_MASK; - try { - mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG); - } catch (RemoteException e) { - throw new RuntimeException(e); - } - } - }, - new Test("Illegal timeout") { - public void run() { - mPokeState |= LocalPowerManager.POKE_LOCK_SHORT_TIMEOUT - | LocalPowerManager.POKE_LOCK_MEDIUM_TIMEOUT; - try { - mPowerManager.setPokeLock(mPokeState, mPokeToken, TAG); - } catch (RemoteException e) { - throw new RuntimeException(e); - } - } - }, }; } |