Home
last modified time | relevance | path

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

12345678910>>...22

/packages/apps/UniversalMediaPlayer/java/com/android/pump/db/
DMediaDb.java135 public void addAudioUpdateCallback(@NonNull UpdateCallback callback) { in addAudioUpdateCallback() argument
136 addUpdateCallback(mAudioUpdateCallbacks, callback); in addAudioUpdateCallback()
139 public void removeAudioUpdateCallback(@NonNull UpdateCallback callback) { in removeAudioUpdateCallback() argument
140 removeUpdateCallback(mAudioUpdateCallbacks, callback); in removeAudioUpdateCallback()
143 public void addArtistUpdateCallback(@NonNull UpdateCallback callback) { in addArtistUpdateCallback() argument
144 addUpdateCallback(mArtistUpdateCallbacks, callback); in addArtistUpdateCallback()
147 public void removeArtistUpdateCallback(@NonNull UpdateCallback callback) { in removeArtistUpdateCallback() argument
148 removeUpdateCallback(mArtistUpdateCallbacks, callback); in removeArtistUpdateCallback()
151 public void addAlbumUpdateCallback(@NonNull UpdateCallback callback) { in addAlbumUpdateCallback() argument
152 addUpdateCallback(mAlbumUpdateCallbacks, callback); in addAlbumUpdateCallback()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java97 public IAdvertisingSetCallback callback; field in AdvertiseManager.AdvertiserInfo
100 IAdvertisingSetCallback callback) { in AdvertiserInfo() argument
103 this.callback = callback; in AdvertiserInfo()
112 public IAdvertisingSetCallback callback; field in AdvertiseManager.AdvertisingSetDeathRecipient
114 AdvertisingSetDeathRecipient(IAdvertisingSetCallback callback) { in AdvertisingSetDeathRecipient() argument
115 this.callback = callback; in AdvertisingSetDeathRecipient()
123 stopAdvertisingSet(callback); in binderDied()
155 IAdvertisingSetCallback callback = entry.getValue().callback; in onAdvertisingSetStarted() local
158 new AdvertiserInfo(advertiserId, entry.getValue().deathRecipient, callback)); in onAdvertisingSetStarted()
165 callback.onAdvertisingSetStarted(advertiserId, txPower, status); in onAdvertisingSetStarted()
[all …]
DPeriodicScanManager.java75 public IPeriodicAdvertisingCallback callback; field in PeriodicScanManager.SyncInfo
78 IPeriodicAdvertisingCallback callback) { in SyncInfo() argument
81 this.callback = callback; in SyncInfo()
90 public IPeriodicAdvertisingCallback callback; field in PeriodicScanManager.SyncDeathRecipient
92 SyncDeathRecipient(IPeriodicAdvertisingCallback callback) { in SyncDeathRecipient() argument
93 this.callback = callback; in SyncDeathRecipient()
101 stopSync(callback); in binderDied()
132 IPeriodicAdvertisingCallback callback = entry.getValue().callback; in onSyncStarted() local
134 entry.setValue(new SyncInfo(syncHandle, entry.getValue().deathRecipient, callback)); in onSyncStarted()
157 IPeriodicAdvertisingCallback callback = entry.getValue().callback; in onSyncReport() local
[all …]
DGattService.java431 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
436 service.registerClient(uuid.getUuid(), callback); in registerClient() local
449 public void registerScanner(IScannerCallback callback, WorkSource workSource) in registerScanner() argument
455 service.registerScanner(callback, workSource); in registerScanner()
701 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
706 service.registerServer(uuid.getUuid(), callback); in registerServer() local
807 int duration, int maxExtAdvEvents, IAdvertisingSetCallback callback) { in startAdvertisingSet() argument
813 periodicData, duration, maxExtAdvEvents, callback); in startAdvertisingSet()
817 public void stopAdvertisingSet(IAdvertisingSetCallback callback) { in stopAdvertisingSet() argument
822 service.stopAdvertisingSet(callback); in stopAdvertisingSet()
[all …]
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinDialogFragment.java99 Callback callback = null; in setPin() local
103 callback = (Callback) f; in setPin()
106 if (callback == null && getActivity() instanceof Callback) { in setPin()
107 callback = (Callback) getActivity(); in setPin()
110 if (callback != null) { in setPin()
111 callback.saveLockPassword(pin, originalPin, in setPin()
118 Callback callback = null; in deletePin() local
122 callback = (Callback) f; in deletePin()
125 if (callback == null && getActivity() instanceof Callback) { in deletePin()
126 callback = (Callback) getActivity(); in deletePin()
[all …]
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/task/
DConnectMobileNetworkTaskRoboTest.java65 FakeAbstractProvisioningTaskCallback callback = new FakeAbstractProvisioningTaskCallback(); in run_withoutConnection_noCallbackSuccess() local
66 ConnectMobileNetworkTask task = buildTask(callback); in run_withoutConnection_noCallbackSuccess()
70 assertThat(callback.getSuccessCount(task)).isEqualTo(0); in run_withoutConnection_noCallbackSuccess()
75 FakeAbstractProvisioningTaskCallback callback = new FakeAbstractProvisioningTaskCallback(); in connectToNetwork_afterRun_callbackSuccess() local
76 ConnectMobileNetworkTask task = buildTask(callback); in connectToNetwork_afterRun_callbackSuccess()
82 assertThat(callback.getSuccessCount(task)).isEqualTo(1); in connectToNetwork_afterRun_callbackSuccess()
83 assertThat(callback.getErrorCount(task)).isEqualTo(0); in connectToNetwork_afterRun_callbackSuccess()
88 FakeAbstractProvisioningTaskCallback callback = new FakeAbstractProvisioningTaskCallback(); in connectToNetworkTwice_afterRun_oneCallbackSuccess() local
89 ConnectMobileNetworkTask task = buildTask(callback); in connectToNetworkTwice_afterRun_oneCallbackSuccess()
98 assertThat(callback.getSuccessCount(task)).isEqualTo(1); in connectToNetworkTwice_afterRun_oneCallbackSuccess()
[all …]
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerHelper.java77 public void registerListener(ProvisioningManagerCallback callback) { in registerListener() argument
79 mCallbacks.add(callback); in registerListener()
80 callLastCallbackLocked(callback); in registerListener()
84 public void unregisterListener(ProvisioningManagerCallback callback) { in unregisterListener() argument
86 mCallbacks.remove(callback); in unregisterListener()
92 for (ProvisioningManagerCallback callback : mCallbacks) { in error()
93 postCallbackToUiHandler(callback, () -> { in error()
94 callback.error(titleId, messageId, factoryResetRequired); in error()
102 private void callLastCallbackLocked(ProvisioningManagerCallback callback) { in callLastCallbackLocked() argument
106 postCallbackToUiHandler(callback, () -> { in callLastCallbackLocked()
[all …]
/packages/services/Car/service/src/com/android/car/
DCarBugreportManagerService.java114 ICarBugreportCallback callback) { in requestBugreport() argument
144 requestBugReportLocked(output, extraOutput, callback); in requestBugreport()
150 ParcelFileDescriptor extraOutput, ICarBugreportCallback callback) { in requestBugReportLocked() argument
153 reportError(callback, CarBugreportManagerCallback.CAR_BUGREPORT_IN_PROGRESS); in requestBugReportLocked()
157 mHandler.post(() -> startBugreportd(output, extraOutput, callback)); in requestBugReportLocked()
161 ICarBugreportCallback callback) { in startBugreportd() argument
167 reportError(callback, CAR_BUGREPORT_DUMPSTATE_FAILED); in startBugreportd()
170 processBugreportSockets(output, extraOutput, callback); in startBugreportd()
176 private void handleProgress(String line, ICarBugreportCallback callback) { in handleProgress() argument
197 callback.onProgress(100f * progress / total); in handleProgress()
[all …]
DAppFocusService.java103 public boolean isOwningFocus(IAppFocusOwnershipCallback callback, int appType) { in isOwningFocus() argument
106 (OwnershipClientInfo) mAllOwnershipClients.getBinderInterface(callback); in isOwningFocus()
115 public int requestAppFocus(IAppFocusOwnershipCallback callback, int appType) { in requestAppFocus() argument
118 (OwnershipClientInfo) mAllOwnershipClients.getBinderInterface(callback); in requestAppFocus()
120 info = new OwnershipClientInfo(mAllOwnershipClients, callback, in requestAppFocus()
172 public void abandonAppFocus(IAppFocusOwnershipCallback callback, int appType) { in abandonAppFocus() argument
175 (OwnershipClientInfo) mAllOwnershipClients.getBinderInterface(callback); in abandonAppFocus()
286 public void registerContextOwnerChangedCallback(FocusOwnershipCallback callback) { in registerContextOwnerChangedCallback() argument
287 mFocusOwnershipCallbacks.add(callback); in registerContextOwnerChangedCallback()
296 callback.onFocusAcquired(entry.getKey(), clientInfo.getUid(), clientInfo.getPid()); in registerContextOwnerChangedCallback()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java59 public void addCallback(@NonNull Callback callback) { in addCallback() argument
60 addCallback(callback, Executors.uiThreadExecutor()); in addCallback()
63 public void addCallback(@NonNull Callback callback, @NonNull Executor executor) { in addCallback() argument
65 if (!mCallbacks.add(new SimpleEntry<>(executor, callback))) { in addCallback()
66 throw new IllegalArgumentException("Callback " + callback + " already added"); in addCallback()
71 public void removeCallback(@NonNull Callback callback) { in removeCallback() argument
72 removeCallback(callback, Executors.uiThreadExecutor()); in removeCallback()
75 public void removeCallback(@NonNull Callback callback, @NonNull Executor executor) { in removeCallback() argument
77 if (!mCallbacks.remove(new SimpleEntry<>(executor, callback))) { in removeCallback()
78 throw new IllegalArgumentException("Callback " + callback + " not found"); in removeCallback()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/service/
DRadioAppService.java182 for (IRadioAppCallback callback : mRadioAppCallbacks) { in onPlaybackStateChanged()
183 tryExec(() -> callback.onPlaybackStateChanged(newState)); in onPlaybackStateChanged()
201 for (IRadioAppCallback callback : mRadioAppCallbacks) { in pushProgramListUpdate()
202 tryExec(() -> callback.onProgramListChanged(plist)); in pushProgramListUpdate()
261 for (IRadioAppCallback callback : mRadioAppCallbacks) { in onHardwareError()
262 tryExec(() -> callback.onHardwareError()); in onHardwareError()
269 public void addCallback(IRadioAppCallback callback) throws RemoteException {
271 if (mCurrentProgram != null) callback.onCurrentProgramChanged(mCurrentProgram);
272 callback.onPlaybackStateChanged(mCurrentPlaybackState);
273 if (mProgramList != null) callback.onProgramListChanged(mProgramList.toList());
[all …]
/packages/apps/Car/libs/car-assist-client-lib/src/com/android/car/assist/client/
DCarAssistUtils.java259 ActionRequestCallback callback) { in requestAssistantVoiceAction() argument
262 callback.onResult(ActionRequestCallback.RESULT_FAILED); in requestAssistantVoiceAction()
268 readMessageNotification(sbn, callback); in requestAssistantVoiceAction()
271 replyMessageNotification(sbn, callback); in requestAssistantVoiceAction()
275 callback.onResult(ActionRequestCallback.RESULT_FAILED); in requestAssistantVoiceAction()
289 ActionRequestCallback callback) { in readMessageNotification() argument
293 requestAction(action, sbn, args, callback); in readMessageNotification()
305 ActionRequestCallback callback) { in replyMessageNotification() argument
309 requestAction(action, sbn, args, callback); in replyMessageNotification()
313 ActionRequestCallback callback) { in requestAction() argument
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DInCallServiceImpl.java80 for (Callback callback : mCallbacks) { in onCallAdded()
81 callback.onTelecomCallAdded(telecomCall); in onCallAdded()
90 for (Callback callback : mCallbacks) { in onCallRemoved()
91 callback.onTelecomCallRemoved(telecomCall); in onCallRemoved()
116 for (Callback callback : mCallbacks) { in onCallAudioStateChanged()
117 callback.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
121 public void registerCallback(Callback callback) { in registerCallback() argument
122 mCallbacks.add(callback); in registerCallback()
125 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
126 mCallbacks.remove(callback); in unregisterCallback()
[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/services/Car/car-lib/src/android/car/
DCarBugreportManager.java117 CarBugreportManagerCallbackWrapper(CarBugreportManagerCallback callback, in CarBugreportManagerCallbackWrapper() argument
119 mWeakCallback = new WeakReference<>(callback); in CarBugreportManagerCallbackWrapper()
125 CarBugreportManagerCallback callback = mWeakCallback.get(); in onProgress() local
127 if (handler != null && callback != null) { in onProgress()
128 handler.post(() -> callback.onProgress(progress)); in onProgress()
134 CarBugreportManagerCallback callback = mWeakCallback.get(); in onError() local
136 if (handler != null && callback != null) { in onError()
137 handler.post(() -> callback.onError(errorCode)); in onError()
143 CarBugreportManagerCallback callback = mWeakCallback.get(); in onFinished() local
145 if (handler != null && callback != null) { in onFinished()
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockNumberDialogFragment.java59 private Callback callback; field in BlockNumberDialogFragment
68 Callback callback) { in show() argument
73 newFragment.setCallback(callback); in show()
191 callback = null; in onPause()
196 public void setCallback(Callback callback) { in setCallback() argument
197 this.callback = callback; in setCallback()
217 final Callback callback = this.callback; in blockNumber() local
226 if (callback != null) { in blockNumber()
227 callback.onChangeFilteredNumberUndo(); in blockNumber()
252 if (callback != null) { in blockNumber()
[all …]
/packages/apps/TV/src/com/android/tv/util/images/
DImageLoader.java168 Context context, String uriString, ImageLoaderCallback callback) { in loadBitmap() argument
169 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap()
186 ImageLoaderCallback callback) { in loadBitmap() argument
191 context, uriString, maxWidth, maxHeight, callback, IMAGE_THREAD_POOL_EXECUTOR); in loadBitmap()
199 ImageLoaderCallback callback, in doLoadBitmap() argument
206 if (callback != null) { in doLoadBitmap()
207 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
212 callback, in doLoadBitmap()
225 public static boolean loadBitmap(ImageLoaderCallback callback, LoadBitmapTask loadBitmapTask) { in loadBitmap() argument
229 return doLoadBitmap(callback, IMAGE_THREAD_POOL_EXECUTOR, loadBitmapTask); in loadBitmap()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java60 public void calculateNumberOfPolicyInstalledApps(boolean async, NumberOfAppsCallback callback) { in calculateNumberOfPolicyInstalledApps() argument
62 new CurrentUserAndManagedProfilePolicyInstalledAppCounter(mContext, mPm, callback); in calculateNumberOfPolicyInstalledApps()
71 public void listPolicyInstalledApps(ListOfAppsCallback callback) { in listPolicyInstalledApps() argument
73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps()
79 boolean async, NumberOfAppsCallback callback) { in calculateNumberOfAppsWithAdminGrantedPermissions() argument
82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions()
92 ListOfAppsCallback callback) { in listAppsWithAdminGrantedPermissions() argument
95 mUm, callback); in listAppsWithAdminGrantedPermissions()
173 PackageManager packageManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfilePolicyInstalledAppCounter() argument
175 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
[all …]
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/
DApplicationFeatureProviderImpl.java60 public void calculateNumberOfPolicyInstalledApps(boolean async, NumberOfAppsCallback callback) { in calculateNumberOfPolicyInstalledApps() argument
62 new CurrentUserAndManagedProfilePolicyInstalledAppCounter(mContext, mPm, callback); in calculateNumberOfPolicyInstalledApps()
71 public void listPolicyInstalledApps(ListOfAppsCallback callback) { in listPolicyInstalledApps() argument
73 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps()
79 boolean async, NumberOfAppsCallback callback) { in calculateNumberOfAppsWithAdminGrantedPermissions() argument
82 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions()
92 ListOfAppsCallback callback) { in listAppsWithAdminGrantedPermissions() argument
95 mUm, callback); in listAppsWithAdminGrantedPermissions()
173 PackageManager packageManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfilePolicyInstalledAppCounter() argument
175 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
[all …]
/packages/apps/TV/common/src/com/android/tv/common/support/tis/
DTifSession.java40 private final TifSessionCallbacks callback; field in TifSession
50 protected TifSession(TifSessionCallbacks callback) { in TifSession() argument
51 this.callback = callback; in TifSession()
115 callback.notifyChannelRetuned(channelUri); in notifyChannelRetuned()
120 callback.notifyTracksChanged(tracks); in notifyTracksChanged()
125 callback.notifyTrackSelected(type, trackId); in notifyTrackSelected()
130 callback.notifyVideoAvailable(); in notifyVideoAvailable()
135 callback.notifyVideoUnavailable(reason); in notifyVideoUnavailable()
140 callback.notifyContentAllowed(); in notifyContentAllowed()
145 callback.notifyContentBlocked(rating); in notifyContentBlocked()
[all …]
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/module/
DDefaultWallpaperPersister.java100 final SetWallpaperCallback callback) { in setIndividualWallpaper() argument
108 callback.onError(null /* throwable */); in setIndividualWallpaper()
111 setIndividualWallpaper(wallpaper, inputStream, destination, callback); in setIndividualWallpaper()
127 callback.onError(null /* throwable */); in setIndividualWallpaper()
130 setIndividualWallpaper(wallpaper, bitmap, destination, callback); in setIndividualWallpaper()
140 setIndividualWallpaper(wallpaper, croppedBitmap, destination, callback); in setIndividualWallpaper()
145 callback.onError(e); in setIndividualWallpaper()
152 … @WallpaperPosition int wallpaperPosition, SetWallpaperCallback callback) { in setIndividualWallpaperWithPosition() argument
162 callback.onError(null); in setIndividualWallpaperWithPosition()
172 wallpaper, asset, dimensions, screenSize, callback); in setIndividualWallpaperWithPosition()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaBrowser.java47 ConnectionCallback callback, Bundle rootHints) { in MediaBrowser() argument
48 mDelegate = new android.media.browse.MediaBrowser(context, serviceComponent, callback, in MediaBrowser()
94 public void getItem(String mediaId, ItemCallback callback) { in getItem() argument
95 mDelegate.getItem(mediaId, callback); in getItem()
129 public void subscribe(String parentId, Bundle options, SubscriptionCallback callback) { in subscribe() argument
130 mDelegate.subscribe(parentId, options, callback); in subscribe()
136 public void subscribe(String parentId, SubscriptionCallback callback) { in subscribe() argument
137 mDelegate.subscribe(parentId, callback); in subscribe()
151 public void unsubscribe(String parentId, SubscriptionCallback callback) { in unsubscribe() argument
152 mDelegate.unsubscribe(parentId, callback); in unsubscribe()
[all …]
/packages/apps/ThemePicker/src/com/android/customization/model/theme/
DThemeManager.java90 public void apply(ThemeBundle theme, Callback callback) { in apply() argument
98 createSetWallpaperCallback(theme, callback)), in apply()
102 applyOverlays(theme, callback); in apply()
106 private SetWallpaperCallback createSetWallpaperCallback(ThemeBundle theme, Callback callback) { in createSetWallpaperCallback() argument
111 applyOverlays(theme, callback); in createSetWallpaperCallback()
116 callback.onError(throwable); in createSetWallpaperCallback()
126 SetWallpaperCallback callback) {
143 scale, null, callback);
150 1f, null, callback);
154 private void applyOverlays(ThemeBundle theme, Callback callback) {
[all …]
/packages/apps/Dialer/java/com/android/incallui/answer/impl/affordance/
DSwipeButtonHelper.java41 private final Callback callback; field in SwipeButtonHelper
81 callback.onAnimationToSideEnded(rightPage); in run()
85 public SwipeButtonHelper(Callback callback, Context context) { in SwipeButtonHelper() argument
87 this.callback = callback; in SwipeButtonHelper()
130 leftIcon = callback.getLeftIcon(); in initIcons()
131 rightIcon = callback.getRightIcon(); in initIcons()
137 leftIcon.setPreviewView(callback.getLeftPreview()); in updatePreviews()
140 rightIcon.setPreviewView(callback.getRightPreview()); in updatePreviews()
205 callback.onIconClicked(hintOnTheRight); in onTouchEvent()
213 callback.onSwipingStarted(targetView == rightIcon); in startSwiping()
[all …]
/packages/apps/PermissionController/src/com/android/packageinstaller/permission/service/
DPermissionControllerServiceImpl.java212 @NonNull Consumer<Map<String, List<String>>> callback) { in onRevokeRuntimePermissions() argument
213 AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> callback.accept( in onRevokeRuntimePermissions()
305 @NonNull OutputStream backup, @NonNull Runnable callback) { in onGetRuntimePermissionsBackup() argument
308 callback.run(); in onGetRuntimePermissionsBackup()
329 @NonNull InputStream backup, Runnable callback) { in onRestoreRuntimePermissionsBackup() argument
332 callback.run(); in onRestoreRuntimePermissionsBackup()
350 @NonNull UserHandle user, @NonNull Consumer<Boolean> callback) { in onRestoreDelayedRuntimePermissionsBackup() argument
351 AsyncTask.execute(() -> callback.accept( in onRestoreDelayedRuntimePermissionsBackup()
367 @NonNull Consumer<List<RuntimePermissionPresentationInfo>> callback) { in onGetAppPermissions() argument
368 AsyncTask.THREAD_POOL_EXECUTOR.execute(() -> callback.accept( in onGetAppPermissions()
[all …]

12345678910>>...22