Lines Matching refs:Version
297 enum class Version { V1_0, V1_1, V1_2, V1_3, MOCK }; enum
299 sp<V1_0::IDevice> adaptAs(const sp<MockDevice>& mockDevice, Version version) { in adaptAs()
301 case Version::V1_0: in adaptAs()
303 case Version::V1_1: in adaptAs()
305 case Version::V1_2: in adaptAs()
307 case Version::V1_3: in adaptAs()
309 case Version::MOCK: in adaptAs()
469 void setupInitializationExpectations(const sp<MockDevice>& mockDevice, Version version) { in setupInitializationExpectations()
471 case Version::V1_0: in setupInitializationExpectations()
474 case Version::V1_1: in setupInitializationExpectations()
477 case Version::V1_2: in setupInitializationExpectations()
480 case Version::V1_3: in setupInitializationExpectations()
483 case Version::MOCK: in setupInitializationExpectations()
490 void setupSuccessfulInitializationExpectations(const sp<MockDevice>& mockDevice, Version version) { in setupSuccessfulInitializationExpectations()
493 const int numCallsForV1_0 = (version == Version::V1_0 ? 1 : 0); in setupSuccessfulInitializationExpectations()
496 const int numCallsForV1_1 = (version == Version::V1_1 ? 1 : 0); in setupSuccessfulInitializationExpectations()
499 const int numCallsForV1_2 = (version == Version::V1_2 ? 1 : 0); in setupSuccessfulInitializationExpectations()
502 const int numCallsForAtLeastV1_3 = (version >= Version::V1_3 ? 1 : 0); in setupSuccessfulInitializationExpectations()
505 const int numCallsForAtLeastV1_2 = (version >= Version::V1_2 ? 1 : 0); in setupSuccessfulInitializationExpectations()
514 Version version) { in makeVersionedIDeviceFrom()
524 const sp<MockDevice>& device, MockDeviceFactory* mockDeviceFactory, Version version) { in makeVersionedIDeviceSuccessfulInitializationFrom()
545 template <Version version>
558 class VersionedIDeviceV1_0Test : public VersionedIDeviceInitializedTest<Version::V1_0> {};
559 class VersionedIDeviceV1_1Test : public VersionedIDeviceInitializedTest<Version::V1_1> {};
560 class VersionedIDeviceV1_2Test : public VersionedIDeviceInitializedTest<Version::V1_2> {};
561 class VersionedIDeviceV1_3Test : public VersionedIDeviceInitializedTest<Version::V1_3> {};
562 class VersionedIDeviceMockTest : public VersionedIDeviceInitializedTest<Version::MOCK> {};
613 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_0); in TEST_F()
625 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_1); in TEST_F()
637 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
649 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_3); in TEST_F()
661 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
673 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
685 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
698 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
711 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
724 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
737 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_0); in TEST_F()
750 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_1); in TEST_F()
763 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
776 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_3); in TEST_F()
789 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
802 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
815 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
828 const auto device = makeVersionedIDeviceFrom(kMockDevice, kMockMakeDevice.get(), Version::V1_2); in TEST_F()
1915 template <Version version>
1931 class VersionedIPreparedModelV1_0Test : public VersionedIPreparedModelTest<Version::V1_0> {};
1932 class VersionedIPreparedModelV1_1Test : public VersionedIPreparedModelTest<Version::V1_1> {};
1933 class VersionedIPreparedModelV1_2Test : public VersionedIPreparedModelTest<Version::V1_2> {};
1934 class VersionedIPreparedModelV1_3Test : public VersionedIPreparedModelTest<Version::V1_3> {};
1935 class VersionedIPreparedModelMockTest : public VersionedIPreparedModelTest<Version::MOCK> {};