Searched refs:safeUnion (Results 1 – 3 of 3) sorted by relevance
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/ |
D | HidlTestJava.java | 235 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 236 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.noinit); in runClientSafeUnionTests() 240 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 242 safeUnion = safeunionInterface.setA(safeUnion, (byte) -5); in runClientSafeUnionTests() 243 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests() 244 ExpectTrue(safeUnion.a() == (byte) -5); in runClientSafeUnionTests() 246 safeUnion = safeunionInterface.setD(safeUnion, Long.MAX_VALUE); in runClientSafeUnionTests() 247 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.d); in runClientSafeUnionTests() 248 ExpectTrue(safeUnion.d() == Long.MAX_VALUE); in runClientSafeUnionTests() 255 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local [all …]
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 636 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 637 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 642 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 643 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 644 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 645 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 649 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 650 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 651 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 661 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 2005 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2006 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 2011 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2012 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2013 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 2014 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 2018 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2019 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 2020 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 2030 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument [all …]
|