Home
last modified time | relevance | path

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

12345

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java27 import static org.mockito.Mockito.doAnswer;
346 doAnswer(new AnswerWithArguments() { in testSsidLoadFailure()
365 doAnswer(new AnswerWithArguments() { in testSsidSaveFailure()
515 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
550 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
583 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse()
605 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
630 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAuthResponse()
663 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAuthResponse()
684 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAutsResponse()
[all …]
DSupplicantStaIfaceHalTest.java35 import static org.mockito.Mockito.doAnswer;
433 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
439 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
442 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworks()
486 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
492 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
497 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
500 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksRemovesDuplicates()
557 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksFailedDueToListNetworks()
575 doAnswer(new MockAnswerUtil.AnswerWithArguments() { in testLoadNetworksFailedDueToGetNetwork()
[all …]
DHalDeviceManagerTest.java31 import static org.mockito.Mockito.doAnswer;
965 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
967 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(staIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
969 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, staIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
978 doAnswer(new GetNameAnswer("wlan0")).when(apIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
980 doAnswer(new GetTypeAnswer(IfaceType.AP)).when(apIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
982 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, apIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
2655 doAnswer(new GetNameAnswer(ifaceName)).when(iface).getName( in validateInterfaceSequence()
2657 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(iface).getType( in validateInterfaceSequence()
2659 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, iface)).when( in validateInterfaceSequence()
[all …]
DWifiConnectivityHelperTest.java71 doAnswer(new AnswerWithArguments() { in setupWifiNative()
148 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithFailureNativeCall()
168 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithInvalidMaxBssidBlacklistSize()
190 doAnswer(new AnswerWithArguments() { in verifyFirmwareRoamingCapabilityWithInvalidMaxSsidWhitelistSize()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
DUiccCarrierPrivilegeRulesTest.java24 import static org.mockito.Mockito.doAnswer;
64 doAnswer(new Answer<Void>() { in testHelper()
75 doAnswer(new Answer<Void>() { in testHelper()
88 doAnswer(new Answer<Void>() { in testHelper()
302 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
321 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
334 doAnswer(new Answer<Void>() { in testAID_OnlyARAM()
362 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
382 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
395 doAnswer(new Answer<Void>() { in testAID_OnlyARAD()
[all …]
DSIMRecordsTest.java26 import static org.mockito.Mockito.doAnswer;
162 doAnswer( in setUpSetForbiddenPlmnsTests()
171 doAnswer( in setUpSetForbiddenPlmnsTests()
184 doAnswer( in testGetForbiddenPlmns()
207 doAnswer( in testGetForbiddenPlmnsException()
231 doAnswer( in testGetForbiddenPlmnsNull()
252 doAnswer( in testGetForbiddenPlmnsEmptyList()
275 doAnswer( in testGetForbiddenPlmnsInvalidLength()
DIccPhoneBookInterfaceManagerTest.java26 import static org.mockito.Mockito.doAnswer;
74 doAnswer(new Answer<Void>() { in setUp()
102 doAnswer(new Answer<Void>() { in testAdnEFLoadWithFailure()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DBackupManagerServiceTestUtils.java22 import static org.mockito.Mockito.doAnswer;
130 doAnswer(backupEnabled.getter).when(backupManagerService).isBackupEnabled(); in setUpBackupManagerServiceBasics()
131 doAnswer(backupEnabled.setter).when(backupManagerService).setBackupEnabled(anyBoolean()); in setUpBackupManagerServiceBasics()
134 doAnswer(backupEnabled.getter).when(backupManagerService).isBackupRunning(); in setUpBackupManagerServiceBasics()
135 doAnswer(backupRunning.setter).when(backupManagerService).setBackupRunning(anyBoolean()); in setUpBackupManagerServiceBasics()
/frameworks/base/services/tests/servicestests/src/com/android/server/net/watchlist/
DWatchlistLoggingHandlerTests.java24 import static org.mockito.Mockito.doAnswer;
104 doAnswer((InvocationOnMock invocation) -> { in setUp() method
112 doAnswer((InvocationOnMock invocation) -> { in setUp() method
126 doAnswer((InvocationOnMock invocation) -> { in setUp() method
146 doAnswer((InvocationOnMock invocation) -> { in setUp() method
/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/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java20 import static org.mockito.Mockito.doAnswer;
111 doAnswer((invocation) -> mHearingAidProfile). in setUp()
142 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
143 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
155 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
156 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
168 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
169 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
183 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
184 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
[all …]
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java20 import static org.mockito.Mockito.doAnswer;
329 doAnswer(new AnswerWithArguments() { in testGetName_success()
348 doAnswer(new AnswerWithArguments() { in testGetName_failure()
365 doAnswer(new AnswerWithArguments() { in testGetName_exception()
660 doAnswer(new AnswerWithArguments() { in testConnect_success()
716 doAnswer(new AnswerWithArguments() { in testConnect_invalidArguments()
760 doAnswer(new AnswerWithArguments() { in testConnect_failure()
1042 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_success()
1066 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_invalidResult()
1088 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_failure()
[all …]
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/shadows/
DShadowCar.java19 import static org.mockito.Mockito.doAnswer;
54 doAnswer(new Answer<Void>() { in createCar()
62 doAnswer(new Answer<Void>() { in createCar()
/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/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsCpuTimesTest.java32 import static org.mockito.Mockito.doAnswer;
260 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked()
295 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked()
335 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid()
371 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_isolatedUid()
425 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_invalidUid()
474 doAnswer(invocation -> { in testReadKernelUidCpuTimesLocked_withPartialTimers()
554 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked()
587 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked()
637 doAnswer(invocation -> { in testReadKernelUidCpuFreqTimesLocked_perClusterTimesAvailable()
[all …]
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/
DRescuePartyTest.java23 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
97 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
106 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUp()
115 doAnswer((Answer<Integer>) invocationOnMock -> { in setUp()
124 doAnswer((Answer<Long>) invocationOnMock -> { in setUp()
134 doAnswer((Answer<Boolean>) invocationOnMock -> true) in setUp()
137 doAnswer((Answer<Void>) invocationOnMock -> null) in setUp()
/frameworks/libs/net/common/devicetests/com/android/testutils/
DFakeDns.kt29 import org.mockito.Mockito.doAnswer
59 doAnswer { in startMocking()
64 doAnswer { in startMocking()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DExponentialBackoffTest.java22 import static org.mockito.Mockito.doAnswer;
57 doAnswer(invocation -> mHandler.postDelayed((Runnable) invocation.getArguments()[0], in setUp()
60 doAnswer(invocation -> { in setUp()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/testables/
DTestableDeviceConfig.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
86 doAnswer((Answer<Void>) invocationOnMock -> { in apply()
98 doAnswer((Answer<Void>) invocationOnMock -> { in apply()
110 doAnswer((Answer<Boolean>) invocationOnMock -> { in apply()
134 doAnswer((Answer<String>) invocationOnMock -> { in apply()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/
DActivityLaunchAnimatorTest.java23 import static org.mockito.Mockito.doAnswer;
105 doAnswer((i) -> { in executePostsImmediately() method
110 doAnswer((i) -> { in executePostsImmediately() method
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DSettingsToPropertiesMapperTest.java21 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
79 doAnswer((Answer<Void>) invocationOnMock -> { in setUp()
88 doAnswer((Answer<String>) invocationOnMock -> { in setUp()
97 doAnswer((Answer<String>) invocationOnMock -> { in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt23 import org.mockito.Mockito.doAnswer
51 doAnswer { in testRemoveListenerDuringCallback()
DStatusBarNotificationActivityStarterTest.java27 import static org.mockito.Mockito.doAnswer;
176 doAnswer(mCallOnDismiss).when(mActivityStarter).dismissKeyguardThenExecute( in setUp()
180 doAnswer(answerVoid(Runnable::run)) in setUp()
184 doAnswer(answerVoid(Runnable::run)) in setUp()
188 doAnswer(answerVoid(Runnable::run)) in setUp()
191 doAnswer(answerVoid(Runnable::run)) in setUp()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/
DTunablePaddingTest.java19 import static org.mockito.Mockito.doAnswer;
55 doAnswer(invocation -> { in setup()
59 doAnswer(invocation -> { in setup()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/doze/
DDozeMachineTest.java34 import static org.mockito.Mockito.doAnswer;
161 doAnswer((inv) -> { in testWakeLock_heldInTransition() method
227 doAnswer(inv -> { in testTransitions_canRequestTransitions()
250 doAnswer(inv -> { in testPulseReason_getFromTransition()

12345