/tools/loganalysis/tests/src/com/android/loganalysis/parser/ |
WakelockParserTest.java | 46 WakelockItem wakelock = new WakelockParser().parse(inputBlock); local 49 wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK).size()); 51 wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK).get(0).getName()); 52 assertEquals(229268, wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK). 54 assertEquals(2399, wakelock.getWakeLocks(WakeLockCategory.KERNEL_WAKELOCK). 69 WakelockItem wakelock = new WakelockParser().parse(inputBlock); local 72 wakelock.getWakeLocks(WakeLockCategory.PARTIAL_WAKELOCK).size()); 73 assertEquals("NlpWakeLock", wakelock.getWakeLocks(WakeLockCategory.PARTIAL_WAKELOCK). 75 assertEquals("u0a7", wakelock.getWakeLocks(WakeLockCategory.PARTIAL_WAKELOCK). 77 assertEquals(493203, wakelock.getWakeLocks(WakeLockCategory.PARTIAL_WAKELOCK) 94 WakelockItem wakelock = new WakelockParser().parse(inputBlock); local 119 WakelockItem wakelock = new WakelockParser().parse(inputBlock); local [all...] |
/tools/loganalysis/tests/src/com/android/loganalysis/rule/ |
WakelockRuleTest.java | 53 * Test wakelock analysis 56 WakelockItem wakelock = new WakelockItem(); local 57 wakelock.addWakeLock("PowerManagerService.WakeLocks", 310006, 2, 59 wakelock.addWakeLock("msm_serial_hs_rx", 133612, 258, 62 wakelock.addWakeLock("ProxyController", "1001", 3887565, 4, 64 wakelock.addWakeLock("AudioMix", "1013", 1979, 3, 67 mBatteryStatsDetailedInfo.setWakelockItem(wakelock); 78 WakelockItem wakelock = new WakelockItem(); local 79 wakelock.addWakeLock("PowerManagerService.WakeLocks", 310006, 2, 81 wakelock.addWakeLock("msm_serial_hs_rx", 133612, 258 [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/wakelock/ |
SettableWakeLock.java | 17 package com.android.systemui.util.wakelock; 26 private final WakeLock mInner; 30 public SettableWakeLock(WakeLock inner) { 31 Preconditions.checkNotNull(inner, "inner wakelock required");
|
DelayedWakeLock.java | 17 package com.android.systemui.util.wakelock; 24 public class DelayedWakeLock implements WakeLock { 29 private final WakeLock mInner; 32 public DelayedWakeLock(Handler h, WakeLock inner) { 50 return WakeLock.wrapImpl(this, r);
|
WakeLock.java | 17 package com.android.systemui.util.wakelock; 23 /** WakeLock wrapper for testability */ 24 public interface WakeLock { 26 /** @see android.os.PowerManager.WakeLock#acquire() */ 29 /** @see android.os.PowerManager.WakeLock#release() */ 32 /** @see android.os.PowerManager.WakeLock#wrap(Runnable) */ 35 static WakeLock createPartial(Context context, String tag) { 40 static PowerManager.WakeLock createPartialInner(Context context, String tag) { 45 static Runnable wrapImpl(WakeLock w, Runnable r) { 56 static WakeLock wrap(final PowerManager.WakeLock inner) [all...] |
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/wakelock/ |
WakeLockFake.java | 17 package com.android.systemui.util.wakelock; 21 public class WakeLockFake implements WakeLock {
|
SettableWakeLockTest.java | 17 package com.android.systemui.util.wakelock;
|
WakeLockTest.java | 17 package com.android.systemui.util.wakelock; 39 WakeLock mWakeLock; 40 PowerManager.WakeLock mInner; 44 mInner = WakeLock.createPartialInner(mContext, WakeLockTest.class.getName()); 45 mWakeLock = WakeLock.wrap(mInner);
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
UserCallActivity.java | 57 PowerManager.WakeLock wakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, local 59 wakelock.acquire(); 80 wakelock.release();
|
/external/lisa/libs/utils/android/workloads/ |
idle_resume.py | 101 # Prevent the device from fully suspending by holding a partial wakelock 102 System.wakelock(self._target, take=True) 117 # Release wakelock 118 System.wakelock(self._target, take=False)
|
/frameworks/base/core/java/com/android/internal/os/ |
WakelockPowerCalculator.java | 36 final ArrayMap<String, ? extends BatteryStats.Uid.Wakelock> wakelockStats = 40 final BatteryStats.Uid.Wakelock wakelock = wakelockStats.valueAt(i); local 44 BatteryStats.Timer timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL);
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
DozeFactory.java | 33 import com.android.systemui.util.wakelock.DelayedWakeLock; 34 import com.android.systemui.util.wakelock.WakeLock; 51 WakeLock wakeLock = new DelayedWakeLock(handler, 52 WakeLock.createPartial(context, "Doze")); 60 DozeMachine machine = new DozeMachine(wrappedService, config, wakeLock); 65 handler, wakeLock, machine), 66 createDozeUi(context, host, wakeLock, machine, handler, alarmManager), 85 DozeParameters params, Handler handler, WakeLock wakeLock, DozeMachine machine) [all...] |
DozeUi.java | 27 import com.android.systemui.util.wakelock.WakeLock; 41 private final WakeLock mWakeLock; 48 WakeLock wakeLock, DozeHost host, Handler handler) { 51 mWakeLock = wakeLock; 156 // Keep wakelock until a frame has been pushed.
|
DozeMachine.java | 28 import com.android.systemui.util.wakelock.WakeLock; 110 private final WakeLock mWakeLock; 120 WakeLock wakeLock) { 123 mWakeLock = wakeLock;
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/ |
DozeTriggersTest.java | 37 import com.android.systemui.util.wakelock.WakeLock; 38 import com.android.systemui.util.wakelock.WakeLockFake; 58 private WakeLock mWakeLock;
|
DozeUiTest.java | 41 import com.android.systemui.util.wakelock.WakeLockFake;
|
DozeMachineTest.java | 47 import com.android.systemui.util.wakelock.WakeLockFake;
|
/frameworks/base/services/core/java/com/android/server/am/ |
HealthStatsBatteryStatsWriter.java | 85 for (final Map.Entry<String,? extends BatteryStats.Uid.Wakelock> entry: 88 final BatteryStats.Uid.Wakelock wakelock = entry.getValue(); local 91 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_FULL); 95 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_PARTIAL); 99 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_WINDOW); 103 timer = wakelock.getWakeTime(BatteryStats.WAKE_TYPE_DRAW);
|
/external/sl4a/ScriptingLayerForAndroid/src/org/connectbot/ |
ConsoleActivity.java | 101 private PowerManager.WakeLock wakelock = null; field in class:ConsoleActivity 274 wakelock = manager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, getPackageName()); 743 if (wakelock != null && wakelock.isHeld()) { 744 wakelock.release(); 759 if (wakelock != null && prefs.getBoolean(PreferenceConstants.KEEP_ALIVE, true)) { 760 wakelock.acquire(); [all...] |
/device/huawei/angler/ |
init.angler.rc | 72 write /sys/module/wakelock/parameters/debug_mask 7 340 group system wakelock 368 group radio audio bluetooth wakelock gps 379 group radio system wakelock 453 group root wakelock
|
/device/lge/bullhead/ |
init.bullhead.rc | 278 group system wakelock 297 group radio audio bluetooth wakelock gps 312 group radio system wakelock 423 group root wakelock
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/ |
KeyguardIndicationController.java | 52 import com.android.systemui.util.wakelock.SettableWakeLock; 53 import com.android.systemui.util.wakelock.WakeLock; 103 WakeLock.createPartial(context, "Doze:KeyguardIndication")); 113 WakeLock wakeLock) { 122 mWakeLock = new SettableWakeLock(wakeLock); 261 // Make sure this doesn't get stuck and burns in. Acquire wakelock until its cleared.
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/ |
KeyguardIndicationControllerTest.java | 43 import com.android.systemui.util.wakelock.WakeLockFake; 190 assertFalse("WakeLock expected: RELEASED, was: HELD", held[0]);
|
/external/lisa/libs/utils/android/ |
system.py | 372 def wakelock(target, name='lisa', take=False): member in class:System 374 Take or release wakelock 379 :param name: name of the wakelock 382 :param take: whether to take or release the wakelock
|
/packages/apps/Settings/src/com/android/settings/ |
CryptKeeper.java | 124 PowerManager.WakeLock mWakeLock; 129 /** Number of calls to {@link #notifyUser()} before we release the wakelock */ 162 final PowerManager.WakeLock wakelock; field in class:CryptKeeper.NonConfigurationInstanceState 164 NonConfigurationInstanceState(PowerManager.WakeLock _wakelock) { 165 wakelock = _wakelock; 439 mWakeLock = retained.wakelock; 440 Log.d(TAG, "Restoring wakelock from NonConfigurationInstanceState"); 452 * especially important if we were to lose the wakelock for any reason. 550 * Reconfiguring, so propagate the wakelock to the next instance. This runs between onStop( [all...] |