/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaRouterTest.java | 371 MediaRouterCallback callback = new MediaRouterCallback(); in testCallback() local 372 MediaRouter.Callback mrc = (MediaRouter.Callback) callback; in testCallback() 373 MediaRouter.SimpleCallback mrsc = (MediaRouter.SimpleCallback) callback; in testCallback() 377 mMediaRouter.addCallback(allRouteTypes, callback); in testCallback() 380 callback.reset(); in testCallback() 383 assertThat(callback.mOnRouteAddedCalled).isTrue(); in testCallback() 384 assertThat(callback.mAddedRoute).isEqualTo(userRoute); in testCallback() 386 mrc.onRouteAdded(mMediaRouter, callback.mAddedRoute); in testCallback() 387 mrsc.onRouteAdded(mMediaRouter, callback.mAddedRoute); in testCallback() 392 callback.reset(); in testCallback() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/cts/ |
D | FakeCarrierMessagingService.java | 33 int subId, ResultCallback<Integer> callback) { in onReceiveTextSms() argument 35 callback.onReceiveResult(CarrierMessagingService.RECEIVE_OPTIONS_DEFAULT); in onReceiveTextSms() 42 int sendSmsFlag, ResultCallback<SendSmsResult> callback) { in onSendTextSms() argument 44 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_OK, FAKE_MESSAGE_REF)); in onSendTextSms() 51 int destPort, int sendSmsFlag, ResultCallback<SendSmsResult> callback) { in onSendDataSms() argument 53 callback.onReceiveResult(new SendSmsResult(SEND_STATUS_OK, FAKE_MESSAGE_REF)); in onSendDataSms() 61 ResultCallback<SendMultipartSmsResult> callback) { in onSendMultipartTextSms() argument 63 callback.onReceiveResult(new SendMultipartSmsResult( in onSendMultipartTextSms() 71 ResultCallback<SendMmsResult> callback) { in onSendMms() argument 73 callback.onReceiveResult(new SendMmsResult( in onSendMms() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ime/ |
D | WindowInsetsAnimationImeTests.java | 116 MultiAnimCallback callback = in testAnimationCallbacks_overlapping_opposite() local 123 mActivity.mView.setWindowInsetsAnimationCallback(callback); in testAnimationCallbacks_overlapping_opposite() 130 "Waiting until IME animation starts", () -> callback.imeAnimStarted); in testAnimationCallbacks_overlapping_opposite() 132 "Waiting until animation done", () -> callback.runningAnims.isEmpty()); in testAnimationCallbacks_overlapping_opposite() 139 InOrder inOrderBar = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite() 140 InOrder inOrderIme = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping_opposite() 142 inOrderBar.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping_opposite() 154 .verify(callback) in testAnimationCallbacks_overlapping_opposite() 156 eq(callback.statusBarAnim), in testAnimationCallbacks_overlapping_opposite() 163 inOrderIme.verify(callback).onPrepare(eq(callback.imeAnim)); in testAnimationCallbacks_overlapping_opposite() [all …]
|
/cts/tests/tests/attributionsource/BlamedPermissionApp2/src/android/attributionsource/cts/blamed2/ |
D | MyRecognitionService.kt | 32 override fun onStartListening(intent: Intent, callback: Callback) { in onStartListening() 35 performOperationMicRecoWithAttribution(callback) in onStartListening() 39 performOperationInjectRecoWithoutAttribution(callback) in onStartListening() 45 override fun onStopListening(callback: Callback) {} in onStopListening() 47 override fun onCancel(callback: Callback) { in onCancel() 53 callback.bufferReceived(ByteArray(0)) in onCancel() 57 fun performOperationMicRecoWithAttribution(callback: Callback) { in performOperationMicRecoWithAttribution() 59 .setNextAttributionSource(callback.callingAttributionSource) in performOperationMicRecoWithAttribution() 81 callback.bufferReceived(ByteArray(0)) in performOperationMicRecoWithAttribution() 86 fun performOperationInjectRecoWithoutAttribution(callback: Callback) { in performOperationInjectRecoWithoutAttribution() [all …]
|
/cts/tests/quickaccesswallet/src/android/quickaccesswallet/cts/ |
D | QuickAccessWalletClientTest.java | 212 TestCallback callback = new TestCallback(); in testGetWalletCards_success() local 214 client.getWalletCards(GET_WALLET_CARDS_REQUEST, callback); in testGetWalletCards_success() 216 callback.await(3, TimeUnit.SECONDS); in testGetWalletCards_success() 217 assertThat(callback.mResponse).isNotNull(); in testGetWalletCards_success() 218 assertThat(callback.mResponse.getWalletCards()).hasSize(1); in testGetWalletCards_success() 219 assertThat(callback.mError).isNull(); in testGetWalletCards_success() 228 TestCallback callback = new TestCallback(); in testGetWalletCards_failsIfNoServiceAvailable() local 230 client.getWalletCards(GET_WALLET_CARDS_REQUEST, callback); in testGetWalletCards_failsIfNoServiceAvailable() 232 callback.await(3, TimeUnit.SECONDS); in testGetWalletCards_failsIfNoServiceAvailable() 233 assertThat(callback.mResponse).isNull(); in testGetWalletCards_failsIfNoServiceAvailable() [all …]
|
/cts/tests/tests/telephony/current/src/android/telephony/satellite/cts/ |
D | SatelliteManagerTestOnMockService.java | 201 SatelliteModemStateCallbackTest callback = new SatelliteModemStateCallbackTest(); in setupMockSatelliteService() local 204 getContext().getMainExecutor(), callback) in setupMockSatelliteService() 210 assertTrue(callback.waitUntilResult(1)); in setupMockSatelliteService() 211 if (callback.modemState == SatelliteManager.SATELLITE_MODEM_STATE_OFF) { in setupMockSatelliteService() 214 assertTrue(callback.waitUntilModemOff(EXTERNAL_DEPENDENT_TIMEOUT)); in setupMockSatelliteService() 216 sSatelliteManager.unregisterForModemStateChanged(callback); in setupMockSatelliteService() 247 SatelliteModemStateCallbackTest callback = new SatelliteModemStateCallbackTest(); in afterAllTests() local 249 getContext().getMainExecutor(), callback); in afterAllTests() 251 assertTrue(callback.waitUntilResult(1)); in afterAllTests() 255 sSatelliteManager.unregisterForModemStateChanged(callback); in afterAllTests() [all …]
|
/cts/tests/tests/wifi/src/android/net/wifi/sharedconnectivity/cts/ |
D | SharedConnectivityTest.java | 165 TestSharedConnectivityClientCallback callback = in registerCallback_withoutPermission_throwsSecurityException() local 169 manager.registerCallback(Runnable::run, callback); in registerCallback_withoutPermission_throwsSecurityException() 171 assertServiceConnected(callback); in registerCallback_withoutPermission_throwsSecurityException() 188 TestSharedConnectivityClientCallback callback = in registerCallback_onServiceConnectedCallbackReceived() local 190 manager.registerCallback(Runnable::run, callback); in registerCallback_onServiceConnectedCallbackReceived() 193 assertServiceConnected(callback); in registerCallback_onServiceConnectedCallbackReceived() 205 TestSharedConnectivityClientCallback callback = in unregisterCallback_beforeRegister_unregisterUnsuccessful() local 208 assertThat(manager.unregisterCallback(callback)).isFalse(); in unregisterCallback_beforeRegister_unregisterUnsuccessful() 221 TestSharedConnectivityClientCallback callback = in unregisterCallback_unregisterSuccessful() local 231 manager.registerCallback(Runnable::run, callback); in unregisterCallback_unregisterSuccessful() [all …]
|
/cts/tests/tests/companion/core/src/android/companion/cts/core/ |
D | DeviceProfilesTest.kt | 55 val callback = RecordingCallback() in <lambda>() constant 57 callback.clearRecordedInvocations() in <lambda>() 62 cdm.associate(request, SIMPLE_EXECUTOR, callback) in <lambda>() 65 assertEmpty(callback.invocations) in <lambda>() 70 callback.assertInvokedByActions { in <lambda>() 72 cdm.associate(request, SIMPLE_EXECUTOR, callback) in <lambda>() 76 assertEquals(1, callback.invocations.size) in <lambda>() 77 assertIs<OnAssociationPending>(callback.invocations.first()) in <lambda>() 84 val callback = RecordingCallback() in <lambda>() constant 89 cdm.associate(request, SIMPLE_EXECUTOR, callback) in <lambda>() [all …]
|
D | AssociateSelfManagedTest.kt | 55 val callback = RecordingCallback() in test_associate_selfManaged_requiresPermission() constant 60 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_requiresPermission() 62 assertEmpty(callback.invocations) in test_associate_selfManaged_requiresPermission() 66 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_requiresPermission() 76 val callback = RecordingCallback() in test_associate_selfManaged_nullProfile_leadsToNoUiFlow() constant 78 callback.assertInvokedByActions { in test_associate_selfManaged_nullProfile_leadsToNoUiFlow() 80 cdm.associate(request, SIMPLE_EXECUTOR, callback) in test_associate_selfManaged_nullProfile_leadsToNoUiFlow() 86 assertEquals(1, callback.invocations.size) in test_associate_selfManaged_nullProfile_leadsToNoUiFlow() 87 val associationInvocation = callback.invocations.first() in test_associate_selfManaged_nullProfile_leadsToNoUiFlow() 111 val callback = RecordingCallback() in test_associate_selfManaged_alreadyRoleHolder_leadsToNoUiFlow() constant [all …]
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | AnimatedVectorDrawableTest.java | 225 final Animatable2Callback callback = new Animatable2Callback(); in testReset() local 229 d1.registerAnimationCallback(callback); in testReset() 233 waitForAVDStop(callback, MAX_TIMEOUT_MS); in testReset() 240 final Animatable2Callback callback = new Animatable2Callback(); in testStop() local 244 d1.registerAnimationCallback(callback); in testStop() 248 waitForAVDStop(callback, MAX_TIMEOUT_MS); in testStop() 255 final Animatable2Callback callback = new Animatable2Callback(); in testAddCallbackBeforeStart() local 261 d1.registerAnimationCallback(callback); in testAddCallbackBeforeStart() 264 callback.waitForStart(); in testAddCallbackBeforeStart() 265 waitForAVDStop(callback, MAX_TIMEOUT_MS); in testAddCallbackBeforeStart() [all …]
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestLocationManager.java | 65 public void registerGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback) { in registerGnssMeasurementCallback() argument 68 mLocationManager.registerGnssMeasurementsCallback(callback); in registerGnssMeasurementCallback() 82 public void registerGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback, in registerGnssMeasurementCallback() argument 86 mLocationManager.registerGnssMeasurementsCallback(callback, handler); in registerGnssMeasurementCallback() 100 public void registerGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback, in registerGnssMeasurementCallback() argument 104 mLocationManager.registerGnssMeasurementsCallback(request, Runnable::run, callback); in registerGnssMeasurementCallback() 118 public void registerGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback, in registerGnssMeasurementCallback() argument 122 mLocationManager.registerGnssMeasurementsCallback(request, Runnable::run, callback); in registerGnssMeasurementCallback() 155 public void unregisterGnssMeasurementCallback(GnssMeasurementsEvent.Callback callback) { in unregisterGnssMeasurementCallback() argument 157 mLocationManager.unregisterGnssMeasurementsCallback(callback); in unregisterGnssMeasurementCallback() [all …]
|
/cts/tests/tests/voiceinteraction/testapp/src/android/voiceinteraction/testapp/ |
D | DirectActionsActivity.java | 100 @NonNull Consumer<List<DirectAction>> callback) { in onGetDirectActions() argument 103 callback.accept(Collections.emptyList()); in onGetDirectActions() 114 callback.accept(actions); in onGetDirectActions() 119 CancellationSignal cancellationSignal, Consumer<Bundle> callback) { in onPerformDirectAction() argument 123 reportActionFailed(callback); in onPerformDirectAction() 131 reportActionExecuting(callback); in onPerformDirectAction() 133 reportActionPerformed(callback); in onPerformDirectAction() 137 private void detectDestroyedInteractor(@NonNull RemoteCallback callback) { in detectDestroyedInteractor() argument 162 callback.sendResult(result); in detectDestroyedInteractor() 165 private void invalidateDirectActions(@NonNull RemoteCallback callback) { in invalidateDirectActions() argument [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/dropdown/ |
D | AuthenticationTest.java | 74 final MyAutofillCallback callback = mActivity.registerCallback(); in datasetAuthTwoFields() local 102 callback.assertUiShownEvent(username); in datasetAuthTwoFields() 108 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields() 109 callback.assertUiShownEvent(password); in datasetAuthTwoFields() 114 callback.assertUiHiddenEvent(password); in datasetAuthTwoFields() 115 callback.assertUiShownEvent(username); in datasetAuthTwoFields() 122 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields() 123 callback.assertUiShownEvent(username); in datasetAuthTwoFields() 128 callback.assertUiHiddenEvent(username); in datasetAuthTwoFields() 129 callback.assertUiShownEvent(password); in datasetAuthTwoFields() [all …]
|
/cts/tests/ondeviceintelligence/src/android/ondeviceintelligence/cts/ |
D | CtsIsolatedInferenceService.java | 91 @NonNull OutcomeReceiver<TokenInfo, OnDeviceIntelligenceException> callback) { in onTokenInfoRequest() argument 92 callback.onResult(constructTokenInfo(request.getInt(TOKEN_INFO_COUNT_KEY), in onTokenInfoRequest() 101 @NonNull StreamingProcessingCallback callback) { in onProcessRequestStreaming() argument 103 processRequestStreaming(cancellationSignal, processingSignal, callback); in onProcessRequestStreaming() 109 @NonNull StreamingProcessingCallback callback) { in processRequestStreaming() argument 117 callback.onPartialResult(new Bundle(actionParams)); in processRequestStreaming() 122 callback.onResult(Bundle.EMPTY); in processRequestStreaming() 126 callback.onPartialResult(Bundle.EMPTY); in processRequestStreaming() 132 callback.onResult(bundle); in processRequestStreaming() 136 callback.onResult(Bundle.EMPTY); in processRequestStreaming() [all …]
|
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/ |
D | BugreportManagerTest.java | 123 BugreportCallbackImpl callback = new BugreportCallbackImpl(); in startConnectivityBugreport() local 125 assertThat(callback.hasEarlyReportFinished()).isFalse(); in startConnectivityBugreport() 126 mBugreportManager.startConnectivityBugreport(mBugreportFd, Runnable::run, callback); in startConnectivityBugreport() 128 waitUntilDoneOrTimeout(callback); in startConnectivityBugreport() 130 assertThat(callback.isSuccess()).isTrue(); in startConnectivityBugreport() 131 assertThat(callback.hasEarlyReportFinished()).isTrue(); in startConnectivityBugreport() 132 assertThat(callback.hasReceivedProgress()).isTrue(); in startConnectivityBugreport() 140 BugreportCallbackImpl callback = new BugreportCallbackImpl(); in startConnectivityBugreport_consentDenied() local 142 mBugreportManager.startConnectivityBugreport(mBugreportFd, Runnable::run, callback); in startConnectivityBugreport_consentDenied() 144 waitUntilDoneOrTimeout(callback); in startConnectivityBugreport_consentDenied() [all …]
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/insets/ |
D | WindowInsetsAnimationTests.java | 118 MultiAnimCallback callback = in testAnimationCallbacks_overlapping() local 125 mActivity.mView.setWindowInsetsAnimationCallback(callback); in testAnimationCallbacks_overlapping() 126 callback.startRunnable = in testAnimationCallbacks_overlapping() 134 waitForOrFail("Waiting until animation done", () -> callback.animationDone); in testAnimationCallbacks_overlapping() 138 InOrder inOrder = inOrder(callback, mActivity.mListener); in testAnimationCallbacks_overlapping() 140 inOrder.verify(callback).onPrepare(eq(callback.navBarAnim)); in testAnimationCallbacks_overlapping() 150 inOrder.verify(callback) in testAnimationCallbacks_overlapping() 152 eq(callback.navBarAnim), in testAnimationCallbacks_overlapping() 161 inOrder.verify(callback).onPrepare(eq(callback.statusBarAnim)); in testAnimationCallbacks_overlapping() 165 inOrder.verify(callback) in testAnimationCallbacks_overlapping() [all …]
|
/cts/tests/contextualsearch/src/android/contextualsearch/cts/ |
D | ContextualSearchManagerTest.kt | 133 val callback = TestOutcomeReceiver() in testRequestContextualSearchState() constant 134 token.getContextualSearchState(context.mainExecutor, callback) in testRequestContextualSearchState() 136 await(callback.resultLatch, "Waiting for the service to post data.") in testRequestContextualSearchState() 138 assertThat(callback.result!!.structure).isNotNull() in testRequestContextualSearchState() 139 assertThat(callback.result!!.content).isNotNull() in testRequestContextualSearchState() 140 assertThat(callback.result!!.extras).isNotNull() in testRequestContextualSearchState() 154 val callback = TestOutcomeReceiver(CountDownLatch(2)) in testRequestContextualSearchStateWithTokenRefresh() constant 155 token.getContextualSearchState(context.mainExecutor, callback) in testRequestContextualSearchStateWithTokenRefresh() 157 await(callback.resultLatch, "Waiting for the service to post data.") in testRequestContextualSearchStateWithTokenRefresh() 160 callback.results.get(0).extras.getParcelable( in testRequestContextualSearchStateWithTokenRefresh() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/servicebehavior/ |
D | SavedDatasetsInfoTest.java | 67 (callback) -> callback.onError(ERROR_NEEDS_USER_ACTION)); in testError() 71 (callback) -> callback.onError(ERROR_OTHER)); in testError() 78 (callback) -> callback.onSuccess( in testSuccess() 88 (callback) -> callback.onSuccess(Collections.emptySet())); in testSuccess_withoutValidCounts() 91 InstrumentedAutoFillService.setSavedDatasetsInfoReplier((callback) -> in testSuccess_withoutValidCounts() 93 callback.onSuccess( in testSuccess_withoutValidCounts()
|
/cts/tests/devicestate/src/android/hardware/devicestate/cts/ |
D | DeviceStateManagerTests.java | 98 final DeviceStateManager.DeviceStateCallback callback in testRequestAllSupportedStates() local 101 manager.registerCallback(Runnable::run, callback); in testRequestAllSupportedStates() 110 verify(callback, atLeastOnce()).onDeviceStateChanged(intAgumentCaptor.capture()); in testRequestAllSupportedStates() 119 final StateTrackingCallback callback = new StateTrackingCallback(); in testRequestBaseState() local 122 manager.registerCallback(Runnable::run, callback); in testRequestBaseState() 126 () -> callback.mCurrentState.getIdentifier() == request.getState())); in testRequestBaseState() 179 final StateTrackingCallback callback = new StateTrackingCallback(); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() 180 manager.registerCallback(Runnable::run, callback); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() 182 () -> callback.mCurrentState.getIdentifier() != INVALID_DEVICE_STATE); in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() 196 int nextState = calculateDifferentState(callback.mCurrentState.getIdentifier(), in testRequestStateFailsAsTopApp_ifStateNotDefinedAsAvailableForAppsToRequest() [all …]
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | ClearApplicationDataTest.java | 77 ClearApplicationDataCallback callback = new ClearApplicationDataCallback(); in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared() local 80 sComponentName, testAppInstance.packageName(), sExecutor, callback); in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared() 82 ClearApplicationUserDataResponse response = callback.await(); in clearApplicationUserData_calledByProfileOwner_testPackage_isCleared() 97 ClearApplicationDataCallback callback = new ClearApplicationDataCallback(); in clearApplicationUserData_calledByDeviceOwner_testPackage_isCleared() local 100 sComponentName, testAppInstance.packageName(), sExecutor, callback); in clearApplicationUserData_calledByDeviceOwner_testPackage_isCleared() 102 ClearApplicationUserDataResponse response = callback.await(); in clearApplicationUserData_calledByDeviceOwner_testPackage_isCleared() 116 ClearApplicationDataCallback callback = new ClearApplicationDataCallback(); in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared() local 119 sComponentName, DEVICE_ADMIN_PKG, sExecutor, callback); in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared() 121 ClearApplicationUserDataResponse response = callback.await(); in clearApplicationUserData_calledByProfileOwner_activeAdmin_isNotCleared() 135 ClearApplicationDataCallback callback = new ClearApplicationDataCallback(); in clearApplicationUserData_calledByDeviceOwner_activeAdmin_isNotCleared() local [all …]
|
/cts/tests/tests/car/src/android/car/cts/ |
D | CarTelemetryManagerTest.java | 147 AddMetricsConfigCallbackImpl callback = new AddMetricsConfigCallbackImpl(); in testAddRemoveMetricsConfig() local 149 Runnable::run, callback); in testAddRemoveMetricsConfig() 150 callback.mSemaphore.acquire(); in testAddRemoveMetricsConfig() 151 assertThat(callback.mAddConfigStatusMap.get(TEST_CONFIG_NAME)) in testAddRemoveMetricsConfig() 156 Runnable::run, callback); in testAddRemoveMetricsConfig() 157 callback.mSemaphore.acquire(); in testAddRemoveMetricsConfig() 158 assertThat(callback.mAddConfigStatusMap.get(TEST_CONFIG_NAME)) in testAddRemoveMetricsConfig() 164 Runnable::run, callback); in testAddRemoveMetricsConfig() 165 callback.mSemaphore.acquire(); in testAddRemoveMetricsConfig() 166 assertThat(callback.mAddConfigStatusMap.get(TEST_CONFIG_NAME)) in testAddRemoveMetricsConfig() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | IdleUidTest.java | 121 final CameraDevice.StateCallback callback = mock(CameraDevice.StateCallback.class); in assertCameraAccess() local 125 cameraManager.openCamera(cameraId, callback, handler); in assertCameraAccess() 139 verify(callback, timeout(CAMERA_OPERATION_TIMEOUT_MILLIS) in assertCameraAccess() 141 verifyNoMoreInteractions(callback); in assertCameraAccess() 144 verify(callback, timeout(CAMERA_OPERATION_TIMEOUT_MILLIS) in assertCameraAccess() 147 verifyNoMoreInteractions(callback); in assertCameraAccess() 159 final CameraDevice.StateCallback callback = mock(CameraDevice.StateCallback.class); in testCameraAccessBecomingInactiveUidByCamera() local 163 mCameraManager.openCamera(cameraId, callback, handler); in testCameraAccessBecomingInactiveUidByCamera() 172 verify(callback, timeout(CAMERA_OPERATION_TIMEOUT_MILLIS) in testCameraAccessBecomingInactiveUidByCamera() 174 verifyNoMoreInteractions(callback); in testCameraAccessBecomingInactiveUidByCamera() [all …]
|
/cts/tests/framework/base/biometrics/src/android/server/biometrics/ |
D | BiometricSimpleTests.java | 183 BiometricPrompt.AuthenticationCallback callback = in testIsConfirmationRequired() local 185 BiometricPrompt prompt = showDefaultBiometricPrompt(props.getSensorId(), callback, in testIsConfirmationRequired() 189 successfullyAuthenticate(session, 0 /* userId */, callback); in testIsConfirmationRequired() 317 BiometricPrompt.AuthenticationCallback callback = in testWhenCredentialNotEnrolled() local 319 showCredentialOnlyBiometricPrompt(callback, new CancellationSignal(), in testWhenCredentialNotEnrolled() 321 verify(callback).onAuthenticationError( in testWhenCredentialNotEnrolled() 336 callback = mock(BiometricPrompt.AuthenticationCallback.class); in testWhenCredentialNotEnrolled() 337 showDeviceCredentialAllowedBiometricPrompt(callback, new CancellationSignal(), in testWhenCredentialNotEnrolled() 339 verify(callback).onAuthenticationError( in testWhenCredentialNotEnrolled() 387 BiometricPrompt.AuthenticationCallback callback = in testWhenCredentialEnrolled() local [all …]
|
/cts/apps/CtsVerifier/src/org/hyphonate/megaaudio/player/ |
D | Player.java | 135 public void addBufferCallback(BufferCallback callback) { in addBufferCallback() argument 136 mCallbacks.add(callback); in addBufferCallback() 143 public void removeBufferCallback(BufferCallback callback) { in removeBufferCallback() argument 144 mCallbacks.remove(callback); in removeBufferCallback() 151 for (BufferCallback callback : mCallbacks) { in onPull() 152 callback.onPull(); in onPull()
|
/cts/tests/credentials/src/android/credentials/cts/ |
D | CtsNoOpCredentialProviderService.java | 43 BeginGetCredentialResponse, GetCredentialException> callback) { in onBeginGetCredential() argument 45 callback.onResult(new BeginGetCredentialResponse()); in onBeginGetCredential() 52 CreateCredentialException> callback) { in onBeginCreateCredential() argument 54 callback.onResult(new BeginCreateCredentialResponse()); in onBeginCreateCredential() 60 OutcomeReceiver<Void, ClearCredentialStateException> callback) { in onClearCredentialState() argument 62 callback.onResult(null); in onClearCredentialState()
|