Home
last modified time | relevance | path

Searched refs:PowerHalService (Results 1 – 15 of 15) sorted by relevance

/packages/services/Car/tests/carservice_unit_test/src/com/android/car/power/
DCarPowerManagementServiceUnitTest.java103 import com.android.car.hal.PowerHalService;
104 import com.android.car.hal.PowerHalService.PowerState;
315 mPowerSignalListener.addEventListener(PowerHalService.SET_ON); in shutdownTest_withCarPowerCancelShellCommand()
316 mPowerSignalListener.addEventListener(PowerHalService.SET_SHUTDOWN_START); in shutdownTest_withCarPowerCancelShellCommand()
319 mPowerSignalListener.waitFor(PowerHalService.SET_ON, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
325 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_SHUTDOWN_START); in shutdownTest_withCarPowerCancelShellCommand()
328 mPowerSignalListener.waitFor(PowerHalService.SET_SHUTDOWN_START, WAIT_TIMEOUT_MS); in shutdownTest_withCarPowerCancelShellCommand()
337 mPowerSignalListener.addEventListener(PowerHalService.SET_ON); in testCanHibernate()
338 mPowerSignalListener.addEventListener(PowerHalService.SET_HIBERNATION_ENTRY); in testCanHibernate()
339 mPowerSignalListener.addEventListener(PowerHalService.SET_HIBERNATION_EXIT); in testCanHibernate()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DPowerHalServiceUnitTest.java37 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP;
38 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION;
39 import static com.android.car.hal.PowerHalService.PowerState.SHUTDOWN_TYPE_POWER_OFF;
72 import com.android.car.hal.PowerHalService.PowerState;
132 private PowerHalService mPowerHalService;
141 mPowerHalService = new PowerHalService(mFakeContext, mFakeFeatureFlags, mHal); in setUp()
196 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testCanPostponeShutdown()
207 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testCanSuspend()
218 PowerHalService.PowerState powerState = createShutdownPrepare(param); in testGetSuspendType()
230 PowerHalService.PowerState powerState = mPowerHalService.getCurrentPowerState(); in testGetCurrentPowerState()
[all …]
DMockedPowerHalService.java37 public class MockedPowerHalService extends PowerHalService {
76 mock(PowerHalService.class), in createVehicleHalWithMockedServices()
DVehicleHalTest.java113 @Mock private PowerHalService mPowerHalService;
1547 PowerHalService powerHal,
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java73 import com.android.car.hal.PowerHalService;
74 import com.android.car.hal.PowerHalService.PowerState;
180 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_SHUTDOWN_START, 0); in testRequestShutdownOnNextSuspend_positive()
193 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_DEEP_SLEEP_ENTRY, 0); in testRequestShutdownOnNextSuspend_negative()
208 PowerHalService.SET_DEEP_SLEEP_ENTRY, wakeTime); in testScheduleNextWakeupTime()
220 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_DEEP_SLEEP_ENTRY, 0); in testSetListener()
242 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_DEEP_SLEEP_ENTRY, 0); in testSetListenerWithCompletion()
262 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_DEEP_SLEEP_ENTRY, 0); in testClearListener()
270 assertThat(mCarPowerManager.getPowerState()).isEqualTo(PowerHalService.SET_ON); in testGetPowerState()
275 assertStateReceivedForShutdownOrSleepWithPostpone(PowerHalService.SET_DEEP_SLEEP_ENTRY, 0); in testGetPowerState()
[all …]
/packages/services/Car/tests/carservice_test/src/com/android/car/
DICarImplTest.java49 import com.android.car.hal.PowerHalService;
212 PowerHalService powerHalService in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
/packages/services/Car/service/src/com/android/car/power/
DCarPowerManagementService.java25 import static com.android.car.hal.PowerHalService.BOOTUP_REASON_SYSTEM_ENTER_GARAGE_MODE;
98 import com.android.car.hal.PowerHalService;
99 import com.android.car.hal.PowerHalService.BootupReason;
100 import com.android.car.hal.PowerHalService.PowerState;
146 CarServiceBase, PowerHalService.PowerEventListener {
211 private final PowerHalService mHal;
385 private PowerHalService mPowerHalService;
410 public Builder setPowerHalService(PowerHalService powerHalService) { in setPowerHalService()
523 public CarPowerManagementService(Context context, PowerHalService powerHalService, in CarPowerManagementService()
/packages/services/Car/service/src/com/android/car/hal/
DVehicleHal.java106 private final PowerHalService mPowerHal;
259 PowerHalService powerHal, in VehicleHal()
273 mPowerHal = powerHal != null ? powerHal : new PowerHalService(context, mFeatureFlags, this); in VehicleHal()
555 public PowerHalService getPowerHal() { in getPowerHal()
DPowerHalService.java65 public class PowerHalService extends HalServiceBase { class
338 public PowerHalService(Context context, FeatureFlags featureFlags, VehicleHal hal) { in PowerHalService() method in PowerHalService
/packages/services/Car/service/
DOWNERS35 per-file src/com/android/car/hal/PowerHalService.java = ericjeong@google.com
/packages/services/Car/service/src/com/android/car/remoteaccess/
DCarRemoteAccessService.java83 import com.android.car.hal.PowerHalService;
352 private PowerHalService mPowerHalService;
372 PowerHalService powerHalService) { in CarRemoteAccessService()
407 PowerHalService powerHalService, @Nullable CarRemoteAccessServiceDep dep, in CarRemoteAccessService()
467 public void setPowerHal(PowerHalService powerHalService) { in setPowerHal()
/packages/services/Car/tests/carservice_test/src/com/android/car/remoteaccess/
DCarRemoteAccessManagerTest.java71 import com.android.car.hal.PowerHalService;
328 PowerHalService powerHalService) -> { in configureFakeSystemInterface()
/packages/services/Car/service/src/com/android/car/
DICarImpl.java76 import com.android.car.hal.PowerHalService;
1294 PowerHalService powerHalService); in construct()
DCarShellCommand.java140 import com.android.car.hal.PowerHalService;
3026 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION
3027 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP,
3032 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION
3033 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP,
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/remoteaccess/
DCarRemoteAccessServiceUnitTest.java88 import com.android.car.hal.PowerHalService;
215 @Mock private PowerHalService mPowerHalService;