Searched refs:CarPowerManager (Results 1 – 18 of 18) sorted by relevance
35 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;
20 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()
22 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()
25 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
37 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
39 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()
21 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) {
20 import android.car.hardware.power.CarPowerManager;92 public static CarPowerManager createCarPowerManager(Context context) { in createCarPowerManager()97 return new CarPowerManager(service, context, null); in createCarPowerManager()
24 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;
19 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
32 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()
19 import android.car.hardware.power.CarPowerManager;39 private CarPowerManager mCarPowerManager;41 private final CarPowerManager.CarPowerStateListener mPowerListener =
32 import android.car.hardware.power.CarPowerManager;33 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;68 @Mock private CarPowerManager mCarPowerManagerMock;
24 import android.car.hardware.power.CarPowerManager;195 private CarPowerManager mPowerManager;206 public CarPowerManager getPowerManager() { in getPowerManager()350 mPowerManager = (CarPowerManager) mCarApi.getCarManager(
38 public class CarPowerManager implements CarManagerBase { class134 public CarPowerManager(IBinder service, Context context, Handler handler) { in CarPowerManager() method in CarPowerManager
46 "native/CarPowerManager/CarPowerManager.cpp",
34 import android.car.hardware.power.CarPowerManager;895 manager = new CarPowerManager(binder, mContext, mEventHandler); in createCarManager()
717 public class CarPowerManager {720 public static interface CarPowerManager.CarPowerStateListener {