Searched refs:callbackList (Results 1 – 9 of 9) sorted by relevance
/aosp12/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 …]
|
/aosp12/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 …]
|
/aosp12/frameworks/base/media/java/android/service/media/ |
H A D | MediaBrowserService.java | 588 List<Pair<IBinder, Bundle>> callbackList = in notifyChildrenChangedInternal() 590 if (callbackList != null) { in notifyChildrenChangedInternal() 591 for (Pair<IBinder, Bundle> callback : callbackList) { in notifyChildrenChangedInternal() 627 if (callbackList == null) { in addSubscription() 628 callbackList = new ArrayList<>(); in addSubscription() 630 for (Pair<IBinder, Bundle> callback : callbackList) { in addSubscription() 636 callbackList.add(new Pair<>(token, options)); in addSubscription() 637 connection.subscriptions.put(id, callbackList); in addSubscription() 651 if (callbackList != null) { in removeSubscription() 652 Iterator<Pair<IBinder, Bundle>> iter = callbackList.iterator(); in removeSubscription() [all …]
|
/aosp12/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A 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()
|
/aosp12/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
H A D | CastControllerImplTest.java | 91 Callback[] callbackList = new Callback[callbackCount]; in testAddCallbackRemoveCallback_concurrently() local 95 callbackList[cbIndex] = mock(Callback.class); in testAddCallbackRemoveCallback_concurrently() 98 final Callback mCallback = callbackList[i / 2]; in testAddCallbackRemoveCallback_concurrently()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
H A D | OverviewCommandHelper.java | 134 RunnableList callbackList = null; in launchTask() local 137 callbackList = taskView.launchTaskAnimated(); in launchTask() 140 if (callbackList != null) { in launchTask() 141 callbackList.add(() -> scheduleNextTask(cmd)); in launchTask()
|
/aosp12/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()
|
/aosp12/packages/apps/Launcher3/quickstep/src/com/android/quickstep/views/ |
H A D | TaskView.java | 705 RunnableList callbackList = new RunnableList(); in launchTaskAnimated() local 706 recentsView.addSideTaskLaunchCallback(callbackList); in launchTaskAnimated() 707 return callbackList; in launchTaskAnimated()
|
/aosp12/packages/apps/Launcher3/src/com/android/launcher3/ |
H A D | Workspace.java | 2119 final RunnableList callbackList = new RunnableList(); in onDrop() local 2122 /* onComplete= */ callbackList::executeAllAndDestroy, cell, in onDrop() 2128 () -> callbackList.add(onCompleteCallback))); in onDrop()
|