Searched refs:invocation (Results 1 - 22 of 22) sorted by relevance

/frameworks/base/tests/utils/testutils/java/android/app/test/
H A DMockAnswerUtil.java19 import org.mockito.invocation.InvocationOnMock;
38 public final Object answer(InvocationOnMock invocation) throws Throwable { argument
39 Method method = invocation.getMethod();
47 Object[] args = invocation.getArguments();
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
H A DMockAnswerUtil.java19 import org.mockito.invocation.InvocationOnMock;
38 public final Object answer(InvocationOnMock invocation) throws Throwable { argument
39 Method method = invocation.getMethod();
47 Object[] args = invocation.getArguments();
H A DMockKeyStore.java12 import org.mockito.invocation.InvocationOnMock;
43 public Boolean answer(InvocationOnMock invocation) throws Throwable {
44 Object[] args = invocation.getArguments();
54 public Boolean answer(InvocationOnMock invocation) throws Throwable {
55 Object[] args = invocation.getArguments();
64 public Boolean answer(InvocationOnMock invocation) throws Throwable {
65 Object[] args = invocation.getArguments();
73 public Boolean answer(InvocationOnMock invocation) throws Throwable {
74 Object[] args = invocation.getArguments();
82 public Boolean answer(InvocationOnMock invocation) throw
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/
H A DIccPhoneBookInterfaceManagerTest.java34 import org.mockito.invocation.InvocationOnMock;
76 public Void answer(InvocationOnMock invocation) throws Throwable {
77 Message response = (Message) invocation.getArguments()[2];
104 public Void answer(InvocationOnMock invocation) throws Throwable {
105 Message response = (Message) invocation.getArguments()[2];
/frameworks/base/services/tests/servicestests/src/com/android/server/storage/
H A DAppCollectorTest.java35 import org.mockito.invocation.InvocationOnMock;
107 public Void answer(InvocationOnMock invocation) {
109 ((IPackageStatsObserver.Stub) invocation.getArguments()[2])
158 public Void answer(InvocationOnMock invocation) {
160 ((IPackageStatsObserver.Stub) invocation.getArguments()[2])
164 ((IPackageStatsObserver.Stub) invocation.getArguments()[2])
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
H A DDevicePolicyManagerServiceMigrationTest.java31 import org.mockito.invocation.InvocationOnMock;
114 public Void answer(InvocationOnMock invocation) throws Throwable {
115 Integer userId = (Integer) invocation.getArguments()[0];
116 Bundle bundle = (Bundle) invocation.getArguments()[1];
229 public Void answer(InvocationOnMock invocation) throws Throwable {
230 Integer userId = (Integer) invocation.getArguments()[0];
231 Bundle bundle = (Bundle) invocation.getArguments()[1];
H A DDpmMockContext.java57 import org.mockito.invocation.InvocationOnMock;
333 public UserInfo answer(InvocationOnMock invocation) throws Throwable {
334 final int userId = (int) invocation.getArguments()[0];
347 public List<UserInfo> answer(InvocationOnMock invocation) throws Throwable {
348 final int userId = (int) invocation.getArguments()[0];
356 public int[] answer(InvocationOnMock invocation) throws Throwable {
357 final int userId = (int) invocation.getArguments()[0];
H A DDevicePolicyManagerTest.java44 import org.mockito.invocation.InvocationOnMock;
133 public Void answer(InvocationOnMock invocation) throws Throwable {
134 String pkg = (String) invocation.getArguments()[0];
135 Bundle bundle = (Bundle) invocation.getArguments()[1];
136 UserHandle user = (UserHandle) invocation.getArguments()[2];
148 public Bundle answer(InvocationOnMock invocation) throws Throwable {
149 String pkg = (String) invocation.getArguments()[0];
150 UserHandle user = (UserHandle) invocation.getArguments()[1];
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/
H A DImsPhoneCallTrackerTest.java44 import org.mockito.invocation.InvocationOnMock;
90 public Void answer(InvocationOnMock invocation) throws Throwable {
101 public Void answer(InvocationOnMock invocation) throws Throwable {
103 int reasonCode = (int) invocation.getArguments()[0];
114 public Void answer(InvocationOnMock invocation) throws Throwable {
116 int reasonCode = (int) invocation.getArguments()[0];
126 public Void answer(InvocationOnMock invocation) throws Throwable {
154 public Integer answer(InvocationOnMock invocation) throws Throwable {
156 (ImsConnectionStateListener) invocation.getArguments()[2];
164 public ImsCall answer(InvocationOnMock invocation) throw
[all...]
H A DImsPhoneConnectionTest.java41 import org.mockito.invocation.InvocationOnMock;
196 public Void answer(InvocationOnMock invocation) throws Throwable {
197 Message msg = (Message) invocation.getArguments()[1];
219 public Void answer(InvocationOnMock invocation) throws Throwable {
220 Message msg = (Message) invocation.getArguments()[1];
H A DImsExternalCallTrackerTest.java30 import org.mockito.invocation.InvocationOnMock;
/frameworks/base/services/tests/servicestests/src/com/android/server/connectivity/
H A DVpnTest.java275 doAnswer(invocation -> {
276 final boolean excludeDying = (boolean) invocation.getArguments()[0];
286 doAnswer(invocation -> {
287 final int id = (int) invocation.getArguments()[0];
291 doAnswer(invocation -> {
292 final int id = (int) invocation.getArguments()[0];
302 doAnswer(invocation -> {
303 final String appName = (String) invocation.getArguments()[0];
304 final int userId = (int) invocation.getArguments()[1];
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DContextFixture.java23 import org.mockito.invocation.InvocationOnMock;
496 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
498 (Intent) invocation.getArguments()[0],
499 (Integer) invocation.getArguments()[1]);
505 public List<ResolveInfo> answer(InvocationOnMock invocation) throws Throwable {
507 (Intent) invocation.getArguments()[0],
508 (Integer) invocation.getArguments()[1]);
533 public String answer(InvocationOnMock invocation) {
534 Object[] args = invocation.getArguments();
H A DTelephonyTest.java77 import org.mockito.invocation.InvocationOnMock;
374 public IccRecords answer(InvocationOnMock invocation) {
375 switch ((Integer) invocation.getArguments()[1]) {
383 logd("Unrecognized family " + invocation.getArguments()[1]);
397 public IccRecords answer(InvocationOnMock invocation) {
H A DSubscriptionInfoUpdaterTest.java47 import org.mockito.invocation.InvocationOnMock;
325 public Void answer(InvocationOnMock invocation) throws Throwable {
326 Message msg = (Message) invocation.getArguments()[1];
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DRecyclerViewCacheTest.java44 import org.mockito.invocation.InvocationOnMock;
107 public RecyclerView.ViewHolder answer(InvocationOnMock invocation)
167 public RecyclerView.ViewHolder answer(InvocationOnMock invocation)
217 public RecyclerView.ViewHolder answer(InvocationOnMock invocation)
/frameworks/base/core/tests/coretests/src/android/print/
H A DIPrintManagerParametersTest.java43 import org.mockito.invocation.InvocationOnMock;
114 public PrinterDiscoverySessionCallbacks answer(InvocationOnMock invocation) {
117 public Void answer(InvocationOnMock invocation) {
120 ((PrinterDiscoverySessionCallbacks) invocation
/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
H A DWakeupMessageTest.java36 import org.mockito.invocation.InvocationOnMock;
/frameworks/volley/src/test/java/com/android/volley/
H A DRequestQueueIntegrationTest.java29 import org.mockito.invocation.InvocationOnMock;
/frameworks/rs/api/
H A Drs_for_each.spec22 The other functions are used to get the characteristics of the invocation of
48 summary: Handle to a kernel invocation context
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
H A DDcTrackerTest.java59 import org.mockito.invocation.InvocationOnMock;
317 public Void answer(InvocationOnMock invocation) throws Throwable {
320 invocation.getArguments()[0];
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/
H A DBaseShortcutManagerTest.java88 import org.mockito.invocation.InvocationOnMock;
757 public T answer(InvocationOnMock invocation) throws Throwable { argument
760 return mChecker.apply(invocation);

Completed in 828 milliseconds