Home
last modified time | relevance | path

Searched refs:POWER_SERVICE (Results 1 – 25 of 86) sorted by relevance

1234

/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmAlertWakeLock.kt33 val pm = context.getSystemService(Context.POWER_SERVICE) as PowerManager in createPartialWakeLock()
52 val pm = context.getSystemService(Context.POWER_SERVICE) as PowerManager in acquireScreenCpuWakeLock()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/
DPowerTestFragment.java95 PowerManager pm = (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); in shutdownBtn()
106 PowerManager pm = (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); in sleepBtn()
/packages/services/Car/tests/CarSecurityPermissionTest/src/com/android/car/power/
DCarPowerManagerPermissionTest.java22 import static android.car.Car.POWER_SERVICE;
59 mCarPowerManager = (CarPowerManager) car.getCarManager(POWER_SERVICE); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java19 import static android.content.Context.POWER_SERVICE;
89 ShadowApplication.getInstance().setSystemService(POWER_SERVICE, in setUp()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DWakeLockHoldingProgressListener.java37 (PowerManager) ((Activity) mActivity).getSystemService(Context.POWER_SERVICE); in WakeLockHoldingProgressListener()
/packages/apps/Nfc/src/com/android/nfc/
DScreenStateHelper.java29 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ScreenStateHelper()
/packages/services/Car/service/src/com/android/car/systeminterface/
DWakeLockInterface.java38 (PowerManager) context.getSystemService(Context.POWER_SERVICE); in DefaultImpl()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DPowerManagerHelper.java49 mCarPowerManager = (CarPowerManager) car.getCarManager(Car.POWER_SERVICE); in PowerManagerHelper()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java52 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in isIdle()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingRequest.java44 (PowerManager) context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/Messaging/tests/src/com/android/messaging/
DTestUtil.java64 final PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in haltIfTestsAreNotAbleToRun()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetector.java42 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in EarlyWarningDetector()
DLowBatteryDetector.java41 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in LowBatteryDetector()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java56 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); in onCreate()
/packages/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBrightnessTile.java44 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessTile()
/packages/providers/CalendarProvider/src/com/android/providers/calendar/
DCalendarReceiver.java60 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DBrightnessLevelPreferenceController.java44 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessLevelPreferenceController()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java78 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in getWakeLockFromPowerManager()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java73 mCarPowerManager = (CarPowerManager) mCar.getCarManager(Car.POWER_SERVICE); in PowerPolicyListener()
/packages/apps/Messaging/src/com/android/messaging/util/
DWakeLockHelper.java58 context.getSystemService(Context.POWER_SERVICE); in acquire()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerTest.java61 doReturn(mPowerManager).when(mContext).getSystemService(Context.POWER_SERVICE); in setUp()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java53 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BatterySaverButtonPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/detectors/
DEarlyWarningDetectorTest.java61 doReturn(mPowerManager).when(mContext).getSystemService(Context.POWER_SERVICE); in setUp()
/packages/apps/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java63 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ImportTask()
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDailyLoggingAlarmReceiver.java81 … PowerManager powerManager = (PowerManager) appContext.getSystemService(Context.POWER_SERVICE); in logDailyWallpaperRotationStatus()

1234