Home
last modified time | relevance | path

Searched refs:CarPowerManagementService (Results 1 – 25 of 49) sorted by relevance

12

/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DGarageModeControllerTest.java21 import static com.android.car.power.CarPowerManagementService.INVALID_TIMEOUT;
52 import com.android.car.power.CarPowerManagementService;
86 @Mock private CarPowerManagementService mCarPowerManagementServiceMock;
88 private CarPowerManagementService mCarPowerManagementServiceOriginal;
105 CarPowerManagementService.class); in setUp()
110 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp()
111 CarLocalServices.addService(CarPowerManagementService.class, in setUp()
136 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
137 CarLocalServices.addService(CarPowerManagementService.class, in tearDown()
DGarageModeTest.java44 import com.android.car.power.CarPowerManagementService;
219 CarPowerManagementService mockCarPowerManagementService = in test_garageModeTestExitImmediately()
220 mock(CarPowerManagementService.class); in test_garageModeTestExitImmediately()
223 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in test_garageModeTestExitImmediately()
224 CarLocalServices.addService(CarPowerManagementService.class, mockCarPowerManagementService); in test_garageModeTestExitImmediately()
242 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in test_garageModeTestExitImmediately()
/packages/services/Car/service/src/com/android/car/audio/
DCarAudioPowerListener.java29 import com.android.car.power.CarPowerManagementService;
40 private final CarPowerManagementService mCarPowerManagementService;
60 CarPowerManagementService carPowerService = CarLocalServices.getService( in newCarAudioPowerListener()
61 CarPowerManagementService.class); in newCarAudioPowerListener()
67 CarPowerManagementService carPowerManagementService) { in CarAudioPowerListener()
/packages/services/Car/service/src/com/android/car/systeminterface/
DDisplayInterface.java52 import com.android.car.power.CarPowerManagementService;
70 void init(CarPowerManagementService carPowerManagementService, CarUserService carUserService); in init()
155 private CarPowerManagementService mCarPowerManagementService;
233 CarPowerManagementService carPowerManagementService = null; in refreshDisplayBrightness()
250 CarPowerManagementService carPowerManagementService, int displayId) { in refreshDisplayBrightnessFromDisplay()
261 CarPowerManagementService carPowerManagementService) { in refreshDisplayBrigtnessFromSetting()
282 CarPowerManagementService service; in handleDisplayChanged()
329 public void init(CarPowerManagementService carPowerManagementService, in init()
340 CarPowerManagementService carPowerManagementService; in startDisplayStateMonitoring()
388 CarPowerManagementService carPowerManagementService; in setDisplayState()
/packages/services/Car/service/src/com/android/car/bluetooth/
DBluetoothPowerPolicy.java38 import com.android.car.power.CarPowerManagementService;
136 CarPowerManagementService cpms = CarLocalServices.getService( in init()
137 CarPowerManagementService.class); in init()
155 CarPowerManagementService cpms = in release()
156 CarLocalServices.getService(CarPowerManagementService.class); in release()
/packages/services/Car/tests/carservice_test/src/com/android/car/power/
DCarPowerManagementTest.java335 CarPowerManagementService cpms = getCarPowerManagementService(); in testSleepEntry()
398 CarPowerManagementService cpms = getCarPowerManagementService(); in testUnallowedPowerStateEventAtSuspend()
482 CarPowerManagementService cpms = getCarPowerManagementService(); in testSleepShutdownFromPreShutdownPrepare()
486 if (!CarPowerManagementService.isCompletionAllowed(state)) { in testSleepShutdownFromPreShutdownPrepare()
548 CarPowerManagementService cpms = getCarPowerManagementService(); in testShutdownImmediatelyFromPreShutdownPrepare()
552 if (!CarPowerManagementService.isCompletionAllowed(state)) { in testShutdownImmediatelyFromPreShutdownPrepare()
604 CarPowerManagementService cpms = getCarPowerManagementService(); in testApplyPowerPolicy_vhalPropertyUpdated()
632 CarPowerManagementService cpms = getCarPowerManagementService(); in testShutdownPostponeWhileListenerPendingInState()
637 if (!CarPowerManagementService.isCompletionAllowed(state)) { in testShutdownPostponeWhileListenerPendingInState()
711 CarPowerManagementService cpms = getCarPowerManagementService(); in registerListenerToFakeGarageMode()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/wifi/
DCarWifiServiceUnitTest.java51 import com.android.car.power.CarPowerManagementService;
84 private CarPowerManagementService mCarPowerManagementService;
90 private CarPowerManagementService mOriginalCarPowerManagementService;
106 CarPowerManagementService.class); in setUp()
107 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp()
108 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp()
134 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
135 CarLocalServices.addService(CarPowerManagementService.class, in tearDown()
/packages/services/Car/service/src/com/android/car/garagemode/
DGarageModeController.java36 import com.android.car.power.CarPowerManagementService;
51 private CarPowerManagementService mCarPowerService;
65 mCarPowerService = CarLocalServices.getService(CarPowerManagementService.class); in init()
83 CarPowerManagementService.powerStateToString(state)); in onStateChanged()
DGarageMode.java45 import com.android.car.power.CarPowerManagementService;
341 CarPowerManagementService carPowerService = CarLocalServices.getService( in enterGarageMode()
342 CarPowerManagementService.class); in enterGarageMode()
/packages/services/Car/service/src/com/android/car/
DCarLocalServices.java27 import com.android.car.power.CarPowerManagementService;
112 CarPowerManagementService service = getService(CarPowerManagementService.class); in createCarPowerManager()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/bluetooth/
DBluetoothPowerPolicyTest.java40 import com.android.car.power.CarPowerManagementService;
61 @Mock private CarPowerManagementService mMockCarPowerManagementService;
113 CarLocalServices.addService(CarPowerManagementService.class, in setUp()
122 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
DCarBluetoothServiceTest.java46 import com.android.car.power.CarPowerManagementService;
85 @Mock private CarPowerManagementService mMockCarPowerManagementService;
133 CarLocalServices.addService(CarPowerManagementService.class, in setUp()
143 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
/packages/services/Car/service/src/com/android/car/telemetry/sessioncontroller/
DSessionController.java30 import com.android.car.power.CarPowerManagementService;
80 private CarPowerManagementService mCarPowerManagementService;
100 CarPowerManagementService carPowerManagementService, in SessionController()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java86 import com.android.car.power.CarPowerManagementService;
219 CarPowerManagementService powerService =
220 CarLocalServices.getService(CarPowerManagementService.class);
230 + CarPowerManagementService.powerStateToString(powerState));
697 CarPowerManagementService powerService = in registerToDaemon()
698 CarLocalServices.getService(CarPowerManagementService.class); in registerToDaemon()
736 CarPowerManagementService powerService = in subscribePowerManagementService()
737 CarLocalServices.getService(CarPowerManagementService.class); in subscribePowerManagementService()
749 CarPowerManagementService powerService = in unsubscribePowerManagementService()
750 CarLocalServices.getService(CarPowerManagementService.class); in unsubscribePowerManagementService()
/packages/services/Car/service/src/com/android/car/wifi/
DCarWifiService.java56 import com.android.car.power.CarPowerManagementService;
75 private final CarPowerManagementService mCarPowerManagementService;
174 mCarPowerManagementService = CarLocalServices.getService(CarPowerManagementService.class); in CarWifiService()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java59 import com.android.car.power.CarPowerManagementService;
82 private CarPowerManagementService mMockCarPowerManagementService;
131 mockGetCarLocalService(CarPowerManagementService.class, mMockCarPowerManagementService); in setUpMocks()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java232 private CarPowerManagementService mService;
260 super(CarPowerManagementService.TAG); in CarPowerManagementServiceUnitTest()
298 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
588 if (CarPowerManagementService.isCompletionAllowed(state)) { in testEmergencyShutdown()
999 if (CarPowerManagementService.isCompletionAllowed(state)) { in testRegisterListenerWithCompletion()
1104 mService = new CarPowerManagementService.Builder() in testInitializePowerPolicy_invalidPowerState_powerPolicyRefactorFlagEnabled()
1114 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in testInitializePowerPolicy_invalidPowerState_powerPolicyRefactorFlagEnabled()
1115 CarLocalServices.addService(CarPowerManagementService.class, mService); in testInitializePowerPolicy_invalidPowerState_powerPolicyRefactorFlagEnabled()
1938 mService = new CarPowerManagementService.Builder() in testDisableWifiAndTethering()
1948 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in testDisableWifiAndTethering()
[all …]
/packages/services/Car/car-builtin-lib/src/android/car/builtin/util/
DEventLogTags.logtags160 ## CarPowerManagementService power state change
161 ### state: CarPowerManagementService.CpmsState
169 ## CarPowerManagementService power state change request (AP_POWER_STATE_REQ)
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/systeminterface/
DDisplayInterfaceTest.java39 import com.android.car.power.CarPowerManagementService;
58 private CarPowerManagementService mCarPowerManagementService;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/pm/
DVendorServiceControllerTest.java60 import com.android.car.power.CarPowerManagementService;
135 private CarPowerManagementService mCarPowerManagementService;
163 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in setUp()
164 CarLocalServices.addService(CarPowerManagementService.class, mCarPowerManagementService); in setUp()
180 CarLocalServices.removeServiceForTest(CarPowerManagementService.class); in tearDown()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/sessioncontroller/
DSessionControllerUnitTest.java38 import com.android.car.power.CarPowerManagementService;
64 private CarPowerManagementService mMockCarPowerManagementService;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPowerListenerTest.java33 import com.android.car.power.CarPowerManagementService;
57 CarPowerManagementService mMockCarPowerService;
/packages/services/Car/car_product/sepolicy/private/
Dcarservice_app.te116 # Allow CarPowerManagementService to access car power policy daemon
119 # Allow CarPowerManagementService to serve a callback from car power policy daemon
/packages/services/Car/tests/carservice_test/src/com/android/car/watchdog/
DCarWatchdogServiceTest.java59 import com.android.car.power.CarPowerManagementService;
111 @Mock private CarPowerManagementService mMockCarPowerManagementService;
149 .when(() -> CarLocalServices.getService(CarPowerManagementService.class)); in setUp()
/packages/services/Car/service/src/com/android/car/power/
DSilentModeHandler.java85 private final CarPowerManagementService mService;
100 SilentModeHandler(@NonNull CarPowerManagementService service, FeatureFlags featureFlags, in SilentModeHandler()

12