/cts/tests/tests/print/printTestUtilLib/src/android/print/test/services/ |
D | StubbablePrinterDiscoverySession.java | 67 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()
|
D | PrinterDiscoverySessionCallbacks.java | 43 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
|
D | StubbablePrintService.java | 57 public void onStartPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession() 62 public void onStopPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrinterCapabilitiesTest.java | 80 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 …]
|
D | PrinterInfoTest.java | 138 PrinterId printerId = null; in createFirstMockPrinterDiscoverySessionCallbacks() local 141 printerId = sDiscoverySession in createFirstMockPrinterDiscoverySessionCallbacks() 146 printerId = sDiscoverySession in createFirstMockPrinterDiscoverySessionCallbacks() 171 printerId, name, status); in createFirstMockPrinterDiscoverySessionCallbacks() 178 if (printerId == null in createFirstMockPrinterDiscoverySessionCallbacks() 271 if (printer.getId() != printerId in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PrinterCapabilitiesChangeTest.java | 86 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()
|
D | PrintServicesTest.java | 89 @NonNull PrinterId printerId) { in getDefaultOptionPrinterCapabilites() 90 return new PrinterCapabilitiesInfo.Builder(printerId) in getDefaultOptionPrinterCapabilites() 115 PrinterId printerId = session.getService() in createMockPrinterDiscoverySessionCallbacks() local 125 sPrinter = new PrinterInfo.Builder(printerId, printerName, in createMockPrinterDiscoverySessionCallbacks() 127 .setCapabilities(getDefaultOptionPrinterCapabilites(printerId)) in createMockPrinterDiscoverySessionCallbacks()
|
D | CustomPrintOptionsTest.java | 121 PrinterId printerId = session.getService().generatePrinterId(PRINTER_NAME); in setUpServicesAndAdapter() 124 new PrinterCapabilitiesInfo.Builder(printerId); in setUpServicesAndAdapter() 136 printers.add(new PrinterInfo.Builder(printerId, PRINTER_NAME, in setUpServicesAndAdapter()
|
D | PrintAttributesTest.java | 157 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()
|
D | PrintJobStateTransitionsTest.java | 89 PrinterId printerId = in createFirstMockPrinterDiscoverySessionCallbacks() local 95 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | InterfaceForAppsTest.java | 74 PrinterId printerId = session.getService().generatePrinterId(TEST_PRINTER); in createFirstMockPrinterDiscoverySessionCallbacks() local 79 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
|
D | PrintJobTest.java | 88 PrinterId printerId = in createFirstMockPrinterDiscoverySessionCallbacks() local 94 printer.setCapabilities(new PrinterCapabilitiesInfo.Builder(printerId) in createFirstMockPrinterDiscoverySessionCallbacks()
|
/cts/hostsidetests/securitybulletin/test-apps/CVE-2024-0053/src/android/security/cts/CVE_2024_0053/ |
D | TestPrintService.java | 55 PrinterId printerId = generatePrinterId(getString(R.string.localPrinterId)); in onCreatePrinterDiscoverySession() local 56 return new TestDiscoverySession(printerId); in onCreatePrinterDiscoverySession() 67 public void onStartPrinterStateTracking(@NonNull PrinterId printerId) {} in onStartPrinterStateTracking() argument 70 public void onStopPrinterStateTracking(@NonNull PrinterId printerId) {} in onStopPrinterStateTracking() argument 90 @NonNull PrinterId printerId, in onRequestCustomPrinterIcon()
|
D | DeviceTest.java | 181 PrinterId printerId = in testPocCVE_2024_0053() local 185 Icon printerIcon = printManager.getCustomPrinterIcon(printerId); in testPocCVE_2024_0053()
|
/cts/tests/tests/print/ExternalPrintService/src/android/print/cts/externalservice/ |
D | ExternalService.java | 56 public void onStartPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession() argument 61 public void onStopPrinterStateTracking(PrinterId printerId) { in onCreatePrinterDiscoverySession() argument
|