Home
last modified time | relevance | path

Searched refs:Callback (Results 1 – 25 of 453) sorted by relevance

12345678910>>...19

/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java67 private final Set<Map.Entry<Executor, Callback>> mCallbacks = new ArraySet<>();
68 private final Map<Uri, List<Map.Entry<Executor, Callback>>> mLoadCallbacks = new ArrayMap<>();
71 public interface Callback { interface in ImageLoader
80 public void addCallback(@NonNull Callback callback) { in addCallback()
84 public void addCallback(@NonNull Callback callback, @NonNull Executor executor) { in addCallback()
92 public void removeCallback(@NonNull Callback callback) { in removeCallback()
96 public void removeCallback(@NonNull Callback callback, @NonNull Executor executor) { in removeCallback()
104 public void loadImage(@NonNull Uri uri, @NonNull Callback callback) { in loadImage()
108 public void loadImage(@NonNull Uri uri, @NonNull Callback callback, in loadImage()
115 List<Map.Entry<Executor, Callback>> callbacks = mLoadCallbacks.get(uri); in loadImage()
[all …]
/packages/apps/Nfc/src/com/android/nfc/
DForegroundUtils.java40 private final SparseArray<List<Callback>> mBackgroundCallbacks =
41 new SparseArray<List<Callback>>();
57 public interface Callback { interface in ForegroundUtils
76 public boolean registerUidToBackgroundCallback(Callback callback, int uid) { in registerUidToBackgroundCallback()
83 List<Callback> callbacks = mBackgroundCallbacks.get(uid, new ArrayList<Callback>()); in registerUidToBackgroundCallback()
129 ArrayList<Callback> pendingCallbacks = null; in handleUidToBackground()
131 List<Callback> callbacks = mBackgroundCallbacks.get(uid); in handleUidToBackground()
133 pendingCallbacks = new ArrayList<Callback>(callbacks); in handleUidToBackground()
140 for (Callback callback : pendingCallbacks) { in handleUidToBackground()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/testing/
DTestDocumentClipper.java30 import com.android.documentsui.services.FileOperations.Callback;
87 Callback callback) { in copyFromClipboard()
92 public void copyFromClipboard(DocumentStack docStack, Callback callback) { in copyFromClipboard()
98 ClipData clipData, Callback callback) { in copyFromClipData()
104 @OpType int opType, Callback callback) { in copyFromClipData()
110 public void copyFromClipData(DocumentStack docStack, ClipData clipData, Callback callback) { in copyFromClipData()
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java35 interface Callback { interface in RadioOnStateListener
71 RadioOnStateListener.Callback callback =
72 (RadioOnStateListener.Callback) args.arg2;
101 private Callback mCallback; // The callback to notify upon completion.
123 public void waitForRadioOn(Phone phone, Callback callback, in waitForRadioOn()
145 private void startSequenceInternal(Phone phone, Callback callback, in startSequenceInternal()
343 Callback tempCallback = mCallback; in onComplete()
/packages/apps/Nfc/src/com/android/nfc/snep/
DSnepServer.java44 final Callback mCallback;
55 public interface Callback { interface in SnepServer
60 public SnepServer(Callback callback) { in SnepServer()
69 public SnepServer(String serviceName, int serviceSap, Callback callback) { in SnepServer()
78 public SnepServer(Callback callback, int miu, int rwSize) { in SnepServer()
87 SnepServer(String serviceName, int serviceSap, int fragmentLength, Callback callback) { in SnepServer()
140 static boolean handleRequest(SnepMessenger messenger, Callback callback) throws IOException { in handleRequest()
/packages/services/Car/service/src/com/android/car/trust/
DBlePeripheralManager.java76 private final CopyOnWriteArrayList<Callback> mCallbacks = new CopyOnWriteArrayList<>();
105 void registerCallback(@NonNull Callback callback) { in registerCallback()
114 void unregisterCallback(@NonNull Callback callback) { in unregisterCallback()
340 for (Callback callback : mCallbacks) {
345 for (Callback callback : mCallbacks) {
380 for (Callback callback : mCallbacks) {
424 for (Callback callback : mCallbacks) {
487 for (Callback callback : mCallbacks) {
499 interface Callback { interface in BlePeripheralManager
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/device/storage/
DFormatAsPrivateStepFragment.java36 public interface Callback { interface in FormatAsPrivateStepFragment
78 final Callback callback = (Callback) getActivity(); in onGuidedActionClicked()
81 final Callback callback = (Callback) getActivity(); in onGuidedActionClicked()
/packages/apps/DocumentsUI/src/com/android/documentsui/clipping/
DRuntimeDocumentClipper.java223 FileOperations.Callback callback) { in copyFromClipboard()
231 FileOperations.Callback callback) { in copyFromClipboard()
241 FileOperations.Callback callback) { in copyFromClipData()
252 FileOperations.Callback callback) { in copyFromClipData()
262 FileOperations.Callback callback) { in copyFromClipData()
274 FileOperations.Callback.STATUS_REJECTED, getOpType(clipData), 0); in copyFromClipData()
281 FileOperations.Callback.STATUS_ACCEPTED, opType, 0); in copyFromClipData()
298 callback.onOperationResult(FileOperations.Callback.STATUS_REJECTED, opType, 0); in copyFromClipData()
DDocumentClipper.java85 FileOperations.Callback callback); in copyFromClipboard()
96 FileOperations.Callback callback); in copyFromClipboard()
111 FileOperations.Callback callback); in copyFromClipData()
126 FileOperations.Callback callback); in copyFromClipData()
139 FileOperations.Callback callback); in copyFromClipData()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DAppsStorageStatsManager.java42 public interface Callback { interface in AppsStorageStatsManager
57 private List<Callback> mAppsStorageStatsListeners = new ArrayList<>();
66 public void registerListener(Callback appsStorageStatsListener) { in registerListener()
75 public void unregisterListener(Callback appsStorageStatsListener) { in unregisterListener()
92 for (Callback listener : mAppsStorageStatsListeners) { in onAppsStorageStatsLoaded()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DAppsNetworkStatsManager.java48 public interface Callback { interface in AppsNetworkStatsManager
61 private final List<AppsNetworkStatsManager.Callback> mAppsNetworkStatsListeners =
80 public void registerListener(AppsNetworkStatsManager.Callback appsNetworkStatsListener) { in registerListener()
89 public void unregisterListener(AppsNetworkStatsManager.Callback appsNetworkStatsListener) { in unregisterListener()
101 for (AppsNetworkStatsManager.Callback listener : mAppsNetworkStatsListeners) { in onAppsNetworkStatsLoaded()
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java57 @Captor ArgumentCaptor<MediaController.Callback> mControllerCbs;
61 @Mock MediaPlayerWrapper.Callback mTestCbs;
201 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testControllerUpdate()
226 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNoQueueMediaUpdates()
288 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testDataOnUpdateNoQueue()
332 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullMetadata()
361 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullQueue()
411 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testPlaybackStateUpdateSpam()
485 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testIgnorePlaystateNone()
515 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testMetadataSync()
[all …]
/packages/apps/Car/libs/connected-device-lib/src/com/android/car/connecteddevice/ble/
DBlePeripheralManager.java78 private final Set<Callback> mCallbacks = new CopyOnWriteArraySet<>();
105 void registerCallback(@NonNull Callback callback) { in registerCallback()
114 void unregisterCallback(@NonNull Callback callback) { in unregisterCallback()
316 for (Callback callback : mCallbacks) {
321 for (Callback callback : mCallbacks) {
383 for (Callback callback : mCallbacks) {
457 for (Callback callback : mCallbacks) {
469 interface Callback { interface in BlePeripheralManager
DSecureBleChannel.java82 private Callback mCallback;
147 void registerCallback(Callback callback) { in registerCallback()
152 void unregisterCallback(Callback callback) { in unregisterCallback()
160 Callback getCallback() { in getCallback()
164 void notifyCallback(@NonNull Consumer<Callback> notification) { in notifyCallback()
255 interface Callback { interface in SecureBleChannel
/packages/apps/Camera2/src/com/android/camera/async/
DFilteredCallback.java19 import com.android.camera.util.Callback;
31 public final class FilteredCallback<T> implements Callback<T> {
32 private final Callback<T> mCallback;
36 public FilteredCallback(Callback<T> callback) { in FilteredCallback()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DZenServiceListing.java40 private final List<Callback> mZenCallbacks = new ArrayList<>();
62 public void addZenCallback(Callback callback) { in addZenCallback()
66 public void removeZenCallback(Callback callback) { in removeZenCallback()
86 for (Callback callback : mZenCallbacks) { in reloadApprovedServices()
136 public interface Callback { interface in ZenServiceListing
/packages/apps/Settings/src/com/android/settings/utils/
DZenServiceListing.java40 private final List<Callback> mZenCallbacks = new ArrayList<>();
62 public void addZenCallback(Callback callback) { in addZenCallback()
66 public void removeZenCallback(Callback callback) { in removeZenCallback()
86 for (Callback callback : mZenCallbacks) { in reloadApprovedServices()
136 public interface Callback { interface in ZenServiceListing
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/finalization/
DDpcReceivedSuccessReceiver.java40 interface Callback { interface in DpcReceivedSuccessReceiver
45 private final Callback mCallback;
49 Callback callback, boolean isAdminIntegratedFlow) { in DpcReceivedSuccessReceiver()
56 UserHandle managedUserHandle, String mdmPackageName, Utils utils, Callback callback, in DpcReceivedSuccessReceiver()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDevicePreferenceControllerTest.java113 verify(mDevice).registerCallback(any(CachedBluetoothDevice.Callback.class)); in onStart_registersDeviceCallback()
119 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onStop_unregistersDeviceCallback()
120 CachedBluetoothDevice.Callback.class); in onStop_unregistersDeviceCallback()
131 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in started_onDeviceAttributesChanged_refreshesUi()
132 CachedBluetoothDevice.Callback.class); in started_onDeviceAttributesChanged_refreshesUi()
DBluetoothDeviceProfilePreferenceTest.java83 verify(mCachedDevice).registerCallback(any(CachedBluetoothDevice.Callback.class)); in onAttached_registersDeviceCallback()
152 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDeviceAttributesChanged_refreshesUi()
153 CachedBluetoothDevice.Callback.class); in onDeviceAttributesChanged_refreshesUi()
171 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onDetached_unregistersDeviceCallback()
172 CachedBluetoothDevice.Callback.class); in onDetached_unregistersDeviceCallback()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DAbstractProvisioningTask.java41 private final Callback mCallback;
54 Callback callback) { in AbstractProvisioningTask()
65 Callback callback, in AbstractProvisioningTask()
123 public interface Callback { interface in AbstractProvisioningTask
/packages/apps/DocumentsUI/src/com/android/documentsui/
DDragAndDropManager.java139 FileOperations.Callback callback); in drop()
151 FileOperations.Callback callback); in drop()
389 ActionHandler action, FileOperations.Callback callback) { in drop()
416 FileOperations.Callback callback) { in dropOnRootDocument()
419 FileOperations.Callback.STATUS_FAILED, in dropOnRootDocument()
434 FileOperations.Callback callback) { in drop()
450 @OpType int opType, FileOperations.Callback callback) { in dropChecked()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DBlockNumberDialogFragment.java59 private Callback callback;
68 Callback callback) { in show()
196 public void setCallback(Callback callback) { in setCallback()
217 final Callback callback = this.callback; in blockNumber()
268 final Callback callback = this.callback; in unblockNumber()
318 public interface Callback { interface in BlockNumberDialogFragment
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DGenericOneCameraImpl.java33 import com.android.camera.util.Callback;
103 mAFStateListenable.setCallback(new Callback<Integer>() { in setFocusStateListener()
123 mFocusStateListenable.setCallback(new Callback<FocusState>() { in setFocusDistanceListener()
140 Callback<Boolean> readyStateCallback = new Callback<Boolean>() { in setReadyStateChangedListener()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DVolumeSeekBarPreference.java46 private Callback mCallback;
97 public void setCallback(Callback callback) { in setCallback()
126 final SeekBarVolumizer.Callback sbvc = new SeekBarVolumizer.Callback() { in init()
206 public interface Callback { interface in VolumeSeekBarPreference

12345678910>>...19