Home
last modified time | relevance | path

Searched refs:getPowerState (Results 1 – 16 of 16) sorted by relevance

/packages/services/Car/car-lib/src/android/car/hardware/power/
DICarPower.aidl38 int getPowerState(); in getPowerState() method
DCarPowerManager.java400 public @CarPowerState int getPowerState() { in getPowerState() method in CarPowerManager
402 return mService.getPowerState(); in getPowerState()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java209 when(mCarPowerManagementService.getPowerState()).thenReturn(CarPowerManager.STATE_ON); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn()
225 when(mCarPowerManagementService.getPowerState()).thenReturn(CarPowerManager.STATE_ON); in testPersistCarSettingOff_powerOnBeforeUserUnlock_noTethering()
/packages/services/Car/service/src/com/android/car/telemetry/sessioncontroller/
DSessionController.java136 onCarPowerStateChanged(mCarPowerManagementService.getPowerState()); in initSession()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/sessioncontroller/
DSessionControllerUnitTest.java192 doReturn(CarPowerManager.STATE_ON).when(mMockCarPowerManagementService).getPowerState(); in testInitSession_triggersCallback()
/packages/services/Car/service/src/com/android/car/wifi/
DCarWifiService.java298 if (mCarPowerManagementService.getPowerState() == CarPowerManager.STATE_ON) { in onSystemUserUnlocked()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java270 assertThat(mCarPowerManager.getPowerState()).isEqualTo(PowerHalService.SET_ON); in testGetPowerState()
276 assertThat(mCarPowerManager.getPowerState()) in testGetPowerState()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPowerHalServiceUnitTest.java254 assertWithMessage("Current requested power state").that(mEventListener.getPowerState()) in testHalEventListenerPowerStateChange()
746 public int getPowerState() { in getPowerState() method in PowerHalServiceUnitTest.PowerEventListenerImpl
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java224 int powerState = powerService.getPowerState();
700 int powerState = powerService.getPowerState(); in registerToDaemon()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/watchdog/
DCarWatchdogServiceUnitTest.java412 when(mMockCarPowerManagementService.getPowerState()).thenReturn( in testWatchdogDaemonRestart()
1346 when(mMockCarPowerManagementService.getPowerState()).thenReturn(powerState); in setCarPowerState()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java2030 public @CarPowerManager.CarPowerState int getPowerState() { in getPowerState() method in CarPowerManagementService
2367 int currentPowerState = getPowerState(); in initializePowerPolicy()
/packages/services/Car/tools/GenericCarApiBuilder/
Dcomplete_car_api_list.txt1694 method TIRAMISU_0 int getPowerState();
/packages/services/Car/car-lib-module/api/
Dsystem-current.txt1205 method @RequiresPermission(android.car.Car.PERMISSION_CAR_POWER) public int getPowerState();
/packages/services/Car/car-lib/api/
Dsystem-current.txt1205 method @RequiresPermission(android.car.Car.PERMISSION_CAR_POWER) public int getPowerState();
Dtest-current.txt1278 method @RequiresPermission(android.car.Car.PERMISSION_CAR_POWER) public int getPowerState();
Dsystem-lint-baseline.txt2724 UnflaggedApi: android.car.hardware.power.CarPowerManager#getPowerState():
2725 …must be flagged with @FlaggedApi: method android.car.hardware.power.CarPowerManager.getPowerState()