Home | History | Annotate | Download | only in default

Lines Matching defs:memory

29 using android::hidl::memory::V1_0::IMemory;
39 // Backs up by the vector with the contents of shared memory.
41 // not cleared if the memory is a null object.
45 sp<IMemory> memory;
47 return std::make_pair(true, memory);
49 memory = mapMemory(m);
50 if (memory != nullptr) {
51 memory->read();
52 vec->setToExternal(static_cast<uint8_t*>(static_cast<void*>(memory->getPointer())),
53 memory->getSize());
54 return std::make_pair(true, memory);
56 ALOGE("%s: Could not map HIDL memory to IMemory", __func__);
57 return std::make_pair(false, memory);
60 // Moves the data from the vector into allocated shared memory,
67 sp<IMemory> memory;
69 return std::make_pair(true, memory);
74 return std::make_pair(false, memory);
82 memory = hardware::mapMemory(*mem);
83 if (memory != 0) {
84 memory->update();
85 memcpy(memory->getPointer(), v->data(), v->size());
86 memory->commit();
88 return std::make_pair(true, memory);
95 return std::make_pair(false, memory);