Home
last modified time | relevance | path

Searched refs:WakeLock (Results 1 – 25 of 115) sorted by relevance

12345

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java24 public interface WakeLock { interface
35 static WakeLock createPartial(Context context, String tag) { in createPartial()
40 static PowerManager.WakeLock createPartialInner(Context context, String tag) { in createPartialInner()
45 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
56 static WakeLock wrap(final PowerManager.WakeLock inner) {
57 return new WakeLock() {
DDelayedWakeLock.java24 public class DelayedWakeLock implements WakeLock {
29 private final WakeLock mInner;
32 public DelayedWakeLock(Handler h, WakeLock inner) { in DelayedWakeLock()
50 return WakeLock.wrapImpl(this, r); in wrap()
DSettableWakeLock.java26 private final WakeLock mInner;
30 public SettableWakeLock(WakeLock inner) { in SettableWakeLock()
DKeepAwakeAnimationListener.java30 static WakeLock sWakeLock;
35 sWakeLock = WakeLock.createPartial(context, "animation"); in KeepAwakeAnimationListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockTest.java39 WakeLock mWakeLock;
40 PowerManager.WakeLock mInner;
44 mInner = WakeLock.createPartialInner(mContext, WakeLockTest.class.getName()); in setUp()
45 mWakeLock = WakeLock.wrap(mInner); in setUp()
DWakeLockFake.java21 public class WakeLockFake implements WakeLock {
DKeepAwakeAnimationListenerTest.java39 @Mock WakeLock mWakeLock;
/frameworks/base/tests/utils/SleepUtils/AlarmService/src/com/android/testing/alarmservice/
DWakeUpController.java21 import android.os.PowerManager.WakeLock;
32 private WakeLock mWakeLock = null;
46 public WakeLock getWakeLock() { in getWakeLock()
/frameworks/support/wear/src/androidTest/java/androidx/wear/widget/util/
DWakeLockRule.java21 import android.os.PowerManager.WakeLock;
41 WakeLock wakeLock = createWakeLock(); in apply()
52 private WakeLock createWakeLock() {
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java36 import com.android.systemui.util.wakelock.WakeLock;
53 WakeLock wakeLock = new DelayedWakeLock(handler, in assembleMachine()
54 WakeLock.createPartial(context, "Doze")); in assembleMachine()
89 DozeParameters params, Handler handler, WakeLock wakeLock, DozeMachine machine) { in createDozeTriggers()
95 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi()
DDozeUi.java33 import com.android.systemui.util.wakelock.WakeLock;
47 private final WakeLock mWakeLock;
67 WakeLock wakeLock, DozeHost host, Handler handler, in DozeUi()
DDozeScreenState.java25 import com.android.systemui.util.wakelock.WakeLock;
56 DozeParameters parameters, WakeLock wakeLock) { in DozeScreenState()
DDozeMachine.java29 import com.android.systemui.util.wakelock.WakeLock;
113 private final WakeLock mWakeLock;
123 WakeLock wakeLock) { in DozeMachine()
/frameworks/support/legacy/core-utils/src/main/java/androidx/legacy/content/
DWakefulBroadcastReceiver.java76 private static final SparseArray<PowerManager.WakeLock> sActiveWakeLocks = new SparseArray<>();
108 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startWakefulService()
131 PowerManager.WakeLock wl = sActiveWakeLocks.get(id); in completeWakefulIntent()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
80 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
92 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock()
/frameworks/base/core/java/android/os/
DPowerManager.java759 public WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
761 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName()); in newWakeLock()
1403 public final class WakeLock { class in PowerManager
1422 WakeLock(int flags, String tag, String packageName) { in WakeLock() method in PowerManager.WakeLock
1661 proto.write(PowerManagerProto.WakeLock.TAG, mTag); in writeToProto()
1662 proto.write(PowerManagerProto.WakeLock.PACKAGE_NAME, mPackageName); in writeToProto()
1663 proto.write(PowerManagerProto.WakeLock.HELD, mHeld); in writeToProto()
1664 proto.write(PowerManagerProto.WakeLock.INTERNAL_COUNT, mInternalCount); in writeToProto()
1666 mWorkSource.writeToProto(proto, PowerManagerProto.WakeLock.WORK_SOURCE); in writeToProto()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java28 private PowerManager.WakeLock mWakeLock;
29 private PowerManager.WakeLock mTimerWakeLock;
/frameworks/base/services/robotests/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java47 PowerManager.WakeLock wakeLock, in setUpBackupManagerServiceBasics()
61 public static PowerManager.WakeLock createBackupWakeLock(Application application) { in createBackupWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java38 import com.android.systemui.util.wakelock.WakeLock;
59 private WakeLock mWakeLock;
/frameworks/base/tests/utils/SleepUtils/WakeLoopService/src/android/test/wakeuploop/
DWakeUpCall.java28 import android.os.PowerManager.WakeLock;
108 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK | in screenOn()
/frameworks/base/services/core/java/com/android/server/location/
DNtpTimeHelper.java9 import android.os.PowerManager.WakeLock;
57 private final WakeLock mWakeLock;
/frameworks/support/work/workmanager/src/main/java/androidx/work/impl/utils/
DWakeLocks.java41 public static PowerManager.WakeLock newWakeLock( in newWakeLock()
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java269 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>();
978 WakeLock wakeLock; in acquireWakeLockInternal()
998 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal()
1025 private static boolean isScreenLock(final WakeLock wakeLock) { in isScreenLock()
1035 private void applyWakeLockFlagsOnAcquireLocked(WakeLock wakeLock, int uid) { in applyWakeLockFlagsOnAcquireLocked()
1064 WakeLock wakeLock = mWakeLocks.get(index); in releaseWakeLockInternal()
1079 private void handleWakeLockDeath(WakeLock wakeLock) { in handleWakeLockDeath()
1095 private void removeWakeLockLocked(WakeLock wakeLock, int index) { in removeWakeLockLocked()
1110 private void applyWakeLockFlagsOnReleaseLocked(WakeLock wakeLock) { in applyWakeLockFlagsOnReleaseLocked()
1133 WakeLock wakeLock = mWakeLocks.get(index); in updateWakeLockWorkSourceInternal()
[all …]
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamController.java125 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in startDream()
291 public PowerManager.WakeLock mWakeLock;
300 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in DreamRecord()
/frameworks/base/core/proto/android/os/
Dpowermanager.proto38 // WakeLock class in android.os.PowerManager, it is the one used by sdk
39 message WakeLock { message

12345