Home
last modified time | relevance | path

Searched refs:mWakeLock (Results 1 – 4 of 4) sorted by relevance

/development/samples/ApiDemos/src/com/example/android/apis/app/
DForegroundService.java63 private PowerManager.WakeLock mWakeLock; field in ForegroundService
113 if (mWakeLock == null) { in onStartCommand()
114 mWakeLock = getSystemService(PowerManager.class).newWakeLock( in onStartCommand()
116 mWakeLock.acquire(); in onStartCommand()
131 if (mWakeLock != null) { in releaseWakeLock()
132 mWakeLock.release(); in releaseWakeLock()
133 mWakeLock = null; in releaseWakeLock()
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/
DCalendarWatchFaceService.java244 private PowerManager.WakeLock mWakeLock; field in CalendarWatchFaceService.Engine.LoadMeetingsTask
249 mWakeLock = powerManager.newWakeLock( in doInBackground()
251 mWakeLock.acquire(); in doInBackground()
279 if (mWakeLock != null) { in releaseWakeLock()
280 mWakeLock.release(); in releaseWakeLock()
281 mWakeLock = null; in releaseWakeLock()
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/
DAccelerometerPlayActivity.java57 private WakeLock mWakeLock; field in AccelerometerPlayActivity
75 mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, getClass() in onCreate()
91 mWakeLock.acquire(); in onResume()
109 mWakeLock.release(); in onPause()
/development/apps/Development/src/com/android/development/
DConnectivity.java143 private WakeLock mWakeLock = null; field in Connectivity
583 mWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "ConnectivityTest"); in onStartDelayedCycle()
584 mWakeLock.acquire(); in onStartDelayedCycle()
592 mWakeLock.release(); in onStopDelayedCycle()
593 mWakeLock = null; in onStopDelayedCycle()