Home | History | Annotate | Download | only in soundtrigger

Lines Matching defs:memory

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