/packages/services/Car/service/src/com/android/car/ |
D | CarPowerManagementService.java | 22 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 …]
|
D | BluetoothDeviceConnectionPolicy.java | 58 if (state == CarPowerManager.CarPowerStateListener.ON) { 76 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
|
D | CarLocationService.java | 25 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/ |
D | CarLocationServiceTest.java | 37 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 …]
|
D | BluetoothDeviceConnectionPolicyTest.java | 202 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()
|
D | CarPowerManagementServiceTest.java | 42 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/ |
D | Controller.java | 21 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/ |
D | ControllerTest.java | 33 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/ |
D | CarPowerManager.java | 44 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/ |
D | CarUserNoticeService.java | 19 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/ |
D | CarPowerManager.h | 75 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/ |
D | CarPowerManager.cpp | 58 mListenerToService = new CarPowerStateListener(this); in setListener()
|
/packages/services/Car/service/src/com/android/car/am/ |
D | FixedActivityService.java | 257 private final CarPowerManager.CarPowerStateListener mCarPowerStateListener = (state) -> { 258 if (state != CarPowerManager.CarPowerStateListener.ON) {
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/ |
D | PowerTestFragment.java | 41 private final CarPowerManager.CarPowerStateListener mPowerListener =
|
/packages/services/Car/car-lib/api/ |
D | system-current.txt | 720 public static interface CarPowerManager.CarPowerStateListener {
|