HomeSort by relevance Sort by last modified time
    Searched refs:ashmemSize (Results 1 - 3 of 3) sorted by null

  /frameworks/base/core/jni/
android_util_MemoryIntArray.cpp 38 const int ashmemSize = sizeof(std::atomic_int) * size;
39 int fd = ashmem_create_region(nameStr, ashmemSize);
64 int ashmemSize = ashmem_get_size_region(fd);
65 if (ashmemSize <= 0) {
71 void* ashmemAddr = mmap(NULL, ashmemSize, protMode, MAP_SHARED, fd, 0);
78 int size = ashmemSize / sizeof(std::atomic_int);
101 int ashmemSize = ashmem_get_size_region(fd);
102 if (ashmemSize <= 0) {
107 int unmapResult = munmap(reinterpret_cast<void *>(ashmemAddr), ashmemSize);
163 int ashmemSize = ashmem_get_size_region(fd)
    [all...]
  /device/generic/goldfish/opengl/system/OpenglSystemCommon/
gralloc_cb.h 44 ashmemSize(p_ashmemSize),
97 int ashmemSize; // ashmem region size for the buffer (0 unless is HW_FB buffer or
  /device/generic/goldfish/opengl/system/gralloc/
gralloc.cpp 88 if (cb->fd < 0 || cb->ashmemSize <= 0) {
92 void *addr = mmap(0, cb->ashmemSize, PROT_READ | PROT_WRITE,
378 if (cb->ashmemSize > 0 && cb->ashmemBase) {
379 munmap((void *)cb->ashmemBase, cb->ashmemSize);
548 if (cb->ashmemSize > 0 && cb->mappedPid != getpid()) {
585 if (cb->ashmemSize > 0 && cb->mappedPid == getpid()) {
587 int err = munmap((void *)cb->ashmemBase, cb->ashmemSize);
    [all...]

Completed in 341 milliseconds