Searched refs:wakelock (Results 1 – 1 of 1) sorted by relevance
101 private PowerManager.WakeLock wakelock = null; field in ConsoleActivity274 wakelock = manager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, getPackageName()); in onCreate()744 if (wakelock != null && wakelock.isHeld()) { in onPause()745 wakelock.release(); in onPause()760 if (wakelock != null && prefs.getBoolean(PreferenceConstants.KEEP_ALIVE, true)) { in onResume()761 wakelock.acquire(); in onResume()