/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/ |
D | WakeLock.java | 30 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);
|
D | DelayedWakeLock.java | 27 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()
|
D | SettableWakeLock.java | 23 private final WakeLock mInner; 28 public SettableWakeLock(WakeLock inner, String why) { in SettableWakeLock()
|
D | KeepAwakeAnimationListener.java | 31 static WakeLock sWakeLock; 36 sWakeLock = WakeLock.createPartial(context, "animation"); in KeepAwakeAnimationListener()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/ |
D | WakeLockFake.java | 23 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() {
|
D | WakeLockTest.java | 39 WakeLock mWakeLock; 40 PowerManager.WakeLock mInner; 44 mInner = WakeLock.createPartialInner(mContext, WakeLockTest.class.getName()); in setUp() 45 mWakeLock = WakeLock.wrap(mInner, 20000); in setUp()
|
D | KeepAwakeAnimationListenerTest.java | 41 @Mock WakeLock mWakeLock;
|
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/ |
D | WearPackageInstallerService.java | 112 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/ |
D | PowerManagerTest.java | 86 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/ |
D | SipWakeLock.java | 28 private PowerManager.WakeLock mWakeLock; 29 private PowerManager.WakeLock mTimerWakeLock;
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
D | DozeFactory.java | 41 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()
|
D | DozeUi.java | 34 import com.android.systemui.util.wakelock.WakeLock; 47 private final WakeLock mWakeLock; 68 WakeLock wakeLock, DozeHost host, Handler handler, in DozeUi()
|
D | DozeScreenState.java | 31 import com.android.systemui.util.wakelock.WakeLock; 63 DozeParameters parameters, WakeLock wakeLock) { in DozeScreenState()
|
D | DozeMachine.java | 36 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/ |
D | PowerManager.java | 1101 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/ |
D | KeyguardViewMediatorTest.java | 33 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/ |
D | NtpTimeHelper.java | 25 import android.os.PowerManager.WakeLock; 74 private final WakeLock mWakeLock;
|
/frameworks/base/services/core/java/com/android/server/dreams/ |
D | DreamController.java | 120 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/ |
D | NitzSignalInputFilterPredicateFactory.java | 23 import android.os.PowerManager.WakeLock; 124 final WakeLock wakeLock = in createBogusElapsedRealtimeCheck()
|
/frameworks/base/core/proto/android/os/ |
D | powermanager.proto | 38 // 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/ |
D | DozeSensorsTest.java | 51 import com.android.systemui.util.wakelock.WakeLock; 75 private WakeLock mWakeLock;
|
/frameworks/base/services/core/java/com/android/server/power/ |
D | PowerManagerService.java | 297 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/ |
D | NotificationController.java | 33 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/ |
D | ConsumerIrService.java | 37 private final PowerManager.WakeLock mWakeLock;
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
D | PowerTest.java | 36 PowerManager.WakeLock mProx;
|