Home
last modified time | relevance | path

Searched refs:powerManager (Results 1 – 25 of 31) sorted by relevance

12

/packages/apps/Dialer/java/com/android/incallui/
DProximitySensor.java47 private final PowerManager powerManager; field in ProximitySensor
65 powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ProximitySensor()
66 if (powerManager.isWakeLockLevelSupported(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)) { in ProximitySensor()
68 powerManager.newWakeLock(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK, TAG); in ProximitySensor()
157 } else if (powerManager.isScreenOn()) { in onInCallShowing()
175 return !powerManager.isScreenOn(); in isScreenReallyOff()
/packages/apps/Settings/src/com/android/settings/display/
DBrightnessLevelPreferenceController.java82 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessLevelPreferenceController() local
83 mMinBrightness = powerManager.getMinimumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
84 mMaxBrightness = powerManager.getMaximumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
85 mMinVrBrightness = powerManager.getMinimumScreenBrightnessForVrSetting(); in BrightnessLevelPreferenceController()
86 mMaxVrBrightness = powerManager.getMaximumScreenBrightnessForVrSetting(); in BrightnessLevelPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/display/
DBrightnessLevelPreferenceController.java82 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessLevelPreferenceController() local
83 mMinBrightness = powerManager.getMinimumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
84 mMaxBrightness = powerManager.getMaximumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
85 mMinVrBrightness = powerManager.getMinimumScreenBrightnessForVrSetting(); in BrightnessLevelPreferenceController()
86 mMaxVrBrightness = powerManager.getMaximumScreenBrightnessForVrSetting(); in BrightnessLevelPreferenceController()
/packages/services/Car/service/src/com/android/car/systeminterface/
DWakeLockInterface.java37 PowerManager powerManager = in DefaultImpl() local
39 mFullWakeLock = powerManager.newWakeLock(PowerManager.SCREEN_DIM_WAKE_LOCK, in DefaultImpl()
41 mPartialWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in DefaultImpl()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java52 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in isIdle() local
53 if (powerManager != null) { in isIdle()
54 return powerManager.isDeviceIdleMode(); in isIdle()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBrightnessTile.java46 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessTile() local
47 mMaximumBacklight = powerManager.getMaximumScreenBrightnessSetting(); in BrightnessTile()
48 mMinimumBacklight = powerManager.getMinimumScreenBrightnessSetting(); in BrightnessTile()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java78 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in getWakeLockFromPowerManager() local
80 if(powerManager.isWakeLockLevelSupported(mWakeLockLevel)) { in getWakeLockFromPowerManager()
81 PowerManager.WakeLock wakeLock = powerManager.newWakeLock(mWakeLockLevel, mWakeLockTag); in getWakeLockFromPowerManager()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DBrightnessLevelPreferenceController.java46 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessLevelPreferenceController() local
47 mMaximumBacklight = powerManager.getMaximumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
48 mMinimumBacklight = powerManager.getMinimumScreenBrightnessSetting(); in BrightnessLevelPreferenceController()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingRequest.java43 PowerManager powerManager = in onReceive() local
51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
DBluetoothPermissionRequest.java120 PowerManager powerManager = in onReceive() local
123 if (powerManager.isScreenOn() in onReceive()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingRequest.java43 PowerManager powerManager = in onReceive() local
51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothPairingRequest.java43 PowerManager powerManager = in onReceive() local
51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
DBluetoothPermissionRequest.java120 PowerManager powerManager = in onReceive() local
123 if (powerManager.isScreenOn() in onReceive()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java56 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); in onCreate() local
57 PowerManager.WakeLock wakelock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in onCreate()
/packages/apps/Settings/tests/anomaly-tester/src/com/android/settings/anomaly/tester/utils/
DAnomalyActions.java102 PowerManager powerManager = ctx.getSystemService(PowerManager.class); in doHoldWakelock() local
103 PowerManager.WakeLock wl = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, in doHoldWakelock()
/packages/apps/Dialer/java/com/android/dialer/util/
DViewUtil.java138 PowerManager powerManager = context.getSystemService(PowerManager.class); in areAnimationsDisabled() local
140 || powerManager.isPowerSaveMode(); in areAnimationsDisabled()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDailyLoggingAlarmReceiver.java80 … PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE); in logDailyWallpaperRotationStatus() local
81 final WakeLock wakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in logDailyWallpaperRotationStatus()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/
DIkeLocalRequestScheduler.java118 private void acquireWakeLock(PowerManager powerManager) { in acquireWakeLock() argument
125 powerManager.newWakeLock( in acquireWakeLock()
/packages/apps/Camera2/src/com/android/camera/processing/
DProcessingService.java108 PowerManager powerManager = AndroidServices.instance().providePowerManager(); in onCreate() local
109 mWakeLock = powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG.toString()); in onCreate()
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DCellBroadcastServiceTestBase.java118 PowerManager powerManager = new PowerManager(mMockedContext, mock(IPowerManager.class), in setUp() local
120 doReturn(powerManager).when(mMockedContext).getSystemService(Context.POWER_SERVICE); in setUp()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetSystemInterface.java84 PowerManager powerManager = in HeadsetSystemInterface() local
87 powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG + ":VoiceRecognition"); in HeadsetSystemInterface()
/packages/apps/Dialer/java/com/android/dialer/app/voicemail/
DVoicemailPlaybackPresenter.java159 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in VoicemailPlaybackPresenter() local
160 if (powerManager.isWakeLockLevelSupported(PowerManager.PROXIMITY_SCREEN_OFF_WAKE_LOCK)) { in VoicemailPlaybackPresenter()
162 powerManager.newWakeLock( in VoicemailPlaybackPresenter()
/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java569 PowerManager powerManager = mContext.getSystemService(PowerManager.class); in handleFinish() local
570 if (powerManager == null) { in handleFinish()
574 powerManager.reboot("GarageModeReboot"); in handleFinish()
/packages/modules/NetworkStack/src/android/net/dhcp/
DDhcpClient.java445 public PowerManager.WakeLock getWakeLock(final PowerManager powerManager) { in getWakeLock() argument
446 return powerManager.newWakeLock(PowerManager.PARTIAL_WAKE_LOCK, TAG); in getWakeLock()
1586 final PowerManager powerManager = mContext.getSystemService(PowerManager.class); in enter() local
1587 mTimeoutWakeLock = mDependencies.getWakeLock(powerManager); in enter()
/packages/apps/Contacts/src/com/android/contacts/vcard/
DImportVCardActivity.java192 final PowerManager powerManager = in VCardCacheThread() local
194 mWakeLock = powerManager.newWakeLock( in VCardCacheThread()

12