/cts/tests/tests/permission/src/android/permission/cts/ |
NoWakeLockPermissionTest.java | 34 private PowerManager.WakeLock mWakeLock; 81 * Verify that PowerManager.WakeLock.acquire() requires permissions. 89 fail("WakeLock.acquire() did not throw SecurityException as expected"); 96 * Verify that PowerManager.WakeLock.acquire(long) requires permissions. 105 fail("WakeLock.acquire(long) did not throw SecurityException as expected");
|
/frameworks/base/packages/SystemUI/tests/src/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);
|
WakeLockFake.java | 17 package com.android.systemui.util.wakelock; 21 public class WakeLockFake implements WakeLock {
|
/tools/loganalysis/src/com/android/loganalysis/item/ |
WakelockItem.java | 40 * Enum for describing the type of wakelock 140 * Add a wakelock from the battery stats section. 154 * Add a wakelock from the battery stats section. 175 for (WakelockInfoItem wakeLock : mWakeLocks) { 176 if (category.equals(wakeLock.getCategory())) { 177 wakeLocks.add(wakeLock); 189 for (WakelockInfoItem wakeLock : mWakeLocks) { 190 wakeLocks.add(wakeLock); 200 throw new ConflictingItemException("Wakelock items cannot be merged"); 220 for (WakelockInfoItem wakeLock : mWakeLocks) [all...] |
/frameworks/base/packages/SystemUI/src/com/android/systemui/doze/ |
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.
|
/docs/source.android.com/en/devices/tech/connect/ |
ril.html | 137 because the requests take considerable time, RIL Java releases the wakelock 141 wakelock and process the response, and later go to idle state again. This 145 <li>If the response time isn't long enough then holding the wakelock and 147 power efficient than going in suspend state by releasing the wakelock and 180 example, <code>RIL_REQUEST_GET_AVAILABLE_NETWORKS</code>), then wakelock 186 <p>In this scenario, wakelock equivalent is held by Modem code (RIL request 194 <li>RIL request is sent, and the modem needs to acquire wakelock to process 198 the wakelock counter and release it if the wakelock counter value is 0.</li> 201 vendor code that acquires wakelock and sends a response to ril.cpp. ril.cp [all...] |
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
WakeLockFacade.java | 21 import android.os.PowerManager.WakeLock; 45 private final Map<WakeLockType, WakeLock> mmLocks = new HashMap<WakeLockType, WakeLock>(); 58 WakeLock full = mmPowerManager.newWakeLock(flags, WAKE_LOCK_TAG); 65 for (Entry<WakeLockType, WakeLock> entry : mmLocks.entrySet()) { 73 for (Entry<WakeLockType, WakeLock> entry : mmLocks.entrySet()) {
|
/frameworks/base/core/tests/coretests/src/android/os/ |
PowerManagerTest.java | 53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK"); 83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo"); 87 fail("Bad WakeLock flag was not caught."); 91 * Apply a few tests to a wakelock to make sure it's healthy. 93 * @param wl The wakelock to be tested. 95 private void doTestWakeLock(PowerManager.WakeLock wl) {
|
/external/robolectric/v1/src/test/java/com/xtremelabs/robolectric/shadows/ |
PowerManagerTest.java | 42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); 58 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG"); 74 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG");
|
/cts/tests/tests/os/src/android/os/cts/ |
PowerManager_WakeLockTest.java | 21 import android.os.PowerManager.WakeLock; 32 * 3 Sets whether this WakeLock is ref counted 36 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG); 74 final WakeLock lock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|
PowerManagerTest.java | 22 import android.os.PowerManager.WakeLock; 39 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
|
/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);
|
KernelWakelockStats.java | 21 * Kernel wakelock stats object.
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
WakeLockStateMachine.java | 33 * state, or false to remain in idle state. The wakelock is acquired on exit from idle state, 40 private final PowerManager.WakeLock mWakeLock; 48 /** Release wakelock after a short timeout when returning to idle state. */ 57 /** Wakelock release delay when returning to idle state. */ 93 // fully release the wakelock 135 * Idle state delivers Cell Broadcasts to receivers. It acquires the wakelock, which is 147 if (DBG) log("acquired wakelock, leaving Idle state"); 197 mWakeLock.release(); // decrement wakelock from previous entry to Idle 199 // wakelock should still be held until 3 seconds after we enter Idle
|
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/ |
BatteryStatsWakeLockTests.java | 35 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 44 PowerManager.WakeLock wl = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmAlertWakeLock.java | 29 private static PowerManager.WakeLock sCpuWakeLock; 31 public static PowerManager.WakeLock createPartialWakeLock(Context context) {
|
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tests/ |
WakelockAnomalyTest.java | 77 // Sleeping time less than running time, so the app still holding wakelock when we check 83 assertWithMessage("Doesn't have wakelock anomaly").that( 104 assertWithMessage("Shouldn't have wakelock anomaly").that( 121 // Wait more time for releasing the wakelock 127 assertWithMessage("Shouldn't have wakelock anomaly").that(
|
/frameworks/base/services/core/java/com/android/server/power/ |
PowerManagerService.java | 267 private final ArrayList<WakeLock> mWakeLocks = new ArrayList<WakeLock>(); [all...] |
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
MediaFrameworkTest.java | 36 private PowerManager.WakeLock mWakeLock = null; 58 Log.v(TAG, "onResume, acquire wakelock"); 65 Log.v(TAG, "onPause, release wakelock");
|
/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/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;
|
/packages/apps/Dialer/java/com/android/incallui/answerproximitysensor/ |
AnswerProximityWakeLock.java | 20 * Interface to wrap around the {@link android.os.PowerManager.WakeLock} for custom implementations.
|
/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();
|
/system/bt/osi/test/ |
wakelock_test.cc | 27 #include "osi/include/wakelock.h" 86 // Test whether the file-based wakelock is acquired. 133 // Initially, the wakelock is not acquired 148 // Initially, the wakelock is not acquired
|
/system/bt/osi/src/ |
wakelock.cc | 43 #include "osi/include/wakelock.h" 61 // Wakelock statistics for the "bluetooth_timer" 238 // Reset the Bluetooth wakelock statistics. 258 // Update the Bluetooth acquire wakelock statistics. 260 // This function should be called every time when the wakelock is acquired. 261 // |acquired_status| is the status code that was return when the wakelock was 288 // Update the Bluetooth release wakelock statistics. 290 // This function should be called every time when the wakelock is released. 291 // |released_status| is the status code that was return when the wakelock was 334 // Compute the last acquired interval if the wakelock is still acquire [all...] |