/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/ |
D | SilentModeHandlerUnitTest.java | 60 @Mock private CarPowerManagementService mCarPowerManagementService; field in SilentModeHandlerUnitTest 71 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSilentModeHwStateMonitoring() 87 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testRebootForForcedSilentMode() 101 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testRebootForForcedNonSilentMode() 115 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testUpdateKernelSilentMode() 140 verify(mCarPowerManagementService, timeout(BUFFER_TIME_TO_AVOID_RACE_CONDITION)) in testSetSilentMode_normalSilentToForcedNonSilent() 149 verify(mCarPowerManagementService, timeout(BUFFER_TIME_TO_AVOID_RACE_CONDITION)) in testSetSilentMode_normalNonSilentToForcedSilent() 171 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testStopSilentModeHwStateMonitoring() 189 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSetSilentMode_toForced() 209 SilentModeHandler handler = new SilentModeHandler(mCarPowerManagementService, in testSetSilentMode_toNonForced() [all …]
|
/packages/services/Car/service/src/com/android/car/audio/ |
D | CarAudioPowerListener.java | 40 private final CarPowerManagementService mCarPowerManagementService; field in CarAudioPowerListener 69 mCarPowerManagementService = carPowerManagementService; in CarAudioPowerListener() 79 if (mCarPowerManagementService == null) { in startListeningForPolicyChanges() 86 mCarPowerManagementService.addPowerPolicyListener(filter, mChangeListener); in startListeningForPolicyChanges() 91 if (mCarPowerManagementService == null) { in stopListeningForPolicyChanges() 94 mCarPowerManagementService.removePowerPolicyListener(mChangeListener); in stopListeningForPolicyChanges() 98 CarPowerPolicy policy = mCarPowerManagementService.getCurrentPowerPolicy(); in initializePowerState()
|
/packages/services/Car/service/src/com/android/car/telemetry/sessioncontroller/ |
D | SessionController.java | 74 mCarPowerManagementService.completeHandlingPowerStateChange(state, this); 80 private CarPowerManagementService mCarPowerManagementService; field in SessionController 104 mCarPowerManagementService = carPowerManagementService; in SessionController() 105 mCarPowerManagementService.registerInternalListener(mCarPowerStateListener); in SessionController() 136 onCarPowerStateChanged(mCarPowerManagementService.getPowerState()); in initSession() 198 mCarPowerManagementService.unregisterInternalListener(mCarPowerStateListener); in release()
|
/packages/services/Car/service/src/com/android/car/systeminterface/ |
D | DisplayInterface.java | 155 private CarPowerManagementService mCarPowerManagementService; field in DisplayInterface.DefaultImpl 235 carPowerManagementService = mCarPowerManagementService; in refreshDisplayBrightness() 288 service = mCarPowerManagementService; in handleDisplayChanged() 332 mCarPowerManagementService = carPowerManagementService; in init() 343 carPowerManagementService = mCarPowerManagementService; in startDisplayStateMonitoring() 390 carPowerManagementService = mCarPowerManagementService; in setDisplayState() 451 if (mCarPowerManagementService == null) { in onUsersUpdate()
|
/packages/services/Car/service/src/com/android/car/wifi/ |
D | CarWifiService.java | 75 private final CarPowerManagementService mCarPowerManagementService; field in CarWifiService 174 mCarPowerManagementService = CarLocalServices.getService(CarPowerManagementService.class); in CarWifiService() 189 mCarPowerManagementService.registerListener(mCarPowerStateListener); in init() 206 mCarPowerManagementService.unregisterListener(mCarPowerStateListener); in release() 298 if (mCarPowerManagementService.getPowerState() == CarPowerManager.STATE_ON) { in onSystemUserUnlocked()
|
/packages/services/Car/service/src/com/android/car/ |
D | CarLocationService.java | 108 private final CarPowerManagementService mCarPowerManagementService; field in CarLocationService 240 mCarPowerManagementService = CarLocalServices.getService( in CarLocationService() 242 if (mCarPowerManagementService == null) { in CarLocationService() 313 if (mCarPowerManagementService != null) { in release() 314 mCarPowerManagementService.removePowerPolicyListener(mPowerPolicyListener); in release() 409 if (mCarPowerManagementService == null) { in addPowerPolicyListener() 421 mCarPowerManagementService.addPowerPolicyListener( in addPowerPolicyListener()
|
D | ICarImpl.java | 138 private final CarPowerManagementService mCarPowerManagementService; field in ICarImpl 301 mCarPowerManagementService = constructWithTrace( in ICarImpl() 333 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in ICarImpl() 388 mCarPowerManagementService), in ICarImpl() 428 () -> new CarTelemetryService(mContext, mCarPowerManagementService, in ICarImpl() 467 mCarPowerManagementService, mSystemActivityMonitoringService), in ICarImpl() 506 if (service == mCarPowerManagementService) { in init() 515 mCarPowerManagementService.onInitComplete(); in init() 623 return mCarPowerManagementService; in getCarService() 1105 mCarPowerManagementService.setFactoryResetCallback(callback); in onFactoryReset()
|
D | CarShellCommand.java | 542 private final CarPowerManagementService mCarPowerManagementService; field in CarShellCommand 573 mCarPowerManagementService = (CarPowerManagementService) allServicesByClazz.get( in CarShellCommand() 1298 mCarPowerManagementService.forceSimulatedResume(); in exec() 1311 mCarPowerManagementService.setDisplayPowerState( in exec() 2937 boolean simulate = !mCarPowerManagementService.isSuspendAvailable(isHibernation); 2961 simulate = !mCarPowerManagementService.isSuspendAvailable(isHibernation); 3025 mCarPowerManagementService.simulateSuspendAndMaybeReboot( 3031 mCarPowerManagementService.simulateSuspendAndMaybeReboot( 3041 mCarPowerManagementService.suspendFromCommand(isHibernation, skipGarageMode); 3067 mCarPowerManagementService.powerOffFromCommand(/*skipGarageMode= */ false, [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/ |
D | CarWifiServiceUnitTest.java | 84 private CarPowerManagementService mCarPowerManagementService; field in CarWifiServiceUnitTest 108 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp() 209 when(mCarPowerManagementService.getPowerState()).thenReturn(CarPowerManager.STATE_ON); in testPersistCarSettingOn_powerOnBeforeUserUnlock_tetheringOn() 225 when(mCarPowerManagementService.getPowerState()).thenReturn(CarPowerManager.STATE_ON); in testPersistCarSettingOff_powerOnBeforeUserUnlock_noTethering() 262 verify(mCarPowerManagementService).registerListener( in getCarPowerStateListener()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/ |
D | CarRemoteAccessServiceUnitTest.java | 213 @Mock private CarPowerManagementService mCarPowerManagementService; field in CarRemoteAccessServiceUnitTest 236 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp() 273 when(mCarPowerManagementService.getLastShutdownState()) in setUp() 678 verify(mCarPowerManagementService, timeout(WAIT_TIMEOUT_MS)).requestShutdownAp( in testRemoveCarRemoteTaskClient_removeActiveTasks() 801 verify(mCarPowerManagementService, never()).requestShutdownAp(anyInt(), anyBoolean()); in testReportTaskDone_withPowerStateOff() 802 verify(mCarPowerManagementService, timeout(WAIT_TIMEOUT_MS)).requestShutdownAp( in testReportTaskDone_withPowerStateOff() 817 verify(mCarPowerManagementService, timeout(WAIT_TIMEOUT_MS)).requestShutdownAp( in testReportRemoteTaskDone_withPowerStateS2R() 833 verify(mCarPowerManagementService, never()).requestShutdownAp( in testReportRemoteTaskDone_withPowerStateOn() 850 verify(mCarPowerManagementService, never()).requestShutdownAp( in testReportRemoteTaskDone_vehicleInUse() 898 verify(mCarPowerManagementService, never()).requestShutdownAp(anyInt(), anyBoolean()); in testUnbindServiceAfterTaskComplete() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarInputServiceTest.java | 110 @Mock CarPowerManagementService mCarPowerManagementService; field in CarInputServiceTest 154 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in setUp() 1037 verify(mCarPowerManagementService).notifyUserActivity(eq(DRIVER_DISPLAY_ID), anyLong()); in onKeyEvent_keyCodeAtoDriverSeat_triggersDefaultKeyEventMainListener() 1048 verify(mCarPowerManagementService).notifyUserActivity(eq(PASSENGER_DISPLAY_ID), anyLong()); in onKeyEvent_keyCodeAtoPassengerSeat_triggersDefaultKeyEventMainListener() 1104 verify(mCarPowerManagementService, never()).setDisplayPowerState(anyInt(), anyBoolean()); in onKeyEvent_powerKeyUpToDriverSeat_triggersDefaultKeyEventMainListener() 1111 verify(mCarPowerManagementService, never()).setDisplayPowerState(anyInt(), anyBoolean()); in onKeyEvent_powerKeyDownToPassengerSeatWhenDisplayOn_doesNothing() 1120 verify(mCarPowerManagementService).setDisplayPowerState(eq(PASSENGER_DISPLAY_ID), in onKeyEvent_powerKeyDownToPassengerSeatWhenDisplayOff_setsDisplayPowerOn() 1129 verify(mCarPowerManagementService).setDisplayPowerState(eq(PASSENGER_DISPLAY_ID), in onKeyEvent_powerKeyUpToPassengerSeatWhenDisplayOn_setsDisplayPowerOff() 1137 verify(mCarPowerManagementService, never()).setDisplayPowerState(anyInt(), anyBoolean()); in onKeyEvent_powerKeyUpToPassengerSeatWhenDisplayOff_doesNothing() 1148 verify(mCarPowerManagementService, never()).setDisplayPowerState(anyInt(), anyBoolean()); in onKeyEvent_powerKeyDownToPassengerSeatWhenInvalidDisplayId_doesNothing() [all …]
|
D | CarInputRotaryServiceTest.java | 92 @Mock private CarPowerManagementService mCarPowerManagementService; field in CarInputRotaryServiceTest 300 mCarOccupantZoneService, mCarBluetoothService, mCarPowerManagementService, in init()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/ |
D | DisplayInterfaceTest.java | 58 private CarPowerManagementService mCarPowerManagementService; field in DisplayInterfaceTest 157 mDisplayInterface.init(mCarPowerManagementService, mCarUserService); in createDisplayInterface()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/ |
D | VendorServiceControllerTest.java | 135 private CarPowerManagementService mCarPowerManagementService; field in VendorServiceControllerTest 164 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp() 434 verify(mCarPowerManagementService).registerListener(listenerCaptor.capture()); in mockPowerStateListener()
|
/packages/services/Car/service/src/com/android/car/telemetry/ |
D | CarTelemetryService.java | 112 private final CarPowerManagementService mCarPowerManagementService; field in CarTelemetryService 218 mCarPowerManagementService = carPowerManagementService; in CarTelemetryService() 243 mContext, mCarPowerManagementService, mTelemetryHandler); in init()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/power/ |
D | CarPowerManagementTest.java | 743 private CarPowerManagementService mCarPowerManagementService; field in CarPowerManagementTest.MockDisplayInterface 748 mCarPowerManagementService = carPowerManagementService; in init() 806 mCarPowerManagementService.setShutdownTimersForTest(STATE_POLLING_INTERVAL_MS, in startDisplayStateMonitoring()
|