Home
last modified time | relevance | path

Searched refs:LargeSafeUnion (Results 1 – 3 of 3) sorted by relevance

/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java35 import android.hardware.tests.safeunion.V1_0.ISafeUnion.LargeSafeUnion;
293 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests()
294 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.noinit); in runClientSafeUnionTests()
298 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests()
301 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests()
305 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.d); in runClientSafeUnionTests()
313 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests()
315 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.f); in runClientSafeUnionTests()
320 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.i); in runClientSafeUnionTests()
327 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests()
[all …]
/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp65 using LargeSafeUnion = ISafeUnion::LargeSafeUnion; typedef
805 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
806 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F()
811 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
812 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
813 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F()
818 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
819 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F()
830 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
832 safeunionInterface->setF(safeUnion, testArray, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
[all …]
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp152 using LargeSafeUnion = ISafeUnion::LargeSafeUnion; typedef
2031 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
2032 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F()
2037 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
2038 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
2039 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F()
2044 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
2045 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F()
2056 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F()
2058 safeunionInterface->setF(safeUnion, testArray, [&](const LargeSafeUnion& safeUnion) { in TEST_F()
[all …]