Home
last modified time | relevance | path

Searched refs:mListenerToService (Results 1 – 7 of 7) 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.java51 private CarDrivingStateChangeListenerToService mListenerToService; field in CarDrivingStateManager
64 mListenerToService = null; in onCarDisconnected()
106 if (mListenerToService == null) { in registerListener()
107 mListenerToService = new CarDrivingStateChangeListenerToService(this); in registerListener()
110 mDrivingService.registerDrivingStateChangeListener(mListenerToService); in registerListener()
131 mDrivingService.unregisterDrivingStateChangeListener(mListenerToService); in unregisterListener()
133 mListenerToService = null; in unregisterListener()
DCarUxRestrictionsManager.java61 private CarUxRestrictionsChangeListenerToService mListenerToService; field in CarUxRestrictionsManager
74 mListenerToService = null; in onCarDisconnected()
122 if (mListenerToService == null) { in registerListener()
123 mListenerToService = new CarUxRestrictionsChangeListenerToService(this); in registerListener()
126 mUxRService.registerUxRestrictionsChangeListener(mListenerToService, displayId); in registerListener()
146 mUxRService.unregisterUxRestrictionsChangeListener(mListenerToService); in unregisterListener()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DCarStorageMonitoringManager.java44 private ListenerToService mListenerToService; field in CarStorageMonitoringManager
98 mListenerToService = null; in onCarDisconnected()
255 if (mListenerToService == null) { in registerListener()
256 mListenerToService = new ListenerToService(this); in registerListener()
258 mService.registerListener(mListenerToService); in registerListener()
276 mService.unregisterListener(mListenerToService); in unregisterListener()
277 mListenerToService = null; in unregisterListener()
/packages/services/Car/car-lib/src/android/car/hardware/power/
DCarPowerManager.java50 private ICarPowerStateListener mListenerToService; field in CarPowerManager
209 if (mListenerToService == null) { in setServiceForListenerLocked()
240 mListenerToService = listenerToService; in setServiceForListenerLocked()
254 listenerToService = mListenerToService; in clearListener()
255 mListenerToService = null; in clearListener()
286 listenerToService = mListenerToService; in updateFutureLocked()
/packages/services/Car/car-lib/src/android/car/diagnostic/
DCarDiagnosticManager.java71 private final CarDiagnosticEventListenerToService mListenerToService; field in CarDiagnosticManager
94 mListenerToService = new CarDiagnosticEventListenerToService(this); in CarDiagnosticManager()
182 mListenerToService); in doUnregisterListenerLocked()
196 return mService.registerOrUpdateDiagnosticListener(frameType, rate, mListenerToService); in registerOrUpdateDiagnosticListener()
/packages/services/Car/car-lib/native/include/
DCarPowerManager.h102 sp<CarPowerStateListener> mListenerToService; variable