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.cpp828 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local
841 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
843 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F()
908 const hidl_vec<hidl_string> testVector{"So", "Many", "Words"}; in TEST_F() local
945 safeUnion, testVector, [&](const InterfaceTypeSafeUnion& safeUnion) { in TEST_F()
948 EXPECT_EQ(testVector, safeUnion.e()); in TEST_F()
1009 std::vector<hidl_handle> testVector(256); in TEST_F() local
1010 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F()
1011 testVector[i].setTo(native_handle_clone(h), true /* shouldOwn */); in TEST_F()
1035 safeUnion, testVector, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
[all …]
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp1639 const hidl_vec<bool> testVector{false, true, false, true, true, true}; in TEST_F() local
1641 hidl_vec<bool> goldenResult(testVector.size()); in TEST_F()
1642 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F()
1643 goldenResult[i] = !testVector[i]; in TEST_F()
1664 testVector, [&](const hidl_vec<bool>& result) { EXPECT_EQ(goldenResult, result); })); in TEST_F()
2054 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local
2067 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
2069 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F()
2088 const hidl_vec<bool> testVector{true, false, true, false, false, false, true, false, in TEST_F() local
2093 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.java311 ArrayList<Long> testVector = new ArrayList<Long>(Arrays.asList(Long.MAX_VALUE)); in runClientSafeUnionTests() local
319 safeUnion = safeunionInterface.setI(safeUnion, testVector); in runClientSafeUnionTests()
321 ExpectDeepEq(testVector, safeUnion.i()); in runClientSafeUnionTests()
368 ArrayList<String> testVector = new ArrayList(Arrays.asList("So", "Many", "Words")); in runClientSafeUnionTests() local
394 safeUnion = safeunionInterface.setInterfaceE(safeUnion, testVector); in runClientSafeUnionTests()
396 ExpectDeepEq(testVector, safeUnion.e()); in runClientSafeUnionTests()
535 ArrayList<Boolean> testVector = in runClientSafeUnionTests() local
541 one = safeunionInterface.setH(one, testVector); in runClientSafeUnionTests()
545 two = safeunionInterface.setH(two, (ArrayList<Boolean>) testVector.clone()); in runClientSafeUnionTests()