Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java55 WakeLock wakeLock = new DelayedWakeLock(handler, in assembleMachine() local
64 DozeMachine machine = new DozeMachine(wrappedService, config, wakeLock); in assembleMachine()
69 handler, wakeLock, machine, dockManager), in assembleMachine()
70 createDozeUi(context, host, wakeLock, machine, handler, alarmManager, params), in assembleMachine()
71 new DozeScreenState(wrappedService, handler, params, wakeLock), in assembleMachine()
92 DozeParameters params, Handler handler, WakeLock wakeLock, DozeMachine machine, in createDozeTriggers() argument
96 sensorManager, handler, wakeLock, allowPulseTriggers, dockManager); in createDozeTriggers()
99 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi() argument
102 return new DozeUi(context, alarmManager, machine, wakeLock, host, handler, params, in createDozeUi()
DDozeScreenState.java56 DozeParameters parameters, WakeLock wakeLock) { in DozeScreenState() argument
60 mWakeLock = new SettableWakeLock(wakeLock, TAG); in DozeScreenState()
DDozeUi.java66 WakeLock wakeLock, DozeHost host, Handler handler, in DozeUi() argument
70 mWakeLock = wakeLock; in DozeUi()
DDozeMachine.java129 WakeLock wakeLock) { in DozeMachine() argument
132 mWakeLock = wakeLock; in DozeMachine()
DDozeTriggers.java92 WakeLock wakeLock, boolean allowPulseTriggers, DockManager dockManager) { in DozeTriggers() argument
100 mWakeLock = wakeLock; in DozeTriggers()
103 config, wakeLock, this::onSensor, this::onProximityFar, in DozeTriggers()
DDozeSensors.java82 DozeParameters dozeParameters, AmbientDisplayConfiguration config, WakeLock wakeLock, in DozeSensors() argument
89 mWakeLock = wakeLock; in DozeSensors()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1051 WakeLock wakeLock; in acquireWakeLockInternal() local
1055 wakeLock = mWakeLocks.get(index); in acquireWakeLockInternal()
1056 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { in acquireWakeLockInternal()
1058 notifyWakeLockChangingLocked(wakeLock, flags, tag, packageName, in acquireWakeLockInternal()
1060 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal()
1071 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal()
1074 lock.linkToDeath(wakeLock, 0); in acquireWakeLockInternal()
1078 mWakeLocks.add(wakeLock); in acquireWakeLockInternal()
1079 setWakeLockDisabledStateLocked(wakeLock); in acquireWakeLockInternal()
1083 applyWakeLockFlagsOnAcquireLocked(wakeLock, uid); in acquireWakeLockInternal()
[all …]
/frameworks/av/media/libmediaplayerservice/nuplayer/
DAWakeLock.h46 explicit PMDeathRecipient(AWakeLock *wakeLock) : mWakeLock(wakeLock) {} in PMDeathRecipient() argument
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java368 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob() local
370 wakeLock.acquire(); in handleCancelPrintJob()
390 wakeLock.release(); in handleCancelPrintJob()
407 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob() local
409 wakeLock.acquire(); in handleRestartPrintJob()
427 wakeLock.release(); in handleRestartPrintJob()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java128 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains() local
134 wakeLock.setWorkSource(workSource); in testWakeLockWithWorkChains()
136 doTestWakeLock(wakeLock); in testWakeLockWithWorkChains()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamController.java125 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in startDream() argument
137 mCurrentDream = new DreamRecord(token, name, isTest, canDoze, userId, wakeLock); in startDream()
300 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in DreamRecord() argument
306 mWakeLock = wakeLock; in DreamRecord()
DDreamManagerService.java380 PowerManager.WakeLock wakeLock = mPowerManager in startDreamLocked() local
382 mHandler.post(wakeLock.wrap( in startDreamLocked()
383 () -> mController.startDream(newToken, name, isTest, canDoze, userId, wakeLock))); in startDreamLocked()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java116 PowerManager.WakeLock wakeLock, in setUpBackupManagerServiceBasics() argument
126 when(backupManagerService.getWakelock()).thenReturn(wakeLock); in setUpBackupManagerServiceBasics()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java502 private PackageInstallListener(Context context, PowerManager.WakeLock wakeLock, in PackageInstallListener() argument
505 mWakeLock = wakeLock; in PackageInstallListener()
542 private PackageDeleteObserver(PowerManager.WakeLock wakeLock, int startId) { in PackageDeleteObserver() argument
543 mWakeLock = wakeLock; in PackageDeleteObserver()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java739 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
741 wakeLock.acquire(); in addLockoutResetCallback()
746 wakeLock.release(); in addLockoutResetCallback()
/frameworks/base/core/java/android/hardware/face/
DFaceManager.java551 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
554 wakeLock.acquire(); in addLockoutResetCallback()
559 wakeLock.release(); in addLockoutResetCallback()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java149 LockPatternUtils lockPatternUtils, WakeLock wakeLock, ShadeController shadeController, in KeyguardIndicationController() argument
165 mWakeLock = new SettableWakeLock(wakeLock, TAG); in KeyguardIndicationController()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java339 PowerManager.WakeLock wakeLock = in create() local
343 wakeLock, getDefaultClock(), TelephonyManager.getDefault(), in create()
360 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, Clock clock, in NetworkStatsService() argument
369 mWakeLock = checkNotNull(wakeLock, "missing WakeLock"); in NetworkStatsService()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java3097 PowerManager.WakeLock wakeLock = mWakeLocks.get(wakeLockKey); in getSyncWakeLock() local
3098 if (wakeLock == null) { in getSyncWakeLock()
3100 wakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in getSyncWakeLock()
3101 wakeLock.setReferenceCounted(false); in getSyncWakeLock()
3102 mWakeLocks.put(wakeLockKey, wakeLock); in getSyncWakeLock()
3104 return wakeLock; in getSyncWakeLock()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipSessionGroup.java132 SipWakeupTimer timer, SipWakeLock wakeLock) throws SipException { in SipSessionGroup() argument
136 mWakeLock = wakeLock; in SipSessionGroup()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java200 PowerManager.WakeLock wakeLock = in setUp() local
204 mServiceContext, mNetManager, mAlarmManager, wakeLock, mClock, in setUp()
/frameworks/base/media/apex/java/android/media/
DMediaPlayer2.java1364 public @NonNull Object setWakeLock(@NonNull PowerManager.WakeLock wakeLock) {
1377 mWakeLock = wakeLock;