Home
last modified time | relevance | path

Searched refs:CarPowerManager (Results 1 – 20 of 20) sorted by relevance

/packages/services/Car/car-lib/native/include/
DCarPowerManager.h35 class CarPowerManager : public RefBase {
56 CarPowerManager() = default;
57 virtual ~CarPowerManager() { in ~CarPowerManager()
77 explicit CarPowerStateListener(CarPowerManager* parent) : mParent(parent) {}; in CarPowerStateListener()
80 sp<CarPowerManager> parent = mParent; in onStateChanged()
94 sp<CarPowerManager> mParent;
/packages/services/Car/service/src/com/android/car/user/
DCarUserNoticeService.java19 import static android.car.hardware.power.CarPowerManager.CarPowerStateListener;
28 import android.car.hardware.power.CarPowerManager;
100 private CarPowerManager mCarPowerManager;
131 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
133 } else if (state == CarPowerManager.CarPowerStateListener.ON) {
356 CarPowerManager carPowerManager; in init()
384 CarPowerManager carPowerManager; in release()
/packages/services/Car/service/src/com/android/car/garagemode/
DController.java20 import android.car.hardware.power.CarPowerManager;
21 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
22 import android.car.hardware.power.CarPowerManager.CarPowerStateListenerWithCompletion;
44 private CarPowerManager mCarPowerManager;
162 void setCarPowerManager(CarPowerManager cpm) { in setCarPowerManager()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DBluetoothDeviceConnectionPolicyTest.java22 import android.car.hardware.power.CarPowerManager;
23 import android.car.hardware.power.CarPowerManager.CarPowerStateListenerWithCompletion;
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()
DCarLocationServiceTest.java37 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
DCarPowerManagementServiceTest.java42 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
/packages/services/Car/tests/PowerTestService/src/
Dmain.cpp39 void onStateChanged(CarPowerManager::State state) { in onStateChanged()
41 if (state == CarPowerManager::State::kShutdownPrepare) { in onStateChanged()
55 std::unique_ptr<CarPowerManager> carPowerManager(new CarPowerManager()); in main()
/packages/services/Car/service/src/com/android/car/
DBluetoothDeviceConnectionPolicy.java21 import android.car.hardware.power.CarPowerManager;
22 import android.car.hardware.power.CarPowerManager.CarPowerStateListenerWithCompletion;
49 private CarPowerManager mCarPowerManager;
58 if (state == CarPowerManager.CarPowerStateListener.ON) {
76 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
DCarLocalServices.java21 import android.car.hardware.power.CarPowerManager;
93 public static CarPowerManager createCarPowerManager(Context context) { in createCarPowerManager()
100 return new CarPowerManager(car, service); in createCarPowerManager()
DCarLocationService.java24 import android.car.hardware.power.CarPowerManager;
25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
26 import android.car.hardware.power.CarPowerManager.CarPowerStateListenerWithCompletion;
84 private CarPowerManager mCarPowerManager;
DCarPowerManagementService.java22 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerManager.cpp32 int CarPowerManager::clearListener() { in clearListener()
43 int CarPowerManager::requestShutdownOnNextSuspend() { in requestShutdownOnNextSuspend()
53 int CarPowerManager::setListener(Listener listener) { in setListener()
71 bool CarPowerManager::connectToCarService() { in connectToCarService()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java33 import android.car.hardware.power.CarPowerManager;
255 private CarPowerManager mCarPowerManager;
257 private final CarPowerManager.CarPowerStateListener mCarPowerStateListener = (state) -> {
258 if (state != CarPowerManager.CarPowerStateListener.ON) {
302 CarPowerManager carPowerManager; in startMonitoringEvents()
334 CarPowerManager carPowerManager; in stopMonitoringEvents()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/power/
DPowerTestFragment.java19 import android.car.hardware.power.CarPowerManager;
39 private CarPowerManager mCarPowerManager;
41 private final CarPowerManager.CarPowerStateListener mPowerListener =
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java32 import android.car.hardware.power.CarPowerManager;
33 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
68 @Mock private CarPowerManager mCarPowerManagerMock;
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java24 import android.car.hardware.power.CarPowerManager;
195 private CarPowerManager mPowerManager;
206 public CarPowerManager getPowerManager() { in getPowerManager()
351 mPowerManager = (CarPowerManager) car.getCarManager( in initManagers()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java36 public class CarPowerManager extends CarManagerBase { class
135 public CarPowerManager(Car car, IBinder service) { in CarPowerManager() method in CarPowerManager
/packages/services/Car/car-lib/
DAndroid.bp55 "native/CarPowerManager/CarPowerManager.cpp",
/packages/services/Car/car-lib/src/android/car/
DCar.java39 import android.car.hardware.power.CarPowerManager;
1324 manager = new CarPowerManager(this, binder); in createCarManager()
/packages/services/Car/car-lib/api/
Dsystem-current.txt717 public class CarPowerManager {
720 public static interface CarPowerManager.CarPowerStateListener {