Lines Matching refs:br
121 uint32_t br[32]; in binderTestReadEmpty() local
124 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
125 bwr.read_size = sizeof(br); in binderTestReadEmpty()
130 EXPECT_EQ(BR_NOOP, br[i]); in binderTestReadEmpty()
258 } __attribute__((packed)) br; in TEST_F() local
263 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
264 bwr.read_size = sizeof(br); in TEST_F()
271 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
276 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
277 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
278 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
279 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
280 EXPECT_EQ(BR_TRANSACTION_COMPLETE, br.cmd1); in TEST_F()
281 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
282 EXPECT_EQ(BR_REPLY, br.cmd2); in TEST_F()
283 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
284 EXPECT_EQ(0u, br.arg2.target.ptr); in TEST_F()
285 EXPECT_EQ(0u, br.arg2.cookie); in TEST_F()
286 EXPECT_EQ(0u, br.arg2.code); in TEST_F()
287 EXPECT_EQ(0u, br.arg2.flags); in TEST_F()
288 EXPECT_EQ(0u, br.arg2.data_size); in TEST_F()
289 EXPECT_EQ(0u, br.arg2.offsets_size); in TEST_F()
300 .arg1 = br.arg2.data.ptr.buffer, in TEST_F()
346 } __attribute__((packed)) br; in TEST_F() local
351 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
352 bwr.read_size = sizeof(br); in TEST_F()
356 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()
357 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
358 EXPECT_EQ(BR_CLEAR_DEATH_NOTIFICATION_DONE, br.cmd1); in TEST_F()
359 EXPECT_EQ(cookie, br.arg1); in TEST_F()