Searched refs:ashmem (Results 1 - 11 of 11) sorted by relevance

/frameworks/base/core/jni/
H A Dandroid_util_MemoryIntArray.cpp18 #include <cutils/ashmem.h>
19 #include <linux/ashmem.h>
43 jniThrowException(env, "java/io/IOException", "ashmem creation failed");
49 jniThrowException(env, "java/io/IOException", "cannot set ashmem prot mode");
66 jniThrowException(env, "java/io/IOException", "bad ashmem size");
73 jniThrowException(env, "java/io/IOException", "cannot mmap ashmem");
85 jniThrowException(env, "java/io/IOException", "cannot set ashmem prot mode");
103 jniThrowException(env, "java/io/IOException", "bad ashmem size");
113 // We don't deallocate the atomic ints we created with placement new in the ashmem
114 // region as the kernel we reclaim all pages when the ashmem regio
[all...]
H A Dandroid_os_MemoryFile.cpp20 #include <cutils/ashmem.h>
80 jniThrowException(env, "java/io/IOException", "ashmem region was purged");
99 jniThrowException(env, "java/io/IOException", "ashmem region was purged");
123 // Use ASHMEM_GET_SIZE to find out if the fd refers to an ashmem region.
124 // ASHMEM_GET_SIZE should succeed for all ashmem regions, and the kernel
130 // i.e., it is not an ashmem region.
H A Dandroid_database_SQLiteConnection.cpp27 #include <cutils/ashmem.h>
/frameworks/base/core/jni/android/graphics/
H A DBitmap.h115 } ashmem; member in union:android::Bitmap::__anon841
H A DBitmap.cpp28 #include <cutils/ashmem.h>
156 mPixelStorage.ashmem.address = address;
157 mPixelStorage.ashmem.fd = fd;
158 mPixelStorage.ashmem.size = ashmem_get_size_region(fd);
186 munmap(mPixelStorage.ashmem.address, mPixelStorage.ashmem.size);
187 close(mPixelStorage.ashmem.fd);
215 return mPixelStorage.ashmem.fd;
1006 // Map the bitmap in place from the ashmem region if possible otherwise copy.
1027 // Map the pixels in place and take ownership of the ashmem regio
[all...]
H A DGraphics.cpp15 #include <cutils/ashmem.h>
598 // Create new ashmem region with read/write priv
634 // Map existing ashmem region if not already mapped.
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp29 #include <cutils/ashmem.h>
51 ALOGE_IF(fd<0, "error creating ashmem region: %s", strerror(errno));
H A DParcel.cpp41 #include <cutils/ashmem.h>
112 int fd = TEMP_FAILURE_RETRY(open("/dev/ashmem", O_RDONLY));
161 // If we own an ashmem fd, keep track of how much memory it refers to.
1223 ALOGV("writeBlob: write to ashmem");
2037 ALOGV("readBlob: read from ashmem");
2581 // This used to return the size of all blobs that were written to ashmem, now we're returning
2582 // the ashmem currently referenced by this Parcel, which should be equivalent.
/frameworks/base/libs/hwui/
H A DJankTracker.cpp21 #include <cutils/ashmem.h>
123 // By default this will use malloc memory. It may be moved later to ashmem
156 ALOGW("Failed to move profile data to ashmem fd %d, error = %d",
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp24 #include <cutils/ashmem.h>
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp23 #include <cutils/ashmem.h>

Completed in 1227 milliseconds