Home
last modified time | relevance | path

Searched refs:mListenerToService (Results 1 – 8 of 8) sorted by relevance

/packages/services/Car/car-lib/native/CarPowerManager/
DCarPowerManager.cpp35 if (mIsConnected && (mListenerToService != nullptr)) { in clearListener()
36 mICarPower->unregisterListener(mListenerToService); in clearListener()
37 mListenerToService = nullptr; in clearListener()
57 if (mListenerToService == nullptr) { in setListener()
58 mListenerToService = new CarPowerStateListener(this); in setListener()
59 mICarPower->registerListener(mListenerToService); in setListener()
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarDrivingStateManager.java60 private CarDrivingStateChangeListenerToService mListenerToService; field in CarDrivingStateManager
73 mListenerToService = null; in onCarDisconnected()
114 if (mListenerToService == null) { in registerListener()
115 mListenerToService = new CarDrivingStateChangeListenerToService(this); in registerListener()
117 localListenerToService = mListenerToService; in registerListener()
142 localListenerToService = mListenerToService; in unregisterListener()
144 mListenerToService = null; in unregisterListener()
DCarUxRestrictionsManager.java70 private CarUxRestrictionsChangeListenerToService mListenerToService; field in CarUxRestrictionsManager
86 mListenerToService = null; in onCarDisconnected()
142 if (mListenerToService == null) { in setListener()
143 mListenerToService = new CarUxRestrictionsChangeListenerToService(this); in setListener()
145 serviceListener = mListenerToService; in setListener()
169 serviceListener = mListenerToService; in unregisterListener()
/packages/services/Car/car-lib/src/android/car/occupantawareness/
DOccupantAwarenessManager.java63 private ChangeListenerToService mListenerToService; field in OccupantAwarenessManager
79 mListenerToService = null; in onCarDisconnected()
152 if (mListenerToService == null) { in registerChangeCallback()
153 mListenerToService = new ChangeListenerToService(this); in registerChangeCallback()
156 mOccupantAwarenessService.registerEventListener(mListenerToService); in registerChangeCallback()
180 mOccupantAwarenessService.unregisterEventListener(mListenerToService); in unregisterChangeCallback()
185 mListenerToService = null; in unregisterChangeCallback()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DCarStorageMonitoringManager.java46 private ListenerToService mListenerToService; field in CarStorageMonitoringManager
112 mListenerToService = null; in onCarDisconnected()
307 if (mListenerToService == null) { in registerListener()
308 mListenerToService = new ListenerToService(this); in registerListener()
310 mService.registerListener(mListenerToService); in registerListener()
331 mService.unregisterListener(mListenerToService); in unregisterListener()
332 mListenerToService = null; in unregisterListener()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java83 private ICarPowerStateListener mListenerToService; field in CarPowerManager
480 listenerToService = mListenerToService; in clearListener()
481 mListenerToService = null; in clearListener()
713 if (mListenerToService == null) { in setServiceForListenerLocked()
765 mListenerToService = listenerToService; in setServiceForListenerLocked()
782 listenerToService = mListenerToService; in updateFutureLocked()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java73 private final CarDiagnosticEventListenerToService mListenerToService; field in CarDiagnosticManager
96 mListenerToService = new CarDiagnosticEventListenerToService(this); in CarDiagnosticManager()
187 mListenerToService); in doUnregisterListenerLocked()
201 return mService.registerOrUpdateDiagnosticListener(frameType, rate, mListenerToService); in registerOrUpdateDiagnosticListener()
/packages/services/Car/car-lib/native/include/
DCarPowerManager.h105 android::sp<CarPowerStateListener> mListenerToService; variable