summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2014-01-16 07:31:45 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2014-01-16 07:31:45 -0800
commit80b3dd0d8e333905e9f2a3a844bc524d41df7da2 (patch)
tree51fd1cb03a51cdcc76920440849a4b0213197ed5 /core/java
parent53321d9990cae810da28b7ae9f6f9b3fe7455020 (diff)
parent27a647bf382f12aea6d0c9584302423e1c44fbb0 (diff)
am 27a647bf: Merge "AArch64: Use long for pointers in android/os/MemoryFile"
* commit '27a647bf382f12aea6d0c9584302423e1c44fbb0': AArch64: Use long for pointers in android/os/MemoryFile
Diffstat (limited to 'core/java')
-rw-r--r--core/java/android/os/MemoryFile.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/java/android/os/MemoryFile.java b/core/java/android/os/MemoryFile.java
index e8148f7ea1af..ee7a4c664ba6 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