/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/ |
D | GuidedStepSupportFragmentTest.java | 44 import org.mockito.invocation.InvocationOnMock; 63 public Void answer(InvocationOnMock invocation) { in nextAndBack() 64 List actions = (List) invocation.getArguments()[0]; in nextAndBack() 71 public Void answer(InvocationOnMock invocation) { in nextAndBack() 72 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in nextAndBack() 74 invocation.getMock(); in nextAndBack() 140 public Void answer(InvocationOnMock invocation) { in restoreFragments() 141 List actions = (List) invocation.getArguments()[0]; in restoreFragments() 152 public Void answer(InvocationOnMock invocation) { in restoreFragments() 153 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in restoreFragments() [all …]
|
D | GuidedStepFragmentTest.java | 41 import org.mockito.invocation.InvocationOnMock; 60 public Void answer(InvocationOnMock invocation) { in nextAndBack() 61 List actions = (List) invocation.getArguments()[0]; in nextAndBack() 68 public Void answer(InvocationOnMock invocation) { in nextAndBack() 69 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in nextAndBack() 71 invocation.getMock(); in nextAndBack() 137 public Void answer(InvocationOnMock invocation) { in restoreFragments() 138 List actions = (List) invocation.getArguments()[0]; in restoreFragments() 149 public Void answer(InvocationOnMock invocation) { in restoreFragments() 150 GuidedAction action = (GuidedAction) invocation.getArguments()[0]; in restoreFragments() [all …]
|
/frameworks/support/fragment/tests/java/android/support/v4/app/ |
D | CtsMockitoUtils.java | 22 import org.mockito.invocation.Invocation; 54 for (Invocation invocation : actualInvocations) { in verify() 55 if (data.getWanted().matches(invocation)) { in verify() 78 for (Invocation invocation : data.getAllInvocations()) { in markAllInvocationsAsVerified() 79 invocation.markVerified(); in markAllInvocationsAsVerified() 80 data.getWanted().captureArgumentsFrom(invocation); in markAllInvocationsAsVerified()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | MockKeyStore.java | 12 import org.mockito.invocation.InvocationOnMock; 43 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 44 Object[] args = invocation.getArguments(); in createMock() 54 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 55 Object[] args = invocation.getArguments(); in createMock() 64 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 65 Object[] args = invocation.getArguments(); in createMock() 73 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() 74 Object[] args = invocation.getArguments(); in createMock() 82 public Boolean answer(InvocationOnMock invocation) throws Throwable { in createMock() [all …]
|
D | WifiStateMachinePrimeTest.java | 36 import org.mockito.invocation.InvocationOnMock; 106 public SoftApManager answer(InvocationOnMock invocation) { in enterSoftApActiveMode() 107 Object[] args = invocation.getArguments(); in enterSoftApActiveMode()
|
/frameworks/base/tests/utils/testutils/java/android/app/test/ |
D | MockAnswerUtil.java | 19 import org.mockito.invocation.InvocationOnMock; 38 public final Object answer(InvocationOnMock invocation) throws Throwable { in answer() argument 39 Method method = invocation.getMethod(); in answer() 47 Object[] args = invocation.getArguments(); in answer()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/ |
D | IccPhoneBookInterfaceManagerTest.java | 34 import org.mockito.invocation.InvocationOnMock; 76 public Void answer(InvocationOnMock invocation) throws Throwable { in setUp() 77 Message response = (Message) invocation.getArguments()[2]; in setUp() 104 public Void answer(InvocationOnMock invocation) throws Throwable { in testAdnEFLoadWithFailure() 105 Message response = (Message) invocation.getArguments()[2]; in testAdnEFLoadWithFailure()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneCallTrackerTest.java | 69 import org.mockito.invocation.InvocationOnMock; 107 public Void answer(InvocationOnMock invocation) throws Throwable { in imsCallMocking() 118 public Void answer(InvocationOnMock invocation) throws Throwable { in imsCallMocking() 120 int reasonCode = (int) invocation.getArguments()[0]; in imsCallMocking() 131 public Void answer(InvocationOnMock invocation) throws Throwable { in imsCallMocking() 133 int reasonCode = (int) invocation.getArguments()[0]; in imsCallMocking() 143 public Void answer(InvocationOnMock invocation) throws Throwable { in imsCallMocking() 171 public Integer answer(InvocationOnMock invocation) throws Throwable { in setUp() 173 (ImsConnectionStateListener) invocation.getArguments()[2]; in setUp() 181 public ImsCall answer(InvocationOnMock invocation) throws Throwable { in setUp() [all …]
|
D | ImsPhoneConnectionTest.java | 41 import org.mockito.invocation.InvocationOnMock; 196 public Void answer(InvocationOnMock invocation) throws Throwable { in testPostDialWait() 197 Message msg = (Message) invocation.getArguments()[1]; in testPostDialWait() 219 public Void answer(InvocationOnMock invocation) throws Throwable { in testPostDialPause() 220 Message msg = (Message) invocation.getArguments()[1]; in testPostDialPause()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | VpnTest.java | 312 doAnswer(invocation -> { in setMockedUsers() 313 final boolean excludeDying = (boolean) invocation.getArguments()[0]; in setMockedUsers() 323 doAnswer(invocation -> { in setMockedUsers() 324 final int id = (int) invocation.getArguments()[0]; in setMockedUsers() 328 doAnswer(invocation -> { in setMockedUsers() 329 final int id = (int) invocation.getArguments()[0]; in setMockedUsers() 339 doAnswer(invocation -> { in setMockedPackages() 340 final String appName = (String) invocation.getArguments()[0]; in setMockedPackages() 341 final int userId = (int) invocation.getArguments()[1]; in setMockedPackages()
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/ |
D | A2dpProfileTest.java | 34 import org.mockito.invocation.InvocationOnMock; 69 doAnswer((invocation) -> { in setUp() argument 70 mServiceListener = (BluetoothProfile.ServiceListener) invocation.getArguments()[1]; in setUp() 144 any(String.class))).thenAnswer((invocation) -> { in setupLabelTest() 145 return String.format(KNOWN_CODEC_LABEL, invocation.getArguments()[1]); in setupLabelTest()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerServiceMigrationTest.java | 109 doAnswer(invocation -> { in testMigration() 110 Integer userId = (Integer) invocation.getArguments()[0]; in testMigration() 111 Bundle bundle = (Bundle) invocation.getArguments()[1]; in testMigration() 222 doAnswer(invocation -> { in testMigration2_profileOwnerOnUser0() 223 Integer userId = (Integer) invocation.getArguments()[0]; in testMigration2_profileOwnerOnUser0() 224 Bundle bundle = (Bundle) invocation.getArguments()[1]; in testMigration2_profileOwnerOnUser0()
|
D | DpmMockContext.java | 57 import org.mockito.invocation.InvocationOnMock; 445 public UserInfo answer(InvocationOnMock invocation) throws Throwable { in addUser() 446 final int userId = (int) invocation.getArguments()[0]; in addUser() 454 public List<UserInfo> answer(InvocationOnMock invocation) throws Throwable { in addUser() 455 final int userId = (int) invocation.getArguments()[0]; in addUser() 463 public int[] answer(InvocationOnMock invocation) throws Throwable { in addUser() 464 final int userId = (int) invocation.getArguments()[0]; in addUser()
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | EmojiSpanTest.java | 40 import org.mockito.invocation.InvocationOnMock; 65 public Object answer(InvocationOnMock invocation) throws Throwable { in testGetSize() 66 final FontMetricsInt fontMetrics = (FontMetricsInt) invocation.getArguments()[0]; in testGetSize()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | CarrierServicesSmsFilterTest.java | 47 import org.mockito.invocation.InvocationOnMock; 167 public Void answer(InvocationOnMock invocation) throws Throwable { in mockCarrierAppStubResults() 168 Object[] args = invocation.getArguments(); in mockCarrierAppStubResults()
|
D | ContextFixture.java | 74 import org.mockito.invocation.InvocationOnMock; 509 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { in ContextFixture() 511 (Intent) invocation.getArguments()[0], in ContextFixture() 512 (Integer) invocation.getArguments()[1]); in ContextFixture() 518 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable { in ContextFixture() 520 (Intent) invocation.getArguments()[0], in ContextFixture() 521 (Integer) invocation.getArguments()[1]); in ContextFixture() 550 public String answer(InvocationOnMock invocation) { in putResource() 551 Object[] args = invocation.getArguments(); in putResource()
|
D | TelephonyTest.java | 74 import org.mockito.invocation.InvocationOnMock; 393 public IccRecords answer(InvocationOnMock invocation) { in setUp() 394 switch ((Integer) invocation.getArguments()[1]) { in setUp() 402 logd("Unrecognized family " + invocation.getArguments()[1]); in setUp() 416 public IccRecords answer(InvocationOnMock invocation) { in setUp()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/util/leak/ |
D | LeakReporterTest.java | 62 doAnswer(invocation -> { in setup() 63 invocation.<PrintWriter>getArgument(1).println("test"); in setup()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | BaseLockSettingsServiceTests.java | 39 import org.mockito.invocation.InvocationOnMock; 108 public Boolean answer(InvocationOnMock invocation) throws Throwable { in setUp() 109 Object[] args = invocation.getArguments(); in setUp()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/ |
D | AppCollectorTest.java | 41 import org.mockito.invocation.InvocationOnMock; 77 doAnswer((InvocationOnMock invocation) -> { in setUp() argument 78 Integer userId = (Integer) invocation.getArguments()[1]; in setUp()
|
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/ |
D | TextToSpeechTests.java | 28 import org.mockito.invocation.InvocationOnMock; 223 public Void answer(InvocationOnMock invocation) throws Exception { in doCountDown() 237 public Object answer(InvocationOnMock invocation) throws Exception { in doCountDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarTest.java | 125 doAnswer(invocation -> { in setup() 126 OnDismissAction onDismissAction = (OnDismissAction) invocation.getArguments()[0]; in setup() 131 doAnswer(invocation -> { in setup() 132 Runnable runnable = (Runnable) invocation.getArguments()[0]; in setup()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/util/ |
D | WifiPermissionsUtilTest.java | 54 import org.mockito.invocation.InvocationOnMock; 468 public Integer answer(InvocationOnMock invocation) { in createPermissionAnswer() 469 int myUid = (int) invocation.getArguments()[1]; in createPermissionAnswer() 470 String myPermission = (String) invocation.getArguments()[0]; in createPermissionAnswer()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | ResolverListControllerTest.java | 32 import org.mockito.invocation.InvocationOnMock; 106 public Void answer(InvocationOnMock invocation) throws Throwable { in reportChooserSelection()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | NetworkControllerBaseTest.java | 48 import org.mockito.invocation.InvocationOnMock; 131 doAnswer(invocation -> { in setUp() 132 mUserCallback = (DeviceProvisionedListener) invocation.getArguments()[0]; in setUp()
|