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 | 293 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 294 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.noinit); in runClientSafeUnionTests() 298 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local 300 safeUnion = safeunionInterface.setA(safeUnion, (byte) -5); in runClientSafeUnionTests() 301 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests() 302 ExpectTrue(safeUnion.a() == (byte) -5); in runClientSafeUnionTests() 304 safeUnion = safeunionInterface.setD(safeUnion, Long.MAX_VALUE); in runClientSafeUnionTests() 305 ExpectTrue(safeUnion.getDiscriminator() == LargeSafeUnion.hidl_discriminator.d); in runClientSafeUnionTests() 306 ExpectTrue(safeUnion.d() == Long.MAX_VALUE); in runClientSafeUnionTests() 313 LargeSafeUnion safeUnion = safeunionInterface.newLargeSafeUnion(); in runClientSafeUnionTests() local [all …]
|
/system/tools/hidl/test/java_test/ |
D | hidl_test_java_native.cpp | 805 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 806 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 811 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 812 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 813 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 814 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 818 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 819 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 820 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 830 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument [all …]
|
/system/tools/hidl/test/hidl_test/ |
D | hidl_test_client.cpp | 2031 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2032 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::noinit, safeUnion.getDiscriminator()); in TEST_F() 2037 EXPECT_OK(safeunionInterface->newLargeSafeUnion([&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2038 EXPECT_OK(safeunionInterface->setA(safeUnion, -5, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2039 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::a, safeUnion.getDiscriminator()); in TEST_F() 2040 EXPECT_EQ(-5, safeUnion.a()); in TEST_F() 2044 safeunionInterface->setD(safeUnion, max, [&](const LargeSafeUnion& safeUnion) { in TEST_F() argument 2045 EXPECT_EQ(LargeSafeUnion::hidl_discriminator::d, safeUnion.getDiscriminator()); in TEST_F() 2046 EXPECT_EQ(max, safeUnion.d()); in TEST_F() 2056 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,
|