Home
last modified time | relevance | path

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

12345678910>>...18

/packages/apps/TvSettings/Settings/src/com/android/tv/settings/users/
DRestrictedProfilePinDialogFragment.java29 public interface Callback extends ResultListener { interface in RestrictedProfilePinDialogFragment
99 Callback callback = null; in setPin()
102 if (f instanceof Callback) { in setPin()
103 callback = (Callback) f; in setPin()
106 if (callback == null && getActivity() instanceof Callback) { in setPin()
107 callback = (Callback) getActivity(); in setPin()
118 Callback callback = null; in deletePin()
121 if (f instanceof Callback) { in deletePin()
122 callback = (Callback) f; in deletePin()
125 if (callback == null && getActivity() instanceof Callback) { in deletePin()
[all …]
/packages/apps/UniversalMediaPlayer/java/com/android/pump/util/
DImageLoader.java47 private final Set<Map.Entry<Executor, Callback>> mCallbacks = new ArraySet<>();
48 private final Map<Uri, List<Map.Entry<Executor, Callback>>> mLoadCallbacks = new ArrayMap<>();
51 public interface Callback { interface in ImageLoader
59 public void addCallback(@NonNull Callback callback) { in addCallback()
63 public void addCallback(@NonNull Callback callback, @NonNull Executor executor) { in addCallback()
71 public void removeCallback(@NonNull Callback callback) { in removeCallback()
75 public void removeCallback(@NonNull Callback callback, @NonNull Executor executor) { in removeCallback()
83 public void loadImage(@NonNull Uri uri, @NonNull Callback callback) { in loadImage()
87 public void loadImage(@NonNull Uri uri, @NonNull Callback callback, in loadImage()
94 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()
119 ArrayList<Callback> pendingCallbacks = null; in handleUidToBackground()
121 List<Callback> callbacks = mBackgroundCallbacks.get(uid); in handleUidToBackground()
123 pendingCallbacks = new ArrayList<Callback>(callbacks); in handleUidToBackground()
130 for (Callback callback : pendingCallbacks) { in handleUidToBackground()
/packages/apps/Car/Dialer/src/com/android/car/dialer/telecom/
DInCallServiceImpl.java40 private CopyOnWriteArrayList<Callback> mCallbacks = new CopyOnWriteArrayList<>();
80 for (Callback callback : mCallbacks) { in onCallAdded()
90 for (Callback callback : mCallbacks) { in onCallRemoved()
116 for (Callback callback : mCallbacks) { in onCallAudioStateChanged()
121 public void registerCallback(Callback callback) { in registerCallback()
125 public void unregisterCallback(Callback callback) { in unregisterCallback()
138 interface Callback { interface in InCallServiceImpl
/packages/services/Telephony/src/com/android/services/telephony/
DRadioOnStateListener.java35 interface Callback { interface in RadioOnStateListener
68 RadioOnStateListener.Callback callback =
69 (RadioOnStateListener.Callback) args.arg2;
89 private Callback mCallback; // The callback to notify upon completion.
107 public void waitForRadioOn(Phone phone, Callback callback) { in waitForRadioOn()
126 private void startSequenceInternal(Phone phone, Callback callback) { in startSequenceInternal()
276 Callback tempCallback = mCallback; in onComplete()
/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/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/apps/Email/src/com/android/email/activity/
DInsertQuickResponseDialog.java52 public interface Callback { interface in InsertQuickResponseDialog
74 if (!(callbackFragment instanceof Callback)) { in newInstance()
92 if (!(getActivity() instanceof Callback)) { in onCreateDialog()
161 private Callback getCallback() {
164 return (Callback) targetFragment;
166 return (Callback) getActivity();
/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/Email/src/com/android/email/activity/setup/
DAccountSetupNoteDialogFragment.java34 public static interface Callback { interface in AccountSetupNoteDialogFragment
69 final Callback a = (Callback) getActivity(); in onCreateDialog()
88 final Callback a = (Callback) getActivity();
DSecurityRequiredDialogFragment.java45 public interface Callback { interface in SecurityRequiredDialogFragment
84 final Callback callback = (Callback) getActivity(); in onCreateDialog()
102 final Callback callback = (Callback) getActivity();
DAccountServerBaseFragment.java82 public interface Callback extends AccountSetupFragment.Callback { interface in AccountServerBaseFragment
274 final Callback callback = (Callback) getActivity(); in saveSettings()
295 final Callback callback = (Callback) getActivity(); in collectUserInput()
DAccountSetupFinal.java62 implements AccountFinalizeFragment.Callback,
63 AccountSetupNoteDialogFragment.Callback, AccountCreationFragment.Callback,
64 AccountCheckSettingsFragment.Callback, SecurityRequiredDialogFragment.Callback,
65 CheckSettingsErrorDialogFragment.Callback, CheckSettingsProgressDialogFragment.Callback,
66 AccountSetupTypeFragment.Callback, AccountSetupNamesFragment.Callback,
67 AccountSetupOptionsFragment.Callback, AccountSetupBasicsFragment.Callback,
68 AccountServerBaseFragment.Callback, AccountSetupCredentialsFragment.Callback,
69 DuplicateAccountDialogFragment.Callback, AccountSetupABFragment.Callback {
DAccountSetupCredentialsFragment.java88 public interface Callback extends AccountSetupFragment.Callback { interface in AccountSetupCredentialsFragment
276 final Callback callback = (Callback) getActivity(); in onActivityResult()
305 final Callback callback = (Callback) getActivity(); in onClick()
308 final Callback callback = (Callback) getActivity(); in onClick()
/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/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/Bluetooth/tests/unit/src/com/android/bluetooth/newavrcp/
DMediaPlayerWrapperTest.java57 @Captor ArgumentCaptor<MediaController.Callback> mControllerCbs;
61 @Mock MediaPlayerWrapper.Callback mTestCbs;
199 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testControllerUpdate()
224 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNoQueueMediaUpdates()
286 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testDataOnUpdateNoQueue()
330 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullMetadata()
359 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testNullQueue()
409 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testPlaybackStateUpdateSpam()
483 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testIgnorePlaystateNone()
513 MediaController.Callback controllerCallbacks = mControllerCbs.getValue(); in testMetadataSync()
[all …]
/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/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/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/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/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.java118 verify(mDevice).registerCallback(any(CachedBluetoothDevice.Callback.class)); in onStart_registersDeviceCallback()
124 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in onStop_unregistersDeviceCallback()
125 CachedBluetoothDevice.Callback.class); in onStop_unregistersDeviceCallback()
136 ArgumentCaptor<CachedBluetoothDevice.Callback> callbackCaptor = ArgumentCaptor.forClass( in started_onDeviceAttributesChanged_refreshesUi()
137 CachedBluetoothDevice.Callback.class); in started_onDeviceAttributesChanged_refreshesUi()
/packages/apps/Camera2/src/com/android/camera/one/v2/initialization/
DGenericOneCameraImpl.java33 import com.android.camera.util.Callback;
102 mAFStateListenable.setCallback(new Callback<Integer>() { in setFocusStateListener()
122 mFocusStateListenable.setCallback(new Callback<FocusState>() { in setFocusDistanceListener()
139 Callback<Boolean> readyStateCallback = new Callback<Boolean>() { in setReadyStateChangedListener()

12345678910>>...18