Searched refs:assertException (Results 1 – 5 of 5) sorted by relevance
/cts/tests/tests/print/src/android/print/cts/ |
D | ClassParametersTest.java | 19 import static android.print.test.Utils.assertException; 48 assertException(() -> (new PrintAttributes.Builder()).setColorMode(-1), in illegalPrintAttributesColorMode() 50 assertException(() -> (new PrintAttributes.Builder()).setColorMode(0), in illegalPrintAttributesColorMode() 52 assertException(() -> (new PrintAttributes.Builder()).setColorMode( in illegalPrintAttributesColorMode() 64 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(-1), in illegalPrintAttributesDuplexMode() 66 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode(0), in illegalPrintAttributesDuplexMode() 68 assertException(() -> (new PrintAttributes.Builder()).setDuplexMode( in illegalPrintAttributesDuplexMode() 80 assertException(() -> new Resolution(null, "label", 10, 10), in illegalPrintAttributesResolution() 82 assertException(() -> new Resolution("", "label", 10, 10), in illegalPrintAttributesResolution() 84 assertException(() -> new Resolution("id", null, 10, 10), in illegalPrintAttributesResolution() [all …]
|
D | PrinterCapabilitiesTest.java | 19 import static android.print.test.Utils.assertException; 83 assertException(() -> new PrinterCapabilitiesInfo.Builder(null), in illegalPrinterCapabilityInfos() 88 assertException(() -> in illegalPrinterCapabilityInfos() 95 assertException(() -> in illegalPrinterCapabilityInfos() 101 assertException(() -> in illegalPrinterCapabilityInfos() 107 assertException(() -> in illegalPrinterCapabilityInfos() 115 assertException(() -> in illegalPrinterCapabilityInfos() 124 assertException(() -> in illegalPrinterCapabilityInfos() 130 assertException(() -> in illegalPrinterCapabilityInfos() 138 assertException(() -> in illegalPrinterCapabilityInfos() [all …]
|
D | PrintServicesTest.java | 19 import static android.print.test.Utils.assertException; 459 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(null), 461 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(getActivity()),
|
/cts/tests/tests/print/src/android/print/pdf/cts/ |
D | PrintedPdfDocumentTest.java | 19 import static android.print.test.Utils.assertException; 53 assertException(() -> new PrintedPdfDocument(sContext, null), NullPointerException.class); in createWithNullAttributes() 59 assertException(() -> new PrintedPdfDocument(sContext, attr), NullPointerException.class); in createWithNullMediaSize() 66 assertException(() -> new PrintedPdfDocument(sContext, attr), in createWithNullMargins() 101 assertException(() -> doc.startPage(0), IllegalArgumentException.class); in oneMilPageSize()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | Utils.java | 55 public static void assertException(@NonNull Invokable r, in assertException() method in Utils
|