| /appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/ |
| D | AppCompatActivityViewTreeTest.kt | 35 val activityRule = constant 42 val lfOwner = activityRule.activity.window.decorView.findViewTreeLifecycleOwner() in queryViewTreeLifecycleTest() 43 assertThat(lfOwner).isEqualTo(activityRule.activity) in queryViewTreeLifecycleTest() 48 val vmsOwner = activityRule.activity.window.decorView.findViewTreeViewModelStoreOwner() in queryViewTreeViewModelStoreTest() 49 assertThat(vmsOwner).isEqualTo(activityRule.activity) in queryViewTreeViewModelStoreTest() 54 val ssrOwner = activityRule.activity.window.decorView.findViewTreeSavedStateRegistryOwner() in queryViewTreeSavedStateRegistryTest() 55 assertThat(ssrOwner).isEqualTo(activityRule.activity) in queryViewTreeSavedStateRegistryTest() 61 activityRule.activity.window.decorView.findViewTreeOnBackPressedDispatcherOwner() in queryViewTreeOnBackPressedDispatcherOwnerTest() 62 assertThat(bpOwner).isEqualTo(activityRule.activity) in queryViewTreeOnBackPressedDispatcherOwnerTest()
|
| D | LocalesCustomApplyOverrideConfigurationTestCase.kt | 37 val activityRule = constant in androidx.appcompat.app.LocalesCustomApplyOverrideConfigurationTestCase 44 activityRule, in testNightModeIsMaintainedOnLocalesChange() 50 activityRule.activity.resources.configuration in testNightModeIsMaintainedOnLocalesChange() 52 setLocalesAndWaitForRecreate(activityRule, CUSTOM_LOCALE_LIST) in testNightModeIsMaintainedOnLocalesChange() 56 activityRule.activity.resources.configuration in testNightModeIsMaintainedOnLocalesChange() 58 setLocalesAndWaitForRecreate(activityRule, LocaleListCompat.getEmptyLocaleList()) in testNightModeIsMaintainedOnLocalesChange() 64 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained() 71 setLocalesAndWaitForRecreate(activityRule, CUSTOM_LOCALE_LIST) in testFontScaleIsMaintainedOnLocalesChange() 73 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintainedOnLocalesChange()
|
| D | LocalesCustomAttachBaseContextTestCase.kt | 41 val activityRule = LocalesActivityTestRule(LocalesCustomAttachBaseContextActivity::class.java) constant 51 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, NightSetMode.LOCAL) in testNightModeIsMaintainedOnLocalesChange() 54 activityRule.activity.resources.configuration in testNightModeIsMaintainedOnLocalesChange() 56 setLocalesAndWaitForRecreate(activityRule, CUSTOM_LOCALE_LIST) in testNightModeIsMaintainedOnLocalesChange() 60 activityRule.activity.resources.configuration in testNightModeIsMaintainedOnLocalesChange() 67 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained() 74 setLocalesAndWaitForRecreate(activityRule, CUSTOM_LOCALE_LIST) in testFontScaleIsMaintainedOnLocalesChange() 76 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintainedOnLocalesChange()
|
| D | NightModeCustomAttachBaseContextTestCase.kt | 37 val activityRule = constant 44 val config = activityRule.activity.resources.configuration in testLocaleIsMaintained() 52 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testLocaleIsMaintainedInDarkTheme() 55 val config = activityRule.activity.resources.configuration in testLocaleIsMaintainedInDarkTheme() 62 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained() 69 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testFontScaleIsMaintainedInDarkTheme() 72 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintainedInDarkTheme()
|
| D | NightModeCustomApplyOverrideConfigurationTestCase.kt | 42 val activityRule = constant in androidx.appcompat.app.NightModeCustomApplyOverrideConfigurationTestCase 49 val config = activityRule.activity.resources.configuration in testLocaleIsMaintained() 57 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testLocaleIsMaintainedInDarkTheme() 60 val config = activityRule.activity.resources.configuration in testLocaleIsMaintainedInDarkTheme() 67 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained() 74 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testFontScaleIsMaintainedInDarkTheme() 77 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintainedInDarkTheme()
|
| D | NightModeLateOnCreateTestCase.kt | 36 val activityRule = NightModeActivityTestRule(NightModeLateOnCreateActivity::class.java) constant in androidx.appcompat.app.NightModeLateOnCreateTestCase 41 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreateLoop() 44 activityRule.activity.resources.configuration in testActivityRecreateLoop() 49 activityRule, in testActivityRecreateLoop() 55 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreateLoop() 60 activityRule.activity.resources.configuration in testActivityRecreateLoop()
|
| D | NightModePreventOverrideConfigTestCase.kt | 37 val activityRule = NightModeActivityTestRule(NightModePreventOverrideConfigActivity::class.java) constant 42 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreate() 45 activityRule.activity.resources.configuration in testActivityRecreate() 49 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testActivityRecreate() 52 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreate() 58 activityRule.activity.resources.configuration in testActivityRecreate()
|
| D | LocalesLateOnCreateTestCase.kt | 39 @get:Rule val activityRule = LocalesActivityTestRule(LocalesLateOnCreateActivity::class.java) constant in androidx.appcompat.app.LocalesLateOnCreateTestCase 44 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreateLoop() 47 activityRule.activity.resources.configuration in testActivityRecreateLoop() 51 setLocalesAndWaitForRecreate(activityRule, TEST_LOCALE_LIST) in testActivityRecreateLoop() 54 waitUntilState(activityRule.activity, Lifecycle.State.RESUMED) in testActivityRecreateLoop() 59 activityRule.activity.resources.configuration in testActivityRecreateLoop()
|
| D | NightModeCustomApplicationConfigurationTestCase.kt | 49 val activityRule = constant in androidx.appcompat.app.NightModeCustomApplicationConfigurationTestCase 81 val config = activityRule.activity.resources.configuration in testLocaleIsMaintained() 89 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testLocaleIsMaintainedInDarkTheme() 92 val config = activityRule.activity.resources.configuration in testLocaleIsMaintainedInDarkTheme() 99 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained() 106 setNightModeAndWaitForRecreate(activityRule, MODE_NIGHT_YES, setMode) in testFontScaleIsMaintainedInDarkTheme() 109 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintainedInDarkTheme()
|
| D | LocalesConfigChangedUsingInvalidTopLocale.kt | 43 val activityRule: LocalesActivityTestRule<LocalesUpdateActivity> = constant in androidx.appcompat.app.LocalesConfigChangedUsingInvalidTopLocale 53 val initialActivity = activityRule.launchActivity(null) in testInvalidLocaleDoesNotRecreateActivityInLoop() 66 val localesActivity2 = activityRule.activity in testInvalidLocaleDoesNotRecreateActivityInLoop() 70 val localesActivity3 = activityRule.activity in testInvalidLocaleDoesNotRecreateActivityInLoop() 96 activityRule.runOnUiThread { in teardown()
|
| D | LocalesRotateRecreatesActivityWithConfigTestCase.kt | 49 public val activityRule: LocalesActivityTestRule<LocalesUpdateActivity> = constant in androidx.appcompat.app.LocalesRotateRecreatesActivityWithConfigTestCase 64 activityRule.runOnUiThread { in teardown() 72 val initialActivity = activityRule.launchActivity(null) in testRotateRecreatesActivityWithConfig() 75 LocalesUpdateActivity.getConfigLocales(activityRule.activity.resources.configuration) in testRotateRecreatesActivityWithConfig() 79 val localesActivity = activityRule.activity in testRotateRecreatesActivityWithConfig() 98 val rotatedLocalesActivity = activityRule.activity in testRotateRecreatesActivityWithConfig()
|
| D | LocalesRotateDoesNotRecreateActivityTestCase.kt | 46 val activityRule: LocalesActivityTestRule<LocalesRotateDoesNotRecreateActivity> = constant in androidx.appcompat.app.LocalesRotateDoesNotRecreateActivityTestCase 57 val initialActivity = activityRule.launchActivity(null) in testRotateDoesNotRecreateActivity() 63 val localesActivity = activityRule.activity in testRotateDoesNotRecreateActivity() 82 val rotatedLocalesActivity = activityRule.activity in testRotateDoesNotRecreateActivity() 101 activityRule.runOnUiThread { in teardown()
|
| D | NightModeRotateDoesNotRecreateActivityTestCase.kt | 51 public val activityRule: NightModeActivityTestRule<NightModeRotateDoesNotRecreateActivity> = constant in androidx.appcompat.app.NightModeRotateDoesNotRecreateActivityTestCase 66 activityRule.runOnUiThread { in teardown() 75 val initialActivity = activityRule.launchActivity(null) in testRotateDoesNotRecreateActivity() 79 val nightModeActivity = activityRule.activity in testRotateDoesNotRecreateActivity() 97 val rotatedNightModeActivity = activityRule.activity in testRotateDoesNotRecreateActivity()
|
| D | NightModeRotateRecreatesActivityWithConfigTestCase.kt | 54 public val activityRule: NightModeActivityTestRule<NightModeActivity> = constant in androidx.appcompat.app.NightModeRotateRecreatesActivityWithConfigTestCase 69 activityRule.runOnUiThread { in teardown() 78 val initialActivity = activityRule.launchActivity(null) in testRotateRecreatesActivityWithConfig() 82 val nightModeActivity = activityRule.activity in testRotateRecreatesActivityWithConfig() 98 val rotatedNightModeActivity = activityRule.activity in testRotateRecreatesActivityWithConfig()
|
| D | NightModeRtlTestUtilsRegressionTestCase.kt | 46 val activityRule = constant 78 activityRule.launchActivity(null) in setup() 91 val config = activityRule.activity.resources.configuration in testLocaleIsMaintained() 99 val config = activityRule.activity.resources.configuration in testFontScaleIsMaintained()
|
| /appcompat/appcompat/src/androidTest/java/androidx/appcompat/widget/ |
| D | AppCompatAttributeTest.kt | 46 val activityRule = constant in androidx.appcompat.widget.AppCompatAttributeTest 55 activityRule.launchActivity(null) in setup() 69 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testAppCompatImageViewAttributes() 90 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testAppCompatCheckBoxAttributes() 103 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testAppCompatSeekBarAttributes() 116 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testAppCompatTextViewAttributes() 129 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testSwitchCompatAttributes() 142 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testToolbarAttributes() 155 activityRule.activity.layoutInflater.inflate(R.layout.view_attribute_layout, null) in testLinearLayoutCompatAttributes()
|
| D | AppCompatIconsTest.kt | 35 @get:Rule val activityRule = ActivityScenarioRule(AppCompatIconsActivity::class.java) constant in androidx.appcompat.widget.AppCompatIconsTest
|
| /appcompat/appcompat/src/androidTest/java/androidx/appcompat/testutils/ |
| D | LocalesUtils.kt | 99 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setLocalesAndWait() 102 setLocalesAndWait(activityRule.activity, activityRule, locales) in setLocalesAndWait() 107 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setLocalesAndWait() 113 activityRule.runOnUiThread { setLocales(locales) } in setLocalesAndWait() 118 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setLocalesAndWaitForRecreate() 120 ): T = setLocalesAndWaitForRecreate(activityRule.activity, locales) in setLocalesAndWaitForRecreate()
|
| D | NightModeUtils.kt | 78 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setNightModeAndWait() 82 setNightModeAndWait(activityRule.activity, activityRule, nightMode, setMode) in setNightModeAndWait() 87 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setNightModeAndWait() 102 activityRule.runOnUiThread { setNightMode(nightMode, activity, setMode) } in setNightModeAndWait() 107 @Suppress("DEPRECATION") activityRule: androidx.test.rule.ActivityTestRule<T>, in setNightModeAndWaitForRecreate() 110 ): T = setNightModeAndWaitForRecreate(activityRule.activity, nightMode, setMode) in setNightModeAndWaitForRecreate()
|
| /appcompat/appcompat-benchmark/src/androidTest/java/androidx/appcompat/benchmark/ |
| D | ViewInflationBenchmark.kt | 39 val activityRule = androidx.test.rule.ActivityTestRule(AppCompatActivity::class.java) constant in androidx.appcompat.benchmark.ViewInflationBenchmark 43 val context: Context = activityRule.activity in testTwelveKeyInflate()
|
| /appcompat/appcompat/src/androidTest/java/androidx/appcompat/app/g3/ |
| D | FilternatorTest.kt | 42 @get:Rule val activityRule = ActivityScenarioRule(FilternatorActivity::class.java) constant in androidx.appcompat.app.g3.FilternatorTest 56 val activity = activityRule.withActivity { this } in testConfigurationUpdatedOnLandscapeMode()
|
| D | FilternatorTestWithCustomDefault.kt | 51 val activityRule = ActivityScenarioRule(FilternatorActivityWithCustomDefault::class.java) constant 76 val activity = activityRule.withActivity { this } in testConfigurationUpdatedOnLandscapeMode()
|