Home
last modified time | relevance | path

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

12345678910>>...14

/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/
DAdvertiseManager.java98 public IAdvertisingSetCallback callback; field in AdvertiseManager.AdvertiserInfo
101 IAdvertisingSetCallback callback) { in AdvertiserInfo() argument
104 this.callback = callback; in AdvertiserInfo()
113 IAdvertisingSetCallback callback; field in AdvertiseManager.AdvertisingSetDeathRecipient
115 public AdvertisingSetDeathRecipient(IAdvertisingSetCallback callback) { in AdvertisingSetDeathRecipient() argument
116 this.callback = callback; in AdvertisingSetDeathRecipient()
122 stopAdvertisingSet(callback); in binderDied()
153 IAdvertisingSetCallback callback = entry.getValue().callback; in onAdvertisingSetStarted() local
156 new AdvertiserInfo(advertiser_id, entry.getValue().deathRecipient, callback)); in onAdvertisingSetStarted()
163 callback.onAdvertisingSetStarted(advertiser_id, tx_power, status); in onAdvertisingSetStarted()
[all …]
DPeriodicScanManager.java76 public IPeriodicAdvertisingCallback callback; field in PeriodicScanManager.SyncInfo
79 IPeriodicAdvertisingCallback callback) { in SyncInfo() argument
82 this.callback = callback; in SyncInfo()
91 IPeriodicAdvertisingCallback callback; field in PeriodicScanManager.SyncDeathRecipient
93 public SyncDeathRecipient(IPeriodicAdvertisingCallback callback) { in SyncDeathRecipient() argument
94 this.callback = callback; in SyncDeathRecipient()
100 stopSync(callback); in binderDied()
130 IPeriodicAdvertisingCallback callback = entry.getValue().callback; in onSyncStarted() local
132 entry.setValue(new SyncInfo(sync_handle, entry.getValue().deathRecipient, callback)); in onSyncStarted()
153 IPeriodicAdvertisingCallback callback = entry.getValue().callback; in onSyncReport() local
[all …]
DGattService.java358 public void registerClient(ParcelUuid uuid, IBluetoothGattCallback callback) { in registerClient() argument
361 service.registerClient(uuid.getUuid(), callback); in registerClient()
370 public void registerScanner(IScannerCallback callback, WorkSource workSource) { in registerScanner() argument
373 service.registerScanner(callback, workSource); in registerScanner()
538 public void registerServer(ParcelUuid uuid, IBluetoothGattServerCallback callback) { in registerServer() argument
541 service.registerServer(uuid.getUuid(), callback); in registerServer()
611 int duration, int maxExtAdvEvents, IAdvertisingSetCallback callback) { in startAdvertisingSet() argument
615 periodicData, duration, maxExtAdvEvents, callback); in startAdvertisingSet()
618 public void stopAdvertisingSet(IAdvertisingSetCallback callback) { in stopAdvertisingSet() argument
621 service.stopAdvertisingSet(callback); in stopAdvertisingSet()
[all …]
/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/services/Car/service/src/com/android/car/
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/Settings/src/com/android/settings/applications/
DApplicationFeatureProviderImpl.java68 public void calculateNumberOfPolicyInstalledApps(boolean async, NumberOfAppsCallback callback) { in calculateNumberOfPolicyInstalledApps() argument
70 new CurrentUserAndManagedProfilePolicyInstalledAppCounter(mContext, mPm, callback); in calculateNumberOfPolicyInstalledApps()
79 public void listPolicyInstalledApps(ListOfAppsCallback callback) { in listPolicyInstalledApps() argument
81 new CurrentUserPolicyInstalledAppLister(mPm, mUm, callback); in listPolicyInstalledApps()
87 boolean async, NumberOfAppsCallback callback) { in calculateNumberOfAppsWithAdminGrantedPermissions() argument
90 permissions, mPm, mPms, mDpm, callback); in calculateNumberOfAppsWithAdminGrantedPermissions()
100 ListOfAppsCallback callback) { in listAppsWithAdminGrantedPermissions() argument
103 mUm, callback); in listAppsWithAdminGrantedPermissions()
148 PackageManagerWrapper packageManager, NumberOfAppsCallback callback) { in CurrentUserAndManagedProfilePolicyInstalledAppCounter() argument
150 mCallback = callback; in CurrentUserAndManagedProfilePolicyInstalledAppCounter()
[all …]
/packages/apps/TV/src/com/android/tv/util/
DImageLoader.java169 ImageLoaderCallback callback) { in loadBitmap() argument
170 return loadBitmap(context, uriString, Integer.MAX_VALUE, Integer.MAX_VALUE, callback); in loadBitmap()
183 ImageLoaderCallback callback) { in loadBitmap() argument
187 return doLoadBitmap(context, uriString, maxWidth, maxHeight, callback, in loadBitmap()
192 int maxWidth, int maxHeight, ImageLoaderCallback callback, Executor executor) { in doLoadBitmap() argument
198 if (callback != null) { in doLoadBitmap()
199 callback.onBitmapLoaded(bitmapInfo.bitmap); in doLoadBitmap()
203 return doLoadBitmap(callback, executor, in doLoadBitmap()
215 public static boolean loadBitmap(ImageLoaderCallback callback, LoadBitmapTask loadBitmapTask) { in loadBitmap() argument
219 return doLoadBitmap(callback, IMAGE_THREAD_POOL_EXECUTOR, loadBitmapTask); in loadBitmap()
[all …]
DTvInputManagerHelper.java61 for (TvInputCallback callback : mCallbacks) {
62 callback.onInputStateChanged(inputId, state);
79 for (TvInputCallback callback : mCallbacks) {
80 callback.onInputAdded(inputId);
91 for (TvInputCallback callback : mCallbacks) {
92 callback.onInputRemoved(inputId);
106 for (TvInputCallback callback : mCallbacks) {
107 callback.onInputUpdated(inputId);
117 for (TvInputCallback callback : mCallbacks) {
118 callback.onTvInputInfoUpdated(inputInfo);
[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/ManagedProvisioning/src/com/android/managedprovisioning/provisioning/
DProvisioningManager.java159 public void registerListener(ProvisioningManagerCallback callback) { in registerListener() argument
161 mCallbacks.add(callback); in registerListener()
162 callLastCallbackLocked(callback); in registerListener()
171 public void unregisterListener(ProvisioningManagerCallback callback) { in unregisterListener() argument
173 mCallbacks.remove(callback); in unregisterListener()
187 for (ProvisioningManagerCallback callback : mCallbacks) { in error()
188 mUiHandler.post(() -> callback.error(titleId, messageId, factoryResetRequired)); in error()
198 for (ProvisioningManagerCallback callback : mCallbacks) { in progressUpdate()
199 mUiHandler.post(() -> callback.progressUpdate(progressMsgId)); in progressUpdate()
221 for (ProvisioningManagerCallback callback : mCallbacks) { in preFinalizationCompleted()
[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/Car/Radio/src/com/android/car/radio/
DRadioService.java367 for (IRadioCallback callback : mRadioTunerCallbacks) { in requestAudioFocus()
369 callback.onRadioMuteChanged(false); in requestAudioFocus()
392 for (IRadioCallback callback : mRadioTunerCallbacks) { in abandonAudioFocus()
394 callback.onRadioMuteChanged(true); in abandonAudioFocus()
590 for (IRadioCallback callback : mRadioTunerCallbacks) {
592 callback.onRadioMuteChanged(true);
682 public void addRadioTunerCallback(IRadioCallback callback) {
683 if (callback == null) {
687 mRadioTunerCallbacks.add(callback);
695 public void removeRadioTunerCallback(IRadioCallback callback) {
[all …]
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockNumberDialogFragment.java67 Callback callback) { in show() argument
72 newFragment.setCallback(callback); in show()
195 public void setCallback(Callback callback) { in setCallback() argument
196 mCallback = callback; in setCallback()
216 final Callback callback = mCallback; in blockNumber() local
225 if (callback != null) { in blockNumber()
226 callback.onChangeFilteredNumberUndo(); in blockNumber()
251 if (callback != null) { in blockNumber()
252 callback.onFilterNumberSuccess(); in blockNumber()
267 final Callback callback = mCallback; in unblockNumber() local
[all …]
/packages/apps/Car/Media/src/com/android/car/media/
DMediaManager.java543 MediaManagerCallback(MediaManager callback) { in MediaManagerCallback() argument
544 mWeakCallback = new WeakReference<>(callback); in MediaManagerCallback()
549 MediaManager callback = mWeakCallback.get(); in onPlaybackStateChanged() local
550 if (callback == null) { in onPlaybackStateChanged()
553 callback.doPlaybackStateChanged(playbackState); in onPlaybackStateChanged()
558 MediaManager callback = mWeakCallback.get(); in onSessionDestroyed() local
559 if (callback == null) { in onSessionDestroyed()
562 callback.doOnSessionDestroyed(); in onSessionDestroyed()
569 private MediaManagerConnectionCallback(MediaManager callback) { in MediaManagerConnectionCallback() argument
570 mWeakCallback = new WeakReference<>(callback); in MediaManagerConnectionCallback()
[all …]
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/embedded/
DInCallServiceImpl.java58 for (Callback callback : mCallbacks) { in onCallAdded()
59 callback.onTelecomCallAdded(telecomCall); in onCallAdded()
68 for (Callback callback : mCallbacks) { in onCallRemoved()
69 callback.onTelecomCallRemoved(telecomCall); in onCallRemoved()
118 for (Callback callback : mCallbacks) { in onCallAudioStateChanged()
119 callback.onCallAudioStateChanged(audioState); in onCallAudioStateChanged()
123 public void registerCallback(Callback callback) { in registerCallback() argument
124 mCallbacks.add(callback); in registerCallback()
127 public void unregisterCallback(Callback callback) { in unregisterCallback() argument
128 mCallbacks.remove(callback); in unregisterCallback()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java214 FileOperations.Callback callback) { in copyFromClipboard() argument
216 copyFromClipData(destination, docStack, mClipboard.getPrimaryClip(), callback); in copyFromClipboard()
222 FileOperations.Callback callback) { in copyFromClipboard() argument
224 copyFromClipData(docStack, mClipboard.getPrimaryClip(), callback); in copyFromClipboard()
232 final FileOperations.Callback callback) { in copyFromClipData() argument
234 copyFromClipData(dstStack, clipData, callback); in copyFromClipData()
242 final FileOperations.Callback callback) { in copyFromClipData() argument
245 copyFromClipData(dstStack, clipData, callback); in copyFromClipData()
252 final FileOperations.Callback callback) { in copyFromClipData() argument
263 callback.onOperationResult( in copyFromClipData()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/wear/
DPackageInstallerImpl.java105 final InstallListener callback) { in install() argument
125 callback.installFailed(InstallerConstants.ERROR_INSTALL_CREATE_SESSION, in install()
136 callback.installFailed(InstallerConstants.ERROR_INSTALL_OPEN_SESSION, in install()
145 callback, session, in install()
146 getCommitCallback(packageName, sessionInfo.getSessionId(), callback)); in install()
154 callback.installFailed(InstallerConstants.ERROR_INSTALL_SESSION_EXCEPTION, in install()
254 final InstallListener callback) { in getCommitCallback() argument
260 handleCommitCallback(intent, packageName, sessionId, callback); in getCommitCallback()
286 InstallListener callback) { in handleCommitCallback() argument
295 callback.installSucceeded(); in handleCommitCallback()
[all …]
/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/services/Car/TrustAgent/src/com/android/car/trust/comms/
DSimpleBleClient.java193 public void addCallback(ClientCallback callback) { in addCallback() argument
194 mCallbacks.add(callback); in addCallback()
197 public void removeCallback(ClientCallback callback) { in removeCallback() argument
198 mCallbacks.remove(callback); in removeCallback()
315 for (ClientCallback callback : mCallbacks) {
316 callback.onDeviceConnected(gatt.getDevice());
321 for (ClientCallback callback : mCallbacks) {
322 callback.onDeviceDisconnected();
347 for (ClientCallback callback : mCallbacks) {
348 callback.onServiceDiscovered(service);
[all …]
/packages/apps/Dialer/java/com/android/dialer/animation/
DAnimUtils.java46 public static void fadeOut(final View fadeOut, int durationMs, final AnimationCallback callback) { in fadeOut() argument
58 if (callback != null) { in fadeOut()
59 callback.onAnimationEnd(); in fadeOut()
67 if (callback != null) { in fadeOut()
68 callback.onAnimationCancel(); in fadeOut()
83 final View fadeIn, int durationMs, int delay, final AnimationCallback callback) { in fadeIn() argument
102 if (callback != null) { in fadeIn()
103 callback.onAnimationCancel(); in fadeIn()
109 if (callback != null) { in fadeIn()
110 callback.onAnimationEnd(); in fadeIn()
/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/services/Car/car-lib/src/android/car/
DCarAppFocusManager.java225 public boolean isOwningFocus(OnAppFocusOwnershipCallback callback, @AppFocusType int appType) in isOwningFocus() argument
229 binder = mOwnershipBinders.get(callback); in isOwningFocus()
387 OnAppFocusOwnershipCallback callback) { in IAppFocusOwnershipCallbackImpl() argument
389 mCallback = new WeakReference<>(callback); in IAppFocusOwnershipCallbackImpl()
411 final OnAppFocusOwnershipCallback callback = mCallback.get(); in onAppFocusOwnershipLost() local
412 if (manager == null || callback == null) { in onAppFocusOwnershipLost()
418 callback.onAppFocusOwnershipLost(appType); in onAppFocusOwnershipLost()
426 final OnAppFocusOwnershipCallback callback = mCallback.get(); in onAppFocusOwnershipGranted() local
427 if (manager == null || callback == null) { in onAppFocusOwnershipGranted()
433 callback.onAppFocusOwnershipGranted(appType); in onAppFocusOwnershipGranted()
/packages/apps/Car/Radio/src/com/android/car/radio/demo/
DRadioDemo.java189 public void addRadioTunerCallback(IRadioCallback callback) throws RemoteException { in createDemoManager() argument
190 mCallbacks.add(callback); in createDemoManager()
194 public void removeRadioTunerCallback(IRadioCallback callback) throws RemoteException { in createDemoManager() argument
195 mCallbacks.remove(callback); in createDemoManager()
351 for (IRadioCallback callback : mCallbacks) {
353 callback.onRadioMuteChanged(isMuted);
364 for (IRadioCallback callback : mCallbacks) {
366 callback.onRadioBandChanged(radioBand);
378 for (IRadioCallback callback : mCallbacks) {
380 callback.onRadioStationChanged(station);
/packages/apps/Dialer/java/com/android/dialer/app/calllog/
DCallLogAsync.java43 return new GetLastOutgoingCallTask(args.callback).execute(args); in getLastOutgoingCall()
57 public final OnLastOutgoingCallComplete callback; field in CallLogAsync.GetLastOutgoingCallArgs
59 public GetLastOutgoingCallArgs(Context context, OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallArgs() argument
61 this.callback = callback; in GetLastOutgoingCallArgs()
70 public GetLastOutgoingCallTask(OnLastOutgoingCallComplete callback) { in GetLastOutgoingCallTask() argument
71 mCallback = callback; in GetLastOutgoingCallTask()
/packages/apps/Dialer/java/com/android/incallui/telecomeventui/
DInternationalCallOnWifiDialogFragment.java82 @NonNull String callId, @NonNull Callback callback) { in newInstance() argument
84 fragment.setCallback(callback); in newInstance()
110 @Nullable private Callback callback; field in InternationalCallOnWifiDialogFragment
117 public void setCallback(@NonNull Callback callback) { in setCallback() argument
118 this.callback = Assert.isNotNull(callback); in setCallback()
166 callback.continueCall(getArguments().getString(ARG_CALL_ID)); in onPositiveButtonClick()
177 callback.cancelCall(getArguments().getString(ARG_CALL_ID)); in onNegativeButtonClick()

12345678910>>...14