Lines Matching refs:br
123 uint32_t br[32]; in binderTestReadEmpty() local
126 bwr.read_buffer = (uintptr_t)br; in binderTestReadEmpty()
127 bwr.read_size = sizeof(br); in binderTestReadEmpty()
132 EXPECT_EQ(BR_NOOP, br[i]); in binderTestReadEmpty()
260 } __attribute__((packed)) br; in TEST_F() local
265 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
266 bwr.read_size = sizeof(br); in TEST_F()
273 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
278 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
279 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
280 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
281 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
282 EXPECT_EQ(BR_TRANSACTION_COMPLETE, br.cmd1); in TEST_F()
283 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
284 EXPECT_EQ(BR_REPLY, br.cmd2); in TEST_F()
285 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
286 EXPECT_EQ(0u, br.arg2.target.ptr); in TEST_F()
287 EXPECT_EQ(0u, br.arg2.cookie); in TEST_F()
288 EXPECT_EQ(0u, br.arg2.code); in TEST_F()
289 EXPECT_EQ(0u, br.arg2.flags); in TEST_F()
290 EXPECT_EQ(0u, br.arg2.data_size); in TEST_F()
291 EXPECT_EQ(0u, br.arg2.offsets_size); in TEST_F()
302 .arg1 = br.arg2.data.ptr.buffer, in TEST_F()
348 } __attribute__((packed)) br; in TEST_F() local
353 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
354 bwr.read_size = sizeof(br); in TEST_F()
358 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()
359 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
360 EXPECT_EQ(BR_CLEAR_DEATH_NOTIFICATION_DONE, br.cmd1); in TEST_F()
361 EXPECT_EQ(cookie, br.arg1); in TEST_F()