Home
last modified time | relevance | path

Searched refs:callbacks (Results 1 – 25 of 49) sorted by relevance

12

/packages/apps/Launcher3/src/com/android/launcher3/model/
DLoaderResults.java68 AllAppsList allAppsList, int pageToBindFirst, WeakReference<Callbacks> callbacks) { in LoaderResults() argument
74 mCallbacks = callbacks == null ? new WeakReference<Callbacks>(null) : callbacks; in LoaderResults()
83 Callbacks callbacks = mCallbacks.get(); in bindWorkspace() local
86 if (callbacks == null) { in bindWorkspace()
106 ? mPageToBindFirst : callbacks.getCurrentWorkspaceScreen(); in bindWorkspace()
133 Callbacks callbacks = mCallbacks.get(); in bindWorkspace()
134 if (callbacks != null) { in bindWorkspace()
135 callbacks.clearPendingBinds(); in bindWorkspace()
136 callbacks.startBinding(); in bindWorkspace()
146 Callbacks callbacks = mCallbacks.get(); in bindWorkspace()
[all …]
DBaseModelUpdateTask.java80 final Callbacks callbacks = mModel.getCallback(); in scheduleCallbackTask() local
84 if (callbacks == cb && cb != null) { in scheduleCallbackTask()
85 task.execute(callbacks); in scheduleCallbackTask()
102 public void execute(Callbacks callbacks) { in bindUpdatedShortcuts()
103 callbacks.bindShortcutsChanged(updatedShortcuts, user); in bindUpdatedShortcuts()
113 public void execute(Callbacks callbacks) { in bindDeepShortcuts()
114 callbacks.bindDeepShortcutMap(shortcutMapCopy); in bindDeepShortcuts()
124 public void execute(Callbacks callbacks) { in bindUpdatedWidgets()
125 callbacks.bindAllWidgets(widgets); in bindUpdatedWidgets()
136 public void execute(Callbacks callbacks) { in deleteAndBindComponentsRemoved()
[all …]
DPackageInstallStateChangedTask.java91 public void execute(Callbacks callbacks) { in execute()
92 callbacks.bindPromiseAppProgressUpdated(updatedPromiseApp); in execute()
99 public void execute(Callbacks callbacks) { in execute()
100 callbacks.bindAppInfosRemoved(removed); in execute()
134 public void execute(Callbacks callbacks) { in execute()
135 callbacks.bindRestoreItemsChange(updates); in execute()
DPackageUpdatedTask.java166 public void execute(Callbacks callbacks) { in execute()
167 callbacks.bindAppsAddedOrUpdated(addedOrModified); in execute()
289 public void execute(Callbacks callbacks) { in execute()
290 callbacks.bindWidgetsRestored(widgets); in execute()
333 public void execute(Callbacks callbacks) { in execute()
334 callbacks.bindAppInfosRemoved(removedApps); in execute()
345 public void execute(Callbacks callbacks) { in execute()
346 callbacks.notifyWidgetProvidersChanged(); in execute()
DCacheDataUpdatedTask.java79 public void execute(Callbacks callbacks) { in execute()
80 callbacks.bindAppsAddedOrUpdated(updatedApps); in execute()
/packages/services/Car/car-lib/src/android/car/cluster/
DCarInstrumentClusterManager.java96 Set<Callback> callbacks = mCallbacksByCategory.get(category); in registerCallback() local
97 if (callbacks == null) { in registerCallback()
98 callbacks = new HashSet<>(1); in registerCallback()
99 mCallbacksByCategory.put(category, callbacks); in registerCallback()
101 if (!callbacks.add(callback)) { in registerCallback()
137 Set<Callback> callbacks = entry.getValue(); in unregisterCallback() local
138 if (callbacks.remove(callback) && callbacks.isEmpty()) { in unregisterCallback()
199 List<CarInstrumentClusterManager.Callback> callbacks = null; in handleMessage() local
202 callbacks = new ArrayList<>(mCallbacksByCategory.get(category)); in handleMessage()
205 Log.i(TAG, "handleMessage, callbacks: " + callbacks); in handleMessage()
[all …]
/packages/apps/Launcher2/src/com/android/launcher2/
DLauncherModel.java789 public void initialize(Callbacks callbacks) { in initialize() argument
791 mCallbacks = new WeakReference<Callbacks>(callbacks); in initialize()
872 Callbacks callbacks = mCallbacks.get(); in onReceive() local
873 if (callbacks != null) { in onReceive()
874 callbacks.bindSearchablesChanged(); in onReceive()
908 Callbacks callbacks = mCallbacks.get(); in startLoaderFromBackground() local
909 if (callbacks != null) { in startLoaderFromBackground()
911 if (!callbacks.setLoadOnResume()) { in startLoaderFromBackground()
1206 final Callbacks callbacks = mCallbacks.get(); in tryGetCallbacks() local
1207 if (callbacks != oldCallbacks) { in tryGetCallbacks()
[all …]
/packages/services/Car/service/src/com/android/car/
DPerUserCarServiceHelper.java92 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/services/Car/car-lib/src/android/car/hardware/hvac/
DCarHvacManager.java271 Collection<CarHvacEventCallback> callbacks; in handleOnChangeEvent() local
273 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent()
275 if (!callbacks.isEmpty()) { in handleOnChangeEvent()
276 for (CarHvacEventCallback l: callbacks) { in handleOnChangeEvent()
283 Collection<CarHvacEventCallback> callbacks; in handleOnErrorEvent() local
285 callbacks = new ArraySet<>(mCallbacks); in handleOnErrorEvent()
287 if (!callbacks.isEmpty()) { in handleOnErrorEvent()
288 for (CarHvacEventCallback l: callbacks) { in handleOnErrorEvent()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherModel.java307 public void initialize(Callbacks callbacks) { in initialize() argument
310 mCallbacks = new WeakReference<>(callbacks); in initialize()
438 Callbacks callbacks = getCallback(); in startLoaderFromBackground() local
439 if (callbacks != null) { in startLoaderFromBackground()
441 if (!callbacks.setLoadOnResume()) { in startLoaderFromBackground()
442 startLoader(callbacks.getCurrentWorkspaceScreen()); in startLoaderFromBackground()
447 public boolean isCurrentCallbacks(Callbacks callbacks) { in isCurrentCallbacks() argument
448 return (mCallbacks != null && mCallbacks.get() == callbacks); in isCurrentCallbacks()
534 public void execute(Callbacks callbacks) { in onInstallSessionCreated()
535 callbacks.bindAppsAddedOrUpdated(arrayList); in onInstallSessionCreated()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java83 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()
121 List<Callback> callbacks = mBackgroundCallbacks.get(uid); in handleUidToBackground() local
122 if (callbacks != null) { in handleUidToBackground()
123 pendingCallbacks = new ArrayList<Callback>(callbacks); in handleUidToBackground()
/packages/services/Car/vehicle-hal-support-lib/src/com/android/car/vehiclehal/test/
DMockedVehicleHal.java96 List<IVehicleCallback> callbacks = mSubscribers.get(value.prop); in injectEvent() local
98 + ". No listeners found", callbacks); in injectEvent()
99 for (IVehicleCallback callback : callbacks) { in injectEvent()
110 List<IVehicleCallback> callbacks = mSubscribers.get(propertyId); in injectError() local
112 + ". No listeners found", callbacks); in injectError()
113 for (IVehicleCallback callback : callbacks) { in injectError()
/packages/services/BuiltInPrintService/src/com/android/bips/ipp/
DCapabilitiesCache.java144 request.callbacks.add(onLocalPrinterCapabilities); in request()
160 request.callbacks.remove(onLocalPrinterCapabilities); in cancel()
161 if (request.callbacks.isEmpty()) { in cancel()
220 for (OnLocalPrinterCapabilities callback : request.callbacks) { in startNextRequest()
249 final Set<OnLocalPrinterCapabilities> callbacks = new HashSet<>(); field in CapabilitiesCache.Request
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp110 Terminal(jobject callbacks);
267 Terminal::Terminal(jobject callbacks) : in Terminal() argument
268 mCallbacks(callbacks), mRows(25), mCols(80), mKilled(false), in Terminal()
271 mCallbacks = env->NewGlobalRef(callbacks); in Terminal()
551 static jlong com_android_terminal_Terminal_nativeInit(JNIEnv* env, jclass clazz, jobject callbacks)… in com_android_terminal_Terminal_nativeInit() argument
552 return reinterpret_cast<jlong>(new Terminal(callbacks)); in com_android_terminal_Terminal_nativeInit()
/packages/services/Car/car-lib/src/android/car/hardware/cabin/
DCarCabinManager.java414 Collection<CarCabinEventCallback> callbacks; in handleOnChangeEvent() local
416 callbacks = new ArraySet<>(mCallbacks); in handleOnChangeEvent()
418 for (CarCabinEventCallback l: callbacks) { in handleOnChangeEvent()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DSecureConversationViewFragment.java99 final ContactLoaderCallbacks callbacks = getContactInfoSource(); in onPageFinished() local
100 callbacks.setSenders(emailAddresses); in onPageFinished()
101 getLoaderManager().restartLoader(CONTACT_LOADER, Bundle.EMPTY, callbacks); in onPageFinished()
DConversationPositionTracker.java52 public ConversationPositionTracker(Callbacks callbacks) { in ConversationPositionTracker() argument
53 mCallbacks = callbacks; in ConversationPositionTracker()
/packages/experimental/PrintService/src/foo/bar/printservice/
DMyPrintService.java486 final CustomPrinterIconCallback callbacks) { in onRequestCustomPrinterIcon() argument
491 args.arg2 = callbacks; in onRequestCustomPrinterIcon()
536 CustomPrinterIconCallback callbacks = (CustomPrinterIconCallback) args.arg2; in handleMessage() local
540 callbacks.onCustomPrinterIconLoaded(Icon.createWithBitmap( in handleMessage()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DEmlMessageViewFragment.java135 final ContactLoaderCallbacks callbacks = getContactInfoSource(); in onPageFinished() local
136 callbacks.setSenders(emailAddresses); in onPageFinished()
137 getLoaderManager().restartLoader(CONTACT_LOADER, Bundle.EMPTY, callbacks); in onPageFinished()
DConversationFooterView.java137 public void setConversationFooterCallbacks(ConversationFooterCallbacks callbacks) { in setConversationFooterCallbacks() argument
138 mCallbacks = callbacks; in setConversationFooterCallbacks()
DConversationViewHeader.java101 public void setCallbacks(ConversationViewHeaderCallbacks callbacks, in setCallbacks() argument
104 mCallbacks = callbacks; in setCallbacks()
/packages/apps/Launcher3/tests/src/com/android/launcher3/model/
DBaseModelUpdateTaskTestCase.java64 public Callbacks callbacks; field in BaseModelUpdateTaskTestCase
74 callbacks = mock(Callbacks.class); in setUp()
81 when(model.getCallback()).thenReturn(callbacks); in setUp()
/packages/apps/UnifiedEmail/src/com/android/mail/text/
DChangeLabelsSpan.java17 public ChangeLabelsSpan(ConversationViewHeaderCallbacks callbacks) { in ChangeLabelsSpan() argument
18 mCallbacks = callbacks; in ChangeLabelsSpan()
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DObjectCache.java45 public ObjectCache(Callback<T> callbacks, int maxSize) { in ObjectCache() argument
46 mCallback = callbacks; in ObjectCache()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java265 MessageUpdateCallbacks callbacks) throws MessagingException { in copyMessages() argument
291 if (callbacks == null) { in copyMessages()
311 callbacks.onMessageUidChange(m, newIdArray[i]); in copyMessages()
317 if (callbacks != null && !handledUidPlus) { in copyMessages()
328 callbacks.onMessageUidChange(m, newIdArray[0]); in copyMessages()

12