Home
last modified time | relevance | path

Searched refs:callback (Results 1 – 25 of 98) sorted by relevance

1234

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java243 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
246 service.registerClient(uuid.getUuid(), callback); in registerClient()
378 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
381 service.registerServer(uuid.getUuid(), callback); in registerServer()
501 app.callback.onScanResult(address, rssi, adv_data); in onScanResult()
512 app.callback.onScanResult(address, rssi, adv_data); in onScanResult()
531 app.callback.onClientRegistered(status, clientIf); in onClientRegistered()
543 app.callback.onClientConnectionState(status, clientIf, true, address); in onConnected()
556 app.callback.onClientConnectionState(status, clientIf, false, address); in onDisconnected()
578 app.callback.onGetService(address, srvcType, srvcInstId, in onSearchResult()
[all …]
DContextMap.java65 T callback; field in ContextMap.App
73 App(UUID uuid, T callback) { in App() argument
75 this.callback = callback; in App()
83 IBinder binder = ((IInterface)callback).asBinder(); in linkToDeath()
97 IBinder binder = ((IInterface)callback).asBinder(); in unlinkToDeath()
115 void add(UUID uuid, T callback) { in add() argument
117 mApps.add(new App(uuid, callback)); in add()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothEventManager.java112 void registerCallback(BluetoothCallback callback) { in registerCallback() argument
114 mCallbacks.add(callback); in registerCallback()
119 void unregisterCallback(BluetoothCallback callback) { in unregisterCallback() argument
121 mCallbacks.remove(callback); in unregisterCallback()
164 for (BluetoothCallback callback : mCallbacks) { in onReceive()
165 callback.onBluetoothStateChanged(state); in onReceive()
182 for (BluetoothCallback callback : mCallbacks) { in onReceive()
183 callback.onScanningStateChanged(mStarted); in onReceive()
216 for (BluetoothCallback callback : mCallbacks) { in dispatchDeviceAdded()
217 callback.onDeviceAdded(cachedDevice); in dispatchDeviceAdded()
[all …]
DCachedBluetoothDevice.java561 void registerCallback(Callback callback) { in registerCallback() argument
563 mCallbacks.add(callback); in registerCallback()
567 void unregisterCallback(Callback callback) { in unregisterCallback() argument
569 mCallbacks.remove(callback); in unregisterCallback()
575 for (Callback callback : mCallbacks) { in dispatchAttributesChanged()
576 callback.onDeviceAttributesChanged(); in dispatchAttributesChanged()
/packages/apps/Mms/src/com/android/mms/util/
DThumbnailManager.java107 final ItemLoadedCallback<ImageLoaded> callback) { in getThumbnail() argument
108 return getThumbnail(uri, false, callback); in getThumbnail()
119 final ItemLoadedCallback<ImageLoaded> callback) { in getVideoThumbnail() argument
120 return getThumbnail(uri, true, callback); in getVideoThumbnail()
124 final ItemLoadedCallback<ImageLoaded> callback) { in getThumbnail() argument
134 final boolean callbackRequired = (callback != null); in getThumbnail()
138 thumbnail + " callback: " + callback + " thumbnailExists: " + in getThumbnail()
147 callback.onItemLoaded(imageLoaded, null); in getThumbnail()
153 addCallback(uri, callback); in getThumbnail()
166 cancelCallback(callback); in getThumbnail()
[all …]
DPduLoaderManager.java75 final ItemLoadedCallback<PduLoaded> callback) { in getPdu() argument
93 final boolean callbackRequired = (callback != null); in getPdu()
98 callback.onItemLoaded(pduLoaded, null); in getPdu()
104 addCallback(uri, callback); in getPdu()
116 cancelCallback(callback); in getPdu()
201 for (final ItemLoadedCallback<PduLoaded> callback : asList(callbacks)) { in run()
203 Log.d(TAG, "Invoking pdu callback " + callback); in run()
206 callback.onItemLoaded(pduLoaded, resultException); in run()
DBackgroundLoaderManager.java107 public boolean addCallback(Uri uri, ItemLoadedCallback callback) { in addCallback() argument
109 Log.d(TAG, "Adding image callback " + callback); in addCallback()
114 if (callback == null) { in addCallback()
122 callbacks.add(callback); in addCallback()
126 public void cancelCallback(ItemLoadedCallback callback) { in cancelCallback() argument
128 Log.d(TAG, "Cancelling image callback " + callback); in cancelCallback()
132 callbacks.remove(callback); in cancelCallback()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepServer.java60 public SnepServer(Callback callback) { in SnepServer() argument
61 mCallback = callback; in SnepServer()
69 public SnepServer(String serviceName, int serviceSap, Callback callback) { in SnepServer() argument
70 mCallback = callback; in SnepServer()
78 public SnepServer(Callback callback, int miu, int rwSize) { in SnepServer() argument
79 mCallback = callback; in SnepServer()
87 SnepServer(String serviceName, int serviceSap, int fragmentLength, Callback callback) { in SnepServer() argument
88 mCallback = callback; in SnepServer()
140 static boolean handleRequest(SnepMessenger messenger, Callback callback) throws IOException { in handleRequest() argument
159 messenger.sendMessage(callback.doGet(request.getAcceptableLength(), in handleRequest()
[all …]
/packages/apps/Gallery/src/com/android/camera/
DImageGetter.java102 private Runnable callback(final int position, final int offset, in callback() method in ImageGetter.ImageGetterRunnable
180 Runnable cb = callback(mCurrentPosition, offset,
216 Runnable cb = callback(mCurrentPosition, offset,
298 public void postGetterCallback(Runnable callback) {
299 postDelayedGetterCallback(callback, 0);
302 public void postDelayedGetterCallback(Runnable callback, long delay) {
303 if (callback == null) {
308 message.obj = callback;
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java341 IBluetoothHealthCallback callback) { in registerAppConfiguration() argument
344 return service.registerAppConfiguration(config, callback); in registerAppConfiguration()
401 IBluetoothHealthCallback callback) { in registerAppConfiguration() argument
408 mApps.put(config, new AppInfo(callback)); in registerAppConfiguration()
512 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback; in callStatusCallback() local
513 if (callback == null) { in callStatusCallback()
518 callback.onHealthAppConfigurationStatusChange(config, status); in callStatusCallback()
605 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback; in callHealthChannelCallback() local
606 if (callback == null) { in callHealthChannelCallback()
612 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id); in callHealthChannelCallback()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java132 for (Runnable callback : mTZCallbacks) { in onQueryComplete()
133 if (callback != null) { in onQueryComplete()
134 callback.run(); in onQueryComplete()
269 public String getTimeZone(Context context, Runnable callback) { in getTimeZone() argument
290 mTZCallbacks.add(callback); in getTimeZone()
306 public void forceDBRequery(Context context, Runnable callback) { in forceDBRequery() argument
309 mTZCallbacks.add(callback); in forceDBRequery()
313 getTimeZone(context, callback); in forceDBRequery()
DContactsAsyncHelper.java73 public Runnable callback; field in ContactsAsyncHelper.WorkerArgs
207 args.callback = run; in retrieveContactPhotoAsync()
245 if (args.callback != null) { in handleMessage()
246 args.callback.run(); in handleMessage()
/packages/apps/Gallery2/src/com/android/photos/data/
DMediaCache.java118 public NotifyOriginalReady(OriginalReady callback) { in NotifyOriginalReady() argument
119 mCallback = callback; in NotifyOriginalReady()
144 public NotifyImageReady(ImageReady callback) { in NotifyImageReady() argument
145 mCallback = callback; in NotifyImageReady()
604 private void addNotification(NotifyReady callback, File file) { in addNotification() argument
606 callback.setFile(file); in addNotification()
608 mCallbacks.add(callback); in addNotification()
616 private void addNotification(NotifyImageReady callback, byte[] bytes) { in addNotification() argument
617 callback.setBytes(bytes); in addNotification()
619 mCallbacks.add(callback); in addNotification()
/packages/apps/PhoneCommon/src/com/android/phone/common/
DCallLogAsync.java119 OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallArgs() argument
121 this.callback = callback; in GetLastOutgoingCallArgs()
124 public final OnLastOutgoingCallComplete callback; field in CallLogAsync.GetLastOutgoingCallArgs
147 return new GetLastOutgoingCallTask(args.callback).execute(args); in getLastOutgoingCall()
200 public GetLastOutgoingCallTask(OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallTask() argument
201 mCallback = callback; in GetLastOutgoingCallTask()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/tools/
DSaveCopyTask.java72 private final Callback callback; field in SaveCopyTask
76 public SaveCopyTask(Context context, Uri sourceUri, File destination, Callback callback) { in SaveCopyTask() argument
79 this.callback = callback; in SaveCopyTask()
224 if (callback != null) { in onPostExecute()
225 callback.onComplete(result); in onPostExecute()
230 ContentResolverQueryCallback callback) { in querySource() argument
237 callback.onCursorResult(cursor); in querySource()
/packages/apps/Email/src/com/android/email/
DThrottle.java72 public Throttle(String name, Runnable callback, Handler handler) { in Throttle() argument
73 this(name, callback, handler, DEFAULT_MIN_TIMEOUT, DEFAULT_MAX_TIMEOUT); in Throttle()
77 public Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
79 this(name, callback, handler, minTimeout, maxTimeout, Clock.INSTANCE, TIMER); in Throttle()
83 /* package */ Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
89 mCallback = callback; in Throttle()
/packages/apps/Contacts/src/com/android/contacts/interactions/
DTestLoaderManager.java184 public <D> Loader<D> initLoader(final int id, Bundle args, final LoaderCallbacks<D> callback) { in initLoader() argument
188 return callback.onCreateLoader(id, args); in initLoader()
193 callback.onLoadFinished(loader, data); in initLoader()
201 callback.onLoaderReset(loader); in initLoader()
207 public <D> Loader<D> restartLoader(int id, Bundle args, LoaderCallbacks<D> callback) {
208 return mDelegate.restartLoader(id, args, callback);
/packages/apps/Browser/tests/src/com/android/browser/
DTestWebChromeClient.java73 public void onShowCustomView(View view, CustomViewCallback callback) { in onShowCustomView() argument
74 mWrappedClient.onShowCustomView(view, callback); in onShowCustomView()
151 GeolocationPermissions.Callback callback) { in onGeolocationPermissionsShowPrompt() argument
152 mWrappedClient.onGeolocationPermissionsShowPrompt(origin, callback); in onGeolocationPermissionsShowPrompt()
194 public void getVisitedHistory(ValueCallback<String[]> callback) { in getVisitedHistory() argument
195 mWrappedClient.getVisitedHistory(callback); in getVisitedHistory()
/packages/apps/Browser/src/com/android/browser/
DTab.java837 WebChromeClient.CustomViewCallback callback) {
840 onShowCustomView(view, activity.getRequestedOrientation(), callback);
846 WebChromeClient.CustomViewCallback callback) {
848 requestedOrientation, callback);
905 GeolocationPermissions.Callback callback) {
907 getGeolocationPermissionsPrompt().show(origin, callback);
1006 public void getVisitedHistory(final ValueCallback<String[]> callback) {
1007 mWebViewController.getVisitedHistory(callback);
1849 SaveCallback callback = new SaveCallback(); in saveViewState() local
1854 synchronized (callback) { in saveViewState()
[all …]
/packages/apps/Mms/src/com/android/mms/ui/
DMessageUtils.java713 final Runnable callback) { in handleReadReport() argument
749 if (callback != null) { in handleReadReport()
750 callback.run(); in handleReadReport()
771 if (callback != null) { in handleReadReport()
772 callback.run(); in handleReadReport()
781 if (callback != null) { in handleReadReport()
782 callback.run(); in handleReadReport()
791 if (callback != null) { in handleReadReport()
792 callback.run(); in handleReadReport()
/packages/apps/Nfc/src/com/android/nfc/echoserver/
DEchoServer.java107 final WriteCallback callback; field in EchoServer.EchoMachine
112 EchoMachine(WriteCallback callback, boolean dumpWhenFull) { in EchoMachine() argument
113 this.callback = callback; in EchoMachine()
162 callback.write(dataQueue.remove()); in handleMessage()
/packages/apps/Email/src/com/android/email/activity/
DMailboxListFragment.java455 public void setCallback(Callback callback) { in setCallback() argument
456 mCallback = (callback == null) ? EmptyCallback.INSTANCE : callback; in setCallback()
581 FindParentMailboxTask.ResultCallback callback = new FindParentMailboxTask.ResultCallback() { in navigateUp() local
590 getEnableHighlight(), mParentMailboxId, mHighlightedMailboxId, callback in navigateUp()
637 long highlightedMailboxId, ResultCallback callback) { in FindParentMailboxTask() argument
644 mCallback = callback; in FindParentMailboxTask()
DInsertQuickResponseDialog.java70 final Callback callback; in newInstance() local
73 callback = (Callback) callbackFragment; in newInstance()
92 final Callback callback; in onCreateDialog() local
94 callback = (Callback) getActivity(); in onCreateDialog()
DMessageOrderManager.java126 public MessageOrderManager(Context context, MessageListContext listContext, Callback callback) { in MessageOrderManager() argument
127 this(context, listContext, callback, new DelayedOperations(Utility.getMainThreadHandler())); in MessageOrderManager()
131 MessageOrderManager(Context context, MessageListContext listContext, Callback callback, in MessageOrderManager() argument
138 mCallback = new PostingCallback(callback); in MessageOrderManager()
/packages/apps/Email/src/com/android/email/service/
DEmailServiceUtils.java52 IEmailServiceCallback callback) { in getService() argument
53 return new EmailServiceProxy(context, intentAction, callback); in getService()
68 IEmailServiceCallback callback) { in getExchangeService() argument
69 return getService(context, EmailServiceProxy.EXCHANGE_INTENT, callback); in getExchangeService()

1234