• Home
  • Raw
  • Download

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()
259 } __attribute__((packed)) br; in TEST_F() local
264 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
265 bwr.read_size = sizeof(br); in TEST_F()
272 if (bwr.read_consumed < offsetof(typeof(br), pad)) { in TEST_F()
277 EXPECT_EQ(offsetof(typeof(br), pad), bwr.read_consumed); in TEST_F()
278 if (bwr.read_consumed > offsetof(typeof(br), cmd0)) in TEST_F()
279 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
280 if (bwr.read_consumed > offsetof(typeof(br), cmd1)) in TEST_F()
281 EXPECT_EQ(BR_TRANSACTION_COMPLETE, br.cmd1); in TEST_F()
282 if (bwr.read_consumed > offsetof(typeof(br), cmd2)) in TEST_F()
283 EXPECT_EQ(BR_REPLY, br.cmd2); in TEST_F()
284 if (bwr.read_consumed >= offsetof(typeof(br), pad)) { in TEST_F()
285 EXPECT_EQ(0u, br.arg2.target.ptr); in TEST_F()
286 EXPECT_EQ(0u, br.arg2.cookie); in TEST_F()
287 EXPECT_EQ(0u, br.arg2.code); in TEST_F()
288 EXPECT_EQ(0u, br.arg2.flags); in TEST_F()
289 EXPECT_EQ(0u, br.arg2.data_size); in TEST_F()
290 EXPECT_EQ(0u, br.arg2.offsets_size); in TEST_F()
301 .arg1 = br.arg2.data.ptr.buffer, in TEST_F()
347 } __attribute__((packed)) br; in TEST_F() local
352 bwr.read_buffer = (uintptr_t)&br; in TEST_F()
353 bwr.read_size = sizeof(br); in TEST_F()
357 EXPECT_EQ(sizeof(br) - sizeof(br.pad), bwr.read_consumed); in TEST_F()
358 EXPECT_EQ(BR_NOOP, br.cmd0); in TEST_F()
359 EXPECT_EQ(BR_CLEAR_DEATH_NOTIFICATION_DONE, br.cmd1); in TEST_F()
360 EXPECT_EQ(cookie, br.arg1); in TEST_F()