/cts/tests/pdf/src/android/graphics/pdf/cts/ |
D | PdfDocumentTest.java | 94 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 …]
|
D | PdfRendererTest.java | 117 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 …]
|
D | Utils.java | 122 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/appsearch/src/com/android/cts/appsearch/app/ |
D | GlobalSearchSessionPlatformCtsTest.java | 319 List<SearchResult> page = searchResults.getNextPage().get(); in testGlobalSearch_withAccess() local 320 assertThat(page).hasSize(2); in testGlobalSearch_withAccess() 324 page.get(0).getPackageName(), page.get(1).getPackageName()); in testGlobalSearch_withAccess() 347 List<SearchResult> page = searchResults.getNextPage().get(); in testGlobalSearch_withPartialAccess() local 348 assertThat(page).hasSize(1); in testGlobalSearch_withPartialAccess() 350 assertThat(page.get(0).getPackageName()).isEqualTo(PKG_A); in testGlobalSearch_withPartialAccess() 372 List<SearchResult> page = searchResults.getNextPage().get(); in testGlobalSearch_withPackageFilters() local 373 assertThat(page).hasSize(1); in testGlobalSearch_withPackageFilters() 375 assertThat(page.get(0).getPackageName()).isEqualTo(PKG_B); in testGlobalSearch_withPackageFilters() 395 List<SearchResult> page = searchResults.getNextPage().get(); in testGlobalSearch_withoutAccess() local [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaBrowserTest.java | 290 for (int page = 0; page <= lastPage; ++page) { in testSubscribeWithOptions() 292 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeWithOptions() 303 if (page != lastPage) { in testSubscribeWithOptions() 311 assertEquals(StubMediaBrowserService.MEDIA_ID_CHILDREN[page * pageSize + i], in testSubscribeWithOptions() 353 final int page = 2; in testSubscribeInvalidItemWithOptions() local 356 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testSubscribeInvalidItemWithOptions() 367 assertEquals(page, mSubscriptionCallback.mLastOptions.getInt(MediaBrowser.EXTRA_PAGE)); in testSubscribeInvalidItemWithOptions() 425 for (int page = 0; page < 4; page++) { in testUnsubscribeForMultipleSubscriptions() 430 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testUnsubscribeForMultipleSubscriptions() 471 for (int page = 0; page < 4; page++) { in testUnsubscribeWithSubscriptionCallbackForMultipleSubscriptions() [all …]
|
D | MediaBrowserServiceTest.java | 179 final int page = 2; in testNotifyChildrenChangedWithPagination() local 182 options.putInt(MediaBrowser.EXTRA_PAGE, page); in testNotifyChildrenChangedWithPagination() 197 final int overlappingNewPage = pageSize * page / newPageSize; in testNotifyChildrenChangedWithPagination() 210 nonOverlappingOptions.putInt(MediaBrowser.EXTRA_PAGE, page + 1); in testNotifyChildrenChangedWithPagination()
|
/cts/tests/tests/os/UffdGc/jni/ |
D | android_os_cts_uffdgc_UserfaultfdTest.cc | 40 char* page = static_cast<char*>(mmap(nullptr, page_sz, PROT_READ | PROT_WRITE, in userfault_handler_thread() local 42 if (page == MAP_FAILED) { in userfault_handler_thread() 48 std::memset(page, 'a', page_sz); in userfault_handler_thread() 81 uffdio_copy.src = reinterpret_cast<size_t>(page); in userfault_handler_thread() 93 munmap(page, page_sz); in userfault_handler_thread()
|
/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/appsearch/src/com/android/cts/appsearch/external/app/ |
D | GlobalSearchSessionCtsTestBase.java | 733 List<SearchResult> page; in testReportSystemUsage_ForbiddenFromNonSystem() local 741 page = results.getNextPage().get(); in testReportSystemUsage_ForbiddenFromNonSystem() 743 assertThat(page).isNotEmpty(); in testReportSystemUsage_ForbiddenFromNonSystem() 744 SearchResult firstResult = page.get(0); in testReportSystemUsage_ForbiddenFromNonSystem()
|
D | AppSearchSessionCtsTestBase.java | 3338 List<SearchResult> page = searchResults.getNextPage().get(); in testIndexNestedDocuments() local 3339 assertThat(page).hasSize(1); in testIndexNestedDocuments() 3340 assertThat(page.get(0).getGenericDocument()).isEqualTo(yesNestedIndex); in testIndexNestedDocuments() 3341 List<SearchResult.MatchInfo> matches = page.get(0).getMatchInfos(); in testIndexNestedDocuments()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | FileSystemPermissionTest.java | 443 for (long page = start; page < end; page++) { in pfnIsZero() 444 long offset = page * SIZEOF_U64; in pfnIsZero()
|
/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 | 264 final String page = "<head></head><body>test onReceivedLoginRequest</body>"; in testOnReceivedLoginRequest() local 272 String url = testServer.setResponse(path, page, headers); in testOnReceivedLoginRequest()
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_cve_2019_2213_Test.c | 931 void *page = (void*)((u64)got & ~0xffful); in hook_clone() local 932 if (mprotect(page, 0x1000, PROT_READ | PROT_WRITE) < 0) { in hook_clone()
|