Lines Matching refs:memory
29 using android::hidl::memory::V1_0::IMemory;
45 sp<IMemory> memory; in memoryAsVector() local
47 return std::make_pair(true, memory); in memoryAsVector()
49 memory = mapMemory(m); in memoryAsVector()
50 if (memory != nullptr) { in memoryAsVector()
51 memory->read(); in memoryAsVector()
52 vec->setToExternal(static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())), in memoryAsVector()
53 memory->getSize()); in memoryAsVector()
54 return std::make_pair(true, memory); in memoryAsVector()
57 return std::make_pair(false, memory); in memoryAsVector()
67 sp<IMemory> memory; in moveVectorToMemory() local
69 return std::make_pair(true, memory); in moveVectorToMemory()
74 return std::make_pair(false, memory); in moveVectorToMemory()
82 memory = hardware::mapMemory(*mem); in moveVectorToMemory()
83 if (memory != 0) { in moveVectorToMemory()
84 memory->update(); in moveVectorToMemory()
85 memcpy(memory->getPointer(), v->data(), v->size()); in moveVectorToMemory()
86 memory->commit(); in moveVectorToMemory()
88 return std::make_pair(true, memory); in moveVectorToMemory()
95 return std::make_pair(false, memory); in moveVectorToMemory()