Home
last modified time | relevance | path

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

/system/tools/hidl/test/java_test/
Dhidl_test_java_native.cpp52 using HandleTypeSafeUnion = ISafeUnion::HandleTypeSafeUnion; typedef
818 HandleTypeSafeUnion safeUnion; in TEST_F()
821 safeUnion, hidl_handle(nullptr), [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
822 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::a, in TEST_F()
846 safeunionInterface->newHandleTypeSafeUnion([&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
848 safeUnion, hidl_handle(h), [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
849 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::a, in TEST_F()
856 safeUnion, testArray, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
857 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::b, in TEST_F()
866 safeUnion, testVector, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
[all …]
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
DHidlTestJava.java28 import android.hardware.tests.safeunion.V1_0.ISafeUnion.HandleTypeSafeUnion;
350 HandleTypeSafeUnion safeUnion = new HandleTypeSafeUnion(); in runClientSafeUnionTests()
353 ExpectTrue(safeUnion.getDiscriminator() == HandleTypeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests()
366 HandleTypeSafeUnion safeUnion = safeunionInterface.newHandleTypeSafeUnion(); in runClientSafeUnionTests()
368 ExpectTrue(safeUnion.getDiscriminator() == HandleTypeSafeUnion.hidl_discriminator.a); in runClientSafeUnionTests()
372 ExpectTrue(safeUnion.getDiscriminator() == HandleTypeSafeUnion.hidl_discriminator.b); in runClientSafeUnionTests()
380 ExpectTrue(safeUnion.getDiscriminator() == HandleTypeSafeUnion.hidl_discriminator.c); in runClientSafeUnionTests()
408 HandleTypeSafeUnion safeUnion = safeunionInterface.newHandleTypeSafeUnion(); in runClientSafeUnionTests()
1585 public HandleTypeSafeUnion newHandleTypeSafeUnion() { in newHandleTypeSafeUnion()
1587 return new HandleTypeSafeUnion(); in newHandleTypeSafeUnion()
[all …]
/system/tools/hidl/test/hidl_test/
Dhidl_test_client.cpp157 using HandleTypeSafeUnion = ISafeUnion::HandleTypeSafeUnion; typedef
2116 testZeroInit<HandleTypeSafeUnion>("HandleTypeSafeUnion"); in TEST_F()
2267 HandleTypeSafeUnion safeUnion; in TEST_F()
2270 safeUnion, hidl_handle(nullptr), [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
2271 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::a, in TEST_F()
2295 safeunionInterface->newHandleTypeSafeUnion([&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
2297 safeUnion, hidl_handle(h), [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
2298 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::a, in TEST_F()
2305 safeUnion, testArray, [&](const HandleTypeSafeUnion& safeUnion) { in TEST_F()
2306 EXPECT_EQ(HandleTypeSafeUnion::hidl_discriminator::b, in TEST_F()
[all …]