Home
last modified time | relevance | path

Searched refs:mCallback (Results 1 – 25 of 451) sorted by relevance

12345678910>>...19

/packages/modules/Connectivity/Cronet/tests/cts/src/android/net/http/cts/
DHttpEngineTest.java68 private TestUrlRequestCallback mCallback; field in HttpEngineTest
79 mCallback = new TestUrlRequestCallback(); in setUp()
87 mCallback.blockForDone(); in tearDown()
105 mEngine.newUrlRequestBuilder(URL, mCallback.getExecutor(), mCallback); in testHttpEngine_Default()
111 mCallback.assumeCallback(ResponseStep.ON_SUCCEEDED); in testHttpEngine_Default()
112 UrlResponseInfo info = mCallback.mResponseInfo; in testHttpEngine_Default()
130 mEngine.newUrlRequestBuilder(url, mCallback.getExecutor(), mCallback); in testHttpEngine_EnableHttpCache()
133 mCallback.expectCallback(ResponseStep.ON_SUCCEEDED); in testHttpEngine_EnableHttpCache()
134 UrlResponseInfo info = mCallback.mResponseInfo; in testHttpEngine_EnableHttpCache()
138 mCallback = new TestUrlRequestCallback(); in testHttpEngine_EnableHttpCache()
[all …]
DUrlRequestTest.java81 private TestUrlRequestCallback mCallback; field in UrlRequestTest
91 mCallback = new TestUrlRequestCallback(); in setUp()
106 return mHttpEngine.newUrlRequestBuilder(url, mCallback.getExecutor(), mCallback); in createUrlRequestBuilder()
115 mCallback.expectCallback(ResponseStep.ON_SUCCEEDED); in testUrlRequestGet_CompletesSuccessfully()
116 UrlResponseInfo info = mCallback.mResponseInfo; in testUrlRequestGet_CompletesSuccessfully()
134 mCallback.setAutoAdvance(false); in testUrlRequestCancel_CancelCalled()
137 mCallback.waitForNextStep(); in testUrlRequestCancel_CancelCalled()
138 assertSame(mCallback.mResponseStep, ResponseStep.ON_RESPONSE_STARTED); in testUrlRequestCancel_CancelCalled()
141 mCallback.expectCallback(ResponseStep.ON_CANCELED); in testUrlRequestCancel_CancelCalled()
150 builder.setUploadDataProvider(dataProvider, mCallback.getExecutor()); in testUrlRequestPost_EchoRequestBody()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/
DExternalScoreUpdateObserverProxy.java45 private WifiManager.ScoreUpdateObserver mCallback; field in ExternalScoreUpdateObserverProxy
57 if (mCallback != null) { in registerCallback()
60 mCallback = callback; in registerCallback()
69 if (mCallback == callback) { in unregisterCallback()
70 mCallback = null; in unregisterCallback()
84 if (mCallback == null) { in notifyScoreUpdate()
89 mCallback.notifyScoreUpdate(sessionId, score); in notifyScoreUpdate()
96 if (mCallback == null) { in triggerUpdateOfWifiUsabilityStats()
102 mCallback.triggerUpdateOfWifiUsabilityStats(sessionId); in triggerUpdateOfWifiUsabilityStats()
112 if (mCallback == null) { in notifyStatusUpdate()
[all …]
DWifiNetworkAgent.java52 private final Callback mCallback; field in WifiNetworkAgent
81 mCallback = wifiNetworkAgentCallback; in WifiNetworkAgent()
87 mCallback.onNetworkUnwanted(); in onNetworkUnwanted()
92 mCallback.onValidationStatus(status, redirectUri); in onValidationStatus()
97 mCallback.onSaveAcceptUnvalidated(accept); in onSaveAcceptUnvalidated()
103 mCallback.onStartSocketKeepalive(slot, interval, packet); in onStartSocketKeepalive()
108 mCallback.onStopSocketKeepalive(slot); in onStopSocketKeepalive()
113 mCallback.onAddKeepalivePacketFilter(slot, packet); in onAddKeepalivePacketFilter()
118 mCallback.onRemoveKeepalivePacketFilter(slot); in onRemoveKeepalivePacketFilter()
123 mCallback.onSignalStrengthThresholdsUpdated(thresholds); in onSignalStrengthThresholdsUpdated()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/
DSetDeviceOwnerPolicyTaskTest.java56 @Mock private AbstractProvisioningTask.Callback mCallback; field in SetDeviceOwnerPolicyTaskTest
96 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DefaultToDefault()
97 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_DefaultToDefault()
115 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_DisabledToDefault()
116 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_DisabledToDefault()
133 verify(mCallback).onSuccess(mTask); in testEnableDevicePolicyApp_EnabledToEnabled()
134 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_EnabledToEnabled()
149 verify(mCallback).onError(mTask, 0, /* errorMessage= */ null); in testEnableDevicePolicyApp_PackageNotFound()
150 verifyNoMoreInteractions(mCallback); in testEnableDevicePolicyApp_PackageNotFound()
163 verify(mCallback).onSuccess(mTask); in testSetActiveAdmin()
[all …]
DVerifyAdminPackageTaskTest.java74 @Mock private AbstractProvisioningTask.Callback mCallback; field in VerifyAdminPackageTaskTest
114 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull()
115 verifyNoMoreInteractions(mCallback); in testDownloadLocationNull()
128 verify(mCallback).onError(mTask, ERROR_DEVICE_ADMIN_MISSING, /* errorMessage= */ null); in testMissingDeviceAdminComponent()
129 verifyNoMoreInteractions(mCallback); in testMissingDeviceAdminComponent()
142 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success()
143 verifyNoMoreInteractions(mCallback); in testPackageChecksumSha256_success()
156 verify(mCallback).onSuccess(mTask); in testSignatureHash_success()
157 verifyNoMoreInteractions(mCallback); in testSignatureHash_success()
170 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH, /* errorMessage= */ null); in testSignatureHash_failure()
[all …]
DVerifyRoleHolderPackageTaskTest.java71 @Mock private AbstractProvisioningTask.Callback mCallback; field in VerifyRoleHolderPackageTaskTest
108 verify(mCallback).onSuccess(mTask); in testDownloadLocationNull()
109 verifyNoMoreInteractions(mCallback); in testDownloadLocationNull()
122 verify(mCallback).onSuccess(mTask); in testPackageChecksumSha256_success()
123 verifyNoMoreInteractions(mCallback); in testPackageChecksumSha256_success()
136 verify(mCallback).onSuccess(mTask); in testSignatureHash_success()
137 verifyNoMoreInteractions(mCallback); in testSignatureHash_success()
150 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH, /* errorMessage= */ null); in testSignatureHash_failure()
151 verifyNoMoreInteractions(mCallback); in testSignatureHash_failure()
163 verify(mCallback).onError(mTask, ERROR_HASH_MISMATCH, /* errorMessage= */ null); in testSignatureHash_noSignature()
[all …]
DAddWifiNetworkTaskTest.java76 @Mock private AbstractProvisioningTask.Callback mCallback; field in AddWifiNetworkTaskTest
98 NO_WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, in testNoWifiInfo()
105 verify(mCallback).onSuccess(mTask); in testNoWifiInfo()
112 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testWifiManagerNull()
121 verify(mCallback).onError(mTask, 0, /* errorMessage= */ null); in testWifiManagerNull()
128 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testFailToEnableWifi()
140 verify(mCallback).onError(mTask, 0, /* errorMessage= */ null); in testFailToEnableWifi()
147 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testIsConnectedToSpecifiedWifiTrue()
163 verify(mCallback).onSuccess(mTask); in testIsConnectedToSpecifiedWifiTrue()
170 WIFI_INFO_PARAMS, mCallback, mUtils, mTestInjector, mProvisioningAnalyticsTracker); in testNoWifiInfoInProvider()
[all …]
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/managers/registration/
DDiscoveryRegistrationTest.java85 private IScanListener mCallback; field in DiscoveryRegistrationTest
96 when(mCallback.asBinder()).thenReturn(mBinder); in setUp()
104 mDiscoveryRegistration = new DiscoveryRegistration(mOwner, mScanRequest, mCallback, in setUp()
166 verify(mCallback, times(1)).onDiscovered(eq(builder.build())); in test_onDiscoveredOnUpdatedCalled()
167 verify(mCallback, never()).onUpdated(any()); in test_onDiscoveredOnUpdatedCalled()
168 verify(mCallback, never()).onLost(any()); in test_onDiscoveredOnUpdatedCalled()
169 verify(mCallback, never()).onError(anyInt()); in test_onDiscoveredOnUpdatedCalled()
171 reset(mCallback); in test_onDiscoveredOnUpdatedCalled()
176 verify(mCallback, never()).onDiscovered(any()); in test_onDiscoveredOnUpdatedCalled()
177 verify(mCallback, times(1)).onUpdated(eq(builder.build())); in test_onDiscoveredOnUpdatedCalled()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/telemetry/sessioncontroller/
DSessionControllerUnitTest.java90 private final TestSessionControllerCallback mCallback = new TestSessionControllerCallback(); field in SessionControllerUnitTest
124 mSessionController.registerCallback(mCallback); in testRegisterCallback_stateChangeTriggersCallback()
128 boolean gotResponse = mCallback.awaitResponse(CALLBACK_TIMEOUT_SEC); in testRegisterCallback_stateChangeTriggersCallback()
132 assertThat(mCallback.annotation.sessionState).isEqualTo( in testRegisterCallback_stateChangeTriggersCallback()
134 assertThat(mCallback.annotation.sessionId).isEqualTo(1); in testRegisterCallback_stateChangeTriggersCallback()
140 mSessionController.registerCallback(mCallback); in testGetSessionAnnotation_sessionOnSessionOffSequence()
144 boolean gotResponse = mCallback.awaitResponse(CALLBACK_TIMEOUT_SEC); in testGetSessionAnnotation_sessionOnSessionOffSequence()
149 assertThat(mCallback.annotation.sessionState).isEqualTo( in testGetSessionAnnotation_sessionOnSessionOffSequence()
151 int sessionId = mCallback.annotation.sessionId; in testGetSessionAnnotation_sessionOnSessionOffSequence()
152 long currentTimeMillis = mCallback.annotation.createdAtMillis; in testGetSessionAnnotation_sessionOnSessionOffSequence()
[all …]
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/audio/
DCarAudioPlaybackCallbackTest.java70 private CarAudioPlaybackCallback mCallback; field in CarAudioPlaybackCallbackTest
81 mCallback = new CarAudioPlaybackCallback(mCarAudioZones, mClock, KEY_EVENT_TIMEOUT_MS); in setUp()
136 mCallback.onPlaybackConfigChanged(configurations); in onPlaybackConfigChanged_singleConfig_returnsActiveContextForPrimaryZoneOnly()
138 mCallback.getAllActiveAudioAttributesForZone(PRIMARY_ZONE_ID); in onPlaybackConfigChanged_singleConfig_returnsActiveContextForPrimaryZoneOnly()
140 mCallback.getAllActiveAudioAttributesForZone(SECONDARY_ZONE_ID); in onPlaybackConfigChanged_singleConfig_returnsActiveContextForPrimaryZoneOnly()
163 mCallback.onPlaybackConfigChanged(configurations); in onPlaybackConfigChanged_withMultipleConfigs_returnsActiveConfigsForTwoZones()
165 mCallback.getAllActiveAudioAttributesForZone(PRIMARY_ZONE_ID); in onPlaybackConfigChanged_withMultipleConfigs_returnsActiveConfigsForTwoZones()
167 mCallback.getAllActiveAudioAttributesForZone(SECONDARY_ZONE_ID); in onPlaybackConfigChanged_withMultipleConfigs_returnsActiveConfigsForTwoZones()
191 mCallback.onPlaybackConfigChanged(configurations); in onPlaybackConfigChanged_withMultipleConfigs_onIncorrectConfigurations()
193 mCallback.getAllActiveAudioAttributesForZone(PRIMARY_ZONE_ID); in onPlaybackConfigChanged_withMultipleConfigs_onIncorrectConfigurations()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DExternalPnoScanRequestManagerTest.java83 @Mock private IPnoScanResultsCallback mCallback; field in ExternalPnoScanRequestManagerTest
101 InOrder inOrder = inOrder(mCallback, mIBinder); in testSetRequest_success()
105 mCallback, TEST_WIFI_SSIDS, TEST_FREQUENCIES)); in testSetRequest_success()
107 inOrder.verify(mCallback).onRegisterSuccess(); in testSetRequest_success()
111 mCallback, TEST_WIFI_SSIDS, TEST_FREQUENCIES_2)); in testSetRequest_success()
112 inOrder.verify(mCallback).onRegisterSuccess(); in testSetRequest_success()
116 mIBinder, mCallback, TEST_WIFI_SSIDS, TEST_FREQUENCIES)); in testSetRequest_success()
117 inOrder.verify(mCallback).onRegisterFailed(REGISTER_PNO_CALLBACK_RESOURCE_BUSY); in testSetRequest_success()
130 InOrder inOrder = inOrder(mCallback, anotherCallback, mIBinder); in testSetRequest_linkToDeathFailed()
136 mCallback, TEST_WIFI_SSIDS, TEST_FREQUENCIES)); in testSetRequest_linkToDeathFailed()
[all …]
DLocalOnlyHotspotRequestInfoTest.java50 @Mock ILocalOnlyHotspotCallback mCallback; field in LocalOnlyHotspotRequestInfoTest
62 when(mCallback.asBinder()).thenReturn(mAppBinder); in setUp()
73 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyBinderLinkToDeathIsCalled()
92 TEST_WORKSOURCE, mCallback, null, null); in verifyNullDeathCallbackChecked()
101 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyUnlinkDeathRecipientUnlinksFromBinder()
112 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyBinderDeathTriggersCallback()
126 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyRemoteExceptionTriggersCallback()
137 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifyPid()
147 TEST_WORKSOURCE, mCallback, mDeathCallback, config); in verifyCustomConfig()
157 TEST_WORKSOURCE, mCallback, mDeathCallback, null); in verifySendFailedMessage()
[all …]
DExternalScoreUpdateObserverProxyTest.java46 @Mock WifiManager.ScoreUpdateObserver mCallback; field in ExternalScoreUpdateObserverProxyTest
61 mExternalScoreUpdateObserverProxy.registerCallback(mCallback); in testCallback()
65 verify(mCallback).notifyScoreUpdate(TEST_SESSION_ID, TEST_SCORE); in testCallback()
69 verify(mCallback).triggerUpdateOfWifiUsabilityStats(TEST_SESSION_ID); in testCallback()
72 mExternalScoreUpdateObserverProxy.unregisterCallback(mCallback); in testCallback()
78 verifyNoMoreInteractions(mCallback); in testCallback()
84 mExternalScoreUpdateObserverProxy.registerCallback(mCallback); in testCallbackForApiInS()
88 verify(mCallback).notifyStatusUpdate(TEST_SESSION_ID, TEST_STATUS); in testCallbackForApiInS()
92 verify(mCallback).requestNudOperation(TEST_SESSION_ID); in testCallbackForApiInS()
96 verify(mCallback).blocklistCurrentBssid(TEST_SESSION_ID); in testCallbackForApiInS()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/task/wifi/
DNetworkMonitorTest.java48 @Mock private NetworkMonitor.NetworkConnectedCallback mCallback; field in NetworkMonitorTest
62 nm.startListening(mCallback); in testStartListening()
73 verify(mCallback).onNetworkConnected(); in testStartListening()
82 nm.startListening(mCallback); in testStopListening()
93 verifyZeroInteractions(mCallback); in testStopListening()
99 nm.startListening(mCallback); in testWaitForValidated_NoCallbackBeforeValidated()
108 verifyZeroInteractions(mCallback); in testWaitForValidated_NoCallbackBeforeValidated()
116 nm.startListening(mCallback); in testWaitForValidated_NetworkChange()
127 verify(mCallback).onNetworkConnected(); in testWaitForValidated_NetworkChange()
134 verifyNoMoreInteractions(mCallback); in testWaitForValidated_NetworkChange()
[all …]
/packages/modules/Wifi/service/java/com/android/server/wifi/aware/
DWifiAwareDiscoverySessionState.java61 private IWifiAwareDiscoverySessionCallback mCallback; field in WifiAwareDiscoverySessionState
100 mCallback = callback; in WifiAwareDiscoverySessionState()
185 return mCallback; in getCallback()
202 mCallback.onSessionTerminated(NanStatusCode.SUCCESS); in terminate()
207 mCallback = null; in terminate()
238 mCallback.onSessionConfigFail(NanStatusCode.INTERNAL_FAILURE); in updatePublish()
249 mCallback.onSessionConfigFail(NanStatusCode.INTERNAL_FAILURE); in updatePublish()
271 mCallback.onSessionConfigFail(NanStatusCode.INTERNAL_FAILURE); in updateSubscribe()
282 mCallback.onSessionConfigFail(NanStatusCode.INTERNAL_FAILURE); in updateSubscribe()
310 mCallback.onMessageSendFail(messageId, NanStatusCode.INTERNAL_FAILURE); in sendMessage()
[all …]
/packages/apps/Car/Radio/src/com/android/car/radio/platform/
DTunerCallbackAdapterExt.java51 private final RadioTuner.Callback mCallback; field in TunerCallbackAdapterExt
70 mCallback = Objects.requireNonNull(callback, "Callback cannot be null"); in TunerCallbackAdapterExt()
107 mHandler.post(() -> mCallback.onError(status)); in onError()
116 mHandler.post(() -> mCallback.onTuneFailed(result, selector)); in onTuneFailed()
121 mHandler.post(() -> mCallback.onConfigurationChanged(config)); in onConfigurationChanged()
142 mHandler.post(() -> mCallback.onProgramInfoChanged(info)); in onProgramInfoChanged()
146 mHandler.post(() -> mCallback.onMetadataChanged(metadata)); in onMetadataChanged()
150 mHandler.post(() -> mCallback.onTrafficAnnouncement(active)); in onTrafficAnnouncement()
154 mHandler.post(() -> mCallback.onEmergencyAnnouncement(active)); in onEmergencyAnnouncement()
158 mHandler.post(() -> mCallback.onAntennaState(connected)); in onAntennaState()
[all …]
/packages/apps/Settings/src/com/android/settings/biometrics/fingerprint/
DFingerprintUpdater.java69 private final FingerprintManager.EnrollmentCallback mCallback; field in FingerprintUpdater.NotifyingEnrollmentCallback
74 mCallback = callback; in NotifyingEnrollmentCallback()
79 mCallback.onEnrollmentError(errMsgId, errString); in onEnrollmentError()
84 mCallback.onEnrollmentHelp(helpMsgId, helpString); in onEnrollmentHelp()
89 mCallback.onEnrollmentProgress(remaining); in onEnrollmentProgress()
97 mCallback.onAcquired(isAcquiredGood); in onAcquired()
102 mCallback.onUdfpsPointerDown(sensorId); in onUdfpsPointerDown()
107 mCallback.onUdfpsPointerUp(sensorId); in onUdfpsPointerUp()
112 mCallback.onUdfpsOverlayShown(); in onUdfpsOverlayShown()
123 private final FingerprintManager.RemovalCallback mCallback; field in FingerprintUpdater.NotifyingRemovalCallback
[all …]
/packages/services/Telephony/tests/src/com/android/phone/
DNumberVerificationManagerTest.java54 @Mock private INumberVerificationCallback mCallback; field in NumberVerificationManagerTest
79 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure()
80 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testConcurrentRequestFailure()
81 verify(mCallback, times(1)).onVerificationFailed( in testConcurrentRequestFailure()
91 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEcbmFailure()
92 verify(mCallback, times(1)).onVerificationFailed( in testEcbmFailure()
102 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testEmergencyCallFailure()
103 verify(mCallback, times(1)).onVerificationFailed( in testEmergencyCallFailure()
116 manager.requestVerification(SAMPLE_RANGE, mCallback, DEFAULT_VERIFICATION_TIMEOUT); in testNoPhoneInServiceFailure()
117 verify(mCallback, times(1)).onVerificationFailed( in testNoPhoneInServiceFailure()
[all …]
/packages/apps/ManagedProvisioning/tests/instrumentation/src/com/android/managedprovisioning/provisioning/
DProvisioningManagerTest.java79 @Mock private ProvisioningManagerCallback mCallback; field in ProvisioningManagerTest
145 mManager.registerListener(mCallback); in testListener_error()
149 … verify(mCallback).error(R.string.cant_set_up_device, TEST_ERROR_ID, TEST_FACTORY_RESET_REQUIRED); in testListener_error()
152 mManager.unregisterListener(mCallback); in testListener_error()
153 mManager.registerListener(mCallback); in testListener_error()
155 …verify(mCallback, times(2)).error(R.string.cant_set_up_device, TEST_ERROR_ID, TEST_FACTORY_RESET_R… in testListener_error()
156 verifyNoMoreInteractions(mCallback); in testListener_error()
165 mManager.registerListener(mCallback); in testListener_cleanupCompleted()
169 verifyZeroInteractions(mCallback); in testListener_cleanupCompleted()
179 mManager.registerListener(mCallback); in testListener_preFinalizationCompleted()
[all …]
/packages/modules/Connectivity/nearby/framework/java/android/nearby/
DFastPairDataProviderService.java461 private IFastPairAntispoofKeyDeviceMetadataCallback mCallback; field in FastPairDataProviderService.WrapperFastPairAntispoofKeyDeviceMetadataCallback
465 mCallback = callback; in WrapperFastPairAntispoofKeyDeviceMetadataCallback()
475 mCallback.onFastPairAntispoofKeyDeviceMetadataReceived(metadata.mMetadataParcel); in onFastPairAntispoofKeyDeviceMetadataReceived()
486 mCallback.onError(code, message); in onError()
501 private IFastPairAccountDevicesMetadataCallback mCallback; field in FastPairDataProviderService.WrapperFastPairAccountDevicesMetadataCallback
505 mCallback = callback; in WrapperFastPairAccountDevicesMetadataCallback()
522 mCallback.onFastPairAccountDevicesMetadataReceived(metadataParcels); in onFastPairAccountDevicesMetadataReceived()
533 mCallback.onError(code, message); in onError()
548 private IFastPairEligibleAccountsCallback mCallback; field in FastPairDataProviderService.WrapperFastPairEligibleAccountsCallback
552 mCallback = callback; in WrapperFastPairEligibleAccountsCallback()
[all …]
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/
DPasspointProvisionerTest.java174 @Mock IProvisioningCallback mCallback; field in PasspointProvisionerTest
302 TEST_UID, mOsuProvider, mCallback)); in initAndStartProvisioning()
320 verify(mCallback).onProvisioningStatus( in stopAfterStep()
326 verify(mCallback).onProvisioningStatus( in stopAfterStep()
329 verify(mCallback).onProvisioningStatus( in stopAfterStep()
337 verify(mCallback).onProvisioningStatus( in stopAfterStep()
345 verify(mCallback).onProvisioningStatus( in stopAfterStep()
347 verify(mCallback).onProvisioningStatus( in stopAfterStep()
355 verify(mCallback).onProvisioningStatus( in stopAfterStep()
361 verifyNoMoreInteractions(mCallback); in stopAfterStep()
[all …]
/packages/modules/Uwb/framework/java/android/uwb/
DRangingSession.java59 private final Callback mCallback; field in RangingSession
463 mCallback = callback; in RangingSession()
596 mExecutor.execute(() -> mCallback.onClosed( in close()
812 executeCallback(() -> mCallback.onOpened(this)); in onRangingOpened()
827 executeCallback(() -> mCallback.onOpenFailed(reason, params)); in onRangingOpenFailed()
841 executeCallback(() -> mCallback.onStarted(parameters)); in onRangingStarted()
855 executeCallback(() -> mCallback.onStartFailed(reason, params)); in onRangingStartFailed()
868 executeCallback(() -> mCallback.onReconfigured(params)); in onRangingReconfigured()
882 executeCallback(() -> mCallback.onReconfigureFailed(reason, params)); in onRangingReconfigureFailed()
897 executeCallback(() -> mCallback.onStopped(reason, params)); in onRangingStopped()
[all …]
/packages/modules/ImsMedia/tests/native/service/src/com/android/telephony/imsmedia/lib/libimsmedia/core/audio/
DAudioJitterBufferTest.cpp102 AudioJitterBufferCallback mCallback; member in AudioJitterBufferTest
115 mJitterBuffer->SetSessionCallback(&mCallback); in SetUp()
186 EXPECT_EQ(mCallback.getNumNormal(), kNumFrames); in TEST_F()
256 EXPECT_EQ(mCallback.getNumNormal(), kNumFrames); in TEST_F()
326 EXPECT_EQ(mCallback.getNumNormal(), kNumFrames); in TEST_F()
402 EXPECT_EQ(mCallback.getNumLost(), 0); in TEST_F()
403 EXPECT_EQ(mCallback.getNumDuplicated(), 1); in TEST_F()
404 EXPECT_EQ(mCallback.getNumDiscarded(), 0); in TEST_F()
406 EXPECT_EQ(mCallback.getNumNormal(), kNumFrames); in TEST_F()
474 EXPECT_EQ(mCallback.getNumLost(), 0); in TEST_F()
[all …]
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanNetworkServiceTest.java65 @Mock private INetworkServiceCallback mCallback; field in IwlanNetworkServiceTest
110 mBinder.registerForNetworkRegistrationInfoChanged(DEFAULT_SLOT_INDEX, mCallback); in setUp()
140 verify(mCallback, timeout(1000).times(1)).onNetworkStateChanged(); in testRequestNetworkRegistrationInfo()
144 verify(mCallback, timeout(1000).times(2)).onNetworkStateChanged(); in testRequestNetworkRegistrationInfo()
153 mBinder.requestNetworkRegistrationInfo(0, NetworkRegistrationInfo.DOMAIN_PS, mCallback); in testRequestNetworkRegistrationInfo()
155 verify(mCallback, timeout(1000).times(1)) in testRequestNetworkRegistrationInfo()
199 mBinder.requestNetworkRegistrationInfo(0, NetworkRegistrationInfo.DOMAIN_PS, mCallback); in testNetworkRegistrationInfoSearchingForCellularAndCstDisabled()
201 verify(mCallback, timeout(1000).times(1)) in testNetworkRegistrationInfoSearchingForCellularAndCstDisabled()
227 mBinder.requestNetworkRegistrationInfo(0, NetworkRegistrationInfo.DOMAIN_PS, mCallback); in testNetworkRegistrationInfoSearchingForCellularOnSameSubAndCstEnabled()
229 verify(mCallback, timeout(1000).times(1)) in testNetworkRegistrationInfoSearchingForCellularOnSameSubAndCstEnabled()
[all …]

12345678910>>...19