HomeSort by relevance Sort by last modified time
    Searched refs:PowerManager (Results 1 - 25 of 95) sorted by null

1 2 3 4

  /packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
CellBroadcastAlertWakeLock.java 20 import android.os.PowerManager;
27 private static PowerManager.WakeLock sCpuWakeLock;
36 PowerManager pm =
37 (PowerManager) context.getSystemService(Context.POWER_SERVICE);
40 PowerManager.PARTIAL_WAKE_LOCK |
41 PowerManager.ACQUIRE_CAUSES_WAKEUP |
42 PowerManager.ON_AFTER_RELEASE, "CellBroadcastAlertWakeLock");
  /packages/apps/DeskClock/src/com/android/deskclock/
AlarmAlertWakeLock.java 20 import android.os.PowerManager;
28 private static PowerManager.WakeLock sCpuWakeLock;
35 PowerManager pm =
36 (PowerManager) context.getSystemService(Context.POWER_SERVICE);
39 PowerManager.PARTIAL_WAKE_LOCK |
40 PowerManager.ACQUIRE_CAUSES_WAKEUP |
41 PowerManager.ON_AFTER_RELEASE, Log.LOGTAG);
  /cts/tests/tests/permission/src/android/permission/cts/
DevicePowerPermissionTest.java 20 import android.os.PowerManager;
29 PowerManager mPowerManager;
34 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
46 fail("Was able to call PowerManager.goToSleep without DEVICE_POWER Permission.");
NoWakeLockPermissionTest.java 24 import android.os.PowerManager;
32 private PowerManager mPowerManager;
34 private PowerManager.WakeLock mWakeLock;
39 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
40 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, "tag");
69 mediaPlayer.setWakeMode(mContext, PowerManager.FULL_WAKE_LOCK);
81 * Verify that PowerManager.WakeLock.acquire() requires permissions.
96 * Verify that PowerManager.WakeLock.acquire(long) requires permissions.
112 * Verify that PowerManager.WakeLock.release() requires permissions.
  /frameworks/base/core/tests/coretests/src/android/os/
PowerManagerTest.java 25 private PowerManager mPm;
33 mPm = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE);
53 PowerManager.WakeLock wl = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "FULL_WAKE_LOCK");
56 wl = mPm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "SCREEN_BRIGHT_WAKE_LOCK");
59 wl = mPm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "SCREEN_DIM_WAKE_LOCK");
62 wl = mPm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "PARTIAL_WAKE_LOCK");
79 final int badFlags = PowerManager.SCREEN_BRIGHT_WAKE_LOCK
80 | PowerManager.SCREEN_DIM_WAKE_LOCK;
83 PowerManager.WakeLock wl = mPm.newWakeLock(badFlags, "foo")
    [all...]
  /frameworks/base/voip/java/com/android/server/sip/
SipWakeLock.java 19 import android.os.PowerManager;
27 private PowerManager mPowerManager;
28 private PowerManager.WakeLock mWakeLock;
29 private PowerManager.WakeLock mTimerWakeLock;
32 SipWakeLock(PowerManager powerManager) {
33 mPowerManager = powerManager;
45 PowerManager.PARTIAL_WAKE_LOCK, "SipWakeLock.timer");
55 PowerManager.PARTIAL_WAKE_LOCK, "SipWakeLock");
  /frameworks/base/services/jni/
com_android_server_PowerManagerService.h 23 #include <ui/PowerManager.h>
  /cts/tests/tests/os/src/android/os/cts/
PowerManagerTest.java 20 import android.os.PowerManager;
22 import android.os.PowerManager.WakeLock;
29 @TestTargetClass(PowerManager.class)
38 notes = "Test constructor(s) of {@link PowerManager}",
39 method = "PowerManager",
68 PowerManager pm = (PowerManager)getContext().getSystemService(Context.POWER_SERVICE);
70 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
PowerManager_WakeLockTest.java 20 import android.os.PowerManager;
21 import android.os.PowerManager.WakeLock;
28 @TestTargetClass(PowerManager.WakeLock.class)
77 PowerManager pm = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE);
78 WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
  /packages/apps/Mms/src/com/android/mms/transaction/
SmsReceiver.java 26 import android.os.PowerManager;
33 static PowerManager.WakeLock mStartingService;
75 PowerManager pm =
76 (PowerManager)context.getSystemService(Context.POWER_SERVICE);
77 mStartingService = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
  /cts/apps/CtsVerifier/src/com/android/cts/verifier/audioquality/
ExperimentService.java 25 import android.os.PowerManager;
45 private PowerManager.WakeLock mWakeLock = null;
104 PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE);
105 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, TAG);
  /frameworks/base/core/java/android/bluetooth/
HeadsetBase.java 20 import android.os.PowerManager;
21 import android.os.PowerManager.WakeLock;
77 public HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device,
85 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "HeadsetBase");
93 public HeadsetBase(PowerManager pm, BluetoothAdapter adapter, BluetoothDevice device,
102 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "HeadsetBase");
ScoSocket.java 21 import android.os.PowerManager;
22 import android.os.PowerManager.WakeLock;
61 public ScoSocket(PowerManager pm, Handler handler, int acceptedCode, int connectedCode,
69 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "ScoSocket");
  /frameworks/base/tests/StatusBar/src/com/android/statusbartest/
PowerTest.java 43 import android.os.PowerManager;
52 PowerManager mPm;
53 PowerManager.WakeLock mProx;
63 mPm = (PowerManager)getSystemService("power");
64 mProx = mPm.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, "PowerTest-prox");
81 mProx.release(PowerManager.WAIT_FOR_PROXIMITY_NEGATIVE);
  /frameworks/base/cmds/svc/src/com/android/commands/svc/
PowerCommand.java 22 import android.os.PowerManager;
67 pm.acquireWakeLock(PowerManager.FULL_WAKE_LOCK, lock, "svc power", null);
  /frameworks/base/media/java/android/media/
AsyncPlayer.java 21 import android.os.PowerManager;
133 private PowerManager.WakeLock mWakeLock;
226 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
227 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
  /frameworks/base/services/java/com/android/server/
HeadsetObserver.java 24 import android.os.PowerManager;
25 import android.os.PowerManager.WakeLock;
58 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
59 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "HeadsetObserver");
NotificationPlayer.java 27 import android.os.PowerManager;
231 private PowerManager.WakeLock mWakeLock;
325 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
326 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, mTag);
VibratorService.java 26 import android.os.PowerManager;
103 PowerManager pm = (PowerManager)context.getSystemService(
105 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "*vibrator*");
379 private final PowerManager.WakeLock mWakeLock;
  /frameworks/base/tests/BatteryWaster/src/com/android/batterywaster/
BatteryWaster.java 26 import android.os.PowerManager;
42 PowerManager.WakeLock mPartialWakeLock;
67 PowerManager pm = (PowerManager)getSystemService(POWER_SERVICE);
68 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "BatteryWaster");
  /packages/apps/Calendar/src/com/android/calendar/
AlertReceiver.java 27 import android.os.PowerManager;
46 static PowerManager.WakeLock mStartingService;
84 PowerManager pm =
85 (PowerManager)context.getSystemService(Context.POWER_SERVICE);
86 mStartingService = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
  /packages/apps/Settings/src/com/android/settings/bluetooth/
DockEventReceiver.java 30 import android.os.PowerManager;
48 private static PowerManager.WakeLock mStartingService;
148 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE);
149 mStartingService = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
BluetoothPermissionRequest.java 26 import android.os.PowerManager;
61 PowerManager powerManager =
62 (PowerManager) context.getSystemService(Context.POWER_SERVICE);
64 if (powerManager.isScreenOn() &&
  /packages/providers/CalendarProvider/src/com/android/providers/calendar/
CalendarAppWidgetProvider.java 27 import android.os.PowerManager;
28 import android.os.PowerManager.WakeLock;
213 PowerManager powerManager = (PowerManager)
216 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
  /development/apps/Development/src/com/android/development/
Connectivity.java 37 import android.os.PowerManager;
38 import android.os.PowerManager.WakeLock;
99 private PowerManager mPm;
120 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE);
131 mScreenonWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK |
132 PowerManager.ACQUIRE_CAUSES_WAKEUP,
191 mPm = (PowerManager)getSystemService(Context.POWER_SERVICE);
252 mWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK, "ConnectivityTest");
291 mScreenonWakeLock = mPm.newWakeLock(PowerManager.FULL_WAKE_LOCK
    [all...]

Completed in 636 milliseconds

1 2 3 4