Home
last modified time | relevance | path

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

/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java1046 WakeLock wakeLock; in acquireWakeLockInternal() local
1050 wakeLock = mWakeLocks.get(index); in acquireWakeLockInternal()
1051 if (!wakeLock.hasSameProperties(flags, tag, ws, uid, pid)) { in acquireWakeLockInternal()
1053 notifyWakeLockChangingLocked(wakeLock, flags, tag, packageName, in acquireWakeLockInternal()
1055 wakeLock.updateProperties(flags, tag, packageName, ws, historyTag, uid, pid); in acquireWakeLockInternal()
1066 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal()
1069 lock.linkToDeath(wakeLock, 0); in acquireWakeLockInternal()
1073 mWakeLocks.add(wakeLock); in acquireWakeLockInternal()
1074 setWakeLockDisabledStateLocked(wakeLock); in acquireWakeLockInternal()
1078 applyWakeLockFlagsOnAcquireLocked(wakeLock, uid); in acquireWakeLockInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java51 WakeLock wakeLock = new DelayedWakeLock(handler, in assembleMachine() local
60 DozeMachine machine = new DozeMachine(wrappedService, config, wakeLock); in assembleMachine()
65 handler, wakeLock, machine), in assembleMachine()
66 createDozeUi(context, host, wakeLock, machine, handler, alarmManager), in assembleMachine()
85 DozeParameters params, Handler handler, WakeLock wakeLock, DozeMachine machine) { in createDozeTriggers() argument
88 sensorManager, handler, wakeLock, allowPulseTriggers); in createDozeTriggers()
91 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi() argument
93 return new DozeUi(context, alarmManager, machine, wakeLock, host, handler); in createDozeUi()
DDozeUi.java48 WakeLock wakeLock, DozeHost host, Handler handler) { in DozeUi() argument
51 mWakeLock = wakeLock; in DozeUi()
DDozeTriggers.java76 WakeLock wakeLock, boolean allowPulseTriggers) { in DozeTriggers() argument
84 mWakeLock = wakeLock; in DozeTriggers()
87 config, wakeLock, this::onSensor, this::onProximityFar, in DozeTriggers()
DDozeMachine.java120 WakeLock wakeLock) { in DozeMachine() argument
123 mWakeLock = wakeLock; in DozeMachine()
DDozeSensors.java74 AmbientDisplayConfiguration config, WakeLock wakeLock, Callback callback, in DozeSensors() argument
81 mWakeLock = wakeLock; in DozeSensors()
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DWakeLockRule.java41 WakeLock wakeLock = createWakeLock(); in apply()
42 wakeLock.acquire(); in apply()
46 wakeLock.release(); in apply()
/frameworks/av/media/libstagefright/foundation/include/media/stagefright/foundation/
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/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.java371 PowerManager.WakeLock wakeLock = mPowerManager in startDreamLocked() local
373 mHandler.post(wakeLock.wrap( in startDreamLocked()
374 () -> mController.startDream(newToken, name, isTest, canDoze, userId, wakeLock))); in startDreamLocked()
/frameworks/base/core/java/android/hardware/fingerprint/
DFingerprintManager.java839 final PowerManager.WakeLock wakeLock = powerManager.newWakeLock( in addLockoutResetCallback()
841 wakeLock.acquire(); in addLockoutResetCallback()
846 wakeLock.release(); in addLockoutResetCallback()
/frameworks/support/wear/tests/src/android/support/wear/widget/
DWearableLinearLayoutManagerTest.java43 public final WakeLockRule wakeLock = new WakeLockRule(); field in WearableLinearLayoutManagerTest
DScrollManagerTest.java50 public final WakeLockRule wakeLock = new WakeLockRule(); field in ScrollManagerTest
DWearableRecyclerViewTest.java64 public final WakeLockRule wakeLock = new WakeLockRule(); field in WearableRecyclerViewTest
DSwipeDismissFrameLayoutTest.java61 public final WakeLockRule wakeLock = new WakeLockRule(); field in SwipeDismissFrameLayoutTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java113 WakeLock wakeLock) { in KeyguardIndicationController() argument
122 mWakeLock = new SettableWakeLock(wakeLock); in KeyguardIndicationController()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsService.java286 PowerManager.WakeLock wakeLock = in create() local
290 wakeLock, NtpTrustedTime.getInstance(context), TelephonyManager.getDefault(), in create()
304 AlarmManager alarmManager, PowerManager.WakeLock wakeLock, TrustedTime time, in NetworkStatsService() argument
313 mWakeLock = checkNotNull(wakeLock, "missing WakeLock"); in NetworkStatsService()
/frameworks/base/services/core/java/com/android/server/content/
DSyncManager.java2849 PowerManager.WakeLock wakeLock = mWakeLocks.get(wakeLockKey); in getSyncWakeLock() local
2850 if (wakeLock == null) { in getSyncWakeLock()
2852 wakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, name); in getSyncWakeLock()
2853 wakeLock.setReferenceCounted(false); in getSyncWakeLock()
2854 mWakeLocks.put(wakeLockKey, wakeLock); in getSyncWakeLock()
2856 return wakeLock; in getSyncWakeLock()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsServiceTest.java173 PowerManager.WakeLock wakeLock = in setUp() local
177 mServiceContext, mNetManager, mAlarmManager, wakeLock, mTime, in setUp()
/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()