Home
last modified time | relevance | path

Searched refs:printerId (Results 1 – 13 of 13) sorted by relevance

/cts/tests/tests/print/src/android/print/cts/
DPrinterCapabilitiesTest.java80 PrinterId printerId = session.getService().generatePrinterId(PRINTER_NAME); in illegalPrinterCapabilityInfos()
89 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
96 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
102 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
108 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
116 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
125 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
131 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
139 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
148 (new PrinterCapabilitiesInfo.Builder(printerId)) in illegalPrinterCapabilityInfos()
[all …]
DPrinterInfoTest.java140 PrinterId printerId = null; in createFirstMockPrinterDiscoverySessionCallbacks() local
143 printerId = sDiscoverySession in createFirstMockPrinterDiscoverySessionCallbacks()
148 printerId = sDiscoverySession in createFirstMockPrinterDiscoverySessionCallbacks()
173 printerId, name, status); in createFirstMockPrinterDiscoverySessionCallbacks()
180 if (printerId == null in createFirstMockPrinterDiscoverySessionCallbacks()
273 if (printer.getId() != printerId in createFirstMockPrinterDiscoverySessionCallbacks()
DPrinterCapabilitiesChangeTest.java86 private List<PrinterInfo> generatePrinters(PrinterId printerId, MediaSize mediaSize, in generatePrinters() argument
94 printerId); in generatePrinters()
107 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, status).setCapabilities(cap) in generatePrinters()
149 final PrinterId printerId, final MediaSize mediaSize, final boolean isAvailable) in changeCapabilities() argument
152 () -> session.addPrinters(generatePrinters(printerId, mediaSize, isAvailable ? in changeCapabilities()
DPrintServicesTest.java94 @NonNull PrinterId printerId) { in getDefaultOptionPrinterCapabilites()
95 return new PrinterCapabilitiesInfo.Builder(printerId) in getDefaultOptionPrinterCapabilites()
120 PrinterId printerId = session.getService() in createMockPrinterDiscoverySessionCallbacks() local
130 sPrinter = new PrinterInfo.Builder(printerId, printerName, in createMockPrinterDiscoverySessionCallbacks()
132 .setCapabilities(getDefaultOptionPrinterCapabilites(printerId)) in createMockPrinterDiscoverySessionCallbacks()
DCustomPrintOptionsTest.java134 PrinterId printerId = session.getService().generatePrinterId(PRINTER_NAME); in setUpServicesAndAdapter()
137 new PrinterCapabilitiesInfo.Builder(printerId); in setUpServicesAndAdapter()
149 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, in setUpServicesAndAdapter()
DPrintAttributesTest.java157 PrinterId printerId = session.getService().generatePrinterId(PRINTER_NAME); in createMockPrinterDiscoverySessionCallbacks() local
160 new PrinterCapabilitiesInfo.Builder(printerId); in createMockPrinterDiscoverySessionCallbacks()
196 PrinterInfo printer = new PrinterInfo.Builder(printerId, PRINTER_NAME, in createMockPrinterDiscoverySessionCallbacks()
DPrintJobStateTransitionsTest.java89 PrinterId printerId = in createFirstMockPrinterDiscoverySessionCallbacks() local
95 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
DInterfaceForAppsTest.java74 PrinterId printerId = session.getService().generatePrinterId(TEST_PRINTER); in createFirstMockPrinterDiscoverySessionCallbacks() local
79 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
DPrintJobTest.java88 PrinterId printerId = in createFirstMockPrinterDiscoverySessionCallbacks() local
94 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/
DStubbablePrinterDiscoverySession.java67 public void onStartPrinterStateTracking(@NonNull PrinterId printerId) { in onStartPrinterStateTracking() argument
69 mCallbacks.onStartPrinterStateTracking(printerId); in onStartPrinterStateTracking()
74 public void onRequestCustomPrinterIcon(@NonNull PrinterId printerId, in onRequestCustomPrinterIcon() argument
78 mCallbacks.onRequestCustomPrinterIcon(printerId, cancellationSignal, callback); in onRequestCustomPrinterIcon()
83 public void onStopPrinterStateTracking(@NonNull PrinterId printerId) { in onStopPrinterStateTracking() argument
85 mCallbacks.onStopPrinterStateTracking(printerId); in onStopPrinterStateTracking()
DPrinterDiscoverySessionCallbacks.java43 public abstract void onStartPrinterStateTracking(PrinterId printerId); in onStartPrinterStateTracking() argument
45 public abstract void onRequestCustomPrinterIcon(PrinterId printerId, in onRequestCustomPrinterIcon() argument
48 public abstract void onStopPrinterStateTracking(PrinterId printerId); in onStopPrinterStateTracking() argument
DStubbablePrintService.java57 public void onStartPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession()
62 public void onStopPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession()
/cts/tests/tests/print/ExternalPrintService/src/android/print/cts/externalservice/
DExternalService.java56 public void onStartPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession() argument
61 public void onStopPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession() argument