Home
last modified time | relevance | path

Searched refs:callbackList (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/core/java/android/hardware/location/
DGeofenceHardwareImpl.java708 ArrayList<IGeofenceHardwareMonitorCallback> callbackList;
714 callbackList = mCallbacks[event.getMonitoringType()];
715 if (callbackList != null) {
718 for (IGeofenceHardwareMonitorCallback c : callbackList) {
731 callbackList = mCallbacks[monitoringType];
732 if (callbackList == null) {
733 callbackList = new ArrayList<IGeofenceHardwareMonitorCallback>();
734 mCallbacks[monitoringType] = callbackList;
736 if (!callbackList.contains(callback)) callbackList.add(callback);
741 callbackList = mCallbacks[monitoringType];
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DCallbackRegistryTest.java219 ArrayList<Integer> callbackList = registry.copyListeners(); in testVeryDeepRemoveWhileNotifying() local
220 assertEquals(0, callbackList.size()); in testVeryDeepRemoveWhileNotifying()
238 ArrayList<Integer> callbackList = registry.copyListeners(); in testClear() local
239 assertEquals(0, callbackList.size()); in testClear()
266 ArrayList<Integer> callbackList = registry.copyListeners(); in testNestedClear() local
267 assertEquals(0, callbackList.size()); in testNestedClear()
/frameworks/data-binding/compiler/src/test/java/android/databinding/
DCallbackRegistryTest.java223 ArrayList<Integer> callbackList = registry.copyCallbacks(); in testVeryDeepRemoveWhileNotifying() local
224 assertEquals(0, callbackList.size()); in testVeryDeepRemoveWhileNotifying()
243 ArrayList<Integer> callbackList = registry.copyCallbacks(); in testClear() local
244 assertEquals(0, callbackList.size()); in testClear()
272 ArrayList<Integer> callbackList = registry.copyCallbacks(); in testNestedClear() local
273 assertEquals(0, callbackList.size()); in testNestedClear()