Home
last modified time | relevance | path

Searched refs:testVector (Results 1 – 4 of 4) sorted by relevance

/system/chre/util/tests/
Dfixed_size_vector_test.cc44 FixedSizeVector<int, 8> testVector; in TEST() local
45 ASSERT_NE(testVector.data(), nullptr); in TEST()
46 ASSERT_EQ(testVector.size(), 0); in TEST()
47 ASSERT_EQ(testVector.capacity(), 8); in TEST()
48 ASSERT_TRUE(testVector.empty()); in TEST()
49 ASSERT_FALSE(testVector.full()); in TEST()
53 FixedSizeVector<int, 8> testVector; in TEST() local
54 testVector.push_back(0x1337); in TEST()
55 ASSERT_NE(testVector.data(), nullptr); in TEST()
56 ASSERT_EQ(testVector.size(), 1); in TEST()
[all …]
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp659 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local
672 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
674 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F()
739 const hidl_vec<hidl_string> testVector{"So", "Many", "Words"}; in TEST_F() local
776 safeUnion, testVector, [&](const InterfaceTypeSafeUnion& safeUnion) { in TEST_F()
779 EXPECT_EQ(testVector, safeUnion.e()); in TEST_F()
840 std::vector<hidl_handle> testVector(256); in TEST_F() local
841 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F()
842 testVector[i].setTo(native_handle_clone(h), true /* shouldOwn */); in TEST_F()
866 safeUnion, testVector, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
[all …]
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp1665 const hidl_vec<bool> testVector{false, true, false, true, true, true}; in TEST_F() local
1667 hidl_vec<bool> goldenResult(testVector.size()); in TEST_F()
1668 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F()
1669 goldenResult[i] = !testVector[i]; in TEST_F()
1690 testVector, [&](const hidl_vec<bool>& result) { EXPECT_EQ(goldenResult, result); })); in TEST_F()
2028 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local
2041 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
2043 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F()
2062 const hidl_vec<bool> testVector{true, false, true, false, false, false, true, false, in TEST_F() local
2067 safeunionInterface->setH(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
[all …]
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java253 ArrayList<Long> testVector = new ArrayList<Long>(Arrays.asList(Long.MAX_VALUE)); in runClientSafeUnionTests() local
261 safeUnion = safeunionInterface.setI(safeUnion, testVector); in runClientSafeUnionTests()
263 ExpectDeepEq(testVector, safeUnion.i()); in runClientSafeUnionTests()
310 ArrayList<String> testVector = new ArrayList(Arrays.asList("So", "Many", "Words")); in runClientSafeUnionTests() local
336 safeUnion = safeunionInterface.setInterfaceE(safeUnion, testVector); in runClientSafeUnionTests()
338 ExpectDeepEq(testVector, safeUnion.e()); in runClientSafeUnionTests()
477 ArrayList<Boolean> testVector = in runClientSafeUnionTests() local
483 one = safeunionInterface.setH(one, testVector); in runClientSafeUnionTests()
487 two = safeunionInterface.setH(two, (ArrayList<Boolean>) testVector.clone()); in runClientSafeUnionTests()