Home
last modified time | relevance | path

Searched refs:mPowerManager (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DProximitySensor.java46 private final PowerManager mPowerManager; field in ProximitySensor
62 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ProximitySensor()
63 if (mPowerManager.isWakeLockLevelSupported(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)) { in ProximitySensor()
64 mProximityWakeLock = mPowerManager.newWakeLock( in ProximitySensor()
160 } else if (mPowerManager.isScreenOn()) { in onInCallShowing()
178 return !mPowerManager.isScreenOn(); in isScreenReallyOff()
/packages/apps/Nfc/src/com/android/nfc/
DScreenStateHelper.java17 private final PowerManager mPowerManager; field in ScreenStateHelper
23 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ScreenStateHelper()
28 if (!mPowerManager.isScreenOn()) { in checkScreenState()
DNfcService.java230 private PowerManager mPowerManager; field in NfcService
360 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in NfcService()
362 mRoutingWakeLock = mPowerManager.newWakeLock( in NfcService()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatterySaverPreference.java31 private PowerManager mPowerManager; field in BatterySaverPreference
45 mPowerManager = (PowerManager) getContext().getSystemService(Context.POWER_SERVICE); in onAttached()
61 final boolean mode = mPowerManager.isPowerSaveMode(); in updateSwitch()
DBatterySaverSettings.java64 private PowerManager mPowerManager; field in BatterySaverSettings
101 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in onActivityCreated()
145 if (!mPowerManager.setPowerSaveMode(mode)) { in trySetPowerSaveMode()
154 final boolean mode = mPowerManager.isPowerSaveMode(); in updateSwitch()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java617 private final PowerManager mPowerManager; field in CarPowerManagementService.SystemIntefaceImpl
626 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in SystemIntefaceImpl()
628 … mFullWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, CarLog.TAG_POWER); in SystemIntefaceImpl()
629 mPartialWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in SystemIntefaceImpl()
656 mPowerManager.wakeUp(SystemClock.uptimeMillis()); in setDisplayState()
660 mPowerManager.goToSleep(SystemClock.uptimeMillis()); in setDisplayState()
671 mPowerManager.shutdown(false /* no confirm*/, null, true /* true */); in shutdown()
/packages/services/Telephony/src/com/android/phone/
DPhoneGlobals.java157 private PowerManager mPowerManager; field in PhoneGlobals
306 mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in onCreate()
307 mWakeLock = mPowerManager.newWakeLock(PowerManager.FULL_WAKE_LOCK, LOG_TAG); in onCreate()
309 mPartialWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK in onCreate()
567 mPowerManager.wakeUp(SystemClock.uptimeMillis(), "android.phone:WAKE"); in wakeUpScreen()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppService.java122 private PowerManager mPowerManager; field in BluetoothOppService
641 mTransfer = new BluetoothOppTransfer(this, mPowerManager, newBatch); in insertShare()
645 mServerTransfer = new BluetoothOppTransfer(this, mPowerManager, newBatch, in insertShare()
679 mServerTransfer = new BluetoothOppTransfer(this, mPowerManager, in insertShare()
860 mTransfer = new BluetoothOppTransfer(this, mPowerManager, nextBatch); in removeBatch()
868 mServerTransfer = new BluetoothOppTransfer(this, mPowerManager, nextBatch, in removeBatch()
/packages/apps/Stk/src/com/android/stk/
DStkAppService.java166 private PowerManager mPowerManager = null; field in StkAppService
269 mPowerManager = (PowerManager)getSystemService(Context.POWER_SERVICE); in onCreate()
364 mPowerManager = null; in onDestroy()
661 return (!mPowerManager.isInteractive()); in isScreenIdle()
/packages/apps/Bluetooth/src/com/android/bluetooth/btservice/
DAdapterService.java205 private PowerManager mPowerManager; field in AdapterService
519 mPowerManager = (PowerManager) getSystemService(Context.POWER_SERVICE); in onCreate()
2301 mWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, lockName); in acquireWakeLock()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetStateMachine.java147 private PowerManager mPowerManager; field in HeadsetStateMachine
214 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in HeadsetStateMachine()
215 mStartVoiceRecognitionWakeLock = mPowerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in HeadsetStateMachine()