Searched refs:PowerHalService (Results 1 – 15 of 15) sorted by relevance
103 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 …]
37 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 …]
37 public class MockedPowerHalService extends PowerHalService {76 mock(PowerHalService.class), in createVehicleHalWithMockedServices()
113 @Mock private PowerHalService mPowerHalService;1547 PowerHalService powerHal,
73 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 …]
49 import com.android.car.hal.PowerHalService;212 PowerHalService powerHalService in testNoShardedPreferencesAccessedBeforeUserZeroUnlock()
25 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()
106 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()
65 public class PowerHalService extends HalServiceBase { class338 public PowerHalService(Context context, FeatureFlags featureFlags, VehicleHal hal) { in PowerHalService() method in PowerHalService
35 per-file src/com/android/car/hal/PowerHalService.java = ericjeong@google.com
83 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()
71 import com.android.car.hal.PowerHalService;328 PowerHalService powerHalService) -> { in configureFakeSystemInterface()
76 import com.android.car.hal.PowerHalService;1294 PowerHalService powerHalService); in construct()
140 import com.android.car.hal.PowerHalService;3026 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION3027 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP,3032 isHibernation ? PowerHalService.PowerState.SHUTDOWN_TYPE_HIBERNATION3033 : PowerHalService.PowerState.SHUTDOWN_TYPE_DEEP_SLEEP,
88 import com.android.car.hal.PowerHalService;215 @Mock private PowerHalService mPowerHalService;