/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaNetworkHalTest.java | 28 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 …]
|
D | HalDeviceManagerTest.java | 31 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 …]
|
D | WifiThreadRunnerTest.java | 23 import static org.mockito.Mockito.doAnswer; 73 doAnswer(invocation -> { in callSuccess_returnExpectedValue() 98 doAnswer(invocation -> { in runSuccess()
|
D | WifiConnectivityHelperTest.java | 71 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/ |
D | MultipleStaticMocksTest.java | 102 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()
|
D | TestableDeviceConfigAndOtherStaticMocksTest.java | 111 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()
|
D | TestableDeviceConfig.java | 19 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/ |
D | UiccCarrierPrivilegeRulesTest.java | 24 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 …]
|
D | SIMRecordsTest.java | 25 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()
|
D | IccPhoneBookInterfaceManagerTest.java | 26 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/ |
D | CachedBluetoothDeviceManagerTest.java | 20 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/ |
D | AdminSecondaryLockScreenControllerTest.java | 25 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/ |
D | BackupManagerServiceTestUtils.java | 22 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/ |
D | WatchlistLoggingHandlerTests.java | 24 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/ |
D | LogicalChannelMocker.java | 22 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/ |
D | ShadowCar.java | 19 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/ |
D | LockSettingsStorageTestable.java | 20 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/ |
D | SupplicantP2pIfaceHalTest.java | 20 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/ |
D | TestAlarmManager.java | 23 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/ |
D | ExponentialBackoffTest.java | 22 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/ |
D | BatteryStatsCpuTimesTest.java | 32 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/ |
D | ScrollCaptureClientTest.java | 27 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/ |
D | ConfigurationControllerImplTest.kt | 23 import org.mockito.Mockito.doAnswer 51 doAnswer { in testRemoveListenerDuringCallback()
|
/frameworks/base/media/lib/tvremote/tests/src/com/android/media/tv/remoteprovider/ |
D | TvRemoteProviderTest.java | 21 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/ |
D | SettingsToPropertiesMapperTest.java | 21 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()
|