Home
last modified time | relevance | path

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

123456

/frameworks/base/core/java/android/os/
DWakeLockStats.java95 public static class WakeLock { class in WakeLockStats
109 public WakeLock( in WakeLock() method in WakeLockStats.WakeLock
133 private WakeLock(Parcel in) { in WakeLock() method in WakeLockStats.WakeLock
167 private final List<WakeLock> mWakeLocks;
168 private final List<WakeLock> mAggregatedWakeLocks;
172 @NonNull List<WakeLock> wakeLocks, @NonNull List<WakeLock> aggregatedWakeLocks) { in WakeLockStats()
178 public List<WakeLock> getWakeLocks() { in getWakeLocks()
183 public List<WakeLock> getAggregatedWakeLocks() { in getAggregatedWakeLocks()
191 mWakeLocks.add(new WakeLock(in)); in WakeLockStats()
196 mAggregatedWakeLocks.add(new WakeLock(in)); in WakeLockStats()
[all …]
DPowerManager.java1352 public WakeLock newWakeLock(int levelAndFlags, String tag) { in newWakeLock()
1354 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName(), in newWakeLock()
1372 public WakeLock newWakeLock(int levelAndFlags, String tag, int displayId) { in newWakeLock()
1374 return new WakeLock(levelAndFlags, tag, mContext.getOpPackageName(), displayId); in newWakeLock()
3712 public final class WakeLock { class in PowerManager
3732 WakeLock(int flags, String tag, String packageName, int displayId) { in WakeLock() method in PowerManager.WakeLock
3976 proto.write(PowerManagerProto.WakeLock.TAG, mTag); in dumpDebug()
3977 proto.write(PowerManagerProto.WakeLock.PACKAGE_NAME, mPackageName); in dumpDebug()
3978 proto.write(PowerManagerProto.WakeLock.HELD, mHeld); in dumpDebug()
3979 proto.write(PowerManagerProto.WakeLock.INTERNAL_COUNT, mInternalCount); in dumpDebug()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/
DWakeLock.java32 public interface WakeLock { interface
66 static WakeLock createPartial(Context context, WakeLockLogger logger, String tag) { in createPartial()
74 static WakeLock createPartial( in createPartial()
84 static WakeLock createWakeLock( in createWakeLock()
91 static PowerManager.WakeLock createWakeLockInner( in createWakeLockInner()
97 static Runnable wrapImpl(WakeLock w, Runnable r) { in wrapImpl()
115 static WakeLock wrap(
116 final PowerManager.WakeLock inner, WakeLockLogger logger, long maxTimeout) {
122 return new WakeLock() {
204 public WakeLock build() {
[all …]
DClientTrackingWakeLock.kt21 import com.android.systemui.util.wakelock.WakeLock.Builder.NO_TIMEOUT in <lambda>()
30 private val pmWakeLock: PowerManager.WakeLock, in <lambda>()
33 ) : WakeLock { in <lambda>()
50 Log.wtf(WakeLock.TAG, "Releasing WakeLock with invalid reason: $why") in <lambda>()
60 override fun wrap(r: Runnable): Runnable = WakeLock.wrapImpl(this, r) in <lambda>()
DWakeLockLogger.kt25 fun logAcquire(wakeLock: PowerManager.WakeLock, reason: String, count: Int) { in logAcquire()
27 WakeLock.TAG, in logAcquire()
38 fun logRelease(wakeLock: PowerManager.WakeLock, reason: String, count: Int) { in logRelease()
40 WakeLock.TAG, in logRelease()
DDelayedWakeLock.java34 public class DelayedWakeLock implements WakeLock {
40 private final WakeLock mInner;
47 mInner = WakeLock.createPartial(context, logger, tag); in DelayedWakeLock()
64 return WakeLock.wrapImpl(this, r); in wrap()
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, null, "animation"); in KeepAwakeAnimationListener()
/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/core/tests/coretests/src/android/os/
DWakeLockStatsTest.java74 assertThat(WakeLockStats.WakeLock.isDataValid(wakeLockData, wakeLockData)).isFalse(); in isDataValidOfWakeLock_zeroTotalHeldMs_returnFalse()
86 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_invalidData_returnFalse()
99 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_totalSmallerThanBackground_returnFalse()
112 assertThat(WakeLockStats.WakeLock.isDataValid(totalWakeLockData, backgroundWakeLockData)) in isDataValidOfWakeLock_returnTrue()
124 final WakeLockStats.WakeLock wakeLock1 = in parcelablity()
125 new WakeLockStats.WakeLock( in parcelablity()
134 final WakeLockStats.WakeLock wakeLock2 = in parcelablity()
135 new WakeLockStats.WakeLock( in parcelablity()
152 WakeLockStats.WakeLock actualWakelock = actual.getWakeLocks().get(0); in parcelablity()
164 WakeLockStats.WakeLock actualAggregatedWakelock = actual.getAggregatedWakeLocks().get(0); in parcelablity()
DPowerManagerTest.java133 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); in testNewWakeLock()
161 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); in testBadNewWakeLock()
177 PowerManager.WakeLock wakeLock = mPm.newWakeLock( in testWakeLockWithWorkChains()
193 private void doTestWakeLock(PowerManager.WakeLock wl) { in doTestWakeLock()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/
DWakeLockTest.java62 WakeLock mWakeLock;
63 PowerManager.WakeLock mInner;
67 mInner = WakeLock.createWakeLockInner(mContext, in setUp()
70 mWakeLock = WakeLock.wrap(mInner, null, 20000); in setUp()
/frameworks/base/packages/SystemUI/src/com/android/systemui/dreams/homecontrols/
DHomeControlsDreamService.kt31 import com.android.systemui.util.wakelock.WakeLock
32 import com.android.systemui.util.wakelock.WakeLock.Builder.NO_TIMEOUT
49 private val wakeLockBuilder: WakeLock.Builder,
59 private val wakeLock: WakeLock by lazy { in <lambda>()
/frameworks/base/packages/PackageInstaller/src/com/android/packageinstaller/wear/
DWearPackageInstallerService.java104 public PowerManager.WakeLock mLock;
106 UninstallParams(String packageName, PowerManager.WakeLock lock) { in UninstallParams()
130 private static volatile PowerManager.WakeLock lockStatic = null;
179 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in onStartCommand()
232 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in installPackage()
382 PowerManager.WakeLock lock = getLock(this.getApplicationContext()); in uninstallPackage()
534 private void finishService(PowerManager.WakeLock lock, int startId) { in finishService()
541 private synchronized PowerManager.WakeLock getLock(Context context) { in getLock()
554 private PowerManager.WakeLock mWakeLock;
557 private PackageInstallListener(Context context, PowerManager.WakeLock wakeLock, in PackageInstallListener()
/frameworks/base/services/core/java/com/android/server/hdmi/
DPowerManagerWrapper.java61 private final PowerManager.WakeLock mWakeLock;
63 private DefaultWakeLockWrapper(PowerManager.WakeLock wakeLock) { in DefaultWakeLockWrapper()
/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.kt33 import com.android.systemui.util.wakelock.WakeLock
49 wakeLockBuilder: WakeLock.Builder,
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsImplTest.java630 List<WakeLockStats.WakeLock> wakeLockList = wakeLockStats.getWakeLocks(); in testGetWakeLockStats()
633 WakeLockStats.WakeLock wakeLock1 = getWakeLockFromList(wakeLockList, 10100, "wakeLock1"); in testGetWakeLockStats()
639 WakeLockStats.WakeLock wakeLock3 = getWakeLockFromList(wakeLockList, 10300, "wakeLock3"); in testGetWakeLockStats()
646 WakeLockStats.WakeLock wakeLock4 = getWakeLockFromList(wakeLockList, 10400, "wakeLock4"); in testGetWakeLockStats()
652 WakeLockStats.WakeLock wakeLock5 = getWakeLockFromList(wakeLockList, 10400, "wakeLock5"); in testGetWakeLockStats()
659 List<WakeLockStats.WakeLock> aggregatedWakeLockList = in testGetWakeLockStats()
663 WakeLockStats.WakeLock aggregatedWakeLock1 = in testGetWakeLockStats()
672 WakeLockStats.WakeLock aggregatedWakeLock2 = in testGetWakeLockStats()
681 WakeLockStats.WakeLock aggregatedWakeLock3 = in testGetWakeLockStats()
690 WakeLockStats.WakeLock aggregatedWakeLock4 = in testGetWakeLockStats()
[all …]
/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/power/
DPowerManagerShellCommand.java22 import android.os.PowerManager.WakeLock;
38 private SparseArray<WakeLock> mProxWakelocks = new SparseArray<>();
166 WakeLock wakelock = mProxWakelocks.get(wakelockIndex); in runSetProx()
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/
DDozeUi.java36 import com.android.systemui.util.wakelock.WakeLock;
51 private final WakeLock mWakeLock;
73 WakeLock wakeLock, DozeHost host, @Main Handler handler, in DozeUi()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/util/wakelock/
DClientTrackingWakeLockTest.kt39 lateinit var mInner: PowerManager.WakeLock
44 WakeLock.createWakeLockInner(mContext, "WakeLockTest", PowerManager.PARTIAL_WAKE_LOCK) in setUp()
/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/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.java45 import com.android.systemui.util.wakelock.WakeLock;
76 static WakeLock providesDozeWakeLock(DelayedWakeLock.Factory delayedWakeLockFactory) { in providesDozeWakeLock()

123456