Home
last modified time | relevance | path

Searched refs:invocation (Results 1 – 25 of 46) sorted by relevance

12

/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/app/
DGuidedStepSupportFragmentTest.java44 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 …]
DGuidedStepFragmentTest.java41 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/
DCtsMockitoUtils.java22 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/
DMockKeyStore.java12 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 …]
DWifiStateMachinePrimeTest.java36 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/
DMockAnswerUtil.java19 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/
DIccPhoneBookInterfaceManagerTest.java34 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/
DImsPhoneCallTrackerTest.java69 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 …]
DImsPhoneConnectionTest.java41 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/
DVpnTest.java312 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/
DA2dpProfileTest.java34 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/
DDevicePolicyManagerServiceMigrationTest.java109 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()
DDpmMockContext.java57 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/
DEmojiSpanTest.java40 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/
DCarrierServicesSmsFilterTest.java47 import org.mockito.invocation.InvocationOnMock;
167 public Void answer(InvocationOnMock invocation) throws Throwable { in mockCarrierAppStubResults()
168 Object[] args = invocation.getArguments(); in mockCarrierAppStubResults()
DContextFixture.java74 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()
DTelephonyTest.java74 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/
DLeakReporterTest.java62 doAnswer(invocation -> { in setup()
63 invocation.<PrintWriter>getArgument(1).println("test"); in setup()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DBaseLockSettingsServiceTests.java39 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/
DAppCollectorTest.java41 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/
DTextToSpeechTests.java28 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/
DStatusBarTest.java125 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/
DWifiPermissionsUtilTest.java54 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/
DResolverListControllerTest.java32 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/
DNetworkControllerBaseTest.java48 import org.mockito.invocation.InvocationOnMock;
131 doAnswer(invocation -> { in setUp()
132 mUserCallback = (DeviceProvisionedListener) invocation.getArguments()[0]; in setUp()

12