Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java30 public interface WakeLock { interface
60 static WakeLock createPartial(Context context, String tag) { in createPartial()
67 static WakeLock createPartial(Context context, String tag, long maxTimeout) { in createPartial()
74 static WakeLock createWakeLock(Context context, String tag, int flags, long maxTimeout) { in createWakeLock()
79 static PowerManager.WakeLock createWakeLockInner( in createWakeLockInner()
85 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
103 static WakeLock wrap(final PowerManager.WakeLock inner, long maxTimeout) {
104 return new WakeLock() {
170 public WakeLock build() {
171 return WakeLock.createWakeLock(mContext, mTag, mLevelsAndFlags, 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/core/java/android/os/
DWakeLockStats.java31 public static class WakeLock { class in WakeLockStats
43 public WakeLock(int uid, @NonNull String name, int timesAcquired, long totalTimeHeldMs, in WakeLock() method in WakeLockStats.WakeLock
52 private WakeLock(Parcel in) { in WakeLock() method in WakeLockStats.WakeLock
80 private final List<WakeLock> mWakeLocks;
83 public WakeLockStats(@NonNull List<WakeLock> wakeLocks) { in WakeLockStats()
88 public List<WakeLock> getWakeLocks() { in getWakeLocks()
96 mWakeLocks.add(new WakeLock(in)); in WakeLockStats()
105 WakeLock stats = mWakeLocks.get(i); in writeToParcel()
DPowerManager.java1359 public WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
1361 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName(), in newWakeLock()
1379 public WakeLock newWakeLock(int levelAndFlags, String tag, int displayId) { in newWakeLock()
1381 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName(), displayId); in newWakeLock()
2919 public final class WakeLock { class in PowerManager
2939 WakeLock(int flags, String tag, String packageName, int displayId) { in WakeLock() method in PowerManager.WakeLock
3179 proto.write(PowerManagerProto.WakeLock.TAG, mTag); in dumpDebug()
3180 proto.write(PowerManagerProto.WakeLock.PACKAGE_NAME, mPackageName); in dumpDebug()
3181 proto.write(PowerManagerProto.WakeLock.HELD, mHeld); in dumpDebug()
3182 proto.write(PowerManagerProto.WakeLock.INTERNAL_COUNT, mInternalCount); in dumpDebug()
[all …]
/frameworks/base/packages/SystemUI/tests/utils/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() {
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockTest.java40 WakeLock mWakeLock;
41 PowerManager.WakeLock mInner;
45 mInner = WakeLock.createWakeLockInner(mContext, in setUp()
48 mWakeLock = WakeLock.wrap(mInner, 20000); in setUp()
DKeepAwakeAnimationListenerTest.java41 @Mock WakeLock mWakeLock;
/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerManagerWrapper.java21 import android.os.PowerManager.WakeLock;
47 WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
/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/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/media/taptotransfer/receiver/
DFakeMediaTttChipControllerReceiver.kt32 import com.android.systemui.util.wakelock.WakeLock
48 wakeLockBuilder: WakeLock.Builder,
/frameworks/base/services/core/java/com/android/server/power/
DPowerManagerShellCommand.java22 import android.os.PowerManager.WakeLock;
38 private SparseArray<WakeLock> mProxWakelocks = new SparseArray<>();
164 WakeLock wakelock = mProxWakelocks.get(wakelockIndex); in runSetProx()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java34 import com.android.systemui.util.wakelock.WakeLock;
49 private final WakeLock mWakeLock;
61 WakeLock wakeLock, DozeHost host, @Main Handler handler, in DozeUi()
DDozeScreenState.java39 import com.android.systemui.util.wakelock.WakeLock;
91 WakeLock wakeLock, in DozeScreenState()
/frameworks/base/packages/SystemUI/src/com/android/systemui/broadcast/
DBroadcastSender.kt10 import com.android.systemui.util.wakelock.WakeLock
23 private val wakeLockBuilder: WakeLock.Builder,
/frameworks/base/services/core/java/com/android/server/location/gnss/
DNtpTimeHelper.java25 import android.os.PowerManager.WakeLock;
73 private final WakeLock mWakeLock;
/frameworks/base/services/core/java/com/android/server/vibrator/
DVibrationThread.java88 private final PowerManager.WakeLock mWakeLock;
117 VibrationThread(PowerManager.WakeLock wakeLock, VibratorManagerHooks vibratorManagerHooks) { in VibrationThread()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerTest.java107 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
134 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
149 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains()
165 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock()
/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/packages/SystemUI/src/com/android/systemui/doze/dagger/
DDozeModule.java46 import com.android.systemui.util.wakelock.WakeLock;
76 static WakeLock providesDozeWakeLock(DelayedWakeLock.Builder delayedWakeLockBuilder, in providesDozeWakeLock()
/frameworks/base/services/core/java/com/android/server/dreams/
DDreamController.java112 boolean isPreviewMode, boolean canDoze, int userId, PowerManager.WakeLock wakeLock, in startDream()
312 public PowerManager.WakeLock mWakeLock;
346 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
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTemporaryViewDisplayController.kt42 import com.android.systemui.util.wakelock.WakeLock in <lambda>()
80 private val wakeLockBuilder: WakeLock.Builder, in <lambda>()
496 var wakeLock: WakeLock?, in <lambda>()

123456