/packages/apps/Dialer/java/com/android/incallui/ |
D | ProximitySensor.java | 47 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/ |
D | BrightnessLevelPreferenceController.java | 82 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/ |
D | BrightnessLevelPreferenceController.java | 82 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/ |
D | WakeLockInterface.java | 37 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/ |
D | JobPreconditions.java | 52 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/ |
D | BrightnessTile.java | 46 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/ |
D | TelecomWakeLock.java | 78 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/ |
D | BrightnessLevelPreferenceController.java | 46 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/ |
D | BluetoothPairingRequest.java | 43 PowerManager powerManager = in onReceive() local 51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
|
D | BluetoothPermissionRequest.java | 120 PowerManager powerManager = in onReceive() local 123 if (powerManager.isScreenOn() in onReceive()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothPairingRequest.java | 43 PowerManager powerManager = in onReceive() local 51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | BluetoothPairingRequest.java | 43 PowerManager powerManager = in onReceive() local 51 if (powerManager.isInteractive() && shouldShowDialog) { in onReceive()
|
D | BluetoothPermissionRequest.java | 120 PowerManager powerManager = in onReceive() local 123 if (powerManager.isScreenOn() in onReceive()
|
/packages/services/Telecomm/src/com/android/server/telecom/components/ |
D | UserCallActivity.java | 56 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/ |
D | AnomalyActions.java | 102 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/ |
D | ViewUtil.java | 138 PowerManager powerManager = context.getSystemService(PowerManager.class); in areAnimationsDisabled() local 140 || powerManager.isPowerSaveMode(); in areAnimationsDisabled()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/ |
D | DailyLoggingAlarmReceiver.java | 80 … 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/ |
D | IkeLocalRequestScheduler.java | 118 private void acquireWakeLock(PowerManager powerManager) { in acquireWakeLock() argument 125 powerManager.newWakeLock( in acquireWakeLock()
|
/packages/apps/Camera2/src/com/android/camera/processing/ |
D | ProcessingService.java | 108 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/ |
D | CellBroadcastServiceTestBase.java | 118 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/ |
D | HeadsetSystemInterface.java | 84 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/ |
D | VoicemailPlaybackPresenter.java | 159 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/ |
D | CarPowerManagementService.java | 569 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/ |
D | DhcpClient.java | 445 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/ |
D | ImportVCardActivity.java | 192 final PowerManager powerManager = in VCardCacheThread() local 194 mWakeLock = powerManager.newWakeLock( in VCardCacheThread()
|