Home
last modified time | relevance | path

Searched refs:doAnswer (Results 1 – 25 of 508) sorted by relevance

12345678910>>...21

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalAidlImplTest.java31 import static org.mockito.Mockito.doAnswer;
1417 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1422 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1429 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1436 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1441 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1448 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1453 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1460 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
1465 doAnswer(new AnswerWithArguments() { in setupISupplicantNetworkMock()
[all …]
DSupplicantStaNetworkHalHidlImplTest.java32 import static org.mockito.Mockito.doAnswer;
517 doAnswer(new AnswerWithArguments() { in testSsidSaveFailure()
561 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
596 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
629 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse()
651 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
676 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAuthResponse()
709 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAuthResponse()
730 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAutsResponse()
749 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAutsResponse()
[all …]
/packages/modules/Uwb/ranging/uwb_backend/tests/src/com/android/ranging/uwb/backend/internal/
DRangingControllerTest.java34 import static org.mockito.Mockito.doAnswer;
91 doAnswer( in setUp()
197 doAnswer( in testStartRanging()
209 doAnswer( in testStartRanging()
234 doAnswer( in testStartRanging_openSessionFailed_onRangingSuspendedInvoked()
264 doAnswer( in testStartRanging_ranginStartFailed()
276 doAnswer( in testStartRanging_ranginStartFailed()
305 doAnswer( in testStopRanging()
317 doAnswer( in testStopRanging()
325 doAnswer( in testStopRanging()
[all …]
DRangingControleeTest.java32 import static org.mockito.Mockito.doAnswer;
87 doAnswer( in setUp()
168 doAnswer( in testStartRangingSession()
180 doAnswer( in testStartRangingSession()
204 doAnswer( in testStartRanging_openSessionFailed_onRangingSuspendedInvoked()
233 doAnswer( in testStartRanging_ranginStartFailed()
245 doAnswer( in testStartRanging_ranginStartFailed()
272 doAnswer( in testStopRanging()
284 doAnswer( in testStopRanging()
292 doAnswer( in testStopRanging()
[all …]
/packages/modules/Uwb/androidx_backend/tests/src/androidx/core/uwb/backend/impl/internal/
DRangingControllerTest.java33 import static org.mockito.Mockito.doAnswer;
100 doAnswer(
206 doAnswer(
218 doAnswer(
243 doAnswer(
273 doAnswer(
285 doAnswer(
314 doAnswer(
326 doAnswer(
334 doAnswer(
[all …]
DRangingControleeTest.java32 import static org.mockito.Mockito.doAnswer;
95 doAnswer(
177 doAnswer(
189 doAnswer(
213 doAnswer(
242 doAnswer(
254 doAnswer(
281 doAnswer(
293 doAnswer(
301 doAnswer(
[all …]
/packages/modules/Connectivity/thread/tests/unit/src/android/net/thread/
DThreadNetworkControllerTest.java33 import static org.mockito.Mockito.doAnswer;
161 doAnswer( in registerStateCallback_callbackIsInvokedWithCallingAppIdentity()
185 doAnswer( in registerOperationalDatasetCallback_callbackIsInvokedWithCallingAppIdentity()
230 doAnswer( in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity()
241 doAnswer( in createRandomizedDataset_callbackIsInvokedWithCallingAppIdentity()
273 doAnswer( in join_callbackIsInvokedWithCallingAppIdentity()
284 doAnswer( in join_callbackIsInvokedWithCallingAppIdentity()
321 doAnswer( in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
331 doAnswer( in scheduleMigration_callbackIsInvokedWithCallingAppIdentity()
364 doAnswer( in leave_callbackIsInvokedWithCallingAppIdentity()
[all …]
/packages/modules/AdServices/adservices/tests/endtoends/src/com/android/adservices/measurement/
DMeasurementCompatibleManagerTest.java29 import static org.mockito.Mockito.doAnswer;
119 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_callingApp_expectedAttributionSource()
162 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdEnabled_register()
164 doAnswer( in testRegisterSource_adIdEnabled_register() method
201 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdZeroOut_register()
203 doAnswer( in testRegisterSource_adIdZeroOut_register() method
239 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdDisabled_register()
241 doAnswer( in testRegisterSource_adIdDisabled_register() method
278 doAnswer(answer).when(mockService).register(captor.capture(), any(), any()); in testRegisterSource_adIdTimeOut_register()
280 doAnswer( in testRegisterSource_adIdTimeOut_register() method
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/taskbar/rules/
DMockedRecentsModelHelper.kt27 import org.mockito.kotlin.doAnswer in <lambda>()
45 on { unregisterRecentTasksChangedListener() } doAnswer { recentTasksChangedListener = null } in <lambda>()
47 on { registerRecentTasksChangedListener(any<RecentTasksChangedListener>()) } doAnswer in <lambda>()
52 on { getTasks(anyOrNull(), anyOrNull()) } doAnswer in <lambda>()
61 on { getTasks(anyOrNull()) } doAnswer in <lambda>()
70 on { isTaskListValid(any()) } doAnswer { taskListId == it.getArgument(0) } in <lambda>()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/stable/
DProcessStableFlagsLoggerTest.java21 import static org.mockito.Mockito.doAnswer;
60 doAnswer(callback).when(mMockStatsdLogger).logAdServicesProcessRestart(); in testLogAdServicesProcessRestartEvent_enabled()
80 doAnswer(callback) in testLogBatchReadFromDeviceConfigLatencyMircoSecond_enabled()
105 doAnswer(callback).when(mMockStatsdLogger).logAdServicesProcessLowMemoryLevel(); in testLogAdServicesProcessLowMemoryLevel_enabled()
131 doAnswer(callback) in testLogAdServicesFlagsUpdateEvent_enabled_sameProperties()
149 doAnswer(callback) in testLogAdServicesFlagsUpdateEvent_enabled_emptyProperties()
167 doAnswer(callback) in testLogAdServicesFlagsUpdateEvent_enabled_nullCachedProperties()
189 doAnswer(callback1) in testLogAdServicesFlagsUpdateEvent_enabled_differentProperties()
200 doAnswer(callback2) in testLogAdServicesFlagsUpdateEvent_enabled_differentProperties()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/appdata/
DAllDataUseCaseTest.kt104 Mockito.doAnswer(prepareAnswer(recordTypeInfoMap)) in <lambda>()
155 Mockito.doAnswer(prepareAnswer(recordTypeInfoMap)) in <lambda>()
188 Mockito.doAnswer(prepareAnswer(listOf())) in <lambda>()
200 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
217 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
240 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
259 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
272 Mockito.doAnswer(prepareAnswer(listOf())) in <lambda>()
284 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
301 Mockito.doAnswer(prepareAnswer(medicalResourceTypeResources)) in <lambda>()
[all …]
/packages/apps/Launcher3/quickstep/tests/multivalentTests/src/com/android/launcher3/util/
DSettingsCacheSandbox.kt22 import org.mockito.kotlin.doAnswer
38 on { getValue(any<Uri>()) } doAnswer { mock.getValue(it.getArgument(0), 1) } in <lambda>()
39 on { getValue(any<Uri>(), any<Int>()) } doAnswer in <lambda>()
44 doAnswer { in <lambda>()
49 doAnswer { listeners[it.getArgument(0)]?.remove(it.getArgument(1)) } in <lambda>()
/packages/modules/AdServices/shared/tests/side-less/java/com/android/adservices/shared/testing/mockito/
DMockitoHelperTest.java20 import static org.mockito.Mockito.doAnswer;
58 doAnswer(mAnswer).when(mFixture).pEquals(any()); in testToString_oneArgument()
70 doAnswer(mAnswer).when(mFixture).pEquals(any()); in testToString_oneArgument_null()
82 doAnswer(mAnswer).when(mFixture).toInfinity(any(), any()); in testToString_multipleArguments()
94 doAnswer(mAnswer).when(mFixture).toInfinity(any(), any()); in testToString_multipleArguments_null()
106 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_varArgs()
118 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_nullVarArgs()
130 doAnswer(mAnswer).when(mFixture).iJustCalled(any()); in testToString_varArgsWithNull()
/packages/services/Telecomm/tests/src/com/android/server/telecom/tests/
DVideoProviderTest.java25 import static org.mockito.Mockito.doAnswer;
149 doAnswer(mVerification).when(mVideoCallCallback) in testCameraChange()
184 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangePermissionFail()
213 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsFail()
243 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeAppOpsBelowNMR1Fail()
273 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeUserFail()
301 doAnswer(mVerification).when(mVideoCallCallback).onCallSessionEvent(anyInt()); in testCameraChangeNullNoPermission()
437 doAnswer(mVerification).when(mVideoCallCallback) in testSessionModifyRequest()
493 doAnswer(mVerification).when(mVideoCallCallback) in testRequestCameraCapabilities()
532 doAnswer(mVerification).when(mVideoCallCallback) in testRequestDataUsage()
[all …]
/packages/modules/AdServices/shared/tests/device-side/java/com/android/adservices/shared/spe/logging/
DJobServiceTest.java33 import static org.mockito.Mockito.doAnswer;
153 doAnswer(callback1) in testJobExecutionLifeCycle_succeedThenSucceed()
177 doAnswer(callback2) in testJobExecutionLifeCycle_succeedThenSucceed()
208 doAnswer(callback1) in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
233 doAnswer(callback2) in testJobExecutionLifeCycle_FailWithRetryThenFailWithoutRetry()
270 doAnswer(callback1) in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
296 doAnswer(callback2) in testJobExecutionLifeCycle_onStopWithRetryThenOnStopWithoutRetry()
329 doAnswer(callback1) in testJobExecutionLifeCycle_successThenHaltedByDevice()
369 doAnswer(callback3) in testJobExecutionLifeCycle_successThenHaltedByDevice()
422 doAnswer(callback2) in testJobExecutionLifeCycle_haltedThenSuccess()
[all …]
/packages/modules/AdServices/adservices/tests/unittest/service-core/protectedaudience/src/com/android/adservices/service/adselection/
DOnDeviceAdSelectionIntegrationTest.java82 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
1019 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic()
1026 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic()
1033 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogic()
1134 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled()
1141 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled()
1148 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithAdCostCpcBillingEnabled()
1261 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled()
1268 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled()
1275 doAnswer( in testRunAdSelectionSuccess_preV3BiddingLogicWithDataVersionHeaderFlagEnabled()
[all …]
/packages/modules/AdServices/shared/testing-libraries/device-side/java/com/android/adservices/mockito/
DLogInterceptor.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
62 doAnswer( in forTagAndLevels()
75 doAnswer( in forTagAndLevels()
90 doAnswer( in forTagAndLevels()
103 doAnswer( in forTagAndLevels()
118 doAnswer( in forTagAndLevels()
131 doAnswer( in forTagAndLevels()
/packages/modules/AdServices/adservices/tests/unittest/service-core/src/com/android/adservices/service/fixture/
DTestableSystemProperties.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
52 doAnswer(TestableSystemProperties::getIntValue) in setUpMockBehaviors()
54 doAnswer(TestableSystemProperties::getLongValue) in setUpMockBehaviors()
56 doAnswer(TestableSystemProperties::getBooleanValue) in setUpMockBehaviors()
58 doAnswer(TestableSystemProperties::getStringValue) in setUpMockBehaviors()
60 doAnswer(TestableSystemProperties::getStringValueWithoutDefault) in setUpMockBehaviors()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/
DHidlVehicleStubUnitTest.java24 import static org.mockito.Mockito.doAnswer;
151 doAnswer(inv -> { in testGetAllPropConfigsHidl()
186 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequests()
196 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequests()
233 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsNoConfig()
249 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsInvalidConfig()
266 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueInvalidArg()
276 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueInvalidArg()
288 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsNoConfigReturned()
305 doAnswer(inv -> { in testGetAllPropConfigsHidlMultipleRequestsGetValueError()
[all …]
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/
DTestUtils.java21 import static org.mockito.Mockito.doAnswer;
73 doAnswer( in makeSpyLogThrowExceptionForWtf() method
80 doAnswer( in makeSpyLogThrowExceptionForWtf() method
93 doAnswer( in makeSpyLogDoLogErrorForWtf() method
103 doAnswer( in makeSpyLogDoLogErrorForWtf() method
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/combination/
DCombinedBiometricProfileSettingsTest.java28 import static org.mockito.Mockito.doAnswer;
147 doAnswer(invocation -> { in setUp()
152 doAnswer(invocation -> { in setUp()
156 doAnswer(invocation -> { in setUp()
161 doAnswer(invocation -> { in setUp()
166 doAnswer(invocation -> { in setUp()
203 doAnswer(invocation -> { in testClickFingerprintUnlockWithValidGkPwHandle()
234 doAnswer(invocation -> { in testClickFingerprintUnlockIfGkPwHandleTimeout()
259 doAnswer(invocation -> { in testActivityResultLaunchFingerprintUnlock()
293 doAnswer(invocation -> { in testClickFaceUnlock()
[all …]
/packages/modules/Uwb/framework/tests/src/android/uwb/
DAdapterStateListenerTest.java21 import static org.mockito.Mockito.doAnswer;
82 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
119 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
136 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
147 doAnswer(new ExecutorAnswer(false)).when(executor).execute(any());
159 doAnswer(new ExecutorAnswer(true)).when(executor).execute(any());
184 doAnswer(mRegisterSuccessAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
271 doAnswer(registerAnswer).when(mUwbAdapter).registerAdapterStateCallbacks(any());
/packages/modules/Bluetooth/android/app/tests/unit/src/com/android/bluetooth/opp/
DBluetoothOppTestUtils.java25 import static org.mockito.Mockito.doAnswer;
80 doAnswer( in setUpMockCursor()
95 doAnswer( in setUpMockCursor()
107 doAnswer( in setUpMockCursor()
119 doAnswer( in setUpMockCursor()
/packages/modules/Bluetooth/android/app/tests/instrumentation/com/android/bluetooth/opp/
DBluetoothOppTestUtils.java25 import static org.mockito.Mockito.doAnswer;
80 doAnswer( in setUpMockCursor()
95 doAnswer( in setUpMockCursor()
107 doAnswer( in setUpMockCursor()
119 doAnswer( in setUpMockCursor()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalHidlImplTest.java29 import static org.mockito.Mockito.doAnswer;
357 doAnswer(new AnswerWithArguments() { in testMisorderSupplicantDeathHandlingV1_1()
376 doAnswer(new AnswerWithArguments() { in testGetName_success()
395 doAnswer(new AnswerWithArguments() { in testGetName_failure()
412 doAnswer(new AnswerWithArguments() { in testGetName_exception()
720 doAnswer(new AnswerWithArguments() { in testConnect_success()
775 doAnswer(new AnswerWithArguments() { in testConnect_invalidArguments()
819 doAnswer(new AnswerWithArguments() { in testConnect_failure()
1100 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_success()
1123 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_invalidResult()
[all …]

12345678910>>...21