/packages/apps/Mms/src/com/android/mms/transaction/ |
PushReceiver.java | 46 import android.os.PowerManager; 162 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); 163 PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK,
|
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerService.java | 38 import android.os.PowerManager; 54 private PowerManager.WakeLock mWakeLock; 125 PowerManager pm = (PowerManager)getSystemService(Context.POWER_SERVICE); 126 mWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|
/frameworks/base/core/java/android/os/ |
PowerManager.java | 34 * create a {@link PowerManager.WakeLock} object. You can then use methods on this object to 38 * PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 39 * PowerManager.WakeLock wl = pm.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, "My Tag"); 104 public class PowerManager 106 private static final String TAG = "PowerManager"; 374 *PowerManager pm = (PowerManager)mContext.getSystemService( 376 *PowerManager.WakeLock wl = pm.newWakeLock [all...] |
/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() &&
|
/frameworks/base/core/java/com/android/internal/os/storage/ |
ExternalStorageFormatter.java | 11 import android.os.PowerManager; 43 private PowerManager.WakeLock mWakeLock; 69 mWakeLock = ((PowerManager)getSystemService(Context.POWER_SERVICE)) 70 .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "ExternalStorageFormatter");
|
/frameworks/base/tests/StatusBar/src/com/android/statusbartest/ |
TestActivity.java | 34 import android.os.PowerManager;
|
NotificationTestList.java | 37 import android.os.PowerManager; 65 PowerManager pm = (PowerManager)NotificationTestList.this.getSystemService(Context.POWER_SERVICE); 66 PowerManager.WakeLock wl = 67 pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "sound"); 657 PowerManager.WakeLock wl 658 = ((PowerManager)NotificationTestList.this.getSystemService(Context.POWER_SERVICE)) 659 .newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, "crasher");
|
ToastTest.java | 34 import android.os.PowerManager;
|
/packages/providers/CalendarProvider/src/com/android/providers/calendar/ |
AppWidgetShared.java | 20 import android.os.PowerManager.WakeLock;
|
/frameworks/base/policy/src/com/android/internal/policy/impl/ |
KeyguardViewMediator.java | 39 import android.os.PowerManager; 163 private PowerManager mPM; 169 private PowerManager.WakeLock mWakeLock; 175 private PowerManager.WakeLock mShowKeyguardWakeLock; 183 private PowerManager.WakeLock mWakeAndHandOff; 249 LocalPowerManager powerManager) { 252 mRealPowerManager = powerManager; 253 mPM = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 255 PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP [all...] |
/development/samples/AccelerometerPlay/src/com/example/android/accelerometerplay/ |
AccelerometerPlayActivity.java | 30 import android.os.PowerManager; 31 import android.os.PowerManager.WakeLock; 54 private PowerManager mPowerManager; 67 // Get an instance of the PowerManager 68 mPowerManager = (PowerManager) getSystemService(POWER_SERVICE); 75 mWakeLock = mPowerManager.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, getClass()
|
/frameworks/base/core/java/com/android/internal/app/ |
ShutdownThread.java | 32 import android.os.PowerManager; 73 private PowerManager mPowerManager; 74 private PowerManager.WakeLock mWakeLock; 164 sInstance.mPowerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); 169 PowerManager.FULL_WAKE_LOCK, "Shutdown");
|
/frameworks/base/services/java/com/android/server/ |
PowerManagerService.java | 50 import android.os.PowerManager; 91 private static final int LOCK_MASK = PowerManager.PARTIAL_WAKE_LOCK 92 | PowerManager.SCREEN_DIM_WAKE_LOCK 93 | PowerManager.SCREEN_BRIGHT_WAKE_LOCK 94 | PowerManager.FULL_WAKE_LOCK 95 | PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK; 299 * This class works around a deadlock between the lock in PowerManager.WakeLock 300 * and our synchronizing on mLocks. PowerManager.WakeLock synchronizes on its 303 * PowerManager.WakeLock, but without that extra synchronized block, because we'll 566 PowerManager.PARTIAL_WAKE_LOCK, "sleep_broadcast", true) [all...] |
UiModeManagerService.java | 44 import android.os.PowerManager; 108 private final PowerManager.WakeLock mWakeLock; 329 PowerManager powerManager = (PowerManager)context.getSystemService(Context.POWER_SERVICE); 330 mWakeLock = powerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, TAG); [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ExportVCardActivity.java | 27 import android.os.PowerManager; 121 private PowerManager.WakeLock mWakeLock; 126 PowerManager powerManager = (PowerManager)getSystemService(Context.POWER_SERVICE); 127 mWakeLock = powerManager.newWakeLock( 128 PowerManager.SCREEN_DIM_WAKE_LOCK | 129 PowerManager.ON_AFTER_RELEASE, LOG_TAG);
|
ImportVCardActivity.java | 38 import android.os.PowerManager; 165 private PowerManager.WakeLock mWakeLock; 186 PowerManager powerManager = (PowerManager)context.getSystemService( 188 mWakeLock = powerManager.newWakeLock( 189 PowerManager.SCREEN_DIM_WAKE_LOCK | 190 PowerManager.ON_AFTER_RELEASE, LOG_TAG); 562 private PowerManager.WakeLock mWakeLock; 572 PowerManager powerManager = (PowerManager)ImportVCardActivity.this.getSystemService [all...] |
/packages/apps/Phone/src/com/android/phone/ |
PhoneApp.java | 41 import android.os.PowerManager; 194 private PowerManager.WakeLock mWakeLock; 195 private PowerManager.WakeLock mPartialWakeLock; 196 private PowerManager.WakeLock mProximityWakeLock; 445 PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 446 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK 447 | PowerManager.ACQUIRE_CAUSES_WAKEUP, 450 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK 451 | PowerManager.ON_AFTER_RELEASE, LOG_TAG) [all...] |
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
BluetoothOppObexServerSession.java | 47 import android.os.PowerManager; 48 import android.os.PowerManager.WakeLock; 103 PowerManager pm = (PowerManager)mContext.getSystemService(Context.POWER_SERVICE); 104 mWakeLock = pm.newWakeLock(PowerManager.FULL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP 105 | PowerManager.ON_AFTER_RELEASE, TAG); 106 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/stress/ |
WifiStressTest.java | 30 import android.os.PowerManager; 250 PowerManager pm = 251 (PowerManager)mRunner.getContext().getSystemService(Context.POWER_SERVICE);
|
/frameworks/base/media/java/android/media/ |
MediaPlayer.java | 28 import android.os.PowerManager; 507 private PowerManager.WakeLock mWakeLock = null; [all...] |
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/ |
GsmConnection.java | 23 import android.os.PowerManager; 80 private PowerManager.WakeLock mPartialWakeLock; 708 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); 709 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
|
/packages/apps/Gallery3D/src/com/cooliris/media/ |
Gallery.java | 35 import android.os.PowerManager; 36 import android.os.PowerManager.WakeLock; 195 PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 196 mWakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "GridView.Slideshow.All");
|
/packages/apps/Tag/src/com/android/apps/tag/ |
TagViewer.java | 47 import android.os.PowerManager; 48 import android.os.PowerManager.WakeLock; 171 PowerManager pm = (PowerManager) getSystemService(Context.POWER_SERVICE); 172 WakeLock wakeLock = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, TAG);
|
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/ |
ConnectivityManagerMobileTest.java | 23 import android.os.PowerManager; 24 import android.os.PowerManager.WakeLock; 60 PowerManager pm = (PowerManager)getInstrumentation(). 62 wl = pm.newWakeLock(PowerManager.SCREEN_BRIGHT_WAKE_LOCK, "CMWakeLock");
|
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
CdmaConnection.java | 25 import android.os.PowerManager; 85 private PowerManager.WakeLock mPartialWakeLock; 805 PowerManager pm = (PowerManager)context.getSystemService(Context.POWER_SERVICE); 806 mPartialWakeLock = pm.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, LOG_TAG);
|