Lines Matching defs:memory
31 #include <memory>
69 using ::android::hidl::memory::V1_0::IMemory;
1178 * getDecryptMemory allocates memory for decryption, then sets it
1182 * @param size the size of the memory segment to allocate
1183 * @param the index of the memory segment which will be used
1193 size, [&](bool success, const hidl_memory& memory) {
1195 EXPECT_EQ(memory.size(), size);
1196 hidlMemory = memory;
1251 void fillRandom(const sp<IMemory>& memory);
1268 void DrmHalVendorDecryptTest::fillRandom(const sp<IMemory>& memory) {
1271 for (size_t i = 0; i < memory->getSize() / sizeof(uint32_t); i++) {
1273 static_cast<void*>(memory->getPointer()));
1309 // The first totalSize bytes of shared memory is the encrypted