Home
last modified time | relevance | path

Searched refs:pageIndex (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java111 public void removePage(int pageIndex) { in removePage() argument
113 throwIfPageNotInDocument(pageIndex); in removePage()
116 mPageCount = nativeRemovePage(mNativeDocument, pageIndex); in removePage()
129 public void setTransformAndClip(int pageIndex, @Nullable Matrix transform, in setTransformAndClip() argument
132 throwIfPageNotInDocument(pageIndex); in setTransformAndClip()
139 getPageSize(pageIndex, size); in setTransformAndClip()
142 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
147 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
159 public void getPageSize(int pageIndex, @NonNull Point outSize) { in getPageSize() argument
162 throwIfPageNotInDocument(pageIndex); in getPageSize()
[all …]
DPdfRenderer.java282 private void throwIfPageNotInDocument(int pageIndex) { in throwIfPageNotInDocument() argument
283 if (pageIndex < 0 || pageIndex >= mPageCount) { in throwIfPageNotInDocument()
496 private static native long nativeOpenPageAndGetSize(long documentPtr, int pageIndex, in nativeOpenPageAndGetSize() argument
/frameworks/base/core/jni/android/graphics/pdf/
DPdfEditor.cpp59 static jint nativeRemovePage(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex) { in nativeRemovePage() argument
62 FPDFPage_Delete(document, pageIndex); in nativeRemovePage()
110 static void nativeSetTransformAndClip(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex, in nativeSetTransformAndClip() argument
114 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeSetTransformAndClip()
124 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeSetTransformAndClip()
166 jint pageIndex, jobject outSize) { in nativeGetPageSize() argument
169 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageSize()
179 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeGetPageSize()
192 static bool nativeGetPageBox(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex, in nativeGetPageBox() argument
196 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageBox()
[all …]
DPdfRenderer.cpp44 jint pageIndex, jobject outSize) { in nativeOpenPageAndGetSize() argument
47 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeOpenPageAndGetSize()
57 int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeOpenPageAndGetSize()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java170 public PageContentProvider acquirePageContentProvider(int pageIndex, View owner) { in acquirePageContentProvider() argument
174 Log.i(LOG_TAG, "Acquiring provider for page: " + pageIndex); in acquirePageContentProvider()
177 return new PageContentProvider(pageIndex, owner); in acquirePageContentProvider()
227 public PageContentProvider(int pageIndex, View owner) { in PageContentProvider() argument
228 mPageIndex = pageIndex; in PageContentProvider()
283 public RenderedPage getRenderedPage(int pageIndex) { in getRenderedPage() argument
284 return mRenderedPages.get(pageIndex); in getRenderedPage()
287 public RenderedPage removeRenderedPage(int pageIndex) { in removeRenderedPage() argument
288 RenderedPage page = mRenderedPages.remove(pageIndex); in removeRenderedPage()
295 public RenderedPage putRenderedPage(int pageIndex, RenderedPage renderedPage) { in putRenderedPage() argument
[all …]
/frameworks/base/core/java/android/nfc/tech/
DMifareUltralight.java268 private static void validatePageIndex(int pageIndex) { in validatePageIndex() argument
274 if (pageIndex < 0 || pageIndex >= MAX_PAGE_COUNT) { in validatePageIndex()
275 throw new IndexOutOfBoundsException("page out of bounds: " + pageIndex); in validatePageIndex()
/frameworks/base/core/java/android/print/
DPageRange.java94 public boolean contains(int pageIndex) { in contains() argument
95 return (pageIndex >= mStart) && (pageIndex <= mEnd); in contains()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DSmsCbHeader.java172 int pageIndex = (pdu[5] & 0xf0) >>> 4; in SmsCbHeader() local
175 if (pageIndex == 0 || nrOfPages == 0 || pageIndex > nrOfPages) { in SmsCbHeader()
176 pageIndex = 1; in SmsCbHeader()
180 mPageIndex = pageIndex; in SmsCbHeader()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/renderer/
DIPdfRenderer.aidl29 oneway void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
DPdfManipulationService.java105 public void renderPage(int pageIndex, int bitmapWidth, int bitmapHeight, in renderPage() argument
111 try (PdfRenderer.Page page = mRenderer.openPage(pageIndex)) { in renderPage()
157 Log.i(LOG_TAG, "Rendering page:" + pageIndex); in renderPage()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java528 final int pageIndex = mConfirmedPagesInDocument.keyAt(i); in computeSelectedPages() local
530 startPageIndex = endPageIndex = pageIndex; in computeSelectedPages()
532 if (endPageIndex + 1 < pageIndex) { in computeSelectedPages()
535 startPageIndex = pageIndex; in computeSelectedPages()
537 endPageIndex = pageIndex; in computeSelectedPages()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/util/
DPageRangeUtils.java52 public static boolean contains(PageRange[] pageRanges, int pageIndex) { in contains() argument
56 if (pageRange.contains(pageIndex)) { in contains()