Searched refs:safeUnion (Results 1 – 4 of 4) sorted by relevance
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/ |
D | HidlTestJava.java | 292 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 293 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.noinit); in runClientSafeUnionTests() 297 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 299 safeUnion = safeunionInterface.setA(safeUnion, (byte) -5); in runClientSafeUnionTests() 300 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests() 301 ExpectTrue(safeUnion.a() == (byte) -5); in runClientSafeUnionTests() 303 safeUnion = safeunionInterface.setD(safeUnion, Long.MAX_VALUE); in runClientSafeUnionTests() 304 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.d); in runClientSafeUnionTests() 305 ExpectTrue(safeUnion.d() == Long.MAX_VALUE); in runClientSafeUnionTests() 312 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local [all …]
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 797 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 798 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 803 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 804 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 805 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 806 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 810 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 811 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 812 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 822 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 2017 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2018 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 2023 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2024 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2025 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 2026 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 2030 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2031 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 2032 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 2042 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument [all …]
|
/system/tools/hidl/test/format_test/1.0/ |
D | IFoo.hal | 88 thisMethodHasALotOfArguments(string a, BigStruct bigStruct, SafeUnion safeUnion,
|