Lines Matching refs:bwr
60 struct binder_write_read bwr = binder_write_read(); in EnterLooper() local
61 bwr.write_buffer = (uintptr_t)bc; in EnterLooper()
62 bwr.write_size = sizeof(bc); in EnterLooper()
63 ret = ioctl(m_binderFd, BINDER_WRITE_READ, &bwr); in EnterLooper()
68 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in EnterLooper()
112 struct binder_write_read bwr = binder_write_read(); in binderTestReadEmpty() local
114 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
115 bwr.read_size = sizeof(br); in binderTestReadEmpty()
116 binderTestIoctlErr1(BINDER_WRITE_READ, &bwr, EAGAIN); in binderTestReadEmpty()
117 EXPECT_EQ(0u, bwr.read_consumed); in binderTestReadEmpty()
118 for (i = 0; i * sizeof(uint32_t) < bwr.read_consumed; i++) { in binderTestReadEmpty()
189 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
190 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
208 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
209 bwr.write_buffer = (uintptr_t)bc; in TEST_F()
210 bwr.write_size = sizeof(bc); in TEST_F()
211 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
212 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
242 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
244 bwr.write_buffer = (uintptr_t)&bc1; in TEST_F()
245 bwr.write_size = sizeof(bc1); in TEST_F()
246 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
247 bwr.read_size = sizeof(br); in TEST_F()
251 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
253 EXPECT_EQ(sizeof(bc1), bwr.write_consumed); in TEST_F()
254 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
257 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
259 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
260 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
262 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
264 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
266 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
286 bwr.write_buffer = (uintptr_t)&bc2; in TEST_F()
287 bwr.write_size = sizeof(bc2); in TEST_F()
288 bwr.write_consumed = 0; in TEST_F()
289 bwr.read_size = 0; in TEST_F()
291 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
292 EXPECT_EQ(sizeof(bc2), bwr.write_consumed); in TEST_F()
330 struct binder_write_read bwr = binder_write_read(); in TEST_F() local
332 bwr.write_buffer = (uintptr_t)&bc; in TEST_F()
333 bwr.write_size = sizeof(bc); in TEST_F()
334 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
335 bwr.read_size = sizeof(br); in TEST_F()
337 binderTestIoctl(BINDER_WRITE_READ, &bwr); in TEST_F()
338 EXPECT_EQ(sizeof(bc), bwr.write_consumed); in TEST_F()
339 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()