Searched refs:callbackList (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 464 final RemoteCallbackList<INetworkScoreCache> callbackList; in updateScores() local 467 callbackList = mScoreCaches.get(entry.getKey()); in updateScores() 468 isEmpty = callbackList == null in updateScores() 469 || callbackList.getRegisteredCallbackCount() == 0; in updateScores() 483 sendCacheUpdateCallback(consumer, Collections.singleton(callbackList)); in updateScores() 832 RemoteCallbackList<INetworkScoreCache> callbackList = mScoreCaches.get(networkType); in registerNetworkScoreCache() local 833 if (callbackList == null) { in registerNetworkScoreCache() 834 callbackList = new RemoteCallbackList<>(); in registerNetworkScoreCache() 835 mScoreCaches.put(networkType, callbackList); in registerNetworkScoreCache() 837 if (!callbackList.register(scoreCache, filterType)) { in registerNetworkScoreCache() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareImpl.java | 708 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/media/java/android/service/media/ |
D | MediaBrowserService.java | 587 List<Pair<IBinder, Bundle>> callbackList = in notifyChildrenChangedInternal() 589 if (callbackList != null) { in notifyChildrenChangedInternal() 590 for (Pair<IBinder, Bundle> callback : callbackList) { in notifyChildrenChangedInternal() 625 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(id); in addSubscription() local 626 if (callbackList == null) { in addSubscription() 627 callbackList = new ArrayList<>(); in addSubscription() 629 for (Pair<IBinder, Bundle> callback : callbackList) { in addSubscription() 635 callbackList.add(new Pair<>(token, options)); in addSubscription() 636 connection.subscriptions.put(id, callbackList); in addSubscription() 649 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(id); in removeSubscription() local [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 219 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/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImplTest.java | 90 Callback[] callbackList = new Callback[callbackCount]; in testAddCallbackRemoveCallback_concurrently() local 94 callbackList[cbIndex] = mock(Callback.class); in testAddCallbackRemoveCallback_concurrently() 97 final Callback mCallback = callbackList[i / 2]; in testAddCallbackRemoveCallback_concurrently()
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowser.java | 610 List<SubscriptionCallback> callbackList = sub.getCallbacks(); in onServiceConnected() 612 for (int i = 0; i < callbackList.size(); ++i) { in onServiceConnected() 614 mServiceBinder.addSubscription(id, callbackList.get(i).mToken, in onServiceConnected()
|