Lines Matching refs:Case
989 struct Case { struct
997 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1001 Case<ExternalDisplayVariant, WideColorNotSupportedVariant<ExternalDisplayVariant>,
1005 Case<TertiaryDisplayVariant, WideColorNotSupportedVariant<TertiaryDisplayVariant>,
1009 Case<NonHwcVirtualDisplayVariant<1024, 768, Secure::FALSE>,
1014 Case<SimpleHwcVirtualDisplayVariant, WideColorSupportNotConfiguredVariant,
1018 Case<PrimaryDisplayVariant, WideColorP3ColorimetricSupportedVariant<PrimaryDisplayVariant>,
1022 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1026 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1030 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1034 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1038 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1042 Case<PrimaryDisplayVariant, WideColorNotSupportedVariant<PrimaryDisplayVariant>,
1252 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
1258 auto existing = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
1305 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
1315 auto existing = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
1755 template <typename Case>
1766 Case::WideColorSupport::injectConfigChange(this); in setupNewDisplayDeviceInternalTest()
1769 Case::Display::injectHwcDisplay(this); in setupNewDisplayDeviceInternalTest()
1776 auto compositionDisplay = Case::Display::injectCompositionDisplay(this); in setupNewDisplayDeviceInternalTest()
1782 Case::Display::setupNativeWindowSurfaceCreationCallExpectations(this); in setupNewDisplayDeviceInternalTest()
1783 Case::Display::setupHwcGetActiveConfigCallExpectations(this); in setupNewDisplayDeviceInternalTest()
1784 Case::WideColorSupport::setupComposerCallExpectations(this); in setupNewDisplayDeviceInternalTest()
1785 Case::HdrSupport::setupComposerCallExpectations(this); in setupNewDisplayDeviceInternalTest()
1786 Case::PerFrameMetadataSupport::setupComposerCallExpectations(this); in setupNewDisplayDeviceInternalTest()
1792 if (const auto connectionType = Case::Display::CONNECTION_TYPE::value) { in setupNewDisplayDeviceInternalTest()
1793 const auto displayId = Case::Display::DISPLAY_ID::get(); in setupNewDisplayDeviceInternalTest()
1795 const auto hwcDisplayId = Case::Display::HWC_DISPLAY_ID_OPT::value; in setupNewDisplayDeviceInternalTest()
1800 state.isSecure = static_cast<bool>(Case::Display::SECURE); in setupNewDisplayDeviceInternalTest()
1809 EXPECT_EQ(Case::Display::DISPLAY_ID::get(), device->getId()); in setupNewDisplayDeviceInternalTest()
1810 EXPECT_EQ(Case::Display::CONNECTION_TYPE::value, device->getConnectionType()); in setupNewDisplayDeviceInternalTest()
1811 EXPECT_EQ(static_cast<bool>(Case::Display::VIRTUAL), device->isVirtual()); in setupNewDisplayDeviceInternalTest()
1812 EXPECT_EQ(static_cast<bool>(Case::Display::SECURE), device->isSecure()); in setupNewDisplayDeviceInternalTest()
1813 EXPECT_EQ(static_cast<bool>(Case::Display::PRIMARY), device->isPrimary()); in setupNewDisplayDeviceInternalTest()
1814 EXPECT_EQ(Case::Display::WIDTH, device->getWidth()); in setupNewDisplayDeviceInternalTest()
1815 EXPECT_EQ(Case::Display::HEIGHT, device->getHeight()); in setupNewDisplayDeviceInternalTest()
1816 EXPECT_EQ(Case::WideColorSupport::WIDE_COLOR_SUPPORTED, device->hasWideColorGamut()); in setupNewDisplayDeviceInternalTest()
1817 EXPECT_EQ(Case::HdrSupport::HDR10_PLUS_SUPPORTED, device->hasHDR10PlusSupport()); in setupNewDisplayDeviceInternalTest()
1818 EXPECT_EQ(Case::HdrSupport::HDR10_SUPPORTED, device->hasHDR10Support()); in setupNewDisplayDeviceInternalTest()
1819 EXPECT_EQ(Case::HdrSupport::HDR_HLG_SUPPORTED, device->hasHLGSupport()); in setupNewDisplayDeviceInternalTest()
1820 EXPECT_EQ(Case::HdrSupport::HDR_DOLBY_VISION_SUPPORTED, device->hasDolbyVisionSupport()); in setupNewDisplayDeviceInternalTest()
1825 EXPECT_EQ(Case::PerFrameMetadataSupport::PER_FRAME_METADATA_KEYS, in setupNewDisplayDeviceInternalTest()
1879 template <typename Case>
1882 template <typename Case, bool connected>
1885 template <typename Case>
1888 template <typename Case>
1891 template <typename Case>
1894 template <typename Case>
1897 template <typename Case>
1900 template <typename Case>
1903 template <typename Case>
1909 template <typename Case>
1912 Case::WideColorSupport::injectConfigChange(this); in setupCommonPreconditions()
1922 template <typename Case, bool connected>
1929 onHotplugReceived(ResultOf(convert, Case::Display::DISPLAY_ID::get()), connected)) in expectHotplugReceived()
1933 template <typename Case>
1935 Case::Display::setupHwcHotplugCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1937 Case::Display::setupFramebufferConsumerBufferQueueCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1938 Case::Display::setupFramebufferProducerBufferQueueCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1939 Case::Display::setupNativeWindowSurfaceCreationCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1940 Case::Display::setupHwcGetActiveConfigCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1942 Case::WideColorSupport::setupComposerCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1943 Case::HdrSupport::setupComposerCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1944 Case::PerFrameMetadataSupport::setupComposerCallExpectations(this); in setupCommonCallExpectationsForConnectProcessing()
1947 expectHotplugReceived<Case, true>(mEventThread); in setupCommonCallExpectationsForConnectProcessing()
1948 expectHotplugReceived<Case, true>(mSFEventThread); in setupCommonCallExpectationsForConnectProcessing()
1951 template <typename Case>
1955 expectHotplugReceived<Case, false>(mEventThread); in setupCommonCallExpectationsForDisconnectProcessing()
1956 expectHotplugReceived<Case, false>(mSFEventThread); in setupCommonCallExpectationsForDisconnectProcessing()
1959 template <typename Case>
1964 EXPECT_EQ(static_cast<bool>(Case::Display::SECURE), device->isSecure()); in verifyDisplayIsConnected()
1965 EXPECT_EQ(static_cast<bool>(Case::Display::PRIMARY), device->isPrimary()); in verifyDisplayIsConnected()
1968 if (const auto connectionType = Case::Display::CONNECTION_TYPE::value) { in verifyDisplayIsConnected()
1969 const auto displayId = Case::Display::DISPLAY_ID::get(); in verifyDisplayIsConnected()
1971 const auto hwcDisplayId = Case::Display::HWC_DISPLAY_ID_OPT::value; in verifyDisplayIsConnected()
1979 EXPECT_EQ(static_cast<bool>(Case::Display::VIRTUAL), current.isVirtual()); in verifyDisplayIsConnected()
1985 EXPECT_EQ(static_cast<bool>(Case::Display::VIRTUAL), draw.isVirtual()); in verifyDisplayIsConnected()
1989 template <typename Case>
1992 EXPECT_TRUE(hasPhysicalHwcDisplay(Case::Display::HWC_DISPLAY_ID)); in verifyPhysicalDisplayIsConnected()
1995 const auto displayId = Case::Display::DISPLAY_ID::get(); in verifyPhysicalDisplayIsConnected()
2000 verifyDisplayIsConnected<Case>(displayToken); in verifyPhysicalDisplayIsConnected()
2009 template <typename Case>
2014 setupCommonPreconditions<Case>(); in processesHotplugConnectCommon()
2017 Case::Display::injectPendingHotplugEvent(this, Connection::CONNECTED); in processesHotplugConnectCommon()
2024 setupCommonCallExpectationsForConnectProcessing<Case>(); in processesHotplugConnectCommon()
2034 verifyPhysicalDisplayIsConnected<Case>(); in processesHotplugConnectCommon()
2040 setVsyncEnabled(Case::Display::HWC_DISPLAY_ID, IComposerClient::Vsync::DISABLE)) in processesHotplugConnectCommon()
2045 template <typename Case>
2050 setupCommonPreconditions<Case>(); in ignoresHotplugConnectCommon()
2053 Case::Display::injectPendingHotplugEvent(this, Connection::CONNECTED); in ignoresHotplugConnectCommon()
2064 EXPECT_FALSE(hasPhysicalHwcDisplay(Case::Display::HWC_DISPLAY_ID)); in ignoresHotplugConnectCommon()
2067 template <typename Case>
2072 setupCommonPreconditions<Case>(); in processesHotplugDisconnectCommon()
2075 Case::Display::injectPendingHotplugEvent(this, Connection::DISCONNECTED); in processesHotplugDisconnectCommon()
2078 Case::Display::injectHwcDisplay(this); in processesHotplugDisconnectCommon()
2079 auto existing = Case::Display::makeFakeExistingDisplayInjector(this); in processesHotplugDisconnectCommon()
2086 EXPECT_CALL(*mComposer, getDisplayIdentificationData(Case::Display::HWC_DISPLAY_ID, _, _)) in processesHotplugDisconnectCommon()
2089 setupCommonCallExpectationsForDisconnectProcessing<Case>(); in processesHotplugDisconnectCommon()
2100 EXPECT_FALSE(hasPhysicalHwcDisplay(Case::Display::HWC_DISPLAY_ID)); in processesHotplugDisconnectCommon()
2103 const auto displayId = Case::Display::DISPLAY_ID::get(); in processesHotplugDisconnectCommon()
2165 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2170 setupCommonPreconditions<Case>(); in TEST_F()
2173 Case::Display::injectPendingHotplugEvent(this, Connection::CONNECTED); in TEST_F()
2175 Case::Display::injectPendingHotplugEvent(this, Connection::DISCONNECTED); in TEST_F()
2182 setupCommonCallExpectationsForConnectProcessing<Case>(); in TEST_F()
2183 setupCommonCallExpectationsForDisconnectProcessing<Case>(); in TEST_F()
2186 setVsyncEnabled(Case::Display::HWC_DISPLAY_ID, IComposerClient::Vsync::DISABLE)) in TEST_F()
2199 EXPECT_FALSE(hasPhysicalHwcDisplay(Case::Display::HWC_DISPLAY_ID)); in TEST_F()
2202 const auto displayId = Case::Display::DISPLAY_ID::get(); in TEST_F()
2208 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2213 setupCommonPreconditions<Case>(); in TEST_F()
2216 Case::Display::injectHwcDisplay(this); in TEST_F()
2217 auto existing = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2221 Case::Display::injectPendingHotplugEvent(this, Connection::DISCONNECTED); in TEST_F()
2223 Case::Display::injectPendingHotplugEvent(this, Connection::CONNECTED); in TEST_F()
2230 setupCommonCallExpectationsForConnectProcessing<Case>(); in TEST_F()
2231 setupCommonCallExpectationsForDisconnectProcessing<Case>(); in TEST_F()
2243 const auto displayId = Case::Display::DISPLAY_ID::get(); in TEST_F()
2250 verifyPhysicalDisplayIsConnected<Case>(); in TEST_F()
2256 setVsyncEnabled(Case::Display::HWC_DISPLAY_ID, IComposerClient::Vsync::DISABLE)) in TEST_F()
2262 using Case = HwcVirtualDisplayCase; in TEST_F() typedef
2270 setupCommonPreconditions<Case>(); in TEST_F()
2277 state.isSecure = static_cast<bool>(Case::Display::SECURE); in TEST_F()
2286 Case::Display::setupFramebufferConsumerBufferQueueCallExpectations(this); in TEST_F()
2287 Case::Display::setupNativeWindowSurfaceCreationCallExpectations(this); in TEST_F()
2290 .WillRepeatedly(DoAll(SetArgPointee<1>(Case::Display::WIDTH), Return(NO_ERROR))); in TEST_F()
2292 .WillRepeatedly(DoAll(SetArgPointee<1>(Case::Display::HEIGHT), Return(NO_ERROR))); in TEST_F()
2304 Case::Display::setupHwcVirtualDisplayCreationCallExpectations(this); in TEST_F()
2305 Case::WideColorSupport::setupComposerCallExpectations(this); in TEST_F()
2306 Case::HdrSupport::setupComposerCallExpectations(this); in TEST_F()
2307 Case::PerFrameMetadataSupport::setupComposerCallExpectations(this); in TEST_F()
2318 verifyDisplayIsConnected<Case>(displayToken); in TEST_F()
2323 EXPECT_CALL(*mComposer, destroyVirtualDisplay(Case::Display::HWC_DISPLAY_ID)) in TEST_F()
2333 using Case = HwcVirtualDisplayCase; in TEST_F() typedef
2341 setupCommonPreconditions<Case>(); in TEST_F()
2348 state.isSecure = static_cast<bool>(Case::Display::SECURE); in TEST_F()
2369 EXPECT_EQ(static_cast<bool>(Case::Display::VIRTUAL), draw.isVirtual()); in TEST_F()
2373 using Case = HwcVirtualDisplayCase; in TEST_F() typedef
2379 const auto displayId = Case::Display::DISPLAY_ID::get(); in TEST_F()
2382 Case::Display::injectHwcDisplay(this); in TEST_F()
2383 auto existing = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2405 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2414 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2433 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2442 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2461 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2470 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2489 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2498 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2517 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2530 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2562 using Case = NonHwcVirtualDisplayCase; in TEST_F() typedef
2575 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2639 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2645 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2666 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2672 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2703 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2709 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2740 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2746 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2774 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2780 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2808 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2817 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2852 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2860 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2888 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2896 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2924 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2932 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2960 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
2968 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
2999 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
3007 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
3035 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
3043 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
3075 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
3081 Case::Display::injectHwcDisplay(this); in TEST_F()
3082 auto primaryDisplay = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
3094 Case::Display::setupHwcGetActiveConfigCallExpectations(this); in TEST_F()
3263 template <typename Case>
3265 Case::setupComposerCallExpectations(test, IComposerClient::PowerMode::ON); in setupCallExpectations()
3266 Case::EventThread::setupAcquireAndEnableVsyncCallExpectations(test); in setupCallExpectations()
3267 Case::DispSync::setupBeginResyncCallExpectations(test); in setupCallExpectations()
3268 Case::setupRepaintEverythingCallExpectations(test); in setupCallExpectations()
3279 template <typename Case>
3281 Case::setupComposerCallExpectations(test, Case::Doze::ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND); in setupCallExpectations()
3282 Case::EventThread::setupEventAndEventControlThreadNoCallExpectations(test); in setupCallExpectations()
3283 Case::setupRepaintEverythingCallExpectations(test); in setupCallExpectations()
3293 template <typename Case>
3295 Case::EventThread::setupReleaseAndDisableVsyncCallExpectations(test); in setupCallExpectations()
3296 Case::DispSync::setupEndResyncCallExpectations(test); in setupCallExpectations()
3297 Case::setupComposerCallExpectations(test, IComposerClient::PowerMode::OFF); in setupCallExpectations()
3307 template <typename Case>
3309 Case::EventThread::setupEventAndEventControlThreadNoCallExpectations(test); in setupCallExpectations()
3310 Case::setupComposerCallExpectations(test, IComposerClient::PowerMode::OFF); in setupCallExpectations()
3319 template <typename Case>
3321 Case::EventThread::setupEventAndEventControlThreadNoCallExpectations(test); in setupCallExpectations()
3322 Case::setupComposerCallExpectations(test, Case::Doze::ACTUAL_POWER_MODE_FOR_DOZE); in setupCallExpectations()
3328 template <typename Case>
3330 Case::EventThread::setupAcquireAndEnableVsyncCallExpectations(test); in setupCallExpectations()
3331 Case::DispSync::setupBeginResyncCallExpectations(test); in setupCallExpectations()
3332 Case::setupComposerCallExpectations(test, Case::Doze::ACTUAL_POWER_MODE_FOR_DOZE); in setupCallExpectations()
3337 template <typename Case>
3339 Case::EventThread::setupEventAndEventControlThreadNoCallExpectations(test); in setupCallExpectations()
3340 Case::setupComposerCallExpectations(test, IComposerClient::PowerMode::ON); in setupCallExpectations()
3346 template <typename Case>
3348 Case::EventThread::setupAcquireAndEnableVsyncCallExpectations(test); in setupCallExpectations()
3349 Case::DispSync::setupBeginResyncCallExpectations(test); in setupCallExpectations()
3350 Case::setupComposerCallExpectations(test, IComposerClient::PowerMode::ON); in setupCallExpectations()
3356 template <typename Case>
3358 Case::EventThread::setupReleaseAndDisableVsyncCallExpectations(test); in setupCallExpectations()
3359 Case::DispSync::setupEndResyncCallExpectations(test); in setupCallExpectations()
3360 Case::setupComposerCallExpectations(test, Case::Doze::ACTUAL_POWER_MODE_FOR_DOZE_SUSPEND); in setupCallExpectations()
3366 template <typename Case>
3368 Case::EventThread::setupEventAndEventControlThreadNoCallExpectations(test); in setupCallExpectations()
3369 Case::setupNoComposerPowerModeCallExpectations(test); in setupCallExpectations()
3451 template <typename Case>
3464 template <typename Case>
3469 Case::Doze::setupComposerCallExpectations(this); in transitionDisplayCommon()
3471 Case::injectDisplayWithInitialPowerMode(this, Case::Transition::INITIAL_POWER_MODE); in transitionDisplayCommon()
3472 Case::setInitialPrimaryHWVsyncEnabled(this, in transitionDisplayCommon()
3474 Case::Transition::INITIAL_POWER_MODE>::value); in transitionDisplayCommon()
3479 Case::setupSurfaceInterceptorCallExpectations(this, Case::Transition::TARGET_POWER_MODE); in transitionDisplayCommon()
3480 Case::Transition::template setupCallExpectations<Case>(this); in transitionDisplayCommon()
3486 Case::Transition::TARGET_POWER_MODE); in transitionDisplayCommon()
3491 Case::Transition::verifyPostconditions(this); in transitionDisplayCommon()
3495 using Case = SimplePrimaryDisplayCase; in TEST_F() typedef
3501 Case::Display::injectHwcDisplay(this); in TEST_F()
3502 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()
3520 using Case = HwcVirtualDisplayCase; in TEST_F() typedef
3526 const auto displayId = Case::Display::DISPLAY_ID::get(); in TEST_F()
3531 Case::Display::injectHwcDisplay(this); in TEST_F()
3532 auto display = Case::Display::makeFakeExistingDisplayInjector(this); in TEST_F()