Home
last modified time | relevance | path

Searched refs:newWakeLock (Results 1 – 25 of 106) sorted by relevance

12345

/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerManagerWrapper.java46 WakeLockWrapper newWakeLock(int levelAndFlags, String tag) { in newWakeLock() method in PowerManagerWrapper
47 return new DefaultWakeLockWrapper(mPowerManager.newWakeLock(levelAndFlags, tag)); in newWakeLock()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java44 mTimerWakeLock = mPowerManager.newWakeLock( in acquire()
54 mWakeLock = mPowerManager.newWakeLock( in acquire()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java133 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
136 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK"); in testNewWakeLock()
139 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK"); in testNewWakeLock()
142 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK"); in testNewWakeLock()
161 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
177 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains()
DPowerManagerVrTest.java129 PowerManager.WakeLock wl = mPm.newWakeLock( in wakeUpDevice()
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DFakePowerManagerWrapper.java63 WakeLockWrapper newWakeLock(int levelAndFlags, String tag) { in newWakeLock() method in FakePowerManagerWrapper
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayController.kt219 val newWakeLock = if (!powerManager.isScreenOn) { in <lambda>() constant
237 displayInfo.wakeLock = newWakeLock in <lambda>()
238 newWakeLock.acquire(displayInfo.info.wakeReason) in <lambda>()
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java47 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox"); in tests()
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/
DLockoutResetDispatcher.java58 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in ClientCallback()
/frameworks/base/services/core/java/com/android/server/timedetector/
DEnvironmentImpl.java53 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG)); in EnvironmentImpl()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java52 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in ConsumerIrService()
/frameworks/base/tests/DozeTest/src/com/android/dreams/dozetest/
DDozeTestDream.java76 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in onCreate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/
DMediaFrameworkTest.java97 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "MediaFrameworkTest"); in onCreate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java94 .newWakeLock(levelsAndFlags, tag); in createWakeLockInner()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java370 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob()
409 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DWakeLockStateMachine.java81 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, debugTag); in WakeLockStateMachine()
DSmsStorageMonitor.java262 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SmsStorageMonitor"); in createWakelock()
/frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
DBatteryWaster.java68 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BatteryWaster"); in onCreate()
/frameworks/base/media/java/android/media/
DAsyncPlayer.java260 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag); in setUsesWakeLock()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactory.java125 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); in createBogusElapsedRealtimeCheck()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java169 wakelock = pm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, in runSetProx()
DScreenUndimDetector.java118 mWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK in systemReady()
/frameworks/base/tests/vcn/java/com/android/server/vcn/
DVcnGatewayConnectionTestBase.java234 .newWakeLock(eq(mContext), eq(PowerManager.PARTIAL_WAKE_LOCK), any()); in VcnGatewayConnectionTestBase()
300 verify(mDeps).newWakeLock(eq(mContext), eq(PowerManager.PARTIAL_WAKE_LOCK), any()); in verifyWakeLockSetUp()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java168 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*backup*"), 0); in createBackupWakeLock()
/frameworks/base/startop/apps/test/src/
DSystemServerBenchmarks.java160 PowerManager.WakeLock wl = pwr.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "benchmark tag"); in initializeBenchmarks()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpNetworkTimeHelper.java98 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); in NtpNetworkTimeHelper()

12345