Lines Matching refs:memory
28 using android::hidl::memory::V1_0::IMemory;
548 sp<IMemory> memory; in memoryAsVector() local
550 return std::make_pair(true, memory); in memoryAsVector()
552 memory = mapMemory(m); in memoryAsVector()
553 if (memory != nullptr) { in memoryAsVector()
554 memory->read(); in memoryAsVector()
555 vec->setToExternal(static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())), in memoryAsVector()
556 memory->getSize()); in memoryAsVector()
557 return std::make_pair(true, memory); in memoryAsVector()
560 return std::make_pair(false, memory); in memoryAsVector()
570 sp<IMemory> memory; in moveVectorToMemory() local
572 return std::make_pair(true, memory); in moveVectorToMemory()
577 return std::make_pair(false, memory); in moveVectorToMemory()
585 memory = hardware::mapMemory(*mem); in moveVectorToMemory()
586 if (memory != 0) { in moveVectorToMemory()
587 memory->update(); in moveVectorToMemory()
588 memcpy(memory->getPointer(), v->data(), v->size()); in moveVectorToMemory()
589 memory->commit(); in moveVectorToMemory()
591 return std::make_pair(true, memory); in moveVectorToMemory()
598 return std::make_pair(false, memory); in moveVectorToMemory()