Searched refs:ashmemSize (Results 1 – 2 of 2) sorted by relevance
38 const int ashmemSize = sizeof(std::atomic_int) * size; in android_util_MemoryIntArray_create() local39 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() local70 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() local128 if (ashmemSize <= 0) { in android_util_MemoryIntArray_close()[all …]
38 const int ashmemSize = sizeof(std::atomic_int) * size; in android_util_MemoryIntArrayTest_createAshmem() local39 int fd = ashmem_create_region(nameStr, ashmemSize); in android_util_MemoryIntArrayTest_createAshmem()