/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfDocumentTest.java | 93 PdfDocument.Page page = doc.startPage( in finishPageTwiceDoc() local 95 doc.finishPage(page); in finishPageTwiceDoc() 96 assertThrows(IllegalStateException.class, () -> doc.finishPage(page)); in finishPageTwiceDoc() 105 PdfDocument.Page page = doc.startPage( in closeWithOpenPage() local 108 doc.finishPage(page); in closeWithOpenPage() 128 PdfDocument.Page page = doc.startPage( in writeWithOpenPage() local 136 doc.finishPage(page); in writeWithOpenPage() 144 PdfDocument.Page page = doc.startPage( in openTwoPages() local 149 doc.finishPage(page); in openTwoPages() 193 try (PdfRenderer.Page page = renderer.openPage(0)) { in writeTwoPageDocWithSameIndex() argument [all …]
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | PdfRendererPreVTest.java | 131 PdfRendererPreV.Page page = renderer.openPage(0); in usePage_afterRendererClose_throwsException() local 134 assertPageException(page); in usePage_afterRendererClose_throwsException() 140 PdfRendererPreV.Page page = renderer.openPage(0); in usePage_afterPageClose_throwsException() local 141 page.close(); in usePage_afterPageClose_throwsException() 143 assertPageException(page); in usePage_afterPageClose_throwsException() 150 PdfRendererPreV.Page page = renderer.openPage(0); in useRenderer_afterPageClose() local 151 page.close(); in useRenderer_afterPageClose() 183 PdfRendererPreV.Page page = renderer.openPage(0); in getPageDimension() local 185 assertThat(page.getWidth()).isEqualTo(A4_WIDTH_PTS); in getPageDimension() 186 assertThat(page.getHeight()).isEqualTo(A4_HEIGHT_PTS); in getPageDimension() [all …]
|
D | PdfRendererTest.java | 208 PdfRenderer.Page page = renderer.openPage(0); in assertPageAfterClose() local 212 page.close(); in assertPageAfterClose() 216 page.getHeight(); in assertPageAfterClose() 217 page.getWidth(); in assertPageAfterClose() 218 page.getIndex(); in assertPageAfterClose() 220 assertThrows(IllegalStateException.class, page::close); in assertPageAfterClose() 223 assertThrows(IllegalStateException.class, page::getLinkContents); in assertPageAfterClose() 224 assertThrows(IllegalStateException.class, page::getGotoLinks); in assertPageAfterClose() 225 assertThrows(IllegalStateException.class, page::getTextContents); in assertPageAfterClose() 226 assertThrows(IllegalStateException.class, page::getImageContents); in assertPageAfterClose() [all …]
|
D | Utils.java | 196 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform() argument 197 page.render(bm, clipping, transformation, new RenderParams.Builder( in renderWithTransform() 205 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderWithTransform() argument 206 page.render(bm, clipping, transformation, renderMode); in renderWithTransform() 244 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform() argument 245 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform() 247 page.render(renderedBm, null, null, new RenderParams.Builder( in renderAndThenTransform() 258 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndThenTransform() argument 259 renderedBm = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndThenTransform() 261 page.render(renderedBm, null, null, renderMode); in renderAndThenTransform() [all …]
|
D | PdfAnnotationsRenderScreenshotTests.java | 106 try (PdfRenderer.Page page = renderer.openPage(0)) { in renderAndCompare() argument 111 Bitmap output = Bitmap.createBitmap(page.getWidth(), page.getHeight(), in renderAndCompare() 113 page.render(output, null, null, createRenderParams()); in renderAndCompare()
|
D | PdfFormFillingTest.java | 477 try (PdfRenderer.Page page = renderer.openPage(0)) { in getFormWidgetInfo_invalidIndex() argument 480 () -> page.getFormWidgetInfoAtIndex(emptyIndex)); in getFormWidgetInfo_invalidIndex() 488 try (PdfRenderer.Page page = renderer.openPage(0)) { in getFormWidgetInfo_emptyPoint() argument 491 () -> page.getFormWidgetInfoAtPosition(emptyPos.x, emptyPos.y)); in getFormWidgetInfo_emptyPoint() 1038 try (PdfRenderer.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfo() argument 1040 FormWidgetInfo foundInfo = page.getFormWidgetInfoAtPosition(position.x, position.y); in verifyFormWidgetInfo() 1044 assertEquals(foundInfo, page.getFormWidgetInfoAtIndex(foundInfo.getWidgetIndex())); in verifyFormWidgetInfo() 1052 try (PdfRenderer.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfos() argument 1055 foundInfos = page.getFormWidgetInfos(widgetTypes); in verifyFormWidgetInfos() 1057 foundInfos = page.getFormWidgetInfos(); in verifyFormWidgetInfos() [all …]
|
D | PdfFormFillingPreVTest.java | 476 try (PdfRendererPreV.Page page = renderer.openPage(0)) { in getFormWidgetInfo_invalidIndex() argument 479 () -> page.getFormWidgetInfoAtIndex(emptyIndex)); in getFormWidgetInfo_invalidIndex() 487 try (PdfRendererPreV.Page page = renderer.openPage(0)) { in getFormWidgetInfo_emptyPoint() argument 490 () -> page.getFormWidgetInfoAtPosition(emptyPos.x, emptyPos.y)); in getFormWidgetInfo_emptyPoint() 1041 try (PdfRendererPreV.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfo() argument 1043 FormWidgetInfo foundInfo = page.getFormWidgetInfoAtPosition(position.x, position.y); in verifyFormWidgetInfo() 1047 assertEquals(foundInfo, page.getFormWidgetInfoAtIndex(foundInfo.getWidgetIndex())); in verifyFormWidgetInfo() 1055 try (PdfRendererPreV.Page page = renderer.openPage(pageNum)) { in verifyFormWidgetInfos() argument 1058 foundInfos = page.getFormWidgetInfos(widgetTypes); in verifyFormWidgetInfos() 1060 foundInfos = page.getFormWidgetInfos(); in verifyFormWidgetInfos() [all …]
|
D | CommonRendererTest.java | 210 PdfRendererPreV.Page page = renderer.openPage(0)) { in renderPreVOnNUllBitmap_throwsException() argument 212 () -> page.render(null, null, null, new RenderParams.Builder(1).build())); in renderPreVOnNUllBitmap_throwsException()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionServiceCtsTestBase.java | 245 List<SearchResult> page = results.getNextPageAsync().get(); in testPublicVisibility_accessibleTestPackage() local 246 assertThat(page).hasSize(2); in testPublicVisibility_accessibleTestPackage() 370 List<SearchResult> page = results.getNextPageAsync().get(); in testPublicVisibility_invalidCertificate() local 371 assertThat(page).hasSize(2); in testPublicVisibility_invalidCertificate() 1184 List<SearchResult> page = searchResults.getNextPageAsync().get(); in testGlobalSearch_withAccess() local 1185 assertThat(page).hasSize(2); in testGlobalSearch_withAccess() 1189 page.get(0).getPackageName(), page.get(1).getPackageName()); in testGlobalSearch_withAccess() 1211 List<SearchResult> page = searchResults.getNextPageAsync().get(); in testGlobalSearch_withPartialAccess() local 1212 assertThat(page).hasSize(1); in testGlobalSearch_withPartialAccess() 1214 assertThat(page.get(0).getPackageName()).isEqualTo(PKG_A); in testGlobalSearch_withPartialAccess() [all …]
|
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/ |
D | MediaBrowserTest.java | 336 for (int page = 0; page <= lastPage; ++page) { in testSubscribeWithOptions() 338 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions() 349 if (page != lastPage) { in testSubscribeWithOptions() 361 page, pageSize, lastChildMediaItemsCount); in testSubscribeWithOptions() 412 final int page = 2; in testSubscribeInvalidItemWithOptions() local 415 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions() 428 .isEqualTo(page); in testSubscribeInvalidItemWithOptions() 484 for (int page = 0; page < 4; page++) { in testUnsubscribeForMultipleSubscriptions() 489 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testUnsubscribeForMultipleSubscriptions() 532 for (int page = 0; page < 4; page++) { in testUnsubscribeWithSubscriptionCallbackForMultipleSubscriptions() [all …]
|
D | MediaBrowserServiceTest.java | 208 final int page = 2; in testNotifyChildrenChangedWithPagination() local 211 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testNotifyChildrenChangedWithPagination() 226 final int overlappingNewPage = pageSize * page / newPageSize; in testNotifyChildrenChangedWithPagination() 238 nonOverlappingOptions.putInt(MediaBrowser.EXTRA_PAGE, page + 1); in testNotifyChildrenChangedWithPagination()
|
/cts/tests/tests/os/UffdGc/jni/ |
D | android_os_cts_uffdgc_UserfaultfdTest.cc | 45 char* page = static_cast<char*>(mmap(nullptr, page_sz, PROT_READ | PROT_WRITE, in userfault_handler_thread() local 47 if (page == MAP_FAILED) { in userfault_handler_thread() 53 std::memset(page, 'a', page_sz); in userfault_handler_thread() 86 uffdio_copy.src = reinterpret_cast<size_t>(page); in userfault_handler_thread() 98 munmap(page, page_sz); in userfault_handler_thread()
|
/cts/tests/appsearch/testutils/src/android/app/appsearch/testutil/external/testutil/ |
D | AppSearchTestUtils.java | 111 List<SearchResult> page = searchResults.getNextPageAsync().get(); in retrieveAllSearchResults() local 113 while (!page.isEmpty()) { in retrieveAllSearchResults() 114 results.addAll(page); in retrieveAllSearchResults() 115 page = searchResults.getNextPageAsync().get(); in retrieveAllSearchResults()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PageRangeAdjustAndVerify.java | 229 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/ |
D | PrintedPdfDocumentTest.java | 86 PdfDocument.Page page = doc.startPage(0); in startPage() local 87 doc.finishPage(page); in startPage()
|
/cts/tests/tests/nfc/src/android/nfc/tech/cts/ |
D | MifareUltralightTest.java | 120 byte[] page = new byte[]{0xA, 0xB, 0xC, 0xD}; in testWritePage() 125 ultralight.writePage(0, page); in testWritePage()
|
/cts/tests/appsearch/src/com/android/cts/appsearch/external/app/ |
D | AppSearchSessionCtsTestBase.java | 6346 List<SearchResult> page = searchResults.getNextPageAsync().get(); in testIndexNestedDocuments() local 6347 assertThat(page).hasSize(1); in testIndexNestedDocuments() 6348 assertThat(page.get(0).getGenericDocument()).isEqualTo(yesNestedIndex); in testIndexNestedDocuments() 6349 List<SearchResult.MatchInfo> matches = page.get(0).getMatchInfos(); in testIndexNestedDocuments() 6489 List<SearchResult> page = searchResults.getNextPageAsync().get(); in testEmojiSnippet() local 6490 assertThat(page).hasSize(1); in testEmojiSnippet() 6491 assertThat(page.get(0).getGenericDocument()).isEqualTo(inEmail1); in testEmojiSnippet() 6492 List<SearchResult.MatchInfo> matches = page.get(0).getMatchInfos(); in testEmojiSnippet() 6530 List<SearchResult> page = sr.getNextPageAsync().get(); in testRfc822() local 6536 assertThat(page).hasSize(1); in testRfc822() [all …]
|
D | GlobalSearchSessionCtsTestBase.java | 864 List<SearchResult> page; in testReportSystemUsage_ForbiddenFromNonSystem() local 872 page = results.getNextPageAsync().get(); in testReportSystemUsage_ForbiddenFromNonSystem() 874 assertThat(page).isNotEmpty(); in testReportSystemUsage_ForbiddenFromNonSystem() 875 SearchResult firstResult = page.get(0); in testReportSystemUsage_ForbiddenFromNonSystem()
|
/cts/tests/tests/print/printTestUtilLib/src/android/print/test/ |
D | BasePrintTest.java | 821 PdfDocument.Page page = document.startPage(i); in writeBlankPages() local 822 document.finishPage(page); in writeBlankPages()
|
/cts/tests/tests/webkit/src/android/webkit/cts/ |
D | WebViewClientTest.java | 307 final String page = "<head></head><body>test onReceivedLoginRequest</body>"; in testOnReceivedLoginRequest() local 314 String url = mWebServer.setResponse(path, page, headers); in testOnReceivedLoginRequest()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 932 void *page = (void*)((u64)got & ~0xffful); in hook_clone() local 933 if (mprotect(page, 0x1000, PROT_READ | PROT_WRITE) < 0) { in hook_clone()
|