Home
last modified time | relevance | path

Searched refs:ashmemSize (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/core/jni/
Dandroid_util_MemoryIntArray.cpp38 const int ashmemSize = sizeof(std::atomic_int) * size; in android_util_MemoryIntArray_create() local
39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArray_create()
69 int ashmemSize = ashmem_get_size_region(fd); in android_util_MemoryIntArray_open() local
70 if (ashmemSize <= 0) { in android_util_MemoryIntArray_open()
84 void* ashmemAddr = mmap(NULL, ashmemSize, protMode, MAP_SHARED, fd, 0); in android_util_MemoryIntArray_open()
92 if (mmapedSize != ashmemSize) { in android_util_MemoryIntArray_open()
93 munmap(reinterpret_cast<void *>(ashmemAddr), ashmemSize); in android_util_MemoryIntArray_open()
99 int size = ashmemSize / sizeof(std::atomic_int); in android_util_MemoryIntArray_open()
127 int ashmemSize = ashmem_get_size_region(fd); in android_util_MemoryIntArray_close() local
128 if (ashmemSize <= 0) { in android_util_MemoryIntArray_close()
[all …]
/frameworks/base/core/tests/utiltests/jni/
Dandroid_util_MemoryIntArrayTest.cpp38 const int ashmemSize = sizeof(std::atomic_int) * size; in android_util_MemoryIntArrayTest_createAshmem() local
39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArrayTest_createAshmem()