diff options
author | Narayan Kamath <narayan@google.com> | 2014-02-11 16:40:27 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-02-11 16:40:27 +0000 |
commit | a1cffb429c57eb961282160ae4631d70bfa55204 (patch) | |
tree | cec0a249f43ad0a632200592f02b1038cfad9129 /graphics | |
parent | 3ff18faac21553f027cdb1ff4a98447f333750bd (diff) | |
parent | d350af9695018e81f85600fb7dd906003cbaf62e (diff) | |
download | frameworks_base-a1cffb429c57eb961282160ae4631d70bfa55204.zip frameworks_base-a1cffb429c57eb961282160ae4631d70bfa55204.tar.gz frameworks_base-a1cffb429c57eb961282160ae4631d70bfa55204.tar.bz2 |
am d350af96: am b90fc64b: am f44a3f1e: Merge "Use long for pointers in EmojiFactory and PdfDocument"
* commit 'd350af9695018e81f85600fb7dd906003cbaf62e':
Use long for pointers in EmojiFactory and PdfDocument
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/java/android/graphics/pdf/PdfDocument.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/graphics/java/android/graphics/pdf/PdfDocument.java b/graphics/java/android/graphics/pdf/PdfDocument.java index 29d14a2..f5b07c1 100644 --- a/graphics/java/android/graphics/pdf/PdfDocument.java +++ b/graphics/java/android/graphics/pdf/PdfDocument.java @@ -82,7 +82,7 @@ public class PdfDocument { private final List<PageInfo> mPages = new ArrayList<PageInfo>(); - private int mNativeDocument; + private long mNativeDocument; private Page mCurrentPage; @@ -235,20 +235,20 @@ public class PdfDocument { } } - private native int nativeCreateDocument(); + private native long nativeCreateDocument(); - private native void nativeClose(int document); + private native void nativeClose(long nativeDocument); - private native void nativeFinishPage(int document); + private native void nativeFinishPage(long nativeDocument); - private native void nativeWriteTo(int document, OutputStream out, byte[] chunk); + private native void nativeWriteTo(long nativeDocument, OutputStream out, byte[] chunk); - private static native int nativeStartPage(int documentPtr, int pageWidth, int pageHeight, + private static native long nativeStartPage(long nativeDocument, int pageWidth, int pageHeight, int contentLeft, int contentTop, int contentRight, int contentBottom); private final class PdfCanvas extends Canvas { - public PdfCanvas(int nativeCanvas) { + public PdfCanvas(long nativeCanvas) { super(nativeCanvas); } |