Home
last modified time | relevance | path

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

1234

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java22 import static org.mockito.Mockito.doAnswer;
247 doAnswer(new AnswerWithArguments() { in testSsidLoadFailure()
266 doAnswer(new AnswerWithArguments() { in testSsidSaveFailure()
416 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
451 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
484 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse()
506 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
531 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAuthResponse()
564 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAuthResponse()
585 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAutsResponse()
[all …]
DSupplicantStaIfaceHalTest.java366 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
372 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
375 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
419 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
425 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
430 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
433 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
490 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksFailedDueToListNetworks()
508 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksFailedDueToGetNetwork()
514 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksFailedDueToGetNetwork()
[all …]
DHalDeviceManagerTest.java31 import static org.mockito.Mockito.doAnswer;
770 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
772 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(staIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
774 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, staIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
783 doAnswer(new GetNameAnswer("wlan0")).when(apIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
785 doAnswer(new GetTypeAnswer(IfaceType.AP)).when(apIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
787 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, apIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
2459 doAnswer(new GetNameAnswer(ifaceName)).when(iface).getName( in validateInterfaceSequence()
2461 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(iface).getType( in validateInterfaceSequence()
2463 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, iface)).when( in validateInterfaceSequence()
[all …]
DWifiConnectivityHelperTest.java69 doAnswer(new AnswerWithArguments() { in setupWifiNative()
145 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithFailureNativeCall()
165 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlacklistSize()
187 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidWhitelistSize()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java24 import static org.mockito.Mockito.doAnswer;
104 doAnswer(new Answer<Void>() { in testHelper()
115 doAnswer(new Answer<Void>() { in testHelper()
128 doAnswer(new Answer<Void>() { in testHelper()
312 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
331 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
344 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
374 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
394 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
407 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
[all …]
DIccPhoneBookInterfaceManagerTest.java26 import static org.mockito.Mockito.doAnswer;
74 doAnswer(new Answer<Void>() { in setUp()
102 doAnswer(new Answer<Void>() { in testAdnEFLoadWithFailure()
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/app/
DGuidedStepFragmentTest.java26 import static org.mockito.Mockito.doAnswer;
67 doAnswer(new Answer<Void>() { in nextAndBack()
75 doAnswer(new Answer<Void>() { in nextAndBack()
144 doAnswer(new Answer<Void>() { in restoreFragments()
156 doAnswer(new Answer<Void>() { in restoreFragments()
212 doAnswer(new Answer<Void>() { in finishGuidedStepFragment_finishes_activity()
220 doAnswer(new Answer<Void>() { in finishGuidedStepFragment_finishes_activity()
246 doAnswer(new Answer<Void>() { in finishGuidedStepFragment_finishes_fragments()
254 doAnswer(new Answer<Void>() { in finishGuidedStepFragment_finishes_fragments()
285 doAnswer(new Answer<Void>() { in subActions()
[all …]
DGuidedStepSupportFragmentTest.java23 import static org.mockito.Mockito.doAnswer;
64 doAnswer(new Answer<Void>() { in nextAndBack()
72 doAnswer(new Answer<Void>() { in nextAndBack()
141 doAnswer(new Answer<Void>() { in restoreFragments()
153 doAnswer(new Answer<Void>() { in restoreFragments()
209 doAnswer(new Answer<Void>() { in finishGuidedStepSupportFragment_finishes_activity()
217 doAnswer(new Answer<Void>() { in finishGuidedStepSupportFragment_finishes_activity()
243 doAnswer(new Answer<Void>() { in finishGuidedStepSupportFragment_finishes_fragments()
251 doAnswer(new Answer<Void>() { in finishGuidedStepSupportFragment_finishes_fragments()
282 doAnswer(new Answer<Void>() { in subActions()
[all …]
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/impl/utils/
DEnqueueRunnableTest.java19 import static org.mockito.Mockito.doAnswer;
53 doAnswer(new Answer() { in testScheduleWorkInBackground_isCalled()
67 doAnswer(new Answer() { in testScheduleWorkInBackground_isNotCalled()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java20 import static org.mockito.Mockito.doAnswer;
310 doAnswer(new AnswerWithArguments() { in testGetName_success()
329 doAnswer(new AnswerWithArguments() { in testGetName_failure()
346 doAnswer(new AnswerWithArguments() { in testGetName_exception()
641 doAnswer(new AnswerWithArguments() { in testConnect_success()
697 doAnswer(new AnswerWithArguments() { in testConnect_invalidArguments()
741 doAnswer(new AnswerWithArguments() { in testConnect_failure()
1023 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_success()
1047 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_invalidResult()
1069 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_failure()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/apdu/
DLogicalChannelMocker.java22 import static org.mockito.Mockito.doAnswer;
51 doAnswer((Answer<Void>) invocation -> { in mockOpenLogicalChannelResponse()
67 doAnswer(new Answer() { in mockSendToLogicalChannel()
97 doAnswer((Answer<Void>) invocation -> { in mockCloseLogicalChannel()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java21 import static org.mockito.Mockito.doAnswer;
106 doAnswer((InvocationOnMock invocation) -> { in setUp() method
114 doAnswer((InvocationOnMock invocation) -> { in setUp() method
128 doAnswer((InvocationOnMock invocation) -> { in setUp() method
148 doAnswer((InvocationOnMock invocation) -> { in setUp() method
/frameworks/base/tests/utils/testutils/java/android/app/test/
DTestAlarmManager.java23 import static org.mockito.Mockito.doAnswer;
51 doAnswer(new SetListenerAnswer()).when(mAlarmManager).set(anyInt(), anyLong(), anyString(), in TestAlarmManager()
53 doAnswer(new SetListenerAnswer()).when(mAlarmManager).setExact(anyInt(), anyLong(), in TestAlarmManager()
55 doAnswer(new CancelListenerAnswer()) in TestAlarmManager()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DExponentialBackoffTest.java22 import static org.mockito.Mockito.doAnswer;
55 doAnswer(invocation -> mHandler.postDelayed((Runnable) invocation.getArguments()[0], in setUp()
58 doAnswer(invocation -> { in setUp()
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/androidx/room/integration/testapp/test/
DCustomDatabaseTest.java21 import static org.mockito.Mockito.doAnswer;
84 doAnswer(new Answer() { in create()
91 doAnswer(new Answer() { in create()
/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java31 import static org.mockito.Mockito.doAnswer;
253 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked()
287 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked()
326 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid()
361 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid()
414 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_invalidUid()
462 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_withPartialTimers()
541 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked()
574 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked()
624 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/euicc/
DEuiccControllerTest.java30 import static org.mockito.Mockito.doAnswer;
859 doAnswer(new Answer<Void>() { in callGetEid()
875 doAnswer(new Answer<Void>() { in callGetOtaStatus()
892 doAnswer(new Answer<Void>() { in callStartOtaUpdatingIfNecessary()
909 doAnswer(new Answer<Void>() { in callGetEuiccInfo()
926 doAnswer(new Answer<Void>() { in prepareGetDownloadableSubscriptionMetadataCall()
949 doAnswer(new Answer<Void>() { in callGetDefaultDownloadableSubscriptionList()
969 doAnswer(new Answer<Void>() { in callDownloadSubscription()
993 doAnswer(new Answer<Void>() { in callDeleteSubscription()
1011 doAnswer(new Answer<Void>() { in callSwitchToSubscription()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java19 import static org.mockito.Mockito.doAnswer;
53 doAnswer(invocation -> { in setup()
57 doAnswer(invocation -> { in setup()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java22 import static org.mockito.Mockito.doAnswer;
573 doAnswer((invocation) -> mHearingAidProfile).when(mLocalProfileManager) in testAddDevice_hearingAidDevicesWithSameHiSyncId_populateInDifferentLists()
575 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in testAddDevice_hearingAidDevicesWithSameHiSyncId_populateInDifferentLists()
576 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in testAddDevice_hearingAidDevicesWithSameHiSyncId_populateInDifferentLists()
603 doAnswer((invocation) -> mHearingAidProfile).when(mLocalProfileManager) in testAddDevice_hearingAidDevicesWithDifferentHiSyncId_populateInSameList()
605 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in testAddDevice_hearingAidDevicesWithDifferentHiSyncId_populateInSameList()
606 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in testAddDevice_hearingAidDevicesWithDifferentHiSyncId_populateInSameList()
641 doAnswer((invocation) -> DEVICE_SUMMARY_1).when(mCachedDevice1).getConnectionSummary(); in testGetHearingAidPairDeviceSummary_bothHearingAidsPaired_returnsSummaryOfPair()
642 doAnswer((invocation) -> DEVICE_SUMMARY_2).when(mCachedDevice2).getConnectionSummary(); in testGetHearingAidPairDeviceSummary_bothHearingAidsPaired_returnsSummaryOfPair()
658 doAnswer((invocation) -> DEVICE_SUMMARY_1).when(mCachedDevice1).getConnectionSummary(); in testGetHearingAidPairDeviceSummary_bothHearingAidsNotPaired_returnsNull()
[all …]
DHeadsetProfileTest.java7 import static org.mockito.Mockito.doAnswer;
47 doAnswer((invocation) -> { in setUp() method
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/
DLeakReporterTest.java22 import static org.mockito.Mockito.doAnswer;
62 doAnswer(invocation -> { in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/customize/
DTileQueryHelperTest.java22 import static org.mockito.Mockito.doAnswer;
89 doAnswer(invocation -> { in testQueryTiles_isFinishedFalseOnListenerCalls_thenTrueAfterCompletion()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java34 import static org.mockito.Mockito.doAnswer;
155 doAnswer((inv) -> { in testWakeLock_heldInTransition() method
221 doAnswer(inv -> { in testTransitions_canRequestTransitions()
244 doAnswer(inv -> { in testPulseReason_getFromTransition()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DDozeScrimControllerTest.java21 import static org.mockito.Mockito.doAnswer;
55 doAnswer(invocationOnMock -> { in setup()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
DImsPhoneCallTrackerTest.java27 import static org.mockito.Mockito.doAnswer;
125 doAnswer(new Answer<Void>() { in imsCallMocking()
136 doAnswer(new Answer<Void>() { in imsCallMocking()
149 doAnswer(new Answer<Void>() { in imsCallMocking()
161 doAnswer(new Answer<Void>() { in imsCallMocking()
188 doAnswer(invocation -> { in setUp()
194 doAnswer(new Answer<ImsCall>() { in setUp()
204 doAnswer(new Answer<ImsCall>() { in setUp()
215 doAnswer(invocation -> { in setUp()
220 doAnswer(invocation -> { in setUp()

1234