Lines Matching defs:buffer
156 void* buffer;
157 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer);
159 ASSERT_NE(nullptr, buffer);
160 // Verify that the buffer pointer is at least 16 byte aligned.
161 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(buffer) & (16 - 1));
163 uint64_t* data = static_cast<uint64_t*>(buffer);
178 // Get the buffer and check that all the data is still present.
189 void* buffer;
190 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer);
192 ASSERT_NE(nullptr, buffer);
193 // Verify that the buffer pointer is at least 16 byte aligned.
194 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(buffer) & (16 - 1));
196 uint64_t* data = static_cast<uint64_t*>(buffer);
230 void* buffer;
231 int e3 = AHardwareBuffer_lock(hardware_buffer, usage, -1, nullptr, &buffer);
233 ASSERT_NE(nullptr, buffer);
234 // Verify that the buffer pointer is at least 16 byte aligned.
235 ASSERT_EQ(0U, reinterpret_cast<uintptr_t>(buffer) & (16 - 1));
237 uint64_t* data = static_cast<uint64_t*>(buffer);
257 // First delete any existing buffer so we can test the failure case.
266 // Setup an invalid config buffer (too small) and assert that it fails.
272 // Setup a correct config buffer.