Home
last modified time | relevance | path

Searched refs:mCarPowerManagementService (Results 1 – 5 of 5) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DSilentModeHandlerUnitTest.java58 @Mock private CarPowerManagementService mCarPowerManagementService; field in SilentModeHandlerUnitTest
67 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSilentModeHwStateMonitoring()
83 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testRebootForForcedSilentMode()
97 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testRebootForForcedNonSilentMode()
111 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testUpdateKernelSilentMode()
135 verify(mCarPowerManagementService, timeout(BUFFER_TIME_TO_AVOID_RACE_CONDITION)) in testSetSilentMode_normalSilentToForcedNonSilent()
142 verify(mCarPowerManagementService, timeout(BUFFER_TIME_TO_AVOID_RACE_CONDITION)) in testSetSilentMode_normalNonSilentToForcedSilent()
163 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSetSilentMode_toForced()
183 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSetSilentMode_toNonForced()
195 verify(mCarPowerManagementService, timeout(BUFFER_TIME_TO_AVOID_RACE_CONDITION)) in testSetSilentMode_toNonForced()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java40 private final CarPowerManagementService mCarPowerManagementService; field in CarAudioPowerListener
69 mCarPowerManagementService = carPowerManagementService; in CarAudioPowerListener()
79 if (mCarPowerManagementService == null) { in startListeningForPolicyChanges()
87 mCarPowerManagementService.addPowerPolicyListener(filter, mChangeListener); in startListeningForPolicyChanges()
92 if (mCarPowerManagementService == null) { in stopListeningForPolicyChanges()
95 mCarPowerManagementService.removePowerPolicyListener(mChangeListener); in stopListeningForPolicyChanges()
99 CarPowerPolicy policy = mCarPowerManagementService.getCurrentPowerPolicy(); in initializePowerState()
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageMode.java81 private CarPowerManagementService mCarPowerManagementService; field in GarageMode
271 if (mCarPowerManagementService == null) { in enterGarageMode()
272 mCarPowerManagementService = CarLocalServices.getService( in enterGarageMode()
275 if (mCarPowerManagementService != null in enterGarageMode()
276 && mCarPowerManagementService.garageModeShouldExitImmediately()) { in enterGarageMode()
/packages/services/Car/service/src/com/android/car/
DCarShellCommand.java355 private final CarPowerManagementService mCarPowerManagementService; field in CarShellCommand
389 mCarPowerManagementService = carPowerManagementService; in CarShellCommand()
808 mCarPowerManagementService.forceSimulatedResume(); in exec()
812 mCarPowerManagementService.forceSuspendAndMaybeReboot(false); in exec()
1860 mCarPowerManagementService.forceSuspendAndMaybeReboot(true);
1873 mCarPowerManagementService.setSilentMode(SILENT_MODE_FORCED_SILENT);
1877 mCarPowerManagementService.setSilentMode(SILENT_MODE_FORCED_NON_SILENT);
1881 mCarPowerManagementService.setSilentMode(SILENT_MODE_NON_FORCED);
1884 mCarPowerManagementService.dumpSilentMode(writer);
1956 boolean result = mCarPowerManagementService.definePowerPolicyFromCommand(args, writer);
[all …]
DICarImpl.java106 private final CarPowerManagementService mCarPowerManagementService; field in ICarImpl
237 mCarPowerManagementService = constructWithTrace( in ICarImpl()
368 allServices.add(mCarPowerManagementService); in ICarImpl()
571 return mCarPowerManagementService; in getCarService()
845 mCarProjectionService, mCarPowerManagementService, mFixedActivityService, in newCarShellCommand()
954 mCarPowerManagementService.setFactoryResetCallback(callback); in onFactoryReset()