/cts/tests/tests/print/src/android/print/cts/ |
D | PageRangeAdjustmentTest.java | 77 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 …]
|
D | PrintDocumentAdapterContractTest.java | 90 invocation -> { in noPrintOptionsOrPrinterChange() 91 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in noPrintOptionsOrPrinterChange() 92 … LayoutResultCallback callback = (LayoutResultCallback) invocation.getArguments()[3]; in noPrintOptionsOrPrinterChange() 101 }, invocation -> { in noPrintOptionsOrPrinterChange() 102 Object[] args = invocation.getArguments(); in noPrintOptionsOrPrinterChange() 112 }, invocation -> { in noPrintOptionsOrPrinterChange() 249 invocation -> { in nonCallingBackWrite() 251 (PrintAttributes) invocation.getArguments()[1]; in nonCallingBackWrite() 253 (PrintDocumentAdapter.LayoutResultCallback) invocation in nonCallingBackWrite() 264 }, invocation -> { in nonCallingBackWrite() [all …]
|
D | PrintDocumentInfoTest.java | 108 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 …]
|
D | PrinterDiscoverySessionLifecycleTest.java | 142 createMockPrinterDiscoverySessionCallbacks(invocation -> { in defaultPrinterBecomesAvailableWhileInBackground() 144 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in defaultPrinterBecomesAvailableWhileInBackground() 148 }, null, null, null, null, null, invocation -> { in defaultPrinterBecomesAvailableWhileInBackground() 155 invocation -> firstSessionCallbacks, null, null); in defaultPrinterBecomesAvailableWhileInBackground() 194 createMockPrinterDiscoverySessionCallbacks(invocation -> { in defaultPrinterBecomesUsableWhileInBackground() 196 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in defaultPrinterBecomesUsableWhileInBackground() 200 }, null, null, null, null, null, invocation -> { in defaultPrinterBecomesUsableWhileInBackground() 207 invocation -> firstSessionCallbacks, null, null); in defaultPrinterBecomesUsableWhileInBackground() 252 invocation -> firstSessionCallbacks, in normalLifecycle() 253 invocation -> { in normalLifecycle() [all …]
|
D | PageRangeAdjustAndVerify.java | 87 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 …]
|
D | PrinterCapabilitiesTest.java | 75 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 …]
|
D | PrintServicesTest.java | 106 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createMockPrinterDiscoverySessionCallbacks() 109 ((PrinterDiscoverySessionCallbacks) invocation.getMock()).getSession(); in createMockPrinterDiscoverySessionCallbacks() 139 }, null, null, null, invocation -> { in createMockPrinterDiscoverySessionCallbacks() 140 CustomPrinterIconCallback callback = (CustomPrinterIconCallback) invocation in createMockPrinterDiscoverySessionCallbacks() 147 }, null, invocation -> { in createMockPrinterDiscoverySessionCallbacks() 238 invocation -> sessionCallbacks, in createMockPrinterServiceCallbacks() 239 invocation -> { in createMockPrinterServiceCallbacks() 240 sPrintJob = (PrintJob) invocation.getArguments()[0]; in createMockPrinterServiceCallbacks() 245 }, invocation -> { in createMockPrinterServiceCallbacks() 246 sPrintJob = (PrintJob) invocation.getArguments()[0]; in createMockPrinterServiceCallbacks() [all …]
|
D | PrintAttributesTest.java | 151 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 …]
|
D | PrinterCapabilitiesChangeTest.java | 161 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()
|
D | InteractionBetweenPrintDocumentAndPrinterDiscovery.java | 105 }, 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()
|
D | InterfaceForAppsTest.java | 69 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()
|
D | CustomPrintOptionsTest.java | 117 createMockPrinterDiscoverySessionCallbacks(invocation -> { in setUpServicesAndAdapter() 119 ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in setUpServicesAndAdapter() 141 }, null, null, null, null, null, invocation -> { in setUpServicesAndAdapter() 147 invocation -> { in setUpServicesAndAdapter() 148 LayoutResultCallback callback = (LayoutResultCallback) invocation in setUpServicesAndAdapter() 156 mLayoutAttributes = (PrintAttributes) invocation.getArguments()[1]; in setUpServicesAndAdapter() 164 invocation -> { in setUpServicesAndAdapter() 165 Object[] args = invocation.getArguments(); in setUpServicesAndAdapter() 184 invocation -> firstSessionCallbacks, null, null); in setUpServicesAndAdapter()
|
D | PrinterInfoTest.java | 69 return createMockPrinterDiscoverySessionCallbacks(invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks() 71 sDiscoverySession = ((PrinterDiscoverySessionCallbacks) invocation.getMock()) in createFirstMockPrinterDiscoverySessionCallbacks() 294 }, null, null, invocation -> null, invocation -> null, null, invocation -> { in createFirstMockPrinterDiscoverySessionCallbacks() 309 invocation -> sessionCallbacks, in createFirstMockPrinterServiceCallbacks()
|
D | PrintJobStateTransitionsTest.java | 83 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()
|
D | PrintJobTest.java | 82 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/ |
D | Within.java | 23 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/companion/common/src/android/companion/cts/common/ |
D | InvocationTracker.kt | 51 fun recordInvocation(invocation: T) in clearRecordedInvocations() 64 override fun recordInvocation(invocation: T) { in clearRecordedInvocations() 65 _invocations.add(invocation) in clearRecordedInvocations()
|
D | RecordingCallback.kt | 65 private fun logAndRecordInvocation(invocation: CallbackInvocation) { in logAndRecordInvocation() 66 Log.d(TAG, "Callback: $invocation") in logAndRecordInvocation() 67 recordInvocation(invocation) in logAndRecordInvocation()
|
D | RecordingCdmEventObserver.kt | 65 data class CdmCallback(val invocation: CallbackInvocation) : CdmEvent constant in android.companion.cts.common.CdmCallback
|
/cts/tests/tests/slice/src/android/slice/cts/ |
D | LocalSliceProvider.java | 51 .defaultAnswer(invocation -> { in attachInfo() 53 return s.answer(invocation); in attachInfo()
|
D | SliceManagerTest.java | 131 (Answer<Uri>) invocation -> BASE_URI.buildUpon().path( in testMapIntentToUri() 132 ((Intent) invocation.getArguments()[0]).getStringExtra("path")).build()); in testMapIntentToUri() 143 LocalSliceProvider.sAnswer = invocation -> { in testOnCreatePermissionSlice()
|
/cts/tests/tests/transition/src/android/transition/cts/ |
D | SceneTest.java | 38 import org.mockito.invocation.InvocationOnMock; 51 doAnswer((InvocationOnMock invocation) -> mActivity.getLayoutInflater().inflate( in testDynamicConstructor()
|
/cts/tests/tests/appwidget/src/android/appwidget/cts/ |
D | AppWidgetTest.java | 85 import org.mockito.invocation.InvocationOnMock; 916 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaComponentName() 993 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetId() 1080 public Void answer(InvocationOnMock invocation) throws Throwable { in testUpdateAppWidgetViaWidgetIds() 1159 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetId() 1237 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds() 1261 public Void answer(InvocationOnMock invocation) throws Throwable { in testPartiallyUpdateAppWidgetViaWidgetIds() 1329 public Void answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets() 1330 final int appWidgetId = ((int[]) invocation.getArguments()[2])[0]; in testCollectionWidgets() 1370 public Integer answer(InvocationOnMock invocation) throws Throwable { in testCollectionWidgets() [all …]
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | MultiAutoCompleteTextViewTest.java | 52 import org.mockito.invocation.InvocationOnMock; 155 public CharSequence answer(InvocationOnMock invocation) throws Throwable { in testPerformValidation() 157 return (CharSequence) invocation.getArguments()[0]; in testPerformValidation()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 719 invocation -> { in createDefaultPrintDocumentAdapter() 720 PrintAttributes oldAttributes = (PrintAttributes) invocation.getArguments()[0]; in createDefaultPrintDocumentAdapter() 721 printAttributes[0] = (PrintAttributes) invocation.getArguments()[1]; in createDefaultPrintDocumentAdapter() 723 (LayoutResultCallback) invocation in createDefaultPrintDocumentAdapter() 732 }, invocation -> { in createDefaultPrintDocumentAdapter() 733 Object[] args = invocation.getArguments(); in createDefaultPrintDocumentAdapter() 745 }, invocation -> { in createDefaultPrintDocumentAdapter()
|