Home
last modified time | relevance | path

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

12

/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/apps/Car/Settings/src/com/android/car/settings/common/
DPowerPolicyListener.java20 import android.car.hardware.power.CarPowerManager;
43 private final CarPowerManager.CarPowerPolicyListener mPolicyListener =
44 new CarPowerManager.CarPowerPolicyListener() {
51 @Nullable private CarPowerManager mCarPowerManager;
73 mCarPowerManager = (CarPowerManager) mCar.getCarManager(Car.POWER_SERVICE); in PowerPolicyListener()
/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/apps/Car/SystemUI/src/com/android/systemui/car/notification/
DPowerManagerHelper.java21 import android.car.hardware.power.CarPowerManager;
22 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
39 private CarPowerManager mCarPowerManager;
49 mCarPowerManager = (CarPowerManager) car.getCarManager(Car.POWER_SERVICE); in PowerManagerHelper()
DNotificationPanelViewMediator.java19 import android.car.hardware.power.CarPowerManager;
127 if (state == CarPowerManager.CarPowerStateListener.ON) { in setupOverlayContentViewControllers()
/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/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;
50 private CarPowerManager mCarPowerManager;
171 void setCarPowerManager(CarPowerManager cpm) { in setCarPowerManager()
/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;
107 private CarPowerManager mCarPowerManager;
138 if (state == CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE) {
140 } else if (state == CarPowerManager.CarPowerStateListener.ON) {
393 CarPowerManager carPowerManager; in init()
421 CarPowerManager carPowerManager; in release()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/user/
DCarUserNoticeServiceTest.java35 import android.car.hardware.power.CarPowerManager;
36 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
87 private CarPowerManager mCarPowerManager;
262 sendPowerStateChange(CarPowerManager.CarPowerStateListener.SHUTDOWN_PREPARE); in sendPowerShutDown()
268 sendPowerStateChange(CarPowerManager.CarPowerStateListener.ON); in sendPowerOn()
/packages/services/Car/service/src/com/android/car/
DCarLocalServices.java21 import android.car.hardware.power.CarPowerManager;
106 public static CarPowerManager createCarPowerManager(Context context) { in createCarPowerManager()
113 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;
97 private CarPowerManager mCarPowerManager;
/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/CarSecurityPermissionTest/src/com/android/car/power/
DCarPowerManagerPermissionTest.java29 import android.car.hardware.power.CarPowerManager;
54 private CarPowerManager mCarPowerManager;
59 mCarPowerManager = (CarPowerManager) car.getCarManager(POWER_SERVICE); in setUp()
/packages/services/Car/service/src/com/android/car/am/
DFixedActivityService.java34 import android.car.hardware.power.CarPowerManager;
257 private CarPowerManager mCarPowerManager;
259 private final CarPowerManager.CarPowerStateListener mCarPowerStateListener = (state) -> {
260 if (state != CarPowerManager.CarPowerStateListener.ON) {
329 CarPowerManager carPowerManager; in startMonitoringEvents()
363 CarPowerManager carPowerManager; in stopMonitoringEvents()
/packages/services/Car/tests/carservice_test/src/com/android/car/garagemode/
DControllerTest.java33 import android.car.hardware.power.CarPowerManager;
34 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
74 @Mock private CarPowerManager mCarPowerManagerMock;
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java45 public class CarPowerManager extends CarManagerBase { class
47 private static final String TAG = CarPowerManager.class.getSimpleName();
202 public CarPowerManager(Car car, IBinder service) { in CarPowerManager() method in CarPowerManager
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DKitchenSinkActivity.java24 import android.car.hardware.power.CarPowerManager;
221 private CarPowerManager mPowerManager;
237 public CarPowerManager getPowerManager() { in getPowerManager()
404 mPowerManager = (CarPowerManager) car.getCarManager( in initManagers()
/packages/services/Car/car-lib/
DAndroid.bp62 "native/CarPowerManager/CarPowerManager.cpp",
63 "native/CarPowerManager/CarPowerPolicy.cpp",
64 "native/CarPowerManager/CarPowerPolicyFilter.cpp",
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hardware/power/
DCarPowerManagerUnitTest.java46 import android.car.hardware.power.CarPowerManager;
110 private CarPowerManager mCarPowerManager;
137 mCarPowerManager = new CarPowerManager(mCar, mService); in setUp()
615 CarPowerManager.CarPowerPolicyListener {
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/am/
DFixedActivityServiceTest.java37 import android.car.hardware.power.CarPowerManager;
89 private CarPowerManager mCarPowerManager;
/packages/services/Car/car-lib/src/android/car/
DCar.java47 import android.car.hardware.power.CarPowerManager;
1835 manager = new CarPowerManager(this, binder); in createCarManagerLocked()
/packages/services/Car/service/src/com/android/car/watchdog/
DCarWatchdogService.java33 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DCarLocationServiceTest.java37 import android.car.hardware.power.CarPowerManager.CarPowerStateListener;
/packages/services/Car/car-lib/api/
Dcurrent.txt559 public class CarPowerManager {
560 …ware.power.CarPowerPolicyFilter, @NonNull android.car.hardware.power.CarPowerManager.CarPowerPolic…
562 …c void removePowerPolicyListener(@NonNull android.car.hardware.power.CarPowerManager.CarPowerPolic…
565 public static interface CarPowerManager.CarPowerPolicyListener {
Dsystem-current.txt854 public class CarPowerManager {
858 …_POWER) public void setListener(@Nullable android.car.hardware.power.CarPowerManager.CarPowerState…
862 public static interface CarPowerManager.CarPowerStateListener {
865 public static interface CarPowerManager.CarPowerStateListenerWithCompletion {

12