Lines Matching refs:hv1
211 hidl_vec<int32_t> hv1 = v; // copy = in TEST_F() local
212 EXPECT_ARRAYEQ(hv1, array, 3); in TEST_F()
213 EXPECT_ARRAYEQ(hv1, v, 3); in TEST_F()
217 vector<int32_t> v2 = hv1; // cast in TEST_F()
245 android::hardware::hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F() local
247 auto iter = hv1.begin(); // iterator begin() in TEST_F()
283 hidl_vec<int32_t> hv1 = std::vector<int32_t>(array, array + 3); in TEST_F() local
286 for (auto &&i: hv1) { in TEST_F()
291 for (auto iter = hv1.begin(); iter < hv1.end(); ++iter) { in TEST_F()
294 const hidl_vec<int32_t> &v4 = hv1; in TEST_F()
303 android::hardware::hidl_vec<int32_t> hv1{5, 6, 7}; in TEST_F() local
308 EXPECT_TRUE(hv1 == hv2); in TEST_F()
309 EXPECT_TRUE(hv1 != hv3); in TEST_F()
314 android::hardware::hidl_vec<int32_t> hv1{1, 2, 3}; in TEST_F() local
315 hv1 = {5, 6, 7}; in TEST_F()
322 EXPECT_TRUE(hv1 == hv2); in TEST_F()
323 EXPECT_TRUE(hv1 == reference); in TEST_F()
324 EXPECT_TRUE(hv1 != hv3); in TEST_F()
384 hidl_vec<int32_t> hv1 = {10, 20, 30, 40}; in TEST_F() local
387 auto it = hv1.find(20); in TEST_F()
391 it = hv1.find(20); in TEST_F()
392 EXPECT_EQ(hv1.end(), it); in TEST_F()
393 it = hv1.find(21); in TEST_F()
402 hidl_vec<int32_t> hv1 = {10, 20, 30, 40}; in TEST_F() local
405 EXPECT_TRUE(hv1.contains(10)); in TEST_F()
406 EXPECT_TRUE(hv1.contains(40)); in TEST_F()
407 EXPECT_FALSE(hv1.contains(1)); in TEST_F()
408 EXPECT_FALSE(hv1.contains(0)); in TEST_F()
412 hv1[0] = 11; in TEST_F()
413 EXPECT_FALSE(hv1.contains(10)); in TEST_F()
414 EXPECT_TRUE(hv1.contains(11)); in TEST_F()