Home
last modified time | relevance | path

Searched refs:registerListener (Results 1 – 25 of 127) sorted by relevance

123456

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/storage/
DAppsStorageStatsManagerTest.java80 mAppsStorageStatsManager.registerListener(mCallback1); in callback_onLoadFinished_listenerOnDataLoadedCalled()
81 mAppsStorageStatsManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
95 mAppsStorageStatsManager.registerListener(mCallback1); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
96 mAppsStorageStatsManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
110 mAppsStorageStatsManager.registerListener(mCallback1); in callback_notLoaded_listenerOnDataLoadedCalled()
111 mAppsStorageStatsManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedCalled()
127 mAppsStorageStatsManager.registerListener(mCallback1); in callback_cachedCleared_listenerOnDataLoadedCalled()
128 mAppsStorageStatsManager.registerListener(mCallback2); in callback_cachedCleared_listenerOnDataLoadedCalled()
144 mAppsStorageStatsManager.registerListener(mCallback1); in callback_userDataCleared_listenerOnDataLoadedCalled()
145 mAppsStorageStatsManager.registerListener(mCallback2); in callback_userDataCleared_listenerOnDataLoadedCalled()
DStorageSettingsManagerTest.java84 mStorageSettingsManager.registerListener(mVolumeListener1); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
85 mStorageSettingsManager.registerListener(mVolumeListener2); in volumeSizeCallback_onLoadFinished_listenerOnSizeCalculatedCalled()
106 mStorageSettingsManager.registerListener(mVolumeListener1); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
107 mStorageSettingsManager.registerListener(mVolumeListener2); in appsStorageResult_unregisterListener_onlyOneListenerOnDataLoadedCalled()
128 mStorageSettingsManager.registerListener(mVolumeListener1); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
129 mStorageSettingsManager.registerListener(mVolumeListener2); in onReceivedSizes_storageResultNotLoaded_noListenersCalled()
147 mStorageSettingsManager.registerListener(mVolumeListener1); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
148 mStorageSettingsManager.registerListener(mVolumeListener2); in onReceivedSizes_volumeSizeNotLoaded_noListenersCalled()
/packages/services/Car/tests/carservice_test/src/com/android/car/
DCarDiagnosticManagerTest.java293 mCarDiagnosticManager.registerListener( in testLiveFrameEvent()
317 mCarDiagnosticManager.registerListener( in testMissingSensorRead()
351 mCarDiagnosticManager.registerListener( in testFuelSystemStatus()
374 mCarDiagnosticManager.registerListener( in testSecondaryAirStatus()
403 mCarDiagnosticManager.registerListener( in testIgnitionMonitors()
502 mCarDiagnosticManager.registerListener( in testFuelType()
525 mCarDiagnosticManager.registerListener( in testDiagnosticJson()
578 mCarDiagnosticManager.registerListener( in testMultipleListeners()
582 mCarDiagnosticManager.registerListener( in testMultipleListeners()
641 mCarDiagnosticManager.registerListener( in testFreezeFrameEvent()
[all …]
DCarSensorManagerTest.java152 mCarSensorManager.registerListener(listener, in testEvents()
246 mCarSensorManager.registerListener(listener, CarSensorManager.SENSOR_TYPE_IGNITION_STATE, in testIgnitionEvents()
288 mCarSensorManager.registerListener(listener, CarSensorManager.SENSOR_TYPE_GEAR, in testGear()
343 mCarSensorManager.registerListener(listener1, in testEventsWithMultipleListeners()
347 mCarSensorManager.registerListener(listener2, in testEventsWithMultipleListeners()
351 mCarSensorManager.registerListener(listener3, in testEventsWithMultipleListeners()
DCarDrivingRestrictionsTest.java93 mCarDrivingStateManager.registerListener(listener); in testDrivingStateChange()
94 mCarUxRManager.registerListener(listener); in testDrivingStateChange()
183 mCarDrivingStateManager.registerListener(listener); in testDrivingStateChangeForMalformedInputs()
184 mCarUxRManager.registerListener(listener); in testDrivingStateChangeForMalformedInputs()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/datausage/
DAppsNetworkStatsManagerTest.java106 mAppsNetworkStatsManager.registerListener(mCallback1); in callback_onLoadFinished_listenerOnDataLoadedCalled()
107 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_onLoadFinished_listenerOnDataLoadedCalled()
119 mAppsNetworkStatsManager.registerListener(mCallback1); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
120 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_unregisterListener_onlyOneListenerOnDataLoadedCalled()
133 mAppsNetworkStatsManager.registerListener(mCallback1); in callback_notLoaded_listenerOnDataLoadedNotCalled()
134 mAppsNetworkStatsManager.registerListener(mCallback2); in callback_notLoaded_listenerOnDataLoadedNotCalled()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationListItemManagerTest.java99 mApplicationListItemManager.registerListener(mAppListItemListener1); in onRebuildComplete_shouldNotifyRegisteredListener()
100 mApplicationListItemManager.registerListener(mAppListItemListener2); in onRebuildComplete_shouldNotifyRegisteredListener()
121 mApplicationListItemManager.registerListener(mAppListItemListener1); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
122 mApplicationListItemManager.registerListener(mAppListItemListener2); in onRebuildComplete_unRegisterOneListener_shouldNotifyRegisteredListener()
145 mApplicationListItemManager.registerListener(mAppListItemListener1); in onRebuildComplete_calledAgainImmediately_shouldNotRunSecondCallImmediately()
167 mApplicationListItemManager.registerListener(mAppListItemListener1); in onRebuildComplete_calledAgainImmediately_shouldRunSecondCallAfterUpdateInterval()
/packages/apps/Car/Messenger/tests/robotests/src/com/android/car/messenger/bluetooth/
DBluetoothMonitorTest.java36 mBluetoothMonitor.registerListener(mockBluetoothEventListener); in setUp()
50 assertThat(mBluetoothMonitor.registerListener(mockBluetoothEventListener)).isFalse(); in testRegisterListener()
52 assertThat(mBluetoothMonitor.registerListener(mockBluetoothEventListener)).isTrue(); in testRegisterListener()
54 assertThat(mBluetoothMonitor.registerListener(mockBluetoothEventListener)).isTrue(); in testRegisterListener()
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java138 mManager.registerListener(mCallback); in testListener_error()
146 mManager.registerListener(mCallback); in testListener_error()
158 mManager.registerListener(mCallback); in testListener_cleanupCompleted()
171 mManager.registerListener(mCallback); in testListener_preFinalizationCompleted()
192 mManager.registerListener(mCallback); in testListener_preFinalizationCompleted()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DSystemStateHelperTest.java178 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceOnEarCorrectlyDetected()
198 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithProxNotSensed()
219 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithWrongOrientation()
241 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithMissingSensor()
260 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsNotOnEarWithTimeout()
284 .registerListener(any(SensorEventListener.class), any(Sensor.class), anyInt()); in testDeviceIsOnEarWithMultiSensorInputs()
/packages/services/Car/car-lib/api/
Dlint-baseline.txt24 ExecutorRegistration: android.car.drivingstate.CarUxRestrictionsManager#registerListener(android.ca…
25 Registration methods should have overload that accepts delivery Executor: `registerListener`
26 ExecutorRegistration: android.car.hardware.CarSensorManager#registerListener(android.car.hardware.C…
27 Registration methods should have overload that accepts delivery Executor: `registerListener`
198 RegistrationName: android.car.drivingstate.CarUxRestrictionsManager#registerListener(android.car.dr…
199 Listener methods should be named add/remove; was registerListener
202 RegistrationName: android.car.hardware.CarSensorManager#registerListener(android.car.hardware.CarSe…
203 Listener methods should be named add/remove; was registerListener
214 SamShouldBeLast: android.car.hardware.CarSensorManager#registerListener(android.car.hardware.CarSen…
215 …s parameter 1, "listener", in android.car.hardware.CarSensorManager.registerListener) should be la…
Dsystem-lint-baseline.txt70 ExecutorRegistration: android.car.diagnostic.CarDiagnosticManager#registerListener(android.car.diag…
71 Registration methods should have overload that accepts delivery Executor: `registerListener`
72 ExecutorRegistration: android.car.drivingstate.CarDrivingStateManager#registerListener(android.car.…
73 Registration methods should have overload that accepts delivery Executor: `registerListener`
80 ExecutorRegistration: android.car.storagemonitoring.CarStorageMonitoringManager#registerListener(an…
81 Registration methods should have overload that accepts delivery Executor: `registerListener`
316 MissingNullability: android.car.diagnostic.CarDiagnosticManager#registerListener(android.car.diagno…
317 Missing nullability on parameter `listener` in method `registerListener`
466 MissingNullability: android.car.storagemonitoring.CarStorageMonitoringManager#registerListener(andr…
467 Missing nullability on parameter `listener` in method `registerListener`
[all …]
/packages/services/Car/car-lib/src/android/car/drivingstate/
DCarUxRestrictionsManager.java104 public void registerListener(@NonNull OnUxRestrictionsChangedListener listener) { in registerListener() method in CarUxRestrictionsManager
105 registerListener(listener, getDisplayId()); in registerListener()
111 public void registerListener(@NonNull OnUxRestrictionsChangedListener listener, int displayId) { in registerListener() method in CarUxRestrictionsManager
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/storagelifetime/
DStorageLifetimeFragment.java205 private void registerListener() { in registerListener() method in StorageLifetimeFragment
206 mStorageManager.registerListener(mIoListener); in registerListener()
221 registerListener(); in onResume()
/packages/apps/Camera2/src/com/android/camera/hardware/
DHeadingSensor.java81 mSensorManager.registerListener(this, mAccelerometerSensor, in activate()
85 mSensorManager.registerListener(this, mMagneticSensor, in activate()
/packages/services/Car/tests/CarLibTests/src/android/car/
DCarUxRestrictionsManagerTest.java98 mCarUxRestrictionsManager.registerListener(mListener); in isListenerRegistered_listenerSet_returnsTrue()
105 mCarUxRestrictionsManager.registerListener(mListener); in setUxRestrictions_listenerRegistered_listenerTriggered()
/packages/apps/TV/tuner/src/com/android/tv/tuner/source/
DTunerTsStreamer.java161 mEventDetector.registerListener(eventListener); in TunerTsStreamer()
320 public void registerListener(EventListener listener) { in registerListener() method in TunerTsStreamer
358 mEventDetector.registerListener(listener); in run()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DAdminIntegratedFlowPrepareManager.java99 public void registerListener(ProvisioningManagerCallback callback) { in registerListener() method in AdminIntegratedFlowPrepareManager
100 mHelper.registerListener(callback); in registerListener()
DProvisioningManager.java102 public void registerListener(ProvisioningManagerCallback callback) { in registerListener() method in ProvisioningManager
103 mHelper.registerListener(callback); in registerListener()
DAbstractProvisioningActivity.java109 getProvisioningManager().registerListener(this); in onResume()
180 getProvisioningManager().registerListener(this); in onNegativeButtonClick()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/diagnostic/
DDiagnosticTestFragment.java105 mDiagnosticManager.registerListener(mLiveListener, in resumeDiagnosticManager()
110 mDiagnosticManager.registerListener(mFreezeListener, in resumeDiagnosticManager()
/packages/services/Car/tests/vehiclehal_test/src/com/android/car/vehiclehal/test/
DCarDiagnosticTest.java106 diagnosticManager.registerListener(listner, in testDiagnosticEvents()
110 diagnosticManager.registerListener(listner, in testDiagnosticEvents()
/packages/services/Car/car-lib/src/android/car/storagemonitoring/
DCarStorageMonitoringManager.java262 public void registerListener(IoStatsListener listener) { in registerListener() method in CarStorageMonitoringManager
268 mService.registerListener(mListenerToService); in registerListener()
/packages/services/Telecomm/src/com/android/server/telecom/
DSystemStateHelper.java176 sm.registerListener(listener, grav, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar()
177 sm.registerListener(listener, proximity, SensorManager.SENSOR_DELAY_FASTEST); in isDeviceAtEar()
/packages/services/Car/tests/UxRestrictionsSample/src/com/google/android/car/uxr/sample/
DMainActivity.java118 mCarDrivingStateManager.registerListener(mDrvStateChangeListener); in onCreate()
123 mCarUxRestrictionsManager.registerListener(mUxRChangeListener); in onCreate()

123456