Home
last modified time | relevance | path

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

123456789

/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/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/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()
169 for (OnAppsChangedCallbackCompat callback : getCallbacks()) { in onReceive()
170 callback.onPackageChanged(packageName, user); in onReceive()
174 for (OnAppsChangedCallbackCompat callback : getCallbacks()) { in onReceive()
175 callback.onPackageRemoved(packageName, user); in onReceive()
182 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()
116 public WrappedCallback(LauncherAppsCompat.OnAppsChangedCallbackCompat callback) { in WrappedCallback() argument
117 mCallback = callback; in WrappedCallback()
/packages/apps/TV/src/com/android/tv/util/
DImageLoader.java170 ImageLoaderCallback callback) { in loadBitmap() argument
171 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap()
184 ImageLoaderCallback callback) { in loadBitmap() argument
188 return doLoadBitmap(context, uriString, maxWidth, maxHeight, callback, in loadBitmap()
193 int maxWidth, int maxHeight, ImageLoaderCallback callback, Executor executor) { in doLoadBitmap() argument
199 if (callback != null) { in doLoadBitmap()
200 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
204 return doLoadBitmap(callback, executor, in doLoadBitmap()
216 public static boolean loadBitmap(ImageLoaderCallback callback, LoadBitmapTask loadBitmapTask) { in loadBitmap() argument
220 return doLoadBitmap(callback, IMAGE_THREAD_POOL_EXECUTOR, loadBitmapTask); in loadBitmap()
[all …]
DTvInputManagerHelper.java66 for (TvInputCallback callback : mCallbacks) {
67 callback.onInputStateChanged(inputId, state);
81 for (TvInputCallback callback : mCallbacks) {
82 callback.onInputAdded(inputId);
93 for (TvInputCallback callback : mCallbacks) {
94 callback.onInputRemoved(inputId);
103 for (TvInputCallback callback : mCallbacks) {
104 callback.onInputUpdated(inputId);
290 public void addCallback(TvInputCallback callback) { in addCallback() argument
291 mCallbacks.add(callback); in addCallback()
[all …]
/packages/apps/Dialer/src/com/android/dialer/filterednumber/
DBlockNumberDialogFragment.java97 Callback callback) { in show() argument
101 newFragment.setCallback(callback); in show()
213 public void setCallback(Callback callback) { in setCallback() argument
214 mCallback = callback; in setCallback()
234 final Callback callback = mCallback; in blockNumber() local
242 if (callback != null) { in blockNumber()
243 callback.onChangeFilteredNumberUndo(); in blockNumber()
265 if (callback != null) { in blockNumber()
266 callback.onFilterNumberSuccess(); in blockNumber()
284 final Callback callback = mCallback; in unblockNumber() local
[all …]
/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/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.java56 final AnimationCallback callback) { in fadeOut() argument
64 if (callback != null) { in fadeOut()
65 callback.onAnimationEnd(); in fadeOut()
73 if (callback != null) { in fadeOut()
74 callback.onAnimationCancel(); in fadeOut()
89 final AnimationCallback callback) { in fadeIn() argument
104 if (callback != null) { in fadeIn()
105 callback.onAnimationCancel(); in fadeIn()
111 if (callback != null) { in fadeIn()
112 callback.onAnimationEnd(); in fadeIn()
/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/Launcher3/src/com/android/launcher3/
DLauncherAppWidgetHost.java91 public void addProviderChangeListener(Runnable callback) {
92 mProviderChangeListeners.add(callback);
95 public void removeProviderChangeListener(Runnable callback) {
96 mProviderChangeListeners.remove(callback);
101 for (Runnable callback : new ArrayList<>(mProviderChangeListeners)) {
102 callback.run();
/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/services/Car/bluetooth/bt-map-client-lib/src/com/google/android/auto/mapservice/
DIBluetoothMapService.aidl46 boolean connect(in IBluetoothMapServiceCallbacks callback, in BluetoothDevice device); in connect() argument
49 void disconnect(in IBluetoothMapServiceCallbacks callback); in disconnect() argument
58 boolean pushMessage(in IBluetoothMapServiceCallbacks callback, in BluetoothMapMessage message); in pushMessage() argument
62 boolean getMessage(in IBluetoothMapServiceCallbacks callback, String handle); in getMessage() argument
70 boolean getMessagesListing(in IBluetoothMapServiceCallbacks callback, in getMessagesListing() argument
/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/services/Car/bluetooth/bt-map-service/src/com/google/android/auto/mapservice/
DBluetoothMapService.java368 public void disconnect(IBluetoothMapServiceCallbacks callback) { in disconnect() argument
372 if (callback == null) { in disconnect()
377 if (service.mCallbacks.asBinder() != callback.asBinder()) { in disconnect()
379 " Given: " + callback.asBinder()); in disconnect()
388 public boolean enableNotifications(IBluetoothMapServiceCallbacks callback, boolean enable) { in enableNotifications() argument
392 if (callback == null) { in enableNotifications()
402 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in enableNotifications()
411 public boolean pushMessage(IBluetoothMapServiceCallbacks callback, in pushMessage() argument
419 if (callback == null || message == null) { in pushMessage()
426 } else if (service.mCallbacks.asBinder() != callback.asBinder()) { in pushMessage()
[all …]
/packages/apps/UnifiedEmail/src/org/apache/james/mime4j/
DEOLConvertingInputStream.java49 private Callback callback; field in EOLConvertingInputStream
80 callback = _callback; in EOLConvertingInputStream()
95 if (callback != null && pos++ == nextTenPctPos) { in readByte()
97 if (callback != null) { in readByte()
98 callback.report(pos); in readByte()
/packages/services/Telephony/src/org/apache/james/mime4j/
DEOLConvertingInputStream.java49 private Callback callback; field in EOLConvertingInputStream
80 callback = _callback; in EOLConvertingInputStream()
95 if (callback != null && pos++ == nextTenPctPos) { in readByte()
97 if (callback != null) { in readByte()
98 callback.report(pos); in readByte()
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DGattService.java343 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
346 service.registerClient(uuid.getUuid(), callback); in registerClient()
465 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
468 service.registerServer(uuid.getUuid(), callback); in registerServer()
635 app.callback.onScanResult(result); in onScanResult()
648 app.callback.onScanResult(address, rssi, adv_data); in onScanResult()
697 app.callback.onClientRegistered(status, clientIf); in onClientRegistered()
709 app.callback.onClientConnectionState(status, clientIf, in onConnected()
722 app.callback.onClientConnectionState(status, clientIf, false, address); in onDisconnected()
742 if (app == null || app.callback == null) { in onGetGattDb()
[all …]
/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/print/
DPrintActivity.java117 final LayoutResultCallback callback, in printView()
161 callback.onLayoutFinished(info, false); in printView()
165 callback.onLayoutFailed(null); in printView()
173 callback.onLayoutCancelled(); in printView()
186 final WriteResultCallback callback) { in printView()
246 callback.onWriteFinished(pageRanges); in printView()
250 callback.onWriteFailed(null); in printView()
260 callback.onWriteCancelled(); in printView()
/packages/services/Telecomm/src/com/android/server/telecom/
DServiceBinder.java68 void bind(BindCallback callback, Call call) { in bind() argument
76 mCallbacks.add(callback); in bind()
80 mCallbacks.add(callback); in bind()
304 for (BindCallback callback : mCallbacks) { in handleSuccessfulConnection()
305 callback.onSuccess(); in handleSuccessfulConnection()
315 for (BindCallback callback : mCallbacks) { in handleFailedConnection()
316 callback.onFailure(); in handleFailedConnection()
/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/experimental/PrintApp/src/foo/bar/permission2/
DPrintActivity.java105 final LayoutResultCallback callback, in printView()
154 callback.onLayoutFinished(info, false); in printView()
158 callback.onLayoutFailed(null); in printView()
166 callback.onLayoutCancelled(); in printView()
179 final WriteResultCallback callback) { in printView()
250 callback.onWriteFinished(pageRanges); in printView()
254 callback.onWriteFailed(null); in printView()
264 callback.onWriteCancelled(); in printView()
/packages/apps/Email/src/com/android/email/activity/setup/
DSecurityRequiredDialogFragment.java84 final Callback callback = (Callback) getActivity(); in onCreateDialog()
85 callback.onSecurityRequiredDialogResult(true); in onCreateDialog()
102 final Callback callback = (Callback) getActivity();
103 if (callback != null) {
104 callback.onSecurityRequiredDialogResult(false);

123456789