/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; 92 PowerManager powerManager = 93 (PowerManager) context.getSystemService(Context.POWER_SERVICE); 95 if (powerManager.isScreenOn() &&
|
/frameworks/base/packages/Keyguard/src/com/android/keyguard/ |
KeyguardFaceUnlockView.java | 20 import android.os.PowerManager; 216 PowerManager powerManager = (PowerManager) mContext.getSystemService( 227 if (!powerManager.isScreenOn() || !isShowing) { 288 PowerManager powerManager = (PowerManager) mContext.getSystemService( 293 } else if (showing && powerManager.isScreenOn() && !wasShowing) {
|
FaceUnlock.java | 32 import android.os.PowerManager; 346 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 347 if (powerManager.isScreenOn()) {
|
/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/packages/PrintSpooler/src/com/android/printspooler/ |
NotificationController.java | 29 import android.os.PowerManager; 30 import android.os.PowerManager.WakeLock; 321 PowerManager powerManager = (PowerManager) 323 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, 360 PowerManager powerManager = (PowerManager) [all...] |
/frameworks/base/services/java/com/android/server/ |
IdleMaintenanceService.java | 28 import android.os.PowerManager; 29 import android.os.PowerManager.WakeLock; 113 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 114 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
|
ConnectivityService.java | 93 import android.os.PowerManager; 382 private PowerManager.WakeLock mNetTransitionWakeLock; 500 final PowerManager powerManager = (PowerManager) context.getSystemService( 502 mNetTransitionWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); [all...] |
/frameworks/base/services/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);
|
GpsLocationProvider.java | 52 import android.os.PowerManager; 322 private final PowerManager.WakeLock mWakeLock; 457 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 458 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_KEY); [all...] |
/frameworks/base/core/java/android/hardware/location/ |
GeofenceHardwareImpl.java | 27 import android.os.PowerManager; 45 private PowerManager.WakeLock mWakeLock; 110 PowerManager powerManager = 111 (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); 112 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); [all...] |
/packages/apps/Dialer/src/com/android/dialer/voicemail/ |
VoicemailPlaybackFragment.java | 32 import android.os.PowerManager; 97 PowerManager powerManager = 98 (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); 99 PowerManager.WakeLock wakeLock = 100 powerManager.newWakeLock( 101 PowerManager.SCREEN_DIM_WAKE_LOCK, getClass().getSimpleName());
|
/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() {
|
/frameworks/base/services/java/com/android/server/net/ |
NetworkStatsService.java | 102 import android.os.PowerManager; 165 private final PowerManager.WakeLock mWakeLock; 269 final PowerManager powerManager = (PowerManager) context.getSystemService( 271 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; 220 private PowerManager.WakeLock mWakeLock; 230 final PowerManager powerManager = 231 (PowerManager)context.getSystemService(Context.POWER_SERVICE); 232 mWakeLock = powerManager.newWakeLock( 233 PowerManager.SCREEN_DIM_WAKE_LOCK | 234 PowerManager.ON_AFTER_RELEASE, LOG_TAG); 613 private PowerManager.WakeLock mWakeLock; 623 PowerManager powerManager = (PowerManager)ImportVCardActivity.this.getSystemService [all...] |
/frameworks/base/wifi/java/android/net/wifi/ |
WifiStateMachine.java | 65 import android.os.PowerManager; 169 private PowerManager.WakeLock mSuspendWakeLock; 224 private PowerManager.WakeLock mWakeLock; [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
CdmaServiceStateTracker.java | 28 import android.os.PowerManager; 121 private PowerManager.WakeLock mWakeLock; 177 PowerManager powerManager = 178 (PowerManager)phone.getContext().getSystemService(Context.POWER_SERVICE); 179 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; 147 private PowerManager.WakeLock mWakeLock; 207 PowerManager powerManager = 208 (PowerManager)phone.getContext().getSystemService(Context.POWER_SERVICE); 209 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, WAKELOCK_TAG); [all...] |
/hardware/ti/wpan/tools/FM/service/src/java/com/ti/server/ |
StubFmService.java | 34 import android.os.PowerManager; 54 import android.os.PowerManager; 55 import android.os.PowerManager.WakeLock; 296 PowerManager powerManager = (PowerManager)context. 298 if (powerManager != null) { 299 mWakeLock = powerManager. 300 newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); [all...] |
/frameworks/base/core/java/android/view/ |
ViewRootImpl.java | 47 import android.os.PowerManager; 372 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 373 mAttachInfo.mScreenOn = powerManager.isScreenOn(); [all...] |