Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1286 WakeLock wakeLock;
1290 wakeLock = mWakeLocks.get(index);
1291 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) {
1293 notifyWakeLockChangingLocked(wakeLock, flags, tag, packageName,
1295 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid);
1306 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid,
1309 lock.linkToDeath(wakeLock, 0);
1313 mWakeLocks.add(wakeLock);
1314 setWakeLockDisabledStateLocked(wakeLock);
1318 applyWakeLockFlagsOnAcquireLocked(wakeLock, uid);
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java97 WakeLock wakeLock = mDelayedWakeLockBuilder.setHandler(mHandler).setTag("Doze").build(); in assembleMachine() local
106 DozeMachine machine = new DozeMachine(wrappedService, config, wakeLock, in assembleMachine()
113 mAlarmManager, config, mDozeParameters, wakeLock, in assembleMachine()
115 createDozeUi(dozeService, mDozeHost, wakeLock, machine, mHandler, in assembleMachine()
118 wakeLock), in assembleMachine()
141 DozeParameters params, WakeLock wakeLock, in createDozeTriggers() argument
146 sensorManager, wakeLock, allowPulseTriggers, dockManager, in createDozeTriggers()
151 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi() argument
154 return new DozeUi(context, alarmManager, machine, wakeLock, host, handler, params, in createDozeUi()
DDozeScreenState.java63 DozeParameters parameters, WakeLock wakeLock) { in DozeScreenState() argument
68 mWakeLock = new SettableWakeLock(wakeLock, TAG); in DozeScreenState()
DDozeUi.java68 WakeLock wakeLock, DozeHost host, Handler handler, in DozeUi() argument
73 mWakeLock = wakeLock; in DozeUi()
DDozeTriggers.java155 WakeLock wakeLock, boolean allowPulseTriggers, DockManager dockManager, in DozeTriggers() argument
164 mWakeLock = wakeLock; in DozeTriggers()
167 config, wakeLock, this::onSensor, this::onProximityFar, dozeLog, proximitySensor); in DozeTriggers()
DDozeMachine.java149 public DozeMachine(Service service, AmbientDisplayConfiguration config, WakeLock wakeLock, in DozeMachine() argument
155 mWakeLock = wakeLock; in DozeMachine()
DDozeSensors.java103 DozeParameters dozeParameters, AmbientDisplayConfiguration config, WakeLock wakeLock, in DozeSensors() argument
111 mWakeLock = wakeLock; in DozeSensors()
/frameworks/av/media/libmediaplayerservice/nuplayer/
DAWakeLock.h46 explicit PMDeathRecipient(AWakeLock *wakeLock) : mWakeLock(wakeLock) {} in PMDeathRecipient() argument
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java61 public void setWakeLock(WakeLock wakeLock) {
62 mWakeLock = wakeLock;
/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/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactory.java124 final WakeLock wakeLock = in createBogusElapsedRealtimeCheck() local
133 wakeLock.acquire(); in createBogusElapsedRealtimeCheck()
147 wakeLock.release(); in createBogusElapsedRealtimeCheck()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamController.java120 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in startDream() argument
132 mCurrentDream = new DreamRecord(token, name, isTest, canDoze, userId, wakeLock); in startDream()
277 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in DreamRecord() argument
283 mWakeLock = wakeLock; in DreamRecord()
DDreamManagerService.java416 PowerManager.WakeLock wakeLock = mPowerManager in startDreamLocked() local
418 mHandler.post(wakeLock.wrap(() -> { in startDreamLocked()
423 mController.startDream(newToken, name, isTest, canDoze, userId, wakeLock); in startDreamLocked()
/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/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java116 UserBackupManagerService.BackupWakeLock wakeLock, in setUpBackupManagerServiceBasics() argument
126 when(backupManagerService.getWakelock()).thenReturn(wakeLock); in setUpBackupManagerServiceBasics()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java504 private PackageInstallListener(Context context, PowerManager.WakeLock wakeLock, in PackageInstallListener() argument
507 mWakeLock = wakeLock; in PackageInstallListener()
544 private PackageDeleteObserver(PowerManager.WakeLock wakeLock, int startId) { in PackageDeleteObserver() argument
545 mWakeLock = wakeLock; in PackageDeleteObserver()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java87 WakeLock wakeLock = new WakeLockFake(); in setUp() local
93 asyncSensorManager, wakeLock, true, mDockManager, mProximitySensor, in setUp()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java740 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
742 wakeLock.acquire(); in addLockoutResetCallback()
747 wakeLock.release(); in addLockoutResetCallback()
/frameworks/base/core/java/android/hardware/face/
DFaceManager.java535 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
538 wakeLock.acquire(); in addLockoutResetCallback()
543 wakeLock.release(); in addLockoutResetCallback()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java401 PowerManager.WakeLock wakeLock = in create() local
405 alarmManager, wakeLock, getDefaultClock(), in create()
418 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, Clock clock, in NetworkStatsService() argument
428 mWakeLock = Objects.requireNonNull(wakeLock, "missing WakeLock"); in NetworkStatsService()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java3094 PowerManager.WakeLock wakeLock = mWakeLocks.get(wakeLockKey); in getSyncWakeLock() local
3095 if (wakeLock == null) { in getSyncWakeLock()
3097 wakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in getSyncWakeLock()
3098 wakeLock.setReferenceCounted(false); in getSyncWakeLock()
3099 mWakeLocks.put(wakeLockKey, wakeLock); in getSyncWakeLock()
3101 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.java197 PowerManager.WakeLock wakeLock = in setUp() local
202 mService = new NetworkStatsService(mServiceContext, mNetManager, mAlarmManager, wakeLock, in setUp()