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

/frameworks/base/core/tests/utiltests/jni/
H A Dandroid_util_MemoryIntArrayTest.cpp19 #include <cutils/ashmem.h>
20 #include <linux/ashmem.h>
/frameworks/av/services/oboeservice/
H A DSharedMemoryProxy.h21 #include <cutils/ashmem.h>
H A DSharedRingBuffer.h22 #include <cutils/ashmem.h>
/frameworks/av/media/libaudiohal/
H A DEffectBufferHalHidl.cpp69 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); local
70 if (ashmem == 0) {
71 ALOGE("Failed to retrieve ashmem allocator service");
75 Return<void> result = ashmem->allocate(
91 ALOGE("Failed to map allocated ashmem");
95 ALOGE("Failed to allocate %d bytes from ashmem", (int)mBufferSize);
/frameworks/base/core/jni/
H A Dandroid_os_MemoryFile.cpp20 #include <cutils/ashmem.h>
42 // Use ASHMEM_GET_SIZE to find out if the fd refers to an ashmem region.
43 // ASHMEM_GET_SIZE should succeed for all ashmem regions, and the kernel
49 // i.e., it is not an ashmem region.
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");
71 jniThrowException(env, "java/io/IOException", "bad ashmem size");
80 // the underlying ashmem region has the same size as the one we
82 // ashmem size for boundary checks and memory unmapping.
86 jniThrowException(env, "java/io/IOException", "cannot mmap ashmem");
90 // Check if the mapped size is the same as the ashmem region.
106 jniThrowException(env, "java/io/IOException", "cannot set ashmem pro
[all...]
H A Dandroid_os_SharedMemory.cpp21 #include <cutils/ashmem.h>
H A Dandroid_database_SQLiteConnection.cpp27 #include <cutils/ashmem.h>
/frameworks/base/libs/hwui/
H A DProfileDataContainer.cpp20 #include <cutils/ashmem.h>
38 // If we are mapped we want to stop using the ashmem backend and switch to malloc
40 // If we aren't sitting on top of ashmem then just do a reset() as it's functionally
53 ALOGW("Failed to get ashmem region size from fd %d, err %d %s", ashmemfd, err, strerror(err));
66 ALOGW("Failed to move profile data to ashmem fd %d, error = %d",
H A DJankTracker.cpp28 #include <cutils/ashmem.h>
/frameworks/base/core/java/android/hardware/
H A DSensorDirectChannel.java46 * Shared memory type ashmem, wrapped in MemoryFile object.
202 static long[] encodeData(MemoryFile ashmem) { argument
205 fd = ashmem.getFileDescriptor().getInt$();
/frameworks/base/libs/hwui/hwui/
H A DBitmap.cpp27 #include <cutils/ashmem.h>
106 // Create new ashmem region with read/write priv
197 mPixelStorage.ashmem.address = address;
198 mPixelStorage.ashmem.fd = fd;
199 mPixelStorage.ashmem.size = mappedSize;
226 munmap(mPixelStorage.ashmem.address, mPixelStorage.ashmem.size);
227 close(mPixelStorage.ashmem.fd);
256 return mPixelStorage.ashmem.address;
267 return mPixelStorage.ashmem
[all...]
H A DBitmap.h122 } ashmem; member in union:android::Bitmap::__anon1194
/frameworks/base/native/android/
H A Dsharedmem.cpp21 #include <cutils/ashmem.h>
/frameworks/native/libs/binder/
H A DMemoryHeapBase.cpp29 #include <cutils/ashmem.h>
50 ALOGE_IF(fd<0, "error creating ashmem region: %s", strerror(errno));
H A DParcel.cpp42 #include <cutils/ashmem.h>
133 // If we own an ashmem fd, keep track of how much memory it refers to.
1215 ALOGV("writeBlob: write to ashmem");
2194 ALOGV("readBlob: read from ashmem");
2742 // This used to return the size of all blobs that were written to ashmem, now we're returning
2743 // the ashmem currently referenced by this Parcel, which should be equivalent.
/frameworks/av/media/libaaudio/tests/
H A Dtest_marshalling.cpp25 #include <cutils/ashmem.h>
/frameworks/base/libs/androidfw/
H A DCursorWindow.cpp24 #include <cutils/ashmem.h>
101 // the size of the ashmem descriptor can be modified between ashmem_get_size_region
/frameworks/native/libs/input/tests/
H A DInputPublisherAndConsumer_test.cpp23 #include <cutils/ashmem.h>
/frameworks/base/core/jni/android/graphics/
H A DGraphics.cpp15 #include <cutils/ashmem.h>
444 // Map existing ashmem region if not already mapped.
/frameworks/native/services/sensorservice/
H A DSensorService.cpp20 #include <cutils/ashmem.h>
996 case SENSOR_DIRECT_MEM_TYPE_ASHMEM: { // channel backed by ashmem

Completed in 426 milliseconds