Searched refs:assertException (Results 1 – 6 of 6) 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; 451 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(null), 453 assertException(() -> serviceCallbacks.getService().callAttachBaseContext(getActivity()),
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | CommonRendererTest.java | 132 assertException(null, transform, RenderParams.RENDER_MODE_FOR_DISPLAY); in renderPerspective() 175 assertException(clip, null, RenderParams.RENDER_MODE_FOR_DISPLAY); in renderWithBadLowerCornerOfClip() 183 assertException(clip, null, RenderParams.RENDER_MODE_FOR_DISPLAY); in renderWithBadUpperCornerOfClip() 188 assertException(null, null, in renderTwoModes() 194 assertException(null, null, 1 << 30); in renderBadMode() 199 assertException(null, null, -1); in renderAllModes() 204 assertException(null, null, 0); in renderNoMode() 239 private void assertException(Rect destClip, Matrix transformation, int renderMode) { in assertException() method in CommonRendererTest
|
/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
|