Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java22 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
204 onApPowerStateChange(CpmsState.WAIT_FOR_VHAL, CarPowerStateListener.WAIT_FOR_VHAL); in init()
207 onApPowerStateChange(CpmsState.ON, CarPowerStateListener.ON); in init()
336 case CarPowerStateListener.WAIT_FOR_VHAL: in handleWaitForVhal()
339 case CarPowerStateListener.SHUTDOWN_CANCELLED: in handleWaitForVhal()
343 case CarPowerStateListener.SUSPEND_EXIT: in handleWaitForVhal()
399 sendPowerManagerEvent(CarPowerStateListener.ON); in handleOn()
515 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in handleShutdownPrepare()
535 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in simulateShutdownPrepare()
547 case CarPowerStateListener.SUSPEND_ENTER: in handleWaitForFinish()
[all …]
DBluetoothDeviceConnectionPolicy.java58 if (state == CarPowerManager.CarPowerStateListener.ON) {
76 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
DCarLocationService.java25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
209 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
218 case CarPowerStateListener.SUSPEND_EXIT: in onStateChanged()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java37 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
338 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testStoresLocationUponShutdownPrepare()
357 mCarLocationService.onStateChanged(CarPowerStateListener.SUSPEND_ENTER, null); in testDoesNotThrowExceptionUponPowerStateChanged()
358 mCarLocationService.onStateChanged(CarPowerStateListener.SUSPEND_EXIT, null); in testDoesNotThrowExceptionUponPowerStateChanged()
359 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_ENTER, null); in testDoesNotThrowExceptionUponPowerStateChanged()
360 mCarLocationService.onStateChanged(CarPowerStateListener.ON, null); in testDoesNotThrowExceptionUponPowerStateChanged()
361 mCarLocationService.onStateChanged(CarPowerStateListener.WAIT_FOR_VHAL, null); in testDoesNotThrowExceptionUponPowerStateChanged()
362 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_CANCELLED, null); in testDoesNotThrowExceptionUponPowerStateChanged()
384 mCarLocationService.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, future); in testDoesNotStoreNullLocation()
430 mCarLocationService.onStateChanged(CarPowerStateListener.SUSPEND_EXIT, future); in testDeletesCacheFileUponSuspendExitWhileMoving()
[all …]
DBluetoothDeviceConnectionPolicyTest.java202 sendPowerStateChanged(CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE); in testReceivePowerShutdownPrepare_disableBluetooth()
225 sendPowerStateChanged(CarPowerManager.CarPowerStateListener.ON); in testReceivePowerOnBluetoothPersistedOff_doNothing()
248 sendPowerStateChanged(CarPowerManager.CarPowerStateListener.ON); in testReceivePowerOnBluetoothOffNotPersisted_BluetoothOnConnectDevices()
271 sendPowerStateChanged(CarPowerManager.CarPowerStateListener.ON); in testReceivePowerOnBluetoothOn_connectDevices()
DCarPowerManagementServiceTest.java42 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
641 if (state == CarPowerStateListener.SHUTDOWN_ENTER in registerListenerToService()
642 || state == CarPowerStateListener.SUSPEND_ENTER) { in registerListenerToService()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java21 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
77 case CarPowerStateListener.SHUTDOWN_CANCELLED: in onStateChanged()
81 case CarPowerStateListener.SHUTDOWN_ENTER: in onStateChanged()
85 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
89 case CarPowerStateListener.SUSPEND_ENTER: in onStateChanged()
93 case CarPowerStateListener.SUSPEND_EXIT: in onStateChanged()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java33 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
115 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownPrepare_shouldInitiateGarageMode()
122 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testOnShutdownCancelled_shouldCancelGarageMode()
125 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_CANCELLED, null); in testOnShutdownCancelled_shouldCancelGarageMode()
147 startAndAssertGarageModeWithSignal(CarPowerStateListener.SHUTDOWN_PREPARE); in testWakeupTimeProgression()
155 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
166 mController.onStateChanged(CarPowerStateListener.SHUTDOWN_PREPARE, mFuture); in testWakeupTimeProgression()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java44 private CarPowerStateListener mListener;
56 public interface CarPowerStateListener { interface in CarPowerManager
173 public void setListener(CarPowerStateListener listener) { in setListener()
225 CarPowerStateListener listener; in setServiceForListenerLocked()
275 if (state == CarPowerStateListener.SHUTDOWN_PREPARE) { in updateFutureLocked()
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java19 import static android.car.hardware.power.CarPowerManager.CarPowerStateListener;
128 private final CarPowerStateListener mPowerStateListener = new CarPowerStateListener() {
131 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
133 } else if (state == CarPowerManager.CarPowerStateListener.ON) {
/packages/services/Car/car-lib/native/include/
DCarPowerManager.h75 class CarPowerStateListener final : public BnCarPowerStateListener {
77 explicit CarPowerStateListener(CarPowerManager* parent) : mParent(parent) {}; in CarPowerStateListener() function
102 sp<CarPowerStateListener> mListenerToService;
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerManager.cpp58 mListenerToService = new CarPowerStateListener(this); in setListener()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java257 private final CarPowerManager.CarPowerStateListener mCarPowerStateListener = (state) -> {
258 if (state != CarPowerManager.CarPowerStateListener.ON) {
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/
DPowerTestFragment.java41 private final CarPowerManager.CarPowerStateListener mPowerListener =
/packages/services/Car/car-lib/api/
Dsystem-current.txt720 public static interface CarPowerManager.CarPowerStateListener {