Home
last modified time | relevance | path

Searched refs:mNativeDocument (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/graphics/java/android/graphics/pdf/
DPdfEditor.java42 private final long mNativeDocument; field in PdfEditor
82 mNativeDocument = nativeOpen(mInput.getFd(), size); in PdfEditor()
83 mPageCount = nativeGetPageCount(mNativeDocument); in PdfEditor()
105 mPageCount = nativeRemovePage(mNativeDocument, pageIndex); in removePage()
128 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
131 nativeSetTransformAndClip(mNativeDocument, pageIndex, transform.native_instance, in setTransformAndClip()
146 nativeGetPageSize(mNativeDocument, pageIndex, outSize); in getPageSize()
159 return nativeGetPageMediaBox(mNativeDocument, pageIndex, outMediaBox); in getPageMediaBox()
172 nativeSetPageMediaBox(mNativeDocument, pageIndex, mediaBox); in setPageMediaBox()
185 return nativeGetPageCropBox(mNativeDocument, pageIndex, outCropBox); in getPageCropBox()
[all …]
DPdfDocument.java85 private long mNativeDocument; field in PdfDocument
93 mNativeDocument = nativeCreateDocument(); in PdfDocument()
121 Canvas canvas = new PdfCanvas(nativeStartPage(mNativeDocument, pageInfo.mPageWidth, in startPage()
152 nativeFinishPage(mNativeDocument); in finishPage()
175 nativeWriteTo(mNativeDocument, out, mChunk); in writeTo()
213 if (mNativeDocument != 0) { in dispose()
214 nativeClose(mNativeDocument); in dispose()
216 mNativeDocument = 0; in dispose()
224 if (mNativeDocument == 0) { in throwIfClosed()
DPdfRenderer.java106 private final long mNativeDocument; field in PdfRenderer
157 mNativeDocument = nativeCreate(mInput.getFd(), size); in PdfRenderer()
158 mPageCount = nativeGetPageCount(mNativeDocument); in PdfRenderer()
192 return nativeScaleForPrinting(mNativeDocument); in shouldScaleForPrinting()
227 nativeClose(mNativeDocument); in doClose()
280 mNativePage = nativeOpenPageAndGetSize(mNativeDocument, index, size); in Page()
387 nativeRenderPage(mNativeDocument, mNativePage, destination, contentLeft, in render()