Searched refs:callbackList (Results 1 – 7 of 7) sorted by relevance
/frameworks/base/services/core/java/com/android/server/ |
D | NetworkScoreService.java | 461 final RemoteCallbackList<INetworkScoreCache> callbackList; in updateScores() local 464 callbackList = mScoreCaches.get(entry.getKey()); in updateScores() 465 isEmpty = callbackList == null in updateScores() 466 || callbackList.getRegisteredCallbackCount() == 0; in updateScores() 480 sendCacheUpdateCallback(consumer, Collections.singleton(callbackList)); in updateScores() 822 RemoteCallbackList<INetworkScoreCache> callbackList = mScoreCaches.get(networkType); in registerNetworkScoreCache() local 823 if (callbackList == null) { in registerNetworkScoreCache() 824 callbackList = new RemoteCallbackList<>(); in registerNetworkScoreCache() 825 mScoreCaches.put(networkType, callbackList); in registerNetworkScoreCache() 827 if (!callbackList.register(scoreCache, filterType)) { in registerNetworkScoreCache() [all …]
|
/frameworks/base/core/java/android/hardware/location/ |
D | GeofenceHardwareImpl.java | 709 ArrayList<IGeofenceHardwareMonitorCallback> callbackList; 715 callbackList = mCallbacks[event.getMonitoringType()]; 716 if (callbackList != null) { 719 for (IGeofenceHardwareMonitorCallback c : callbackList) { 732 callbackList = mCallbacks[monitoringType]; 733 if (callbackList == null) { 734 callbackList = new ArrayList<IGeofenceHardwareMonitorCallback>(); 735 mCallbacks[monitoringType] = callbackList; 737 if (!callbackList.contains(callback)) callbackList.add(callback); 742 callbackList = mCallbacks[monitoringType]; [all …]
|
/frameworks/base/media/java/android/service/media/ |
D | MediaBrowserService.java | 712 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(parentId); in notifyChildrenChangeOnHandler() local 713 if (callbackList != null) { in notifyChildrenChangeOnHandler() 714 for (Pair<IBinder, Bundle> callback : callbackList) { in notifyChildrenChangeOnHandler() 735 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(id); in addSubscriptionOnHandler() local 736 if (callbackList == null) { in addSubscriptionOnHandler() 737 callbackList = new ArrayList<>(); in addSubscriptionOnHandler() 739 for (Pair<IBinder, Bundle> callback : callbackList) { in addSubscriptionOnHandler() 745 callbackList.add(new Pair<>(token, options)); in addSubscriptionOnHandler() 746 connection.subscriptions.put(id, callbackList); in addSubscriptionOnHandler() 822 List<Pair<IBinder, Bundle>> callbackList = connection.subscriptions.get(id); in removeSubscriptionOnHandler() local [all …]
|
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | CallbackRegistryTest.java | 228 ArrayList<Integer> callbackList = registry.copyListeners(); in testVeryDeepRemoveWhileNotifying() local 229 assertEquals(0, callbackList.size()); in testVeryDeepRemoveWhileNotifying() 248 ArrayList<Integer> callbackList = registry.copyListeners(); in testClear() local 249 assertEquals(0, callbackList.size()); in testClear() 277 ArrayList<Integer> callbackList = registry.copyListeners(); in testNestedClear() local 278 assertEquals(0, callbackList.size()); in testNestedClear()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | CastControllerImplTest.java | 92 Callback[] callbackList = new Callback[callbackCount]; in testAddCallbackRemoveCallback_concurrently() local 96 callbackList[cbIndex] = mock(Callback.class); in testAddCallbackRemoveCallback_concurrently() 99 final Callback mCallback = callbackList[i / 2]; in testAddCallbackRemoveCallback_concurrently()
|
/frameworks/base/media/java/android/media/browse/ |
D | MediaBrowser.java | 609 List<SubscriptionCallback> callbackList = sub.getCallbacks(); in onServiceConnected() 611 for (int i = 0; i < callbackList.size(); ++i) { in onServiceConnected() 613 mServiceBinder.addSubscription(id, callbackList.get(i).mToken, in onServiceConnected()
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationManagerService.java | 4868 RemoteCallbackList<ICallNotificationEventCallback> callbackList = 4871 if (callbackList.register(listener)) { 4872 callbacksForPackage.put(userId, callbackList); 4921 RemoteCallbackList<ICallNotificationEventCallback> callbackList = 4923 if (callbackList == null) { 4926 if (!callbackList.unregister(listener)) { 12454 final RemoteCallbackList<ICallNotificationEventCallback> callbackList, 12457 if (callbackList != null) { 12458 int numCallbacks = callbackList.beginBroadcast(); 12462 callbackList.getBroadcastItem(i) [all …]
|