Home
last modified time | relevance | path

Searched refs:CarPowerManager (Results 1 – 18 of 18) 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/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()
DCarPowerManagementServiceTest.java25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
DCarLocationServiceTest.java37 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.java20 import android.car.hardware.power.CarPowerManager;
92 public static CarPowerManager createCarPowerManager(Context context) { in createCarPowerManager()
97 return new CarPowerManager(service, context, null); 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.java19 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/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()
350 mPowerManager = (CarPowerManager) mCarApi.getCarManager(
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java38 public class CarPowerManager implements CarManagerBase { class
134 public CarPowerManager(IBinder service, Context context, Handler handler) { in CarPowerManager() method in CarPowerManager
/packages/services/Car/car-lib/
DAndroid.bp46 "native/CarPowerManager/CarPowerManager.cpp",
/packages/services/Car/car-lib/src/android/car/
DCar.java34 import android.car.hardware.power.CarPowerManager;
895 manager = new CarPowerManager(binder, mContext, mEventHandler); in createCarManager()
/packages/services/Car/car-lib/api/
Dsystem-current.txt717 public class CarPowerManager {
720 public static interface CarPowerManager.CarPowerStateListener {