Home
last modified time | relevance | path

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

/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java102 public void removePage(int pageIndex) { in removePage() argument
104 throwIfPageNotInDocument(pageIndex); in removePage()
105 mPageCount = nativeRemovePage(mNativeDocument, pageIndex); in removePage()
117 public void setTransformAndClip(int pageIndex, @Nullable Matrix transform, in setTransformAndClip() argument
120 throwIfPageNotInDocument(pageIndex); in setTransformAndClip()
127 getPageSize(pageIndex, size); in setTransformAndClip()
128 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
131 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
142 public void getPageSize(int pageIndex, @NonNull Point outSize) { in getPageSize() argument
145 throwIfPageNotInDocument(pageIndex); in getPageSize()
[all …]
DPdfRenderer.java249 private void throwIfPageNotInDocument(int pageIndex) { in throwIfPageNotInDocument() argument
250 if (pageIndex < 0 || pageIndex >= mPageCount) { in throwIfPageNotInDocument()
434 private static native long nativeOpenPageAndGetSize(long documentPtr, int pageIndex, in nativeOpenPageAndGetSize() argument
/frameworks/base/core/jni/android/graphics/pdf/
DPdfEditor.cpp126 static jint nativeRemovePage(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex) { in nativeRemovePage() argument
128 FPDFPage_Delete(document, pageIndex); in nativeRemovePage()
178 static void nativeSetTransformAndClip(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex, in nativeSetTransformAndClip() argument
182 CPDF_Page* page = (CPDF_Page*) FPDF_LoadPage(document, pageIndex); in nativeSetTransformAndClip()
192 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeSetTransformAndClip()
231 jint pageIndex, jobject outSize) { in nativeGetPageSize() argument
234 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageSize()
244 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeGetPageSize()
263 static bool nativeGetPageBox(JNIEnv* env, jclass thiz, jlong documentPtr, jint pageIndex, in nativeGetPageBox() argument
267 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeGetPageBox()
[all …]
DPdfRenderer.cpp108 jint pageIndex, jobject outSize) { in nativeOpenPageAndGetSize() argument
111 FPDF_PAGE page = FPDF_LoadPage(document, pageIndex); in nativeOpenPageAndGetSize()
122 const int result = FPDF_GetPageSizeByIndex(document, pageIndex, &width, &height); in nativeOpenPageAndGetSize()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/model/
DPageContentRepository.java151 public PageContentProvider acquirePageContentProvider(int pageIndex, View owner) { in acquirePageContentProvider() argument
155 Log.i(LOG_TAG, "Acquiring provider for page: " + pageIndex); in acquirePageContentProvider()
158 return new PageContentProvider(pageIndex, owner); in acquirePageContentProvider()
205 public PageContentProvider(int pageIndex, View owner) { in PageContentProvider() argument
206 mPageIndex = pageIndex; in PageContentProvider()
260 public RenderedPage getRenderedPage(int pageIndex) { in getRenderedPage() argument
261 return mRenderedPages.get(pageIndex); in getRenderedPage()
264 public RenderedPage removeRenderedPage(int pageIndex) { in removeRenderedPage() argument
265 RenderedPage page = mRenderedPages.remove(pageIndex); in removeRenderedPage()
272 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/opt/telephony/src/java/com/android/internal/telephony/gsm/
DSmsCbHeader.java131 int pageIndex = (pdu[5] & 0xf0) >>> 4; in SmsCbHeader() local
134 if (pageIndex == 0 || nrOfPages == 0 || pageIndex > nrOfPages) { in SmsCbHeader()
135 pageIndex = 1; in SmsCbHeader()
139 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/support/v17/leanback/src/android/support/v17/leanback/widget/
DPagingIndicator.java242 public void onPageSelected(int pageIndex, boolean withAnimation) { in onPageSelected() argument
243 if (mCurrentPage == pageIndex) { in onPageSelected()
252 mShowAnimator.setTarget(mDots[pageIndex]); in onPageSelected()
255 setSelectedPage(pageIndex); in onPageSelected()
/frameworks/base/packages/PrintSpooler/src/com/android/printspooler/ui/
DPageAdapter.java503 final int pageIndex = mConfirmedPagesInDocument.keyAt(i); in computeSelectedPages() local
505 startPageIndex = endPageIndex = pageIndex; in computeSelectedPages()
507 if (endPageIndex + 1 < pageIndex) { in computeSelectedPages()
510 startPageIndex = pageIndex; in computeSelectedPages()
512 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()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/app/
DOnboardingFragment.java502 abstract protected CharSequence getPageTitle(int pageIndex); in getPageTitle() argument
511 abstract protected CharSequence getPageDescription(int pageIndex); in getPageDescription() argument
DOnboardingSupportFragment.java504 abstract protected CharSequence getPageTitle(int pageIndex); in getPageTitle() argument
513 abstract protected CharSequence getPageDescription(int pageIndex); in getPageDescription() argument