Home
last modified time | relevance | path

Searched refs:POWER_SERVICE (Results 1 – 25 of 79) 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/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java19 import static android.content.Context.POWER_SERVICE;
94 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/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingRequest.java44 (PowerManager) context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/StorageManager/src/com/android/storagemanager/automatic/
DJobPreconditions.java52 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in isIdle()
/packages/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DPowerManagerHelper.java54 mCarPowerManager = (CarPowerManager) car.getCarManager(Car.POWER_SERVICE); in PowerManagerHelper()
/packages/apps/Messaging/tests/src/com/android/messaging/
DTestUtil.java64 final PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in haltIfTestsAreNotAbleToRun()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/
DPowerTestFragment.java142 PowerManager pm = (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); in shutdownBtn()
153 PowerManager pm = (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE); in sleepBtn()
/packages/modules/Permission/tests/cts/permission/src/android/permission/cts/
DNoWakeLockPermissionTest.java43 mPowerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in setUp()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java58 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); in onCreate()
/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/common/
DPowerPolicyListener.java73 mCarPowerManager = (CarPowerManager) mCar.getCarManager(Car.POWER_SERVICE); in PowerPolicyListener()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java78 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in getWakeLockFromPowerManager()
/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.java59 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/Gallery2/src/com/android/gallery3d/ingest/data/
DImportTask.java63 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ImportTask()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batterytip/
DBatteryTipLoaderTest.java75 doReturn(mPowerManager).when(mContext).getSystemService(Context.POWER_SERVICE); in setUp()
/packages/apps/Settings/tests/componenttests/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceControllerComponentTest.java57 Context.POWER_SERVICE);
/packages/apps/Test/connectivity/PMC/src/com/android/pmc/
DIperfClient.java83 PowerManager pm = (PowerManager) mPMCMainActivity.getSystemService(Context.POWER_SERVICE); in startClient()
DWifiConnScanReceiver.java49 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/Camera2/src/com/android/camera/util/
DAndroidServices.java119 return (PowerManager) getSystemService(Context.POWER_SERVICE); in providePowerManager()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/about/
DRebootConfirmFragment.java126 (PowerManager) getActivity().getSystemService(Context.POWER_SERVICE);
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DWakeLockStateMachine.java79 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in WakeLockStateMachine()
/packages/apps/Contacts/tests/src/com/android/contacts/test/
DIntegrationTestUtils.java109 mWakeLock = ((PowerManager) context.getSystemService(Context.POWER_SERVICE))

1234