diff options
author | Narayan Kamath <narayan@google.com> | 2014-01-16 15:57:29 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-01-16 15:57:29 +0000 |
commit | 1bf3ab08db3dc342461a77e7a261ee9f406a5060 (patch) | |
tree | a20c48f7686d09d4b0ae63180b38b7c5b2a8891f /core/java/android/os | |
parent | d4513aea25346770427e19587a77f2e06c551ddd (diff) | |
parent | c45068e4a48053447413783e549be7273e38ea97 (diff) | |
download | frameworks_base-1bf3ab08db3dc342461a77e7a261ee9f406a5060.zip frameworks_base-1bf3ab08db3dc342461a77e7a261ee9f406a5060.tar.gz frameworks_base-1bf3ab08db3dc342461a77e7a261ee9f406a5060.tar.bz2 |
am c45068e4: am d7a54c65: am 31f10bb2: am 80b3dd0d: am 27a647bf: Merge "AArch64: Use long for pointers in android/os/MemoryFile"
* commit 'c45068e4a48053447413783e549be7273e38ea97':
AArch64: Use long for pointers in android/os/MemoryFile
Diffstat (limited to 'core/java/android/os')
-rw-r--r-- | core/java/android/os/MemoryFile.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/os/MemoryFile.java b/core/java/android/os/MemoryFile.java index e8148f7..ee7a4c6 100644 --- a/core/java/android/os/MemoryFile.java +++ b/core/java/android/os/MemoryFile.java @@ -43,19 +43,19 @@ public class MemoryFile private static native FileDescriptor native_open(String name, int length) throws IOException; // returns memory address for ashmem region - private static native int native_mmap(FileDescriptor fd, int length, int mode) + private static native long native_mmap(FileDescriptor fd, int length, int mode) throws IOException; - private static native void native_munmap(int addr, int length) throws IOException; + private static native void native_munmap(long addr, int length) throws IOException; private static native void native_close(FileDescriptor fd); - private static native int native_read(FileDescriptor fd, int address, byte[] buffer, + private static native int native_read(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; - private static native void native_write(FileDescriptor fd, int address, byte[] buffer, + private static native void native_write(FileDescriptor fd, long address, byte[] buffer, int srcOffset, int destOffset, int count, boolean isUnpinned) throws IOException; private static native void native_pin(FileDescriptor fd, boolean pin) throws IOException; private static native int native_get_size(FileDescriptor fd) throws IOException; private FileDescriptor mFD; // ashmem file descriptor - private int mAddress; // address of ashmem memory + private long mAddress; // address of ashmem memory private int mLength; // total length of our ashmem region private boolean mAllowPurging = false; // true if our ashmem region is unpinned |