Home
last modified time | relevance | path

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

12345678

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinDialogFragment.java79 Callback callback = null; in setPin() local
83 callback = (Callback) f; in setPin()
86 if (callback == null && getActivity() instanceof Callback) { in setPin()
87 callback = (Callback) getActivity(); in setPin()
90 if (callback != null) { in setPin()
91 callback.saveLockPassword(pin, DevicePolicyManager.PASSWORD_QUALITY_SOMETHING); in setPin()
97 Callback callback = null; in isPinCorrect() local
101 callback = (Callback) f; in isPinCorrect()
104 if (callback == null && getActivity() instanceof Callback) { in isPinCorrect()
105 callback = (Callback) getActivity(); in isPinCorrect()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/compat/
DLauncherAppsCompatV16.java100 public synchronized void addOnAppsChangedCallback(OnAppsChangedCallbackCompat callback) { in addOnAppsChangedCallback() argument
101 if (callback != null && !mCallbacks.contains(callback)) { in addOnAppsChangedCallback()
102 mCallbacks.add(callback); in addOnAppsChangedCallback()
109 public synchronized void removeOnAppsChangedCallback(OnAppsChangedCallbackCompat callback) { in removeOnAppsChangedCallback() argument
110 mCallbacks.remove(callback); in removeOnAppsChangedCallback()
165 for (OnAppsChangedCallbackCompat callback : getCallbacks()) { in onReceive()
166 callback.onPackageChanged(packageName, user); in onReceive()
170 for (OnAppsChangedCallbackCompat callback : getCallbacks()) { in onReceive()
171 callback.onPackageRemoved(packageName, user); in onReceive()
178 for (OnAppsChangedCallbackCompat callback : getCallbacks()) { in onReceive()
[all …]
DLauncherAppsCompatVL.java82 public void addOnAppsChangedCallback(LauncherAppsCompat.OnAppsChangedCallbackCompat callback) { in addOnAppsChangedCallback() argument
83 WrappedCallback wrappedCallback = new WrappedCallback(callback); in addOnAppsChangedCallback()
85 mCallbacks.put(callback, wrappedCallback); in addOnAppsChangedCallback()
91 LauncherAppsCompat.OnAppsChangedCallbackCompat callback) { in removeOnAppsChangedCallback() argument
94 wrappedCallback = mCallbacks.remove(callback); in removeOnAppsChangedCallback()
112 public WrappedCallback(LauncherAppsCompat.OnAppsChangedCallbackCompat callback) { in WrappedCallback() argument
113 mCallback = callback; in WrappedCallback()
/packages/apps/Camera2/src/com/android/camera/one/v2/core/
DResponseListeners.java68 final Updatable<TotalCaptureResultProxy> callback) { in forFinalMetadata() argument
69 return new ResponseListenerBase<TotalCaptureResultProxy>(callback) { in forFinalMetadata()
72 callback.update(new AndroidTotalCaptureResultProxy(result)); in forFinalMetadata()
82 … public static ResponseListener forPartialMetadata(final Updatable<CaptureResultProxy> callback) {
83 return new ResponseListenerBase<CaptureResultProxy>(callback) {
86 callback.update(new AndroidCaptureResultProxy(partialResult));
91 callback.update(new AndroidTotalCaptureResultProxy(result));
101 public static ResponseListener forTimestamps(final Updatable<Long> callback) {
102 return new ResponseListenerBase<Long>(callback) {
105 callback.update(timestamp);
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java299 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
302 service.registerClient(uuid.getUuid(), callback); in registerClient()
449 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
452 service.registerServer(uuid.getUuid(), callback); in registerServer()
616 app.callback.onScanResult(result); in onScanResult()
629 app.callback.onScanResult(address, rssi, adv_data); in onScanResult()
678 app.callback.onClientRegistered(status, clientIf); in onClientRegistered()
690 app.callback.onClientConnectionState(status, clientIf, in onConnected()
704 app.callback.onClientConnectionState(status, clientIf, false, address); in onDisconnected()
726 app.callback.onGetService(address, srvcType, srvcInstId, in onSearchResult()
[all …]
DContextMap.java67 T callback; field in ContextMap.App
81 App(UUID uuid, T callback) { in App() argument
83 this.callback = callback; in App()
91 IBinder binder = ((IInterface)callback).asBinder(); in linkToDeath()
105 IBinder binder = ((IInterface)callback).asBinder(); in unlinkToDeath()
132 void add(UUID uuid, T callback) { in add() argument
134 mApps.add(new App(uuid, callback)); in add()
/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/PhoneCommon/src/com/android/phone/common/animation/
DAnimUtils.java52 final AnimationCallback callback) { in fadeOut() argument
60 if (callback != null) { in fadeOut()
61 callback.onAnimationEnd(); in fadeOut()
69 if (callback != null) { in fadeOut()
70 callback.onAnimationCancel(); in fadeOut()
85 final AnimationCallback callback) { in fadeIn() argument
100 if (callback != null) { in fadeIn()
101 callback.onAnimationCancel(); in fadeIn()
107 if (callback != null) { in fadeIn()
108 callback.onAnimationEnd(); in fadeIn()
/packages/apps/PhoneCommon/src/com/android/phone/common/
DCallLogAsync.java54 OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallArgs() argument
56 this.callback = callback; in GetLastOutgoingCallArgs()
59 public final OnLastOutgoingCallComplete callback; field in CallLogAsync.GetLastOutgoingCallArgs
74 return new GetLastOutgoingCallTask(args.callback).execute(args); in getLastOutgoingCall()
83 public GetLastOutgoingCallTask(OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallTask() argument
84 mCallback = callback; in GetLastOutgoingCallTask()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorExpressionEvaluator.java44 public void evaluate(CharSequence expr, EvaluateCallback callback) { in evaluate() argument
45 evaluate(expr.toString(), callback); in evaluate() local
48 public void evaluate(String expr, EvaluateCallback callback) { in evaluate() argument
58 callback.onEvaluate(expr, null, Calculator.INVALID_RES_ID); in evaluate()
68 callback.onEvaluate(expr, null, R.string.error_nan); in evaluate()
75 callback.onEvaluate(expr, resultString, Calculator.INVALID_RES_ID); in evaluate()
78 callback.onEvaluate(expr, null, R.string.error_syntax); in evaluate()
/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/experimental/PrintApp/src/foo/bar/print/
DPrintActivity.java89 final LayoutResultCallback callback, in printView()
133 callback.onLayoutFinished(info, false); in printView()
137 callback.onLayoutFailed(null); in printView()
145 callback.onLayoutCancelled(); in printView()
158 final WriteResultCallback callback) { in printView()
218 callback.onWriteFinished(pageRanges); in printView()
222 callback.onWriteFailed(null); in printView()
232 callback.onWriteCancelled(); in printView()
/packages/services/Telecomm/src/com/android/server/telecom/
DConnectionServiceWrapper.java422 public void queryRemoteConnectionServices(RemoteServiceCallback callback) { in queryRemoteConnectionServices() argument
426 logIncoming("queryRemoteConnectionServices %s", callback); in queryRemoteConnectionServices()
427 ConnectionServiceWrapper.this.queryRemoteConnectionServices(callback); in queryRemoteConnectionServices()
647 BindCallback callback = new BindCallback() { in createConnection() local
692 mBinder.bind(callback, call); in createConnection()
965 private void queryRemoteConnectionServices(final RemoteServiceCallback callback) { in queryRemoteConnectionServices() argument
972 noRemoteServices(callback); in queryRemoteConnectionServices()
1014 noRemoteServices(callback); in queryRemoteConnectionServices()
1019 setRemoteServices(callback, simServiceComponentNames, simServiceBinders); in queryRemoteConnectionServices()
1027 RemoteServiceCallback callback, in setRemoteServices() argument
[all …]
DServiceBinder.java67 void bind(BindCallback callback, Call call) { in bind() argument
75 mCallbacks.add(callback); in bind()
79 mCallbacks.add(callback); in bind()
292 for (BindCallback callback : mCallbacks) { in handleSuccessfulConnection()
293 callback.onSuccess(); in handleSuccessfulConnection()
303 for (BindCallback callback : mCallbacks) { in handleFailedConnection()
304 callback.onFailure(); in handleFailedConnection()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/
DDrawableDownloader.java284 public void getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) { in getBitmap() argument
285 cancelDownload(callback); in getBitmap()
293 callback.onBitmapRetrieved(bitmap); in getBitmap()
308 callback.onBitmapRetrieved(bitmap); in getBitmap()
311 callback.mTask = new SoftReference<DrawableLoader>(task); in getBitmap()
338 BitmapCallback callback = (BitmapCallback)key; in cancelDownload() local
339 if (callback.mTask != null) { in cancelDownload()
340 task = callback.mTask.get(); in cancelDownload()
341 callback.mTask = null; in cancelDownload()
DBitmapDownloader.java195 public void getBitmap(BitmapWorkerOptions options, final BitmapCallback callback) { in getBitmap() argument
196 cancelDownload(callback); in getBitmap()
218 callback.onBitmapRetrieved(bitmap); in getBitmap()
221 callback.mTask = new SoftReference<>(task); in getBitmap()
240 BitmapCallback callback = (BitmapCallback)key; in cancelDownload() local
241 if (callback.mTask != null) { in cancelDownload()
242 task = callback.mTask.get(); in cancelDownload()
243 callback.mTask = null; in cancelDownload()
/packages/apps/Calendar/src/com/android/calendar/
DCalendarUtils.java133 for (Runnable callback : mTZCallbacks) { in onQueryComplete()
134 if (callback != null) { in onQueryComplete()
135 callback.run(); in onQueryComplete()
270 public String getTimeZone(Context context, Runnable callback) { in getTimeZone() argument
294 mTZCallbacks.add(callback); in getTimeZone()
310 public void forceDBRequery(Context context, Runnable callback) { in forceDBRequery() argument
313 mTZCallbacks.add(callback); in forceDBRequery()
317 getTimeZone(context, callback); in forceDBRequery()
/packages/experimental/PrintApp/src/foo/bar/permission2/
DPrintActivity.java103 final LayoutResultCallback callback, in printView()
152 callback.onLayoutFinished(info, false); in printView()
156 callback.onLayoutFailed(null); in printView()
164 callback.onLayoutCancelled(); in printView()
177 final WriteResultCallback callback) { in printView()
248 callback.onWriteFinished(pageRanges); in printView()
252 callback.onWriteFailed(null); in printView()
262 callback.onWriteCancelled(); in printView()
/packages/apps/Bluetooth/src/com/android/bluetooth/hdp/
DHealthService.java344 IBluetoothHealthCallback callback) { in registerAppConfiguration() argument
347 return service.registerAppConfiguration(config, callback); in registerAppConfiguration()
404 IBluetoothHealthCallback callback) { in registerAppConfiguration() argument
411 mApps.put(config, new AppInfo(callback)); in registerAppConfiguration()
515 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback; in callStatusCallback() local
516 if (callback == null) { in callStatusCallback()
521 callback.onHealthAppConfigurationStatusChange(config, status); in callStatusCallback()
608 IBluetoothHealthCallback callback = (mApps.get(config)).mCallback; in callHealthChannelCallback() local
609 if (callback == null) { in callHealthChannelCallback()
615 callback.onHealthChannelStateChange(config, device, prevState, state, dupedFd, id); in callHealthChannelCallback()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DPermissionsSummaryHelper.java31 PermissionsResultCallback callback) { in getPermissionSummary() argument
34 return sendPermissionRequest(context, ACTION_PERM_COUNT_RESPONSE, request, callback); in getPermissionSummary()
38 PermissionsResultCallback callback) { in getAppWithPermissionsCounts() argument
40 return sendPermissionRequest(context, ACTION_APP_COUNT_RESPONSE, request, callback); in getAppWithPermissionsCounts()
44 Intent request, final PermissionsResultCallback callback) { in sendPermissionRequest() argument
53 callback.onPermissionSummaryResult(counts, groups); in sendPermissionRequest()
/packages/apps/Launcher3/src/com/android/launcher3/
DLauncherAppWidgetHost.java89 public void addProviderChangeListener(Runnable callback) {
90 mProviderChangeListeners.add(callback);
93 public void removeProviderChangeListener(Runnable callback) {
94 mProviderChangeListeners.remove(callback);
99 for (Runnable callback : new ArrayList<>(mProviderChangeListeners)) {
100 callback.run();
/packages/apps/UnifiedEmail/src/com/android/mail/utils/
DThrottle.java73 public Throttle(String name, Runnable callback, Handler handler) { in Throttle() argument
74 this(name, callback, handler, DEFAULT_MIN_TIMEOUT, DEFAULT_MAX_TIMEOUT); in Throttle()
78 public Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
80 this(name, callback, handler, minTimeout, maxTimeout, Clock.INSTANCE, TIMER); in Throttle()
85 public Throttle(String name, Runnable callback, Handler handler,int minTimeout, in Throttle() argument
91 mCallback = callback; in Throttle()
/packages/apps/Contacts/tests/src/com/android/contacts/interactions/
DTestLoaderManager.java135 public <D> Loader<D> initLoader(final int id, Bundle args, final LoaderCallbacks<D> callback) { in initLoader() argument
139 return callback.onCreateLoader(id, args); in initLoader()
144 callback.onLoadFinished(loader, data); in initLoader()
152 callback.onLoaderReset(loader); in initLoader()
158 public <D> Loader<D> restartLoader(int id, Bundle args, LoaderCallbacks<D> callback) {
159 return mDelegate.restartLoader(id, args, callback);
/packages/services/Telephony/src/com/android/services/telephony/
DEmergencyCallHelper.java66 EmergencyCallHelper.Callback callback =
70 startSequenceInternal(phone, callback);
110 public void startTurnOnRadioSequence(Phone phone, Callback callback) { in startTurnOnRadioSequence() argument
115 args.arg2 = callback; in startTurnOnRadioSequence()
123 private void startSequenceInternal(Phone phone, Callback callback) { in startSequenceInternal() argument
132 mCallback = callback; in startSequenceInternal()
/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()

12345678