/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/provider/ |
D | SampleMediaRouteProvider.java | 284 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/ |
D | SampleMediaRouteProvider.java | 284 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/ |
D | MediaBrowserHelper.java | 138 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/ |
D | MediaBrowserHelper.java | 138 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/ |
D | TvInputPlayer.java | 125 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/ |
D | MyAutofillService.java | 102 @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/ |
D | MyAutofillService.java | 102 @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/build/prebuilts/gradle/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/ |
D | FingerprintAuthenticationDialogFragment.kt | 53 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()
|
D | FingerprintUiHelper.kt | 35 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/security/FingerprintDialog/kotlinApp/app/src/main/java/com/example/android/fingerprintdialog/ |
D | FingerprintAuthenticationDialogFragment.kt | 53 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()
|
D | FingerprintUiHelper.kt | 35 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/ |
D | MyAutofillService.kt | 36 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/ |
D | MyAutofillService.kt | 36 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/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/ |
D | FingerprintUiHelper.java | 60 … 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/security/AsymmetricFingerprintDialog/Application/src/main/java/com/example/android/asymmetricfingerprintdialog/ |
D | FingerprintUiHelper.java | 59 … 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/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | Player.java | 57 public void setCallback(Callback callback) { in setCallback() argument 58 mCallback = callback; in setCallback()
|
/developers/samples/android/media/MediaRouter/Application/src/main/java/com/example/android/mediarouter/player/ |
D | Player.java | 57 public void setCallback(Callback callback) { in setCallback() argument 58 mCallback = callback; in setCallback()
|
/developers/samples/android/wearable/wear/WatchFace/Wearable/src/main/java/com/example/android/wearable/watchface/util/ |
D | DigitalWatchFaceUtil.java | 122 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/ |
D | DigitalWatchFaceUtil.java | 122 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/input/autofill/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/ |
D | BasicService.java | 67 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()
|
D | MultiStepsService.java | 69 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()
|
/developers/build/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/simple/ |
D | BasicService.java | 67 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()
|
D | HeuristicsService.java | 86 FillCallback callback) { in onFillRequest() argument 96 callback.onSuccess(null); in onFillRequest() 123 callback.onSuccess(response); in onFillRequest() 127 public void onSaveRequest(SaveRequest request, SaveCallback callback) { in onSaveRequest() argument 130 callback.onSuccess(); in onSaveRequest()
|
/developers/build/prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 251 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/samples/android/deprecated/wearable/wear/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/ |
D | MockDatabase.java | 251 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()
|