Home
last modified time | relevance | path

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

1234

/packages/apps/DeskClock/src/com/android/deskclock/
DAlarmAlertWakeLock.java32 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in createPartialWakeLock()
49 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in acquireScreenCpuWakeLock()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastAlertWakeLock.java47 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in acquirePartialWakeLock()
73 PowerManager pm = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in acquireScreenBrightWakeLock()
/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/apps/Settings/tests/robotests/src/com/android/settings/display/
DBrightnessLevelPreferenceControllerTest.java19 import static android.content.Context.POWER_SERVICE;
74 ShadowApplication.getInstance().setSystemService(POWER_SERVICE, in setUp()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/btservice/
DAdapterServiceTest.java125 .getSystemService(Context.POWER_SERVICE); in setUp()
134 when(mMockContext.getSystemService(Context.POWER_SERVICE)).thenReturn(mPowerManager); in setUp()
300 when(mockContext.getSystemService(Context.POWER_SERVICE)).thenReturn(mPowerManager); in testEnableDisableOnlyGatt()
/packages/apps/Nfc/src/com/android/nfc/
DScreenStateHelper.java29 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in ScreenStateHelper()
/packages/apps/Gallery2/src/com/android/gallery3d/ui/
DWakeLockHoldingProgressListener.java37 (PowerManager) ((Activity) mActivity).getSystemService(Context.POWER_SERVICE); in WakeLockHoldingProgressListener()
/packages/services/Car/service/src/com/android/car/systeminterface/
DWakeLockInterface.java38 (PowerManager) context.getSystemService(Context.POWER_SERVICE); in DefaultImpl()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DBluetoothPairingRequest.java44 (PowerManager)context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/
DBluetoothPairingRequest.java44 (PowerManager) context.getSystemService(Context.POWER_SERVICE); in onReceive()
/packages/apps/Settings/src/com/android/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/services/Car/car-lib/src/android/car/
DCar.java131 public static final String POWER_SERVICE = "power"; field in Car
894 case POWER_SERVICE: in createCarManager()
/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/
DLowBatteryDetector.java41 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in LowBatteryDetector()
DEarlyWarningDetector.java42 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in EarlyWarningDetector()
/packages/services/Telecomm/src/com/android/server/telecom/components/
DUserCallActivity.java56 PowerManager powerManager = (PowerManager) getSystemService(POWER_SERVICE); in onCreate()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/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/apps/Car/Settings/src/com/android/car/settings/quicksettings/
DBrightnessTile.java46 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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java47 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BatterySaverButtonPreferenceController()
/packages/services/Telecomm/src/com/android/server/telecom/
DTelecomWakeLock.java78 PowerManager powerManager = (PowerManager) mContext.getSystemService(Context.POWER_SERVICE); in getWakeLockFromPowerManager()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batterysaver/
DBatterySaverButtonPreferenceController.java47 mPowerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BatterySaverButtonPreferenceController()
/packages/apps/Car/Settings/src/com/android/car/settings/display/
DBrightnessLevelPreferenceController.java46 PowerManager powerManager = (PowerManager) context.getSystemService(Context.POWER_SERVICE); in BrightnessLevelPreferenceController()

1234