Home
last modified time | relevance | path

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

1234

/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 WakeLock wrap(final PowerManager.WakeLock inner) { in wrap()
46 return new WakeLock() { in wrap()
DSettableWakeLock.java26 private final WakeLock mInner;
30 public SettableWakeLock(WakeLock inner) { in SettableWakeLock()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeFactory.java28 import com.android.systemui.util.wakelock.WakeLock;
45 WakeLock wakeLock = WakeLock.createPartial(context, "Doze"); in assembleMachine()
62 Handler handler, WakeLock wakeLock, DozeMachine machine) { in createDozeTriggers()
68 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi()
DDozeUi.java26 import com.android.systemui.util.wakelock.WakeLock;
41 private final WakeLock mWakeLock;
49 WakeLock wakeLock, DozeHost host, Handler handler) { in DozeUi()
DDozeMachine.java27 import com.android.systemui.util.wakelock.WakeLock;
103 private final WakeLock mWakeLock;
113 WakeLock wakeLock) { in DozeMachine()
DDozeSensors.java41 import com.android.systemui.util.wakelock.WakeLock;
60 private final WakeLock mWakeLock;
69 AmbientDisplayConfiguration config, WakeLock wakeLock, Callback callback, in DozeSensors()
DDozeTriggers.java39 import com.android.systemui.util.wakelock.WakeLock;
62 private final WakeLock mWakeLock;
74 WakeLock wakeLock, boolean allowPulseTriggers) { in DozeTriggers()
/frameworks/support/core-utils/java/android/support/v4/content/
DWakefulBroadcastReceiver.java73 private static final SparseArray<PowerManager.WakeLock> mActiveWakeLocks
74 = new SparseArray<PowerManager.WakeLock>();
106 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in startWakefulService()
129 PowerManager.WakeLock wl = mActiveWakeLocks.get(id); in completeWakefulIntent()
/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 {
/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/tests/src/android/support/wear/widget/util/
DWakeLockRule.java21 import android.os.PowerManager.WakeLock;
41 WakeLock wakeLock = createWakeLock(); in apply()
52 private WakeLock createWakeLock() {
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
95 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock()
/frameworks/opt/net/voip/src/java/com/android/server/sip/
DSipWakeLock.java28 private PowerManager.WakeLock mWakeLock;
29 private PowerManager.WakeLock mTimerWakeLock;
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeTriggersTest.java37 import com.android.systemui.util.wakelock.WakeLock;
56 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/core/java/android/os/
DPowerManager.java610 public WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
612 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName()); in newWakeLock()
1241 public final class WakeLock { class in PowerManager
1259 WakeLock(int flags, String tag, String packageName) { in WakeLock() method in PowerManager.WakeLock
/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/services/core/java/com/android/server/power/
DPowerManagerService.java263 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>();
1034 WakeLock wakeLock; in acquireWakeLockInternal()
1054 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid, in acquireWakeLockInternal()
1081 private static boolean isScreenLock(final WakeLock wakeLock) { in isScreenLock()
1091 private void applyWakeLockFlagsOnAcquireLocked(WakeLock wakeLock, int uid) { in applyWakeLockFlagsOnAcquireLocked()
1120 WakeLock wakeLock = mWakeLocks.get(index); in releaseWakeLockInternal()
1135 private void handleWakeLockDeath(WakeLock wakeLock) { in handleWakeLockDeath()
1151 private void removeWakeLockLocked(WakeLock wakeLock, int index) { in removeWakeLockLocked()
1166 private void applyWakeLockFlagsOnReleaseLocked(WakeLock wakeLock) { in applyWakeLockFlagsOnReleaseLocked()
1189 WakeLock wakeLock = mWakeLocks.get(index); in updateWakeLockWorkSourceInternal()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java54 import com.android.systemui.util.wakelock.WakeLock;
103 WakeLock.createPartial(context, "Doze:KeyguardIndication")); in KeyguardIndicationController()
113 WakeLock wakeLock) { in KeyguardIndicationController()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DNotificationController.java33 import android.os.PowerManager.WakeLock;
368 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleCancelPrintJob()
407 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in handleRestartPrintJob()
/frameworks/base/services/core/java/com/android/server/
DConsumerIrService.java37 private final PowerManager.WakeLock mWakeLock;
DGestureLauncherService.java33 import android.os.PowerManager.WakeLock;
70 private WakeLock mWakeLock;
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java36 PowerManager.WakeLock mProx;
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java23 import android.os.PowerManager.WakeLock;
401 private final WakeLock mWakeLock;

1234