Home
last modified time | relevance | path

Searched refs:wakeLock (Results 1 – 3 of 3) sorted by relevance

/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDailyLoggingAlarmReceiver.java45 private static void releaseWakeLock(WakeLock wakeLock) { in releaseWakeLock() argument
46 if (wakeLock.isHeld()) { in releaseWakeLock()
47 wakeLock.release(); in releaseWakeLock()
81 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in logDailyWallpaperRotationStatus() local
82 wakeLock.acquire(10000 /* timeout */); in logDailyWallpaperRotationStatus()
94 releaseWakeLock(wakeLock); in logDailyWallpaperRotationStatus()
104 releaseWakeLock(wakeLock); in logDailyWallpaperRotationStatus()
116 releaseWakeLock(wakeLock); in logDailyWallpaperRotationStatus()
161 releaseWakeLock(wakeLock); in logDailyWallpaperRotationStatus()
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/
DSystemProximityWakeLock.java33 private final PowerManager.WakeLock wakeLock; field in SystemProximityWakeLock
39 wakeLock = in SystemProximityWakeLock()
47 wakeLock.acquire(); in acquire()
53 wakeLock.release(); in release()
59 return wakeLock.isHeld(); in isHeld()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java32 public WakeLockAdapter(PowerManager.WakeLock wakeLock) { in WakeLockAdapter() argument
33 mWakeLock = wakeLock; in WakeLockAdapter()
81 PowerManager.WakeLock wakeLock = powerManager.newWakeLock(mWakeLockLevel, mWakeLockTag); in getWakeLockFromPowerManager() local
82 adapter = new WakeLockAdapter(wakeLock); in getWakeLockFromPowerManager()