/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | SupplicantStaNetworkHalTest.java | 27 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 …]
|
D | SupplicantStaIfaceHalTest.java | 35 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 …]
|
D | HalDeviceManagerTest.java | 31 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 …]
|
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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | UiccCarrierPrivilegeRulesTest.java | 24 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 …]
|
D | IccPhoneBookInterfaceManagerTest.java | 26 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/ |
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/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | CachedBluetoothDeviceManagerTest.java | 20 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/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/p2p/ |
D | SupplicantP2pIfaceHalTest.java | 20 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/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/services/tests/mockingservicestests/src/com/android/server/ |
D | RescuePartyTest.java | 23 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/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/services/tests/mockingservicestests/src/com/android/server/testables/ |
D | TestableDeviceConfig.java | 19 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/ |
D | ActivityLaunchAnimatorTest.java | 23 import static org.mockito.Mockito.doAnswer; 105 doAnswer((i) -> { in executePostsImmediately() method 110 doAnswer((i) -> { in executePostsImmediately() method
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TelephonyNetworkFactoryTest.java | 25 import static org.mockito.Mockito.doAnswer; 118 doAnswer(invocation -> { in setUp() 123 doAnswer(invocation -> { in setUp() 128 doAnswer(invocation -> { in setUp() 135 doAnswer(invocation -> { in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | ConfigurationControllerImplTest.kt | 23 import org.mockito.Mockito.doAnswer 51 doAnswer { in testRemoveListenerDuringCallback()
|
D | StatusBarNotificationActivityStarterTest.java | 27 import static org.mockito.Mockito.doAnswer; 178 doAnswer(mCallOnDismiss).when(mActivityStarter).dismissKeyguardThenExecute( in setUp() 182 doAnswer(answerVoid(Runnable::run)) in setUp() 186 doAnswer(answerVoid(Runnable::run)) in setUp() 190 doAnswer(answerVoid(Runnable::run)) in setUp() 193 doAnswer(answerVoid(Runnable::run)) in setUp()
|
/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()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/tuner/ |
D | TunablePaddingTest.java | 19 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/ |
D | DozeMachineTest.java | 34 import static org.mockito.Mockito.doAnswer; 154 doAnswer((inv) -> { in testWakeLock_heldInTransition() method 220 doAnswer(inv -> { in testTransitions_canRequestTransitions() 243 doAnswer(inv -> { in testPulseReason_getFromTransition()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 22 import static org.mockito.Mockito.doAnswer; 63 doAnswer(invocation -> { in setup()
|