Searched refs:wakeLock (Results 1 – 3 of 3) sorted by relevance
45 private static void releaseWakeLock(WakeLock wakeLock) { in releaseWakeLock() argument46 if (wakeLock.isHeld()) { in releaseWakeLock()47 wakeLock.release(); in releaseWakeLock()81 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in logDailyWallpaperRotationStatus() local82 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()
33 private final PowerManager.WakeLock wakeLock; field in SystemProximityWakeLock39 wakeLock = in SystemProximityWakeLock()47 wakeLock.acquire(); in acquire()53 wakeLock.release(); in release()59 return wakeLock.isHeld(); in isHeld()
32 public WakeLockAdapter(PowerManager.WakeLock wakeLock) { in WakeLockAdapter() argument33 mWakeLock = wakeLock; in WakeLockAdapter()81 PowerManager.WakeLock wakeLock = powerManager.newWakeLock(mWakeLockLevel, mWakeLockTag); in getWakeLockFromPowerManager() local82 adapter = new WakeLockAdapter(wakeLock); in getWakeLockFromPowerManager()