Searched refs:memSize (Results 1 – 4 of 4) sorted by relevance
/frameworks/hardware/interfaces/sensorservice/aidl/vts/ |
D | VtsHalSensorManagerTargetTest.cpp | 123 auto testOne = [this](int64_t memSize, int64_t intendedSize, in TEST_P() 126 auto fd = ashmem_create_region("sensorservice_vts", memSize); in TEST_P() 128 Ashmem ashmem = {ScopedFileDescriptor(fd), memSize}; in TEST_P() 158 static std::vector<Event> parseEvents(uint8_t* buf, size_t memSize) { in parseEvents() argument 165 while (offset + (size_t)ISensors::DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH <= memSize) { in parseEvents() 225 const size_t memSize = (size_t)ISensors::DIRECT_REPORT_SENSOR_EVENT_TOTAL_LENGTH * 300; in TEST_P() local 226 auto fd = ashmem_create_region("sensorservice_vts", memSize); in TEST_P() 228 Ashmem mem = {ScopedFileDescriptor(fd), memSize}; in TEST_P() 232 auto res = manager_->createAshmemDirectChannel(mem, memSize, &chan); in TEST_P() 245 auto events = parseEvents(static_cast<uint8_t*>(buf.get()), memSize); in TEST_P()
|
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/ |
D | VtsHalSensorManagerV1_0TargetTest.cpp | 161 auto testOne = [this](uint64_t memSize, uint64_t intendedSize, in TEST_P() 163 ASSERT_OK(ashmem_->allocate(memSize, [&](bool success, const auto &mem) { in TEST_P() 191 static std::vector<Event> parseEvents(uint8_t *buf, size_t memSize) { in parseEvents() argument 199 while(offset + (size_t)O::TOTAL_LENGTH <= memSize) { in parseEvents() 256 const size_t memSize = (size_t)SensorsEventFormatOffset::TOTAL_LENGTH * 300; in TEST_P() local 257 ASSERT_OK(ashmem_->allocate(memSize, [&](bool success, const auto &mem) { in TEST_P() 262 manager_->createAshmemDirectChannel(mem, memSize, [&](const auto &chan, Result result) { in TEST_P() 278 auto events = parseEvents(static_cast<uint8_t *>(buf.get()), memSize); in TEST_P()
|
/frameworks/av/media/codec2/hal/client/ |
D | output.cpp | 199 size_t memSize = memFd < 0 ? 0 : ashmem_get_size_region(memFd); in configure() local 200 if (memSize > 0) { in configure() 201 syncMem = C2SurfaceSyncMemory::Create(memFd, memSize); in configure() 209 ALOGD("C2SurfaceSyncMemory created %zu(%zu)", sizeof(C2SyncVariables), memSize); in configure()
|
/frameworks/base/core/java/android/os/ |
D | Process.java | 1534 long memSize = FileUtils.parseSize(formatSize); in getAdvertisedMem() local 1536 if (memSize <= 0) { in getAdvertisedMem() 1540 return memSize; in getAdvertisedMem()
|