Home
last modified time | relevance | path

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

/packages/services/Car/service/src/com/android/car/
DCarPowerManagementService.java19 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
172 onApPowerStateChange(CpmsState.WAIT_FOR_VHAL, CarPowerStateListener.WAIT_FOR_VHAL); in init()
175 onApPowerStateChange(CpmsState.ON, CarPowerStateListener.ON); in init()
294 case CarPowerStateListener.WAIT_FOR_VHAL: in handleWaitForVhal()
297 case CarPowerStateListener.SHUTDOWN_CANCELLED: in handleWaitForVhal()
300 case CarPowerStateListener.SUSPEND_EXIT: in handleWaitForVhal()
319 sendPowerManagerEvent(CarPowerStateListener.ON); in handleOn()
331 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in handleShutdownPrepare()
351 sendPowerManagerEvent(CarPowerStateListener.SHUTDOWN_PREPARE); in simulateShutdownPrepare()
359 case CarPowerStateListener.SUSPEND_ENTER: in handleWaitForFinish()
[all …]
DCarLocationService.java25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
209 case CarPowerStateListener.SHUTDOWN_PREPARE: in onStateChanged()
218 case CarPowerStateListener.SUSPEND_EXIT: in onStateChanged()
DBluetoothDeviceConnectionPolicy.java58 if (state == CarPowerManager.CarPowerStateListener.ON) {
76 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
/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()
426 mCarLocationService.onStateChanged(CarPowerStateListener.SUSPEND_EXIT, future); in testDeletesCacheFileUponSuspendExit()
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.java25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
223 if (state == CarPowerStateListener.SHUTDOWN_ENTER in registerListenerToService()
224 || 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.java45 private CarPowerStateListener mListener;
55 public interface CarPowerStateListener { interface in CarPowerManager
171 public void setListener(CarPowerStateListener listener) { in setListener()
263 if (state == CarPowerStateListener.SHUTDOWN_PREPARE) { in updateFuture()
/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/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 {