Home
last modified time | relevance | path

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

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPowerHalServiceUnitTest.java132 private PowerHalService mPowerHalService; field in PowerHalServiceUnitTest
141 mPowerHalService = new PowerHalService(mFakeContext, mFakeFeatureFlags, mHal); in setUp()
142 mPowerHalService.setListener(mEventListener); in setUp()
159 mPowerHalService.takeProperties(configs); in initPowerHal()
160 mPowerHalService.init(); in initPowerHal()
184 mPowerHalService.release(); in testReleaseUnsubscribe()
230 PowerHalService.PowerState powerState = mPowerHalService.getCurrentPowerState(); in testGetCurrentPowerState()
241 PowerHalService.PowerState powerState = mPowerHalService.getCurrentPowerState(); in testGetCurrentPowerState_serviceSpecificError()
248 mPowerHalService.setListener(mEventListener); in testHalEventListenerPowerStateChange()
252 mPowerHalService.onHalEvents(List.of(value)); in testHalEventListenerPowerStateChange()
[all …]
DVehicleHalTest.java113 @Mock private PowerHalService mPowerHalService; field in VehicleHalTest
156 when(mPowerHalService.getAllSupportedProperties()).thenReturn( in initHalServices()
268 mVehicleHal = new VehicleHal(mContext, mPowerHalService,
377 .when(mPowerHalService).takeProperties(any());
393 verify(mPowerHalService).init();
403 when(mPowerHalService.getAllSupportedProperties()).thenReturn(new int[]{});
404 when(mPowerHalService.isSupportedProperty(eq(SOME_READ_ON_CHANGE_PROPERTY)))
406 when(mPowerHalService.isSupportedProperty(not(eq(SOME_READ_ON_CHANGE_PROPERTY))))
447 when(mPowerHalService.getAllSupportedProperties()).thenReturn(
466 .when(mPowerHalService).takeProperties(any());
[all …]
/packages/services/Car/service/src/com/android/car/remoteaccess/
DCarRemoteAccessService.java352 private PowerHalService mPowerHalService; field in CarRemoteAccessService
413 mPowerHalService = powerHalService; in CarRemoteAccessService()
468 mPowerHalService = powerHalService; in setPowerHal()
1133 return mPowerHalService.isVehicleInUseSupported(); in isVehicleInUseSupported()
1142 return mPowerHalService.isShutdownRequestSupported(); in isShutdownRequestSupported()
1349 if (mPowerHalService.isVehicleInUse()) { in shutdownIfNeeded()
1394 || mPowerHalService.isVehicleInUse()) { in calcTaskMaxDurationInMsLocked()
1628 if (mPowerHalService.isVehicleInUse()) { in notifyShutdownStarting()
1655 && !mPowerHalService.isVehicleInUse()) { in wrapUpRemoteAccessServiceIfNeeded()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java215 @Mock private PowerHalService mPowerHalService; field in CarRemoteAccessServiceUnitTest
225 mPowerHalService, mDep, /* remoteAccessHal= */ null, mRemoteAccessStorage, in newServiceWithSystemUpTime()
1109 mService = new CarRemoteAccessService(mContext, mSystemInterface, mPowerHalService); in testAllowedSystemUptimeMs()
1120 mService = new CarRemoteAccessService(mContext, mSystemInterface, mPowerHalService); in testAllowedSystemUptimeMs_lessThanMinSystemUptime()
1822 when(mPowerHalService.isVehicleInUse()).thenReturn(inUse); in setVehicleInUse()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java385 private PowerHalService mPowerHalService; field in CarPowerManagementService.Builder
411 mPowerHalService = powerHalService; in setPowerHalService()
533 mHal = Objects.requireNonNull(builder.mPowerHalService); in CarPowerManagementService()