/packages/services/Car/service/src/com/android/car/ |
D | PerUserCarServiceHelper.java | 92 List<ServiceCallback> callbacks; in onReceive() local 108 callbacks = new ArrayList<>(mServiceCallbacks); in onReceive() 111 for (ServiceCallback callback : callbacks) { in onReceive() 128 List<ServiceCallback> callbacks; 136 callbacks = new ArrayList<>(mServiceCallbacks); 139 for (ServiceCallback callback : callbacks) { 147 List<ServiceCallback> callbacks; 153 callbacks = new ArrayList<>(mServiceCallbacks); 156 for (ServiceCallback callback : callbacks) {
|
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/ |
D | ImageLoader.java | 94 List<Map.Entry<Executor, Callback>> callbacks = mLoadCallbacks.get(uri); in loadImage() local 95 if (callbacks == null) { in loadImage() 96 callbacks = new LinkedList<>(); in loadImage() 97 mLoadCallbacks.put(uri, callbacks); in loadImage() 100 callbacks.add(new SimpleEntry<>(executor, callback)); in loadImage() 133 Set<Map.Entry<Executor, Callback>> callbacks; in run() local 140 callbacks = new ArraySet<>(mCallbacks); in run() 143 for (Map.Entry<Executor, Callback> callback : callbacks) { in run()
|
/packages/services/Car/car-lib/src/android/car/hardware/hvac/ |
D | CarHvacManager.java | 274 Collection<CarHvacEventCallback> callbacks; in handleOnChangeEvent() local 276 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 278 if (!callbacks.isEmpty()) { in handleOnChangeEvent() 279 for (CarHvacEventCallback l: callbacks) { in handleOnChangeEvent() 286 Collection<CarHvacEventCallback> callbacks; in handleOnErrorEvent() local 288 callbacks = new ArraySet<>(mCallbacks); in handleOnErrorEvent() 290 if (!callbacks.isEmpty()) { in handleOnErrorEvent() 291 for (CarHvacEventCallback l: callbacks) { in handleOnErrorEvent()
|
/packages/modules/DnsResolver/ |
D | DnsResolver.cpp | 27 bool resolv_init(const ResolverNetdCallbacks* callbacks) { in resolv_init() argument 41 gResNetdCallbacks.check_calling_permission = callbacks->check_calling_permission; in resolv_init() 42 gResNetdCallbacks.get_network_context = callbacks->get_network_context; in resolv_init() 43 gResNetdCallbacks.log = callbacks->log; in resolv_init() 45 gResNetdCallbacks.tagSocket = callbacks->tagSocket; in resolv_init() 46 gResNetdCallbacks.evaluate_domain_name = callbacks->evaluate_domain_name; in resolv_init()
|
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/Launcher3/src/com/android/launcher3/model/ |
D | BaseLoaderResults.java | 67 AllAppsList allAppsList, int pageToBindFirst, WeakReference<Callbacks> callbacks) { in BaseLoaderResults() argument 73 mCallbacks = callbacks == null ? new WeakReference<>(null) : callbacks; in BaseLoaderResults() 80 Callbacks callbacks = mCallbacks.get(); in bindWorkspace() local 83 if (callbacks == null) { in bindWorkspace() 105 ? mPageToBindFirst : callbacks.getCurrentWorkspaceScreen(); in bindWorkspace() 294 Callbacks callbacks = mCallbacks.get(); in executeCallbacksTask() local 295 if (callbacks != null) { in executeCallbacksTask() 296 task.execute(callbacks); in executeCallbacksTask()
|
D | BaseModelUpdateTask.java | 81 final Callbacks callbacks = mModel.getCallback(); in scheduleCallbackTask() local 84 if (callbacks == cb && cb != null) { in scheduleCallbackTask() 85 task.execute(callbacks); in scheduleCallbackTask() 106 scheduleCallbackTask(callbacks -> callbacks.bindDeepShortcutMap(shortcutMapCopy)); in bindDeepShortcuts()
|
D | PackageInstallStateChangedTask.java | 101 public void execute(Callbacks callbacks) { in execute() 102 callbacks.bindRestoreItemsChange(updates); in execute()
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
D | LauncherModel.java | 148 Callbacks callbacks = getCallback(); in addAndBindAddedWorkspaceItems() local 149 if (callbacks != null) { in addAndBindAddedWorkspaceItems() 150 callbacks.preAddApps(); in addAndBindAddedWorkspaceItems() 163 public void initialize(Callbacks callbacks) { in initialize() argument 166 mCallbacks = new WeakReference<>(callbacks); in initialize() 313 Callbacks callbacks = getCallback(); in forceReload() local 314 if (callbacks != null) { in forceReload() 316 synchronousBindPage = callbacks.getCurrentWorkspaceScreen(); in forceReload() 322 public boolean isCurrentCallbacks(Callbacks callbacks) { in isCurrentCallbacks() argument 323 return (mCallbacks != null && mCallbacks.get() == callbacks); in isCurrentCallbacks() [all …]
|
/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 | BrowseFragment.java | 174 public static BrowseFragment newInstance(Callbacks callbacks, ViewGroup container) { in newInstance() argument 176 return new BrowseFragment(callbacks, container, isSearchFragment); in newInstance() 185 static BrowseFragment newSearchInstance(Callbacks callbacks, ViewGroup container) { in newSearchInstance() argument 187 return new BrowseFragment(callbacks, container, isSearchFragment); in newSearchInstance() 220 private BrowseFragment(Callbacks callbacks, ViewGroup container, boolean isSearchFragment) { in BrowseFragment() argument 221 mCallbacks = callbacks; in BrowseFragment() 223 FragmentActivity activity = callbacks.getActivity(); in BrowseFragment()
|
/packages/services/Car/vehicle-hal-support-lib/src/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/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/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/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/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/Terminal/jni/ |
D | com_android_terminal_Terminal.cpp | 110 Terminal(jobject callbacks); 258 Terminal::Terminal(jobject callbacks) : in Terminal() argument 259 mCallbacks(callbacks), mRows(25), mCols(80), mKilled(false), in Terminal() 262 mCallbacks = env->NewGlobalRef(callbacks); in Terminal() 544 static jlong com_android_terminal_Terminal_nativeInit(JNIEnv* env, jclass clazz, jobject callbacks)… in com_android_terminal_Terminal_nativeInit() argument 545 return reinterpret_cast<jlong>(new Terminal(callbacks)); in com_android_terminal_Terminal_nativeInit()
|
/packages/apps/Launcher3/go/src/com/android/launcher3/model/ |
D | LoaderResults.java | 30 AllAppsList allAppsList, int pageToBindFirst, WeakReference<Callbacks> callbacks) { in LoaderResults() argument 31 super(app, dataModel, allAppsList, pageToBindFirst, callbacks); in LoaderResults()
|
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ |
D | ConnectedDeviceManager.java | 501 ThreadSafeCallbacks<DeviceCallback> callbacks = recipientCallbacks.get(recipientId); in unregisterDeviceCallback() local 502 if (callbacks == null) { in unregisterDeviceCallback() 506 callbacks.remove(callback); in unregisterDeviceCallback() 507 if (callbacks.size() == 0) { in unregisterDeviceCallback() 769 for (ThreadSafeCallbacks<DeviceCallback> callbacks : deviceCallbacks.values()) { in notifyAllDeviceCallbacks() 770 callbacks.invoke(notification); in notifyAllDeviceCallbacks()
|
/packages/services/Car/car-lib/src/android/car/hardware/cabin/ |
D | CarCabinManager.java | 441 Collection<CarCabinEventCallback> callbacks; in handleOnChangeEvent() local 443 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent() 445 for (CarCabinEventCallback l: callbacks) { in handleOnChangeEvent()
|
/packages/apps/Launcher3/src_shortcuts_overrides/com/android/launcher3/model/ |
D | LoaderResults.java | 34 AllAppsList allAppsList, int pageToBindFirst, WeakReference<Callbacks> callbacks) { in LoaderResults() argument 35 super(app, dataModel, allAppsList, pageToBindFirst, callbacks); in LoaderResults()
|
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/model/ |
D | BaseModelUpdateTaskTestCase.java | 68 public Callbacks callbacks; field in BaseModelUpdateTaskTestCase 77 callbacks = mock(Callbacks.class); in setUp() 84 when(model.getCallback()).thenReturn(callbacks); in setUp()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/ |
D | KeyInputHandler.java | 43 Callbacks<DocumentItemDetails> callbacks) { in KeyInputHandler() argument 47 mCallbacks = callbacks; in KeyInputHandler()
|
D | InputHandlers.java | 64 KeyInputHandler.Callbacks<DocumentItemDetails> callbacks = in createKeyHandler() local 114 return new KeyInputHandler(mSelectionHelper, mSelectionPredicate, callbacks); in createKeyHandler()
|
/packages/apps/Car/Notification/src/com/android/car/notification/ |
D | DismissAnimationHelper.java | 76 DismissAnimationHelper(Context context, DismissCallback callbacks) { in DismissAnimationHelper() argument 77 mCallBacks = callbacks; in DismissAnimationHelper()
|