Home
last modified time | relevance | path

Searched refs:page (Results 1 – 11 of 11) sorted by relevance

/cts/tests/pdf/src/android/graphics/pdf/cts/
DPdfDocumentTest.java94 PdfDocument.Page page = doc in finishPageTwiceDoc() local
96 doc.finishPage(page); in finishPageTwiceDoc()
97 verifyException(() -> doc.finishPage(page), IllegalStateException.class); in finishPageTwiceDoc()
106 PdfDocument.Page page = doc in closeWithOpenPage() local
109 doc.finishPage(page); in closeWithOpenPage()
129 PdfDocument.Page page = doc in writeWithOpenPage() local
137 doc.finishPage(page); in writeWithOpenPage()
145 PdfDocument.Page page = doc in openTwoPages() local
150 doc.finishPage(page); in openTwoPages()
194 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDocWithSameIndex() argument
[all …]
DPdfRendererTest.java117 Page page = renderer.openPage(0); in usePageAfterClose() local
118 page.close(); in usePageAfterClose()
122 page.getHeight(); in usePageAfterClose()
123 page.getWidth(); in usePageAfterClose()
124 page.getIndex(); in usePageAfterClose()
125 verifyException(page::close, IllegalStateException.class); in usePageAfterClose()
129 verifyException(() -> page.render(null, null, null, Page.RENDER_MODE_FOR_DISPLAY), in usePageAfterClose()
138 Page page = renderer.openPage(0); in closeWithOpenPage() local
142 page.close(); in closeWithOpenPage()
150 Page page = renderer.openPage(0); in openTwoPages() local
[all …]
DUtils.java122 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform() argument
125 page.render(bm, clipping, transformation, renderMode); in renderWithTransform()
156 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform() argument
157 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform()
159 page.render(renderedBm, null, null, renderMode); in renderAndThenTransform()
/cts/tests/tests/media/src/android/media/cts/
DMediaBrowserTest.java222 for (int page = 0; page <= lastPage; ++page) { in testSubscribeWithOptions()
224 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions()
235 if (page != lastPage) { in testSubscribeWithOptions()
243 assertEquals(StubMediaBrowserService.MEDIA_ID_CHILDREN[page * pageSize + i], in testSubscribeWithOptions()
285 final int page = 2; in testSubscribeInvalidItemWithOptions() local
288 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions()
299 assertEquals(page, mSubscriptionCallback.mLastOptions.getInt(MediaBrowser.EXTRA_PAGE)); in testSubscribeInvalidItemWithOptions()
329 for (int page = 0; page < 4; page++) { in testUnsubscribeForMultipleSubscriptions()
334 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testUnsubscribeForMultipleSubscriptions()
375 for (int page = 0; page < 4; page++) { in testUnsubscribeWithSubscriptionCallbackForMultipleSubscriptions()
[all …]
DMediaBrowserServiceTest.java149 final int page = 2; in testNotifyChildrenChangedWithPagination() local
152 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testNotifyChildrenChangedWithPagination()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java229 try (PdfRenderer.Page page = renderer.openPage(i)) { in adjustPageRangeAndVerifyPages()
230 page.render(rendering, null, null, RENDER_MODE_FOR_PRINT); in adjustPageRangeAndVerifyPages()
326 PdfDocument.Page page = document.startPage(pageNumber); in adjustPageRangeAndVerifyPages()
330 Canvas canvas = page.getCanvas(); in adjustPageRangeAndVerifyPages()
336 document.finishPage(page); in adjustPageRangeAndVerifyPages()
/cts/tests/tests/print/src/android/print/pdf/cts/
DPrintedPdfDocumentTest.java86 PdfDocument.Page page = doc.startPage(0); in startPage() local
87 doc.finishPage(page); in startPage()
/cts/tests/tests/permission/src/android/permission/cts/
DFileSystemPermissionTest.java443 for (long page = start; page < end; page++) { in pfnIsZero()
444 long offset = page * SIZEOF_U64; in pfnIsZero()
/cts/tests/tests/webkit/src/android/webkit/cts/
DWebViewClientTest.java262 final String page = "<head></head><body>test onReceivedLoginRequest</body>"; in testOnReceivedLoginRequest() local
270 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest()
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/
DBasePrintTest.java968 PdfDocument.Page page = document.startPage(i); in writeBlankPages() local
969 document.finishPage(page); in writeBlankPages()
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c931 void *page = (void*)((u64)got & ~0xffful); in hook_clone() local
932 if (mprotect(page, 0x1000, PROT_READ | PROT_WRITE) < 0) { in hook_clone()