Home
last modified time | relevance | path

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

12345

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java30 public interface WakeLock { interface
55 static WakeLock createPartial(Context context, String tag) { in createPartial()
62 static WakeLock createPartial(Context context, String tag, long maxTimeout) { in createPartial()
67 static PowerManager.WakeLock createPartialInner(Context context, String tag) { in createPartialInner()
72 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
90 static WakeLock wrap(final PowerManager.WakeLock inner, long maxTimeout) {
91 return new WakeLock() {
150 public WakeLock build() {
151 return WakeLock.createPartial(mContext, mTag, mMaxTimeout);
DDelayedWakeLock.java27 public class DelayedWakeLock implements WakeLock {
33 private final WakeLock mInner;
35 public DelayedWakeLock(Handler h, WakeLock inner) { in DelayedWakeLock()
52 return WakeLock.wrapImpl(this, r); in wrap()
98 return new DelayedWakeLock(mHandler, WakeLock.createPartial(mContext, mTag)); in build()
DSettableWakeLock.java23 private final WakeLock mInner;
28 public SettableWakeLock(WakeLock inner, String why) { in SettableWakeLock()
DKeepAwakeAnimationListener.java31 static WakeLock sWakeLock;
36 sWakeLock = WakeLock.createPartial(context, "animation"); in KeepAwakeAnimationListener()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockFake.java23 public class WakeLockFake implements WakeLock {
54 public static class Builder extends WakeLock.Builder {
55 private WakeLock mWakeLock;
61 public void setWakeLock(WakeLock wakeLock) {
65 public WakeLock build() {
DWakeLockTest.java39 WakeLock mWakeLock;
40 PowerManager.WakeLock mInner;
44 mInner = WakeLock.createPartialInner(mContext, WakeLockTest.class.getName()); in setUp()
45 mWakeLock = WakeLock.wrap(mInner, 20000); in setUp()
DKeepAwakeAnimationListenerTest.java41 @Mock WakeLock mWakeLock;
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java112 private static volatile PowerManager.WakeLock lockStatic = null;
161 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in onStartCommand()
215 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in installPackage()
368 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in uninstallPackage()
481 private void finishService(PowerManager.WakeLock lock, int startId) { in finishService()
488 private synchronized PowerManager.WakeLock getLock(Context context) { in getLock()
501 private PowerManager.WakeLock mWakeLock;
504 private PackageInstallListener(Context context, PowerManager.WakeLock wakeLock, in PackageInstallListener()
541 private PowerManager.WakeLock mWakeLock;
544 private PackageDeleteObserver(PowerManager.WakeLock wakeLock, int startId) { in PackageDeleteObserver()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java86 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
113 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
128 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains()
144 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/src/com/android/systemui/doze/
DDozeFactory.java41 import com.android.systemui.util.wakelock.WakeLock;
97 WakeLock wakeLock = mDelayedWakeLockBuilder.setHandler(mHandler).setTag("Doze").build(); in assembleMachine()
141 DozeParameters params, WakeLock wakeLock, in createDozeTriggers()
151 private DozeMachine.Part createDozeUi(Context context, DozeHost host, WakeLock wakeLock, in createDozeUi()
DDozeUi.java34 import com.android.systemui.util.wakelock.WakeLock;
47 private final WakeLock mWakeLock;
68 WakeLock wakeLock, DozeHost host, Handler handler, in DozeUi()
DDozeScreenState.java31 import com.android.systemui.util.wakelock.WakeLock;
63 DozeParameters parameters, WakeLock wakeLock) { in DozeScreenState()
DDozeMachine.java36 import com.android.systemui.util.wakelock.WakeLock;
136 private final WakeLock mWakeLock;
149 public DozeMachine(Service service, AmbientDisplayConfiguration config, WakeLock wakeLock, in DozeMachine()
/frameworks/base/core/java/android/os/
DPowerManager.java1101 public WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
1103 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName()); in newWakeLock()
2299 public final class WakeLock { class in PowerManager
2320 WakeLock(int flags, String tag, String packageName) { in WakeLock() method in PowerManager.WakeLock
2559 proto.write(PowerManagerProto.WakeLock.TAG, mTag); in dumpDebug()
2560 proto.write(PowerManagerProto.WakeLock.PACKAGE_NAME, mPackageName); in dumpDebug()
2561 proto.write(PowerManagerProto.WakeLock.HELD, mHeld); in dumpDebug()
2562 proto.write(PowerManagerProto.WakeLock.INTERNAL_COUNT, mInternalCount); in dumpDebug()
2564 mWorkSource.dumpDebug(proto, PowerManagerProto.WakeLock.WORK_SOURCE); in dumpDebug()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/
DKeyguardViewMediatorTest.java33 import android.os.PowerManager.WakeLock;
85 when(mPowerManager.newWakeLock(anyInt(), any())).thenReturn(mock(WakeLock.class)); in setUp()
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpTimeHelper.java25 import android.os.PowerManager.WakeLock;
74 private final WakeLock mWakeLock;
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamController.java120 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in startDream()
268 public PowerManager.WakeLock mWakeLock;
277 boolean isTest, boolean canDoze, int userId, PowerManager.WakeLock wakeLock) { in DreamRecord()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/nitz/
DNitzSignalInputFilterPredicateFactory.java23 import android.os.PowerManager.WakeLock;
124 final WakeLock wakeLock = in createBogusElapsedRealtimeCheck()
/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
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeSensorsTest.java51 import com.android.systemui.util.wakelock.WakeLock;
75 private WakeLock mWakeLock;
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerService.java297 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>();
1286 WakeLock wakeLock;
1306 wakeLock = new WakeLock(lock, flags, tag, packageName, ws, historyTag, uid, pid,
1333 private static boolean isScreenLock(final WakeLock wakeLock) {
1357 private void applyWakeLockFlagsOnAcquireLocked(WakeLock wakeLock, int uid) {
1394 WakeLock wakeLock = mWakeLocks.get(index);
1409 private void handleWakeLockDeath(WakeLock wakeLock) {
1425 private void removeWakeLockLocked(WakeLock wakeLock, int index) {
1440 private void applyWakeLockFlagsOnReleaseLocked(WakeLock wakeLock) {
1463 WakeLock wakeLock = mWakeLocks.get(index);
[all …]
/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;
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/
DPowerTest.java36 PowerManager.WakeLock mProx;

12345