/external/libchrome/base/memory/ |
shared_memory_android.cc | 11 #include "third_party/ashmem/ashmem.h" 15 // For Android, we use ashmem to implement SharedMemory. ashmem_create_region 26 // "name" is just a label in ashmem. It is visible in /proc/pid/maps. 38 DLOG(ERROR) << "Error " << err << " when setting protection of ashmem"; 42 // Android doesn't appear to have a way to drop write access on an ashmem 56 // Like on Windows, this is intentionally returning true as ashmem will 62 // ashmem doesn't support name mapping
|
/system/sepolicy/prebuilts/api/26.0/public/ |
hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/prebuilts/api/27.0/public/ |
hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/prebuilts/api/28.0/public/ |
hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/system/sepolicy/public/ |
hal_sensors.te | 7 # Allow sensor hals to access ashmem memory allocated by apps 10 # Allow sensor hals to access ashmem memory allocated by android.hidl.allocator
|
/external/libchrome/third_party/ashmem/ |
ashmem.h | 15 // third_party/ashmem is Android shared memory. Instead of clone it here, 16 // use cutils/ashmem.h directly. 17 #include <cutils/ashmem.h>
|
/system/core/libcutils/include/cutils/ |
ashmem.h | 1 /* cutils/ashmem.h 16 #include <linux/ashmem.h>
|
/frameworks/base/core/jni/ |
android_util_MemoryIntArray.cpp | 18 #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"); 75 // IMPORTANT: Ashmem allows the caller to change its size until 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 [all...] |
android_os_MemoryFile.cpp | 20 #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.
|
/external/libchrome/base/ |
DEPS | 3 "+third_party/ashmem",
|
/external/libmojo/mojo/edk/ |
DEPS | 9 "+third_party/ashmem",
|
/system/core/libcutils/ |
ashmem-host.cpp | 17 #include <cutils/ashmem.h> 20 * Implementation of the user-space ashmem API for the simulator, which lacks 21 * an ashmem-enabled kernel. See ashmem-dev.c for the real ashmem-based version. 40 snprintf(pattern, sizeof(pattern), "/tmp/android-ashmem-%d-XXXXXXXXX", getpid()); 75 * Check if this is an "ashmem" region.
|
ashmem-dev.cpp | 17 #include <cutils/ashmem.h> 20 * Implementation of the user-space ashmem API for devices, which have our 21 * ashmem-enabled kernel. See ashmem-sim.c for the "fake" tmp-based version, 24 #define LOG_TAG "ashmem" 28 #include <linux/ashmem.h> 38 #define ASHMEM_DEVICE "/dev/ashmem" 40 /* ashmem identity */ 44 * signal handler calls ashmem, we could get into a deadlock state. 48 /* logistics of getting file descriptor for ashmem */ [all...] |
/frameworks/base/libs/hwui/ |
ProfileDataContainer.cpp | 21 #include <cutils/ashmem.h> 41 // If we are mapped we want to stop using the ashmem backend and switch to malloc 43 // If we aren't sitting on top of ashmem then just do a reset() as it's functionally 56 ALOGW("Failed to get ashmem region size from fd %d, err %d %s", ashmemfd, err, 61 ALOGW("Ashmem region is too small! Received %d, required %u", regionSize, 69 ALOGW("Failed to move profile data to ashmem fd %d, error = %d", ashmemfd, err);
|
/system/hwservicemanager/ |
Vintf.h | 11 // instanceName is "default", "ashmem", etc.
|
/frameworks/av/media/libaudiohal/2.0/ |
EffectBufferHalHidl.cpp | 67 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); local 68 if (ashmem == 0) { 69 ALOGE("Failed to retrieve ashmem allocator service"); 73 Return<void> result = ashmem->allocate( 89 ALOGE("Failed to map allocated ashmem"); 93 ALOGE("Failed to allocate %d bytes from ashmem", (int)mBufferSize);
|
/frameworks/av/media/libaudiohal/4.0/ |
EffectBufferHalHidl.cpp | 68 sp<IAllocator> ashmem = IAllocator::getService("ashmem"); local 69 if (ashmem == 0) { 70 ALOGE("Failed to retrieve ashmem allocator service"); 74 Return<void> result = ashmem->allocate( 90 ALOGE("Failed to map allocated ashmem"); 94 ALOGE("Failed to allocate %d bytes from ashmem", (int)mBufferSize);
|
/external/libbrillo/brillo/message_loops/ |
base_message_loop_unittest.cc | 17 "227 mcelog\n 58 sw_sync\n 59 ashmem\n 57 binder\n239 uhid\n"));
|
/device/generic/goldfish/ |
compatibility_matrix.xml | 23 <instance>ashmem</instance> 39 <instance>ashmem</instance>
|
/device/linaro/hikey/ |
compatibility_matrix.xml | 23 <instance>ashmem</instance> 39 <instance>ashmem</instance>
|
/external/kernel-headers/original/uapi/linux/ |
ashmem.h | 2 * drivers/staging/android/uapi/ashmem.h 20 #define ASHMEM_NAME_DEF "dev/ashmem"
|
/frameworks/base/core/tests/utiltests/jni/ |
android_util_MemoryIntArrayTest.cpp | 19 #include <cutils/ashmem.h> 20 #include <linux/ashmem.h>
|
/system/libhidl/transport/allocator/1.0/utils/ |
FrameworkUtils.cpp | 33 // ashmem. Other places should not make assumptions about the contents 35 return HidlMemory::getInstance("ashmem", fd, heap->getSize());
|
/frameworks/base/libs/hwui/hwui/ |
Bitmap.cpp | 26 #include <cutils/ashmem.h> 105 // Create new ashmem region with read/write priv 194 , mPixelStorageType(PixelStorageType::Ashmem) { 195 mPixelStorage.ashmem.address = address; 196 mPixelStorage.ashmem.fd = fd; 197 mPixelStorage.ashmem.size = mappedSize; 220 case PixelStorageType::Ashmem: 221 munmap(mPixelStorage.ashmem.address, mPixelStorage.ashmem.size); 222 close(mPixelStorage.ashmem.fd) [all...] |
/device/generic/goldfish-opengl/system/OpenglSystemCommon/ |
gralloc_cb.h | 105 int fd; // ashmem fd (-1 of ashmem region did not allocated, i.e. no SW access needed) 117 int ashmemSize; // ashmem region size for the buffer (0 unless is HW_FB buffer or 120 intptr_t ashmemBase; // CPU address of the mapped ashmem region 124 int ashmemBasePid; // process id which mapped the ashmem region
|