Home
last modified time | relevance | path

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

123

/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/
DSampleMediaRouteProvider.java284 public boolean onControlRequest(Intent intent, ControlRequestCallback callback) { in onControlRequest() argument
290 success = handlePlay(intent, callback); in onControlRequest()
292 success = handleEnqueue(intent, callback); in onControlRequest()
294 success = handleRemove(intent, callback); in onControlRequest()
296 success = handleSeek(intent, callback); in onControlRequest()
298 success = handleGetStatus(intent, callback); in onControlRequest()
300 success = handlePause(intent, callback); in onControlRequest()
302 success = handleResume(intent, callback); in onControlRequest()
304 success = handleStop(intent, callback); in onControlRequest()
306 success = handleStartSession(intent, callback); in onControlRequest()
[all …]
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/
DSampleMediaRouteProvider.java284 public boolean onControlRequest(Intent intent, ControlRequestCallback callback) { in onControlRequest() argument
290 success = handlePlay(intent, callback); in onControlRequest()
292 success = handleEnqueue(intent, callback); in onControlRequest()
294 success = handleRemove(intent, callback); in onControlRequest()
296 success = handleSeek(intent, callback); in onControlRequest()
298 success = handleGetStatus(intent, callback); in onControlRequest()
300 success = handlePause(intent, callback); in onControlRequest()
302 success = handleResume(intent, callback); in onControlRequest()
304 success = handleStop(intent, callback); in onControlRequest()
306 success = handleStartSession(intent, callback); in onControlRequest()
[all …]
/developers/build/prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/client/
DMediaBrowserHelper.java138 public void perform(@NonNull Callback callback) { in resetState()
139 callback.onPlaybackStateChanged(null); in resetState()
153 public void registerCallback(Callback callback) { in registerCallback() argument
154 if (callback != null) { in registerCallback()
155 mCallbackList.add(callback); in registerCallback()
161 callback.onMetadataChanged(metadata); in registerCallback()
166 callback.onPlaybackStateChanged(playbackState); in registerCallback()
173 for (Callback callback : mCallbackList) { in performOnAllCallbacks()
174 if (callback != null) { in performOnAllCallbacks()
175 command.perform(callback); in performOnAllCallbacks()
[all …]
/developers/samples/android/media/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/client/
DMediaBrowserHelper.java138 public void perform(@NonNull Callback callback) { in resetState()
139 callback.onPlaybackStateChanged(null); in resetState()
153 public void registerCallback(Callback callback) { in registerCallback() argument
154 if (callback != null) { in registerCallback()
155 mCallbackList.add(callback); in registerCallback()
161 callback.onMetadataChanged(metadata); in registerCallback()
166 callback.onPlaybackStateChanged(playbackState); in registerCallback()
173 for (Callback callback : mCallbackList) { in performOnAllCallbacks()
174 if (callback != null) { in performOnAllCallbacks()
175 command.perform(callback); in performOnAllCallbacks()
[all …]
/developers/build/prebuilts/androidtv/sample-inputs/app/src/main/java/com/example/android/sampletvinput/player/
DTvInputPlayer.java125 for(Callback callback : mCallbacks) {
126 callback.onDrawnToSurface(surface);
133 for(Callback callback : mCallbacks) {
134 callback.onPlayerError(new ExoPlaybackException(e));
140 for(Callback callback : mCallbacks) {
141 callback.onPlayerError(new ExoPlaybackException(e));
157 for(Callback callback : mCallbacks) { in TvInputPlayer()
158 callback.onPlayerStateChanged(playWhenReady, playbackState); in TvInputPlayer()
164 for(Callback callback : mCallbacks) { in TvInputPlayer()
165 callback.onPlayWhenReadyCommitted(); in TvInputPlayer()
[all …]
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DMyAutofillService.java102 @NonNull CancellationSignal cancellationSignal, @NonNull FillCallback callback) { in onFillRequest() argument
125 callback.onFailure(getString(R.string.invalid_package_signature)); in onFillRequest()
137 datasetAuth, manual, callback); in onFillRequest()
149 boolean datasetAuth, boolean manual, FillCallback callback) { in fetchDataAndGenerateResponse() argument
158 callback.onSuccess(response); in fetchDataAndGenerateResponse()
174 callback.onSuccess(response); in fetchDataAndGenerateResponse()
179 callback.onSuccess(response); in fetchDataAndGenerateResponse()
186 callback.onFailure(String.format(msg, params)); in fetchDataAndGenerateResponse()
193 public void onSaveRequest(@NonNull SaveRequest request, @NonNull SaveCallback callback) { in onSaveRequest() argument
211 callback.onFailure(getString(R.string.invalid_package_signature)); in onSaveRequest()
[all …]
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/
DMyAutofillService.java102 @NonNull CancellationSignal cancellationSignal, @NonNull FillCallback callback) { in onFillRequest() argument
125 callback.onFailure(getString(R.string.invalid_package_signature)); in onFillRequest()
137 datasetAuth, manual, callback); in onFillRequest()
149 boolean datasetAuth, boolean manual, FillCallback callback) { in fetchDataAndGenerateResponse() argument
158 callback.onSuccess(response); in fetchDataAndGenerateResponse()
174 callback.onSuccess(response); in fetchDataAndGenerateResponse()
179 callback.onSuccess(response); in fetchDataAndGenerateResponse()
186 callback.onFailure(String.format(msg, params)); in fetchDataAndGenerateResponse()
193 public void onSaveRequest(@NonNull SaveRequest request, @NonNull SaveCallback callback) { in onSaveRequest() argument
211 callback.onFailure(getString(R.string.invalid_package_signature)); in onSaveRequest()
[all …]
/developers/samples/android/security/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/
DFingerprintAuthenticationDialogFragment.kt53 private lateinit var callback: Callback variable in com.example.android.fingerprintdialog.FingerprintAuthenticationDialogFragment
131 fun setCallback(callback: Callback) { in setCallback()
132 this.callback = callback in setCallback()
178 callback.createKey(DEFAULT_KEY_NAME) in verifyPassword()
183 callback.onPurchased(withFingerprint = false) in verifyPassword()
226 callback.onPurchased(withFingerprint = true, crypto = cryptoObject) in onAuthenticated()
DFingerprintUiHelper.kt35 private val callback: Callback constant in com.example.android.fingerprintdialog.FingerprintUiHelper
71 icon.postDelayed({ callback.onError() }, ERROR_TIMEOUT_MILLIS) in onAuthenticationError()
89 postDelayed({ callback.onAuthenticated() }, SUCCESS_DELAY_MILLIS) in onAuthenticationHelp()
/developers/build/prebuilts/gradle/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/
DFingerprintAuthenticationDialogFragment.kt53 private lateinit var callback: Callback variable in com.example.android.fingerprintdialog.FingerprintAuthenticationDialogFragment
131 fun setCallback(callback: Callback) { in setCallback()
132 this.callback = callback in setCallback()
178 callback.createKey(DEFAULT_KEY_NAME) in verifyPassword()
183 callback.onPurchased(withFingerprint = false) in verifyPassword()
226 callback.onPurchased(withFingerprint = true, crypto = cryptoObject) in onAuthenticated()
DFingerprintUiHelper.kt35 private val callback: Callback constant in com.example.android.fingerprintdialog.FingerprintUiHelper
71 icon.postDelayed({ callback.onError() }, ERROR_TIMEOUT_MILLIS) in onAuthenticationError()
89 postDelayed({ callback.onAuthenticated() }, SUCCESS_DELAY_MILLIS) in onAuthenticationHelp()
/developers/samples/android/input/autofill/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DMyAutofillService.kt36 callback: FillCallback) { in onFillRequest()
63 callback.onSuccess(responseBuilder.build()) in onFillRequest()
69 callback.onSuccess(response) in onFillRequest()
73 override fun onSaveRequest(request: SaveRequest, callback: SaveCallback) { in onSaveRequest()
/developers/build/prebuilts/gradle/AutofillFramework/kotlinApp/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/
DMyAutofillService.kt36 callback: FillCallback) { in onFillRequest()
63 callback.onSuccess(responseBuilder.build()) in onFillRequest()
69 callback.onSuccess(response) in onFillRequest()
73 override fun onSaveRequest(request: SaveRequest, callback: SaveCallback) { in onSaveRequest()
/developers/samples/android/security/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
DFingerprintUiHelper.java59 … public FingerprintUiHelper build(ImageView icon, TextView errorTextView, Callback callback) { in build() argument
61 callback); in build()
70 ImageView icon, TextView errorTextView, Callback callback) { in FingerprintUiHelper() argument
74 mCallback = callback; in FingerprintUiHelper()
/developers/build/prebuilts/gradle/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/
DFingerprintUiHelper.java60 … public FingerprintUiHelper build(ImageView icon, TextView errorTextView, Callback callback) { in build() argument
62 callback); in build()
71 ImageView icon, TextView errorTextView, Callback callback) { in FingerprintUiHelper() argument
75 mCallback = callback; in FingerprintUiHelper()
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/util/
DDigitalWatchFaceUtil.java122 final FetchConfigDataMapCallback callback) { in fetchConfigDataMap() argument
134 .setResultCallback(new DataItemResultCallback(callback)); in fetchConfigDataMap()
188 public DataItemResultCallback(FetchConfigDataMapCallback callback) { in DataItemResultCallback() argument
189 mCallback = callback; in DataItemResultCallback()
/developers/build/prebuilts/gradle/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/util/
DDigitalWatchFaceUtil.java122 final FetchConfigDataMapCallback callback) { in fetchConfigDataMap() argument
134 .setResultCallback(new DataItemResultCallback(callback)); in fetchConfigDataMap()
188 public DataItemResultCallback(FetchConfigDataMapCallback callback) { in DataItemResultCallback() argument
189 mCallback = callback; in DataItemResultCallback()
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DPlayer.java57 public void setCallback(Callback callback) { in setCallback() argument
58 mCallback = callback; in setCallback()
/developers/build/prebuilts/gradle/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/
DPlayer.java57 public void setCallback(Callback callback) { in setCallback() argument
58 mCallback = callback; in setCallback()
/developers/samples/android/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/
DBasicService.java67 FillCallback callback) { in onFillRequest() argument
77 callback.onSuccess(null); in onFillRequest()
111 callback.onSuccess(response.build()); in onFillRequest()
115 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument
118 callback.onSuccess(); in onSaveRequest()
DMultiStepsService.java69 FillCallback callback) { in onFillRequest() argument
84 callback.onSuccess(null); in onFillRequest()
132 callback.onSuccess(new FillResponse.Builder() in onFillRequest()
139 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument
142 callback.onSuccess(); in onSaveRequest()
DDebugService.java87 FillCallback callback) { in onFillRequest() argument
97 callback.onSuccess(null); in onFillRequest()
124 callback.onSuccess(response); in onFillRequest()
128 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument
131 callback.onSuccess(); in onSaveRequest()
/developers/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java251 public static void getUser(Context context, String id, RetrieveUserCallback callback) { in getUser() argument
254 callback.onUserRetrieved(user); in getUser()
257 callback.onUserRetrieved(null); in getUser()
268 public static void createUser(Context context, Profile user, CreateUserCallback callback) { in createUser() argument
270 callback.onSuccess(); in createUser()
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/
DMockDatabase.java251 public static void getUser(Context context, String id, RetrieveUserCallback callback) { in getUser() argument
254 callback.onUserRetrieved(user); in getUser()
257 callback.onUserRetrieved(null); in getUser()
268 public static void createUser(Context context, Profile user, CreateUserCallback callback) { in createUser() argument
270 callback.onSuccess(); in createUser()
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/
DBasicService.java67 FillCallback callback) { in onFillRequest() argument
77 callback.onSuccess(null); in onFillRequest()
111 callback.onSuccess(response.build()); in onFillRequest()
115 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument
118 callback.onSuccess(); in onSaveRequest()

123