/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/data/ |
D | PermissionListenerMultiplexer.kt | 34 private val callbacks = mutableMapOf<Int, MutableList<PermissionChangeCallback>>() in <lambda>() constant 38 callbacks[uid]?.toList()?.forEach { callback -> in <lambda>() 51 val wasEmpty = callbacks.isEmpty() in <lambda>() 53 callbacks.getOrPut(uid, { mutableListOf() }).add(callback) in <lambda>() 61 if (!callbacks.contains(uid)) { in <lambda>() 65 if (!callbacks[uid]!!.remove(callback)) { in <lambda>() 69 if (callbacks[uid]!!.isEmpty()) { in <lambda>() 70 callbacks.remove(uid) in <lambda>() 73 if (callbacks.isEmpty()) { in <lambda>()
|
D | RoleListenerMultiplexer.kt | 34 private val callbacks = mutableMapOf<UserHandle, in <lambda>() constant 44 callbacksCopy = callbacks[user]?.get(roleName)?.toList() in <lambda>() 54 val userCallbacks = callbacks.getOrPut(user, { mutableMapOf() }) in <lambda>() 68 val userCallbacks = callbacks[user] ?: return in <lambda>()
|
/packages/apps/Car/Dialer/framework/fake/src/com/android/car/dialer/framework/ |
D | MockCallManager.java | 137 List<Call.Callback> callbacks = mCallbacks.get(call); in hold() local 138 for (Call.Callback callback : callbacks) { in hold() 151 List<Call.Callback> callbacks = mCallbacks.get(call); in unhold() local 152 for (Call.Callback callback : callbacks) { in unhold() 190 List<Call.Callback> callbacks = mCallbacks.get(call); in disconnect() local 191 for (Call.Callback callback : callbacks) { in disconnect() 257 List<Call.Callback> callbacks = mCallbacks.get(mPrimaryCall); in mergeCalls() local 258 for (Call.Callback callback : callbacks) { in mergeCalls() 264 List<Call.Callback> callbacks = mCallbacks.get(mSecondaryCall); in mergeCalls() local 265 for (Call.Callback callback : callbacks) { in mergeCalls() [all …]
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | MultiStateCallback.java | 81 LinkedList<Runnable> callbacks = mCallbacks.valueAt(i); in setState() local 82 while (!callbacks.isEmpty()) { in setState() 83 callbacks.pollFirst().run(); in setState() 130 final LinkedList<Runnable> callbacks; in runOnceAtState() local 132 callbacks = mCallbacks.get(stateMask); in runOnceAtState() 133 if (FeatureFlags.IS_STUDIO_BUILD && callbacks.contains(callback)) { in runOnceAtState() 137 callbacks = new LinkedList<>(); in runOnceAtState() 138 mCallbacks.put(stateMask, callbacks); in runOnceAtState() 140 callbacks.add(callback); in runOnceAtState()
|
/packages/services/Car/service/src/com/android/car/ |
D | PerUserCarServiceHelper.java | 84 List<ServiceCallback> callbacks; 95 callbacks = new ArrayList<>(mServiceCallbacks); 98 for (ServiceCallback callback : callbacks) { 115 List<ServiceCallback> callbacks; 123 callbacks = new ArrayList<>(mServiceCallbacks); 126 for (ServiceCallback callback : callbacks) { 134 List<ServiceCallback> callbacks; 140 callbacks = new ArrayList<>(mServiceCallbacks); 143 for (ServiceCallback callback : callbacks) {
|
/packages/modules/DnsResolver/ |
D | DnsResolver.cpp | 29 bool resolv_init(const ResolverNetdCallbacks* callbacks) { in resolv_init() argument 38 gResNetdCallbacks.check_calling_permission = callbacks->check_calling_permission; in resolv_init() 39 gResNetdCallbacks.get_network_context = callbacks->get_network_context; in resolv_init() 40 gResNetdCallbacks.log = callbacks->log; in resolv_init() 42 gResNetdCallbacks.tagSocket = callbacks->tagSocket; in resolv_init() 43 gResNetdCallbacks.evaluate_domain_name = callbacks->evaluate_domain_name; in resolv_init()
|
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 282 Collection<CarHvacEventCallback> callbacks; in handleOnChangeEvent() local 284 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 286 if (!callbacks.isEmpty()) { in handleOnChangeEvent() 287 for (CarHvacEventCallback l: callbacks) { in handleOnChangeEvent() 294 Collection<CarHvacEventCallback> callbacks; in handleOnErrorEvent() local 296 callbacks = new ArraySet<>(mCallbacks); in handleOnErrorEvent() 298 if (!callbacks.isEmpty()) { in handleOnErrorEvent() 299 for (CarHvacEventCallback l: callbacks) { in handleOnErrorEvent()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | ImageLoader.java | 115 List<Map.Entry<Executor, Callback>> callbacks = mLoadCallbacks.get(uri); in loadImage() local 116 if (callbacks == null) { in loadImage() 117 callbacks = new LinkedList<>(); in loadImage() 118 mLoadCallbacks.put(uri, callbacks); in loadImage() 121 callbacks.add(new SimpleEntry<>(executor, callback)); in loadImage() 165 Set<Map.Entry<Executor, Callback>> callbacks; in run() local 172 callbacks = new ArraySet<>(mCallbacks); in run() 175 for (Map.Entry<Executor, Callback> callback : callbacks) { in run()
|
/packages/apps/Nfc/src/com/android/nfc/ |
D | ForegroundUtils.java | 83 List<Callback> callbacks = mBackgroundCallbacks.get(uid, new ArrayList<Callback>()); in registerUidToBackgroundCallback() local 84 callbacks.add(callback); in registerUidToBackgroundCallback() 85 mBackgroundCallbacks.put(uid, callbacks); in registerUidToBackgroundCallback() 131 List<Callback> callbacks = mBackgroundCallbacks.get(uid); in handleUidToBackground() local 132 if (callbacks != null) { in handleUidToBackground() 133 pendingCallbacks = new ArrayList<Callback>(callbacks); in handleUidToBackground()
|
/packages/apps/Car/Media/src/com/android/car/media/ |
D | BrowseViewController.java | 134 static BrowseViewController newBrowseController(Callbacks callbacks, ViewGroup container, in newBrowseController() argument 137 return new BrowseViewController(callbacks, container, parentItem, mediaItems, in newBrowseController() 142 static BrowseViewController newSearchResultsController(Callbacks callbacks, ViewGroup container, in newSearchResultsController() argument 144 return new BrowseViewController(callbacks, container, null, mediaItems, 0, 0, true); in newSearchResultsController() 152 static BrowseViewController newRootController(Callbacks callbacks, ViewGroup container, in newRootController() argument 154 return new BrowseViewController(callbacks, container, null, mediaItems, 0, 0, false); in newRootController() 158 private BrowseViewController(Callbacks callbacks, ViewGroup container, in BrowseViewController() argument 161 mCallbacks = callbacks; in BrowseViewController() 184 FragmentActivity activity = callbacks.getActivity(); in BrowseViewController()
|
/packages/apps/QuickAccessWallet/src/com/android/systemui/plugin/globalactions/wallet/ |
D | WalletPluginService.java | 71 GlobalActionsPanelPlugin.Callbacks callbacks, boolean deviceLocked) { in onPanelShown() argument 72 return onPanelShown(callbacks, deviceLocked, QuickAccessWalletClient.create(mSysuiContext)); in onPanelShown() 77 GlobalActionsPanelPlugin.Callbacks callbacks, in onPanelShown() argument 86 mSysuiContext, mPluginContext, client, callbacks, isDeviceLocked); in onPanelShown()
|
/packages/services/Car/vehicle-hal-support-lib/test/com/android/car/vehiclehal/test/ |
D | MockedVehicleHal.java | 97 List<IVehicleCallback> callbacks = mSubscribers.get(value.prop); in injectEvent() local 99 + ". No listeners found", callbacks); in injectEvent() 109 for (IVehicleCallback callback: callbacks) { in injectEvent() 124 List<IVehicleCallback> callbacks = mSubscribers.get(propertyId); in injectError() local 126 + ". No listeners found", callbacks); in injectError() 127 for (IVehicleCallback callback : callbacks) { in injectError()
|
/packages/modules/DnsResolver/tests/ |
D | resolv_callback_unit_test.cpp | 76 ResolverNetdCallbacks callbacks = { in initDnsResolverCallbacks() local 86 resolv_init(&callbacks); in initDnsResolverCallbacks() 90 ResolverNetdCallbacks callbacks = { in resetDnsResolverCallbacks() local 97 resolv_init(&callbacks); in resetDnsResolverCallbacks()
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/support/tis/ |
D | SimpleSessionManagerTest.java | 88 public TifSession create(TifSessionCallbacks callbacks, String inputId) { in create() argument 89 return new TestTifSession(callbacks); in create() 95 private TestTifSession(TifSessionCallbacks callbacks) { in TestTifSession() argument 96 super(callbacks); in TestTifSession()
|
/packages/apps/Car/DebuggingRestrictionController/server/functions/ |
D | .eslintrc.json | 35 // Warn if no return statements in callbacks of array methods 101 // Enforce return statements in callbacks of array methods 104 // Require error handling in callbacks 110 // Prefer using arrow functions for callbacks
|
/packages/apps/Launcher3/src/com/android/launcher3/widget/ |
D | CachingWidgetPreviewLoader.java | 189 ArraySet<WidgetPreviewLoadedCallback> callbacks = new ArraySet<>(); in loadPreview() local 190 callbacks.add(callback); in loadPreview() 194 new CacheResult.Loading(delegateCancellationSignal, callbacks)); in loadPreview() 247 @NonNull Set<WidgetPreviewLoadedCallback> callbacks) { in Loading() argument 249 mCallbacks = callbacks; in Loading()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/ |
D | ViewAutoScroller.java | 36 public ViewAutoScroller(ScrollHost scrollHost, ScrollerCallbacks callbacks) { in ViewAutoScroller() argument 38 assert callbacks != null; in ViewAutoScroller() 41 mCallbacks = callbacks; in ViewAutoScroller()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 314 public void removeCallbacks(Callbacks callbacks) { in removeCallbacks() argument 317 if (mCallbacksList.remove(callbacks)) { in removeCallbacks() 330 public boolean addCallbacksAndLoad(Callbacks callbacks) { in addCallbacksAndLoad() argument 332 addCallbacks(callbacks); in addCallbacksAndLoad() 341 public void addCallbacks(Callbacks callbacks) { in addCallbacks() argument 344 mCallbacksList.add(callbacks); in addCallbacks() 563 void execute(Callbacks callbacks); in execute() argument
|
/packages/modules/Virtualization/virtmanager/src/ |
D | crosvm.rs | 48 pub callbacks: VirtualMachineCallbacks, field 67 callbacks: Default::default(), in new() 106 self.callbacks.callback_on_died(self.cid); in monitor()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | NetworkAgentTest.kt | 515 val callbacks = thresholds.map { strength -> in testSignalStrengthThresholds() constant 531 callbacks.forEach { it.assertNoCallback(NO_CALLBACK_TIMEOUT) } in testSignalStrengthThresholds() 535 callbacks[0].expectAvailableCallbacks(agent.network!!) in testSignalStrengthThresholds() 536 callbacks[1].assertNoCallback(NO_CALLBACK_TIMEOUT) in testSignalStrengthThresholds() 537 callbacks[2].assertNoCallback(NO_CALLBACK_TIMEOUT) in testSignalStrengthThresholds() 541 callbacks[0].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 80 } in testSignalStrengthThresholds() 542 callbacks[1].expectAvailableCallbacks(agent.network!!) in testSignalStrengthThresholds() 543 callbacks[2].expectAvailableCallbacks(agent.network!!) in testSignalStrengthThresholds() 547 callbacks[0].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 55 } in testSignalStrengthThresholds() 548 callbacks[1].expectCapabilitiesThat(agent.network!!) { it.signalStrength == 55 } in testSignalStrengthThresholds() [all …]
|
/packages/services/Car/car-lib/src/android/car/hardware/ |
D | CarVendorExtensionManager.java | 60 Collection<CarVendorExtensionCallback> callbacks; in handleOnChangeEvent() local 62 callbacks = new ArrayList<>(mCallbacks); in handleOnChangeEvent() 64 for (CarVendorExtensionCallback l: callbacks) { in handleOnChangeEvent()
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/ |
D | MediaDb.java | 506 private void addUpdateCallback(@NonNull Set<UpdateCallback> callbacks, in addUpdateCallback() argument 508 if (!callbacks.add(callback)) { in addUpdateCallback() 510 callbacks); in addUpdateCallback() 514 private void removeUpdateCallback(@NonNull Set<UpdateCallback> callbacks, in removeUpdateCallback() argument 516 if (!callbacks.remove(callback)) { in removeUpdateCallback() 518 callbacks); in removeUpdateCallback()
|
/packages/apps/Launcher3/go/src/com/android/launcher3/model/ |
D | LoaderResults.java | 30 AllAppsList allAppsList, Callbacks[] callbacks) { in LoaderResults() argument 31 super(app, dataModel, allAppsList, callbacks, MAIN_EXECUTOR); in LoaderResults()
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | LoaderResults.java | 35 AllAppsList allAppsList, Callbacks[] callbacks) { in LoaderResults() argument 36 super(app, dataModel, allAppsList, callbacks, MAIN_EXECUTOR); in LoaderResults()
|
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
D | CarCabinManager.java | 444 Collection<CarCabinEventCallback> callbacks; in handleOnChangeEvent() local 446 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 448 for (CarCabinEventCallback l: callbacks) { in handleOnChangeEvent()
|