/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
PowerManagerTest.java | 14 import android.os.PowerManager; 19 PowerManager powerManager; 24 powerManager = (PowerManager) Robolectric.application.getSystemService(Context.POWER_SERVICE); 25 shadowPowerManager = Robolectric.shadowOf(powerManager); 30 assertTrue(powerManager.isScreenOn()); 32 assertFalse(powerManager.isScreenOn()); 37 assertNotNull(powerManager.newWakeLock(0, "TAG")); 42 PowerManager.WakeLock lock = powerManager.newWakeLock(0, "TAG") [all...] |
/frameworks/base/core/java/android/service/dreams/ |
Sandman.java | 22 import android.os.PowerManager; 93 PowerManager powerManager = 94 (PowerManager)context.getSystemService(Context.POWER_SERVICE); 95 powerManager.wakeUp(SystemClock.uptimeMillis());
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
BluetoothPairingRequest.java | 30 import android.os.PowerManager; 65 PowerManager powerManager = 66 (PowerManager)context.getSystemService(Context.POWER_SERVICE); 68 if (powerManager.isScreenOn() &&
|
BluetoothPermissionRequest.java | 26 import android.os.PowerManager; 109 PowerManager powerManager = 110 (PowerManager) context.getSystemService(Context.POWER_SERVICE); 112 if (powerManager.isScreenOn()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
InCallWakeLockController.java | 20 import android.os.PowerManager; 31 private final PowerManager.WakeLock mFullWakeLock; 38 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 39 mFullWakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/base/ |
SensorCtsTestActivity.java | 42 import android.os.PowerManager; 57 private PowerManager.WakeLock mWakeLock; 70 PowerManager powerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); 71 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "SensorCtsTests");
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/helpers/ |
SensorTestScreenManipulator.java | 32 import android.os.PowerManager; 65 private final PowerManager.WakeLock mWakeUpScreenWakeLock; 66 private final PowerManager.WakeLock mKeepScreenOnWakeLock; 78 int levelAndFlags = PowerManager.FULL_WAKE_LOCK 79 | PowerManager.ON_AFTER_RELEASE 80 | PowerManager.ACQUIRE_CAUSES_WAKEUP; 81 PowerManager powerManager = (PowerManager) activity.getSystemService(Context.POWER_SERVICE); 82 mWakeUpScreenWakeLock = powerManager.newWakeLock(levelAndFlags, "SensorTestWakeUpScreen") [all...] |
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CalendarWatchFaceService.java | 32 import android.os.PowerManager; 190 private PowerManager.WakeLock mWakeLock; 194 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); 195 mWakeLock = powerManager.newWakeLock( 196 PowerManager.PARTIAL_WAKE_LOCK, "CalendarWatchFaceWakeLock");
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/ |
CalendarWatchFaceService.java | 32 import android.os.PowerManager; 190 private PowerManager.WakeLock mWakeLock; 194 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); 195 mWakeLock = powerManager.newWakeLock( 196 PowerManager.PARTIAL_WAKE_LOCK, "CalendarWatchFaceWakeLock");
|
/development/samples/browseable/WatchFace/Wearable/src/com.example.android.wearable.watchface/ |
CalendarWatchFaceService.java | 32 import android.os.PowerManager; 190 private PowerManager.WakeLock mWakeLock; 194 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); 195 mWakeLock = powerManager.newWakeLock( 196 PowerManager.PARTIAL_WAKE_LOCK, "CalendarWatchFaceWakeLock");
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
FaceUnlock.java | 32 import android.os.PowerManager; 344 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 345 if (powerManager.isScreenOn()) {
|
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/ |
NotificationController.java | 29 import android.os.PowerManager; 30 import android.os.PowerManager.WakeLock; 326 PowerManager powerManager = (PowerManager) 328 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 365 PowerManager powerManager = (PowerManager) [all...] |
/frameworks/base/core/java/android/net/ |
DhcpStateMachine.java | 32 import android.os.PowerManager; 63 private PowerManager.WakeLock mDhcpRenewWakeLock; 123 PowerManager powerManager = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE); 124 mDhcpRenewWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG);
|
/frameworks/base/services/core/java/com/android/server/location/ |
GeofenceManager.java | 36 import android.os.PowerManager; 73 private final PowerManager.WakeLock mWakeLock; 113 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 114 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|
/packages/apps/Camera2/src/com/android/camera/processing/ |
ProcessingService.java | 27 import android.os.PowerManager; 28 import android.os.PowerManager.WakeLock; 107 PowerManager powerManager = (PowerManager) getSystemService( 109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString());
|
/frameworks/base/core/java/android/hardware/location/ |
GeofenceHardwareImpl.java | 28 import android.os.PowerManager; 47 private PowerManager.WakeLock mWakeLock; 112 PowerManager powerManager = 113 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 114 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); [all...] |
/frameworks/base/services/core/java/com/android/server/ |
UiModeManagerService.java | 38 import android.os.PowerManager; 91 private PowerManager.WakeLock mWakeLock; 160 final PowerManager powerManager = 161 (PowerManager) context.getSystemService(Context.POWER_SERVICE); 162 mWakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG);
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
CalendarAlarmManager.java | 31 import android.os.PowerManager; 32 import android.os.PowerManager.WakeLock; 131 PowerManager powerManager = (PowerManager) mContext.getSystemService( 135 mScheduleNextAlarmWakeLock = powerManager.newWakeLock( 136 PowerManager.PARTIAL_WAKE_LOCK, SCHEDULE_NEXT_ALARM_WAKE_LOCK); 178 PowerManager.WakeLock getScheduleNextAlarmWakeLock() {
|
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailPlaybackFragment.java | 32 import android.os.PowerManager; 98 PowerManager powerManager = 99 (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); 100 PowerManager.WakeLock wakeLock = 101 powerManager.newWakeLock( 102 PowerManager.SCREEN_DIM_WAKE_LOCK, getClass().getSimpleName());
|
/frameworks/base/services/core/java/com/android/server/net/ |
NetworkStatsService.java | 95 import android.os.PowerManager; 158 private final PowerManager.WakeLock mWakeLock; 261 final PowerManager powerManager = (PowerManager) context.getSystemService( 263 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); [all...] |
/packages/apps/ContactsCommon/src/com/android/contacts/common/vcard/ |
ImportVCardActivity.java | 39 import android.os.PowerManager; 218 private PowerManager.WakeLock mWakeLock; 228 final PowerManager powerManager = 229 (PowerManager)context.getSystemService(Context.POWER_SERVICE); 230 mWakeLock = powerManager.newWakeLock( 231 PowerManager.SCREEN_DIM_WAKE_LOCK | 232 PowerManager.ON_AFTER_RELEASE, LOG_TAG); 611 private PowerManager.WakeLock mWakeLock; 621 PowerManager powerManager = (PowerManager)ImportVCardActivity.this.getSystemService [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaServiceStateTracker.java | 28 import android.os.PowerManager; 126 private PowerManager.WakeLock mWakeLock; 184 PowerManager powerManager = 185 (PowerManager)phone.getContext().getSystemService(Context.POWER_SERVICE); 186 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/ |
GsmServiceStateTracker.java | 34 import android.os.PowerManager; 155 private PowerManager.WakeLock mWakeLock; 228 PowerManager powerManager = 229 (PowerManager)phone.getContext().getSystemService(Context.POWER_SERVICE); 230 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); [all...] |
/packages/apps/FMRadio/src/com/android/fmradio/ |
FmService.java | 57 import android.os.PowerManager; 58 import android.os.PowerManager.WakeLock; [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiStateMachine.java | 86 import android.os.PowerManager; 256 private PowerManager.WakeLock mSuspendWakeLock; 310 private PowerManager.WakeLock mWakeLock; [all...] |