Home
last modified time | relevance | path

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

12

/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustmentTest.java77 invocation -> createMockFirstPrinterDiscoverySessionCallbacks(), in setDefaultPrinter()
78 invocation -> { in setDefaultPrinter()
79 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in setDefaultPrinter()
102 invocation -> createMockFirstPrinterDiscoverySessionCallbacks(), in allPagesWantedAndAllPagesWritten()
103 invocation -> { in allPagesWantedAndAllPagesWritten()
104 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in allPagesWantedAndAllPagesWritten()
150 invocation -> createMockFirstPrinterDiscoverySessionCallbacks(), in somePagesWantedAndAllPagesWritten()
151 invocation -> { in somePagesWantedAndAllPagesWritten()
152 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in somePagesWantedAndAllPagesWritten()
170 invocation -> { in somePagesWantedAndAllPagesWritten()
[all …]
DPrintDocumentAdapterContractTest.java89 invocation -> { in noPrintOptionsOrPrinterChange()
90 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in noPrintOptionsOrPrinterChange()
91 … LayoutResultCallback callback = (LayoutResultCallback) invocation.getArguments()[3]; in noPrintOptionsOrPrinterChange()
100 }, invocation -> { in noPrintOptionsOrPrinterChange()
101 Object[] args = invocation.getArguments(); in noPrintOptionsOrPrinterChange()
111 }, invocation -> { in noPrintOptionsOrPrinterChange()
252 invocation -> { in nonCallingBackWrite()
254 (PrintAttributes) invocation.getArguments()[1]; in nonCallingBackWrite()
256 (PrintDocumentAdapter.LayoutResultCallback) invocation in nonCallingBackWrite()
267 }, invocation -> { in nonCallingBackWrite()
[all …]
DPrintDocumentInfoTest.java108 invocation -> printerDiscoverySessionCallbacks, in printDocumentBaseTest()
109 invocation -> { in printDocumentBaseTest()
110 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in printDocumentBaseTest()
126 invocation -> { in printDocumentBaseTest()
127 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in printDocumentBaseTest()
128 LayoutResultCallback callback = (LayoutResultCallback) invocation in printDocumentBaseTest()
132 }, invocation -> { in printDocumentBaseTest()
133 Object[] args = invocation.getArguments(); in printDocumentBaseTest()
145 }, invocation -> null); in printDocumentBaseTest()
283 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockDiscoverySessionCallbacks()
[all …]
DPrinterDiscoverySessionLifecycleTest.java154 createMockPrinterDiscoverySessionCallbacks(invocation -> { in defaultPrinterBecomesAvailableWhileInBackground()
156 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in defaultPrinterBecomesAvailableWhileInBackground()
160 }, null, null, null, null, null, invocation -> { in defaultPrinterBecomesAvailableWhileInBackground()
167 invocation -> firstSessionCallbacks, null, null); in defaultPrinterBecomesAvailableWhileInBackground()
204 createMockPrinterDiscoverySessionCallbacks(invocation -> { in defaultPrinterBecomesUsableWhileInBackground()
206 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in defaultPrinterBecomesUsableWhileInBackground()
210 }, null, null, null, null, null, invocation -> { in defaultPrinterBecomesUsableWhileInBackground()
217 invocation -> firstSessionCallbacks, null, null); in defaultPrinterBecomesUsableWhileInBackground()
260 invocation -> firstSessionCallbacks, in normalLifecycle()
261 invocation -> { in normalLifecycle()
[all …]
DPageRangeAdjustAndVerify.java87 invocation -> createMockFirstPrinterDiscoverySessionCallbacks(), in setDefaultPrinter()
88 invocation -> { in setDefaultPrinter()
89 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in setDefaultPrinter()
189 invocation -> createMockFirstPrinterDiscoverySessionCallbacks(), in adjustPageRangeAndVerifyPages()
190 invocation -> { in adjustPageRangeAndVerifyPages()
191 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in adjustPageRangeAndVerifyPages()
268 invocation -> { in adjustPageRangeAndVerifyPages()
270 invocation.getArguments()[1]); in adjustPageRangeAndVerifyPages()
272 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in adjustPageRangeAndVerifyPages()
280 ((PrintDocumentAdapter.LayoutResultCallback) invocation.getArguments()[3]) in adjustPageRangeAndVerifyPages()
[all …]
DPrinterCapabilitiesTest.java75 createMockPrinterDiscoverySessionCallbacks(invocation -> { in illegalPrinterCapabilityInfos()
78 invocation.getMock()).getSession(); in illegalPrinterCapabilityInfos()
155 }, null, null, null, null, null, invocation -> { in illegalPrinterCapabilityInfos()
162 invocation -> firstSessionCallbacks, null, null); in illegalPrinterCapabilityInfos()
188 createMockPrinterDiscoverySessionCallbacks(invocation -> { in sanePrinterCapabilityInfos()
191 invocation.getMock()).getSession(); in sanePrinterCapabilityInfos()
288 }, null, null, null, null, null, invocation -> { in sanePrinterCapabilityInfos()
295 invocation -> firstSessionCallbacks, null, null); in sanePrinterCapabilityInfos()
322 createMockPrinterDiscoverySessionCallbacks(invocation -> { in testPrinterCapabilityInfo()
325 invocation.getMock()).getSession(); in testPrinterCapabilityInfo()
[all …]
DPrintServicesTest.java111 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createMockPrinterDiscoverySessionCallbacks()
114 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in createMockPrinterDiscoverySessionCallbacks()
144 }, null, null, null, invocation -> { in createMockPrinterDiscoverySessionCallbacks()
145 CustomPrinterIconCallback callback = (CustomPrinterIconCallback) invocation in createMockPrinterDiscoverySessionCallbacks()
152 }, null, invocation -> { in createMockPrinterDiscoverySessionCallbacks()
243 invocation -> sessionCallbacks, in createMockPrinterServiceCallbacks()
244 invocation -> { in createMockPrinterServiceCallbacks()
245 sPrintJob = (PrintJob) invocation.getArguments()[0]; in createMockPrinterServiceCallbacks()
250 }, invocation -> { in createMockPrinterServiceCallbacks()
251 sPrintJob = (PrintJob) invocation.getArguments()[0]; in createMockPrinterServiceCallbacks()
[all …]
DPrintAttributesTest.java151 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createMockPrinterDiscoverySessionCallbacks()
153 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in createMockPrinterDiscoverySessionCallbacks()
203 }, null, null, invocation -> null, null, null, invocation -> { in createMockPrinterDiscoverySessionCallbacks()
229 invocation -> { in createMockPrintDocumentAdapter()
230 mLayoutAttributes = (PrintAttributes) invocation.getArguments()[1]; in createMockPrintDocumentAdapter()
232 (LayoutResultCallback) invocation.getArguments()[3]; in createMockPrintDocumentAdapter()
241 }, invocation -> { in createMockPrintDocumentAdapter()
242 Object[] args = invocation.getArguments(); in createMockPrintDocumentAdapter()
253 }, invocation -> { in createMockPrintDocumentAdapter()
284 invocation -> sessionCallbacks,
[all …]
DPrinterCapabilitiesChangeTest.java161 createMockPrinterDiscoverySessionCallbacks(invocation -> { in setUpPrinting()
162 mSession[0] = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in setUpPrinting()
170 }, null, null, null, null, null, invocation -> { in setUpPrinting()
177 invocation -> firstSessionCallbacks, null, null); in setUpPrinting()
184 invocation -> { in setUpPrinting()
185 LayoutResultCallback callback = (LayoutResultCallback) invocation in setUpPrinting()
193 mLayoutAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in setUpPrinting()
200 }, invocation -> { in setUpPrinting()
201 Object[] args = invocation.getArguments(); in setUpPrinting()
DInteractionBetweenPrintDocumentAndPrinterDiscovery.java105 }, null, null, null, null, null, invocation -> { in printerReappearsWhileCanceling()
123 invocation -> { in printerReappearsWhileCanceling()
124 Object[] args = invocation.getArguments(); in printerReappearsWhileCanceling()
133 }, invocation -> { in printerReappearsWhileCanceling()
134 Object[] args = invocation.getArguments(); in printerReappearsWhileCanceling()
DCustomPrintOptionsTest.java130 createMockPrinterDiscoverySessionCallbacks(invocation -> { in setUpServicesAndAdapter()
132 ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in setUpServicesAndAdapter()
154 }, null, null, null, null, null, invocation -> { in setUpServicesAndAdapter()
160 invocation -> { in setUpServicesAndAdapter()
161 LayoutResultCallback callback = (LayoutResultCallback) invocation in setUpServicesAndAdapter()
169 mLayoutAttributes = (PrintAttributes) invocation.getArguments()[1]; in setUpServicesAndAdapter()
177 invocation -> { in setUpServicesAndAdapter()
178 Object[] args = invocation.getArguments(); in setUpServicesAndAdapter()
197 invocation -> firstSessionCallbacks, null, null); in setUpServicesAndAdapter()
DInterfaceForAppsTest.java69 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
70 … StubbablePrinterDiscoverySession session = ((PrinterDiscoverySessionCallbacks) invocation in createFirstMockPrinterDiscoverySessionCallbacks()
97 }, null, null, invocation -> null, null, null, invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
114 invocation -> sessionCallbacks, invocation -> { in createFirstMockPrinterServiceCallbacks()
115 android.printservice.PrintJob job = (android.printservice.PrintJob) invocation in createFirstMockPrinterServiceCallbacks()
150 }, invocation -> { in createFirstMockPrinterServiceCallbacks()
151 android.printservice.PrintJob job = (android.printservice.PrintJob) invocation in createFirstMockPrinterServiceCallbacks()
DPrintJobStateTransitionsTest.java83 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
85 sDiscoverySession = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in createFirstMockPrinterDiscoverySessionCallbacks()
108 }, null, null, invocation -> null, null, null, invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
130 invocation -> sessionCallbacks, invocation -> { in createFirstMockPrinterServiceCallbacks()
131 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in createFirstMockPrinterServiceCallbacks()
DPrinterInfoTest.java71 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
73 sDiscoverySession = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in createFirstMockPrinterDiscoverySessionCallbacks()
296 }, null, null, invocation -> null, invocation -> null, null, invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
311 invocation -> sessionCallbacks, in createFirstMockPrinterServiceCallbacks()
DPrintJobTest.java82 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
84 sDiscoverySession = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in createFirstMockPrinterDiscoverySessionCallbacks()
107 }, null, null, invocation -> null, null, null, invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks()
129 invocation -> sessionCallbacks, invocation -> { in createFirstMockPrinterServiceCallbacks()
130 PrintJob printJob = (PrintJob) invocation.getArguments()[0]; in createFirstMockPrinterServiceCallbacks()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DWithin.java23 import org.mockito.invocation.Invocation;
54 for (Invocation invocation : actualInvocations) { in verify()
55 if (data.getWanted().matches(invocation)) { in verify()
86 for (Invocation invocation : data.getAllInvocations()) { in markAllInvocationsAsVerified()
87 invocation.markVerified(); in markAllInvocationsAsVerified()
88 data.getWanted().captureArgumentsFrom(invocation); in markAllInvocationsAsVerified()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DWithin.java23 import org.mockito.invocation.Invocation;
54 for (Invocation invocation : actualInvocations) { in verify()
55 if (data.getWanted().matches(invocation)) { in verify()
86 for (Invocation invocation : data.getAllInvocations()) { in markAllInvocationsAsVerified()
87 invocation.markVerified(); in markAllInvocationsAsVerified()
88 data.getWanted().captureArgumentsFrom(invocation); in markAllInvocationsAsVerified()
/cts/tests/tests/appwidget/src/android/appwidget/cts/
DAppWidgetTest.java70 import org.mockito.invocation.InvocationOnMock;
795 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaComponentName()
872 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetId()
959 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetIds()
1038 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetId()
1116 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1140 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds()
1208 public Void answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
1209 final int appWidgetId = ((int[]) invocation.getArguments()[2])[0]; in testCollectionWidgets()
1249 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets()
[all …]
DCollectionAppWidgetTest.java61 import org.mockito.invocation.InvocationOnMock;
155 public RemoteViews answer(InvocationOnMock invocation) throws Throwable { in setup()
156 final int position = (Integer) invocation.getArguments()[0]; in setup()
DDarkTextThemeTest.java207 doAnswer(invocation -> { in setupAndAwaitCollectionWidget()
208 final int position = (Integer) invocation.getArguments()[0]; in setupAndAwaitCollectionWidget()
/cts/tests/tests/slice/src/android/slice/cts/
DLocalSliceProvider.java51 .defaultAnswer(invocation -> { in attachInfo()
53 return s.answer(invocation); in attachInfo()
DSliceManagerTest.java119 (Answer<Uri>) invocation -> BASE_URI.buildUpon().path( in testMapIntentToUri()
120 ((Intent) invocation.getArguments()[0]).getStringExtra("path")).build()); in testMapIntentToUri()
130 LocalSliceProvider.sAnswer = invocation -> { in testOnCreatePermissionSlice()
/cts/tests/tests/transition/src/android/transition/cts/
DSceneTest.java38 import org.mockito.invocation.InvocationOnMock;
51 doAnswer((InvocationOnMock invocation) -> mActivity.getLayoutInflater().inflate( in testDynamicConstructor()
/cts/tests/tests/widget/src/android/widget/cts/
DMultiAutoCompleteTextViewTest.java49 import org.mockito.invocation.InvocationOnMock;
146 public CharSequence answer(InvocationOnMock invocation) throws Throwable { in testPerformValidation()
148 return (CharSequence) invocation.getArguments()[0]; in testPerformValidation()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java865 invocation -> { in createDefaultPrintDocumentAdapter()
866 PrintAttributes oldAttributes = (PrintAttributes) invocation.getArguments()[0]; in createDefaultPrintDocumentAdapter()
867 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in createDefaultPrintDocumentAdapter()
869 (LayoutResultCallback) invocation in createDefaultPrintDocumentAdapter()
878 }, invocation -> { in createDefaultPrintDocumentAdapter()
879 Object[] args = invocation.getArguments(); in createDefaultPrintDocumentAdapter()
891 }, invocation -> { in createDefaultPrintDocumentAdapter()

12