Searched refs:callbackList (Results 1 – 6 of 6) sorted by relevance
/aosp14/frameworks/base/services/core/java/com/android/server/ |
H A 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() 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() 848 if (callbackList == null || !callbackList.unregister(scoreCache)) { in unregisterNetworkScoreCache() 926 final int count = callbackList.beginBroadcast(); in sendCacheUpdateCallback() 930 callbackList.getBroadcastCookie(i)); in sendCacheUpdateCallback() [all …]
|
/aosp14/frameworks/base/core/java/android/hardware/location/ |
H A D | GeofenceHardwareImpl.java | 716 if (callbackList != null) { 732 callbackList = mCallbacks[monitoringType]; 733 if (callbackList == null) { 735 mCallbacks[monitoringType] = callbackList; 737 if (!callbackList.contains(callback)) callbackList.add(callback); 742 callbackList = mCallbacks[monitoringType]; 743 if (callbackList != null) { 744 callbackList.remove(callback); 750 callbackList = mCallbacks[msg.arg1]; 751 if (callbackList != null && callbackList.contains(callback)) { [all …]
|
/aosp14/frameworks/base/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 632 List<Pair<IBinder, Bundle>> callbackList = in notifyChildrenChangedInternal() 634 if (callbackList != null) { in notifyChildrenChangedInternal() 635 for (Pair<IBinder, Bundle> callback : callbackList) { in notifyChildrenChangedInternal() 671 if (callbackList == null) { in addSubscription() 672 callbackList = new ArrayList<>(); in addSubscription() 674 for (Pair<IBinder, Bundle> callback : callbackList) { in addSubscription() 680 callbackList.add(new Pair<>(token, options)); in addSubscription() 681 connection.subscriptions.put(id, callbackList); in addSubscription() 695 if (callbackList != null) { in removeSubscription() 696 Iterator<Pair<IBinder, Bundle>> iter = callbackList.iterator(); in removeSubscription() [all …]
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | CallbackRegistryTest.java | 220 ArrayList<Integer> callbackList = registry.copyListeners(); in testVeryDeepRemoveWhileNotifying() local 221 assertEquals(0, callbackList.size()); in testVeryDeepRemoveWhileNotifying() 239 ArrayList<Integer> callbackList = registry.copyListeners(); in testClear() local 240 assertEquals(0, callbackList.size()); in testClear() 267 ArrayList<Integer> callbackList = registry.copyListeners(); in testNestedClear() local 268 assertEquals(0, callbackList.size()); in testNestedClear()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A 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()
|
/aosp14/frameworks/base/media/java/android/media/browse/ |
H A 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()
|