Home
last modified time | relevance | path

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

1234567

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DSupplicantStaNetworkHalTest.java28 import static org.mockito.Mockito.doAnswer;
445 doAnswer(new AnswerWithArguments() { in testSsidSaveFailure()
499 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith2KcSresPair()
534 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimGsmAuthResponseWith3KcSresPair()
567 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresLenNetworkEapSimGsmAuthResponse()
589 doAnswer(new AnswerWithArguments() { in testSendInvalidKcSresPairNumNetworkEapSimGsmAuthResponse()
614 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAuthResponse()
647 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAuthResponse()
668 doAnswer(new AnswerWithArguments() { in testSendNetworkEapSimUmtsAutsResponse()
687 doAnswer(new AnswerWithArguments() { in testSendInvalidNetworkEapSimUmtsAutsResponse()
[all …]
DHalDeviceManagerTest.java31 import static org.mockito.Mockito.doAnswer;
956 doAnswer(new GetNameAnswer("wlan0")).when(staIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
958 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(staIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
960 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, staIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
969 doAnswer(new GetNameAnswer("wlan0")).when(apIface).getName( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
971 doAnswer(new GetTypeAnswer(IfaceType.AP)).when(apIface).getType( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
973 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, apIface)).when( in testCreateApWithStIfaceUpTestChipV1UsingNoHandlerListeners()
2565 doAnswer(new GetNameAnswer(ifaceName)).when(iface).getName( in validateInterfaceSequence()
2567 doAnswer(new GetTypeAnswer(IfaceType.STA)).when(iface).getType( in validateInterfaceSequence()
2569 doAnswer(new CreateXxxIfaceAnswer(chipMock, mStatusOk, iface)).when( in validateInterfaceSequence()
[all …]
DWifiThreadRunnerTest.java23 import static org.mockito.Mockito.doAnswer;
73 doAnswer(invocation -> { in callSuccess_returnExpectedValue()
98 doAnswer(invocation -> { in runSuccess()
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/base/services/tests/mockingservicestests/src/com/android/server/testables/
DMultipleStaticMocksTest.java102 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
106 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
110 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
114 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
140 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
144 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
148 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
152 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
DTestableDeviceConfigAndOtherStaticMocksTest.java111 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
115 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
119 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
123 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
149 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
153 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
157 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
161 ExtendedMockito.doAnswer(invocation -> { in setUpMockBehaviors()
DTestableDeviceConfig.java19 import static com.android.dx.mockito.inline.extended.ExtendedMockito.doAnswer;
81 doAnswer((Answer<Void>) invocationOnMock -> { in setUpMockBehaviors()
93 doAnswer((Answer<Boolean>) invocationOnMock -> { in setUpMockBehaviors()
110 doAnswer((Answer<String>) invocationOnMock -> { in setUpMockBehaviors()
116 doAnswer((Answer<Properties>) invocationOnMock -> { in setUpMockBehaviors()
/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.java25 import static org.mockito.Mockito.doAnswer;
158 doAnswer( in setUpSetForbiddenPlmnsTests()
167 doAnswer( in setUpSetForbiddenPlmnsTests()
180 doAnswer( in testGetForbiddenPlmns()
203 doAnswer( in testGetForbiddenPlmnsException()
227 doAnswer( in testGetForbiddenPlmnsNull()
248 doAnswer( in testGetForbiddenPlmnsEmptyList()
271 doAnswer( in testGetForbiddenPlmnsInvalidLength()
DIccPhoneBookInterfaceManagerTest.java26 import static org.mockito.Mockito.doAnswer;
74 doAnswer(new Answer<Void>() { in setUp()
103 doAnswer(new Answer<Void>() { in testAdnEFLoadWithFailure()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DCachedBluetoothDeviceManagerTest.java20 import static org.mockito.Mockito.doAnswer;
108 doAnswer((invocation) -> mHearingAidProfile). in setUp()
139 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validSubDevice()
140 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validSubDevice()
152 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validSubDevice()
153 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validSubDevice()
165 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
166 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_sameHiSyncId_validCachedDevices_mainDevicesAdded_subDevicesNotAdded()
180 doAnswer((invocation) -> HISYNCID1).when(mHearingAidProfile).getHiSyncId(mDevice1); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
181 doAnswer((invocation) -> HISYNCID2).when(mHearingAidProfile).getHiSyncId(mDevice2); in addDevice_differentHiSyncId_validCachedDevices_bothAdded()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/keyguard/
DAdminSecondaryLockScreenControllerTest.java25 import static org.mockito.Mockito.doAnswer;
110 doAnswer(invocation -> { in testShow()
124 doAnswer(answerVoid(Runnable::run)).when(mHandler).post(any(Runnable.class)); in testShow_dismissedByCallback()
125 doAnswer(invocation -> { in testShow_dismissedByCallback()
139 doAnswer(invocation -> { in testHide()
174 doAnswer(answerVoid(Runnable::run)).when(mHandler) in testDismissed_onCreateKeyguardSurface_timeout()
/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/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/services/tests/servicestests/src/com/android/server/locksettings/
DLockSettingsStorageTestable.java20 import static org.mockito.Mockito.doAnswer;
43 doAnswer(new Answer<Void>() { in LockSettingsStorageTestable()
58 doAnswer(new Answer<byte[]>() { in LockSettingsStorageTestable()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/
DSupplicantP2pIfaceHalTest.java20 import static org.mockito.Mockito.doAnswer;
330 doAnswer(new AnswerWithArguments() { in testMisorderSupplicantDeathHandlingV1_1()
349 doAnswer(new AnswerWithArguments() { in testGetName_success()
368 doAnswer(new AnswerWithArguments() { in testGetName_failure()
385 doAnswer(new AnswerWithArguments() { in testGetName_exception()
680 doAnswer(new AnswerWithArguments() { in testConnect_success()
736 doAnswer(new AnswerWithArguments() { in testConnect_invalidArguments()
780 doAnswer(new AnswerWithArguments() { in testConnect_failure()
1062 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_success()
1086 doAnswer(new AnswerWithArguments() { in testGetDeviceAddress_invalidResult()
[all …]
/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;
57 doAnswer(invocation -> mHandler.postDelayed((Runnable) invocation.getArguments()[0], in setUp()
60 doAnswer(invocation -> { in setUp()
/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/core/tests/coretests/src/android/view/
DScrollCaptureClientTest.java27 import static org.mockito.Mockito.doAnswer;
183 doAnswer(runRunnable(1)).when(mCallback1)
207 doAnswer(runRunnable(1)).when(mCallback1)
221 doAnswer(reportBufferSent(/* sessionArg */ 0, /* frameNum */ 1L, new Rect(1, 2, 3, 4)))
270 doAnswer(runRunnable(0))
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/
DConfigurationControllerImplTest.kt23 import org.mockito.Mockito.doAnswer
51 doAnswer { in testRemoveListenerDuringCallback()
/frameworks/base/media/lib/tvremote/tests/src/com/android/media/tv/remoteprovider/
DTvRemoteProviderTest.java21 import static org.mockito.Mockito.doAnswer;
69 doAnswer((i) -> { in testOpenRemoteInputBridge() method
115 doAnswer((i) -> { in testOpenGamepadRemoteInputBridge() 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()

1234567