Searched refs:testVector (Results 1 – 4 of 4) sorted by relevance
/system/chre/util/tests/ |
D | fixed_size_vector_test.cc | 44 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/ |
D | hidl_test_java_native.cpp | 820 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local 833 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F() 835 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F() 900 const hidl_vec<hidl_string> testVector{"So", "Many", "Words"}; in TEST_F() local 937 safeUnion, testVector, [&](const InterfaceTypeSafeUnion& safeUnion) { in TEST_F() 940 EXPECT_EQ(testVector, safeUnion.e()); in TEST_F() 998 std::vector<hidl_handle> testVector(256); in TEST_F() local 999 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F() 1000 testVector[i].setTo(native_handle_clone(h), true /* shouldOwn */); in TEST_F() 1024 safeUnion, testVector, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F() [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 1627 const hidl_vec<bool> testVector{false, true, false, true, true, true}; in TEST_F() local 1629 hidl_vec<bool> goldenResult(testVector.size()); in TEST_F() 1630 for (size_t i = 0; i < testVector.size(); i++) { in TEST_F() 1631 goldenResult[i] = !testVector[i]; in TEST_F() 2040 const hidl_vec<uint64_t> testVector{std::numeric_limits<uint64_t>::max()}; in TEST_F() local 2053 safeunionInterface->setI(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F() 2055 EXPECT_EQ(testVector, safeUnion.i()); in TEST_F() 2074 const hidl_vec<bool> testVector{true, false, true, false, false, false, true, false, in TEST_F() local 2079 safeunionInterface->setH(safeUnion, testVector, [&](const LargeSafeUnion& safeUnion) { in TEST_F() 2083 EXPECT_EQ(testVector, safeUnionCopy.h()); in TEST_F() [all …]
|
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/ |
D | HidlTestJava.java | 310 ArrayList<Long> testVector = new ArrayList<Long>(Arrays.asList(Long.MAX_VALUE)); in runClientSafeUnionTests() local 318 safeUnion = safeunionInterface.setI(safeUnion, testVector); in runClientSafeUnionTests() 320 ExpectDeepEq(testVector, safeUnion.i()); in runClientSafeUnionTests() 367 ArrayList<String> testVector = new ArrayList(Arrays.asList("So", "Many", "Words")); in runClientSafeUnionTests() local 390 safeUnion = safeunionInterface.setInterfaceE(safeUnion, testVector); in runClientSafeUnionTests() 392 ExpectDeepEq(testVector, safeUnion.e()); in runClientSafeUnionTests() 531 ArrayList<Boolean> testVector = in runClientSafeUnionTests() local 537 one = safeunionInterface.setH(one, testVector); in runClientSafeUnionTests() 541 two = safeunionInterface.setH(two, (ArrayList<Boolean>) testVector.clone()); in runClientSafeUnionTests()
|