Home
last modified time | relevance | path

Searched refs:getCurrentFragment (Results 1 – 6 of 6) sorted by relevance

/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/common/
DDualPaneBaseCarSettingsActivityTest.java184 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onActivityCreated_hasFragment_contentFocused()
193 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onTopLevelPreferenceTapped_focusUpdated()
203 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onFragmentLaunched_maintainContentFocus()
205 getCurrentFragment().getPreferenceScreen().getPreference(0).performClick()); in onFragmentLaunched_maintainContentFocus()
207 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onFragmentLaunched_maintainContentFocus()
219 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onBack_maintainContentFocus()
222 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onBack_maintainContentFocus()
232 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onPreferenceDisabled_maintainContentFocus()
234 getCurrentFragment().getPreferenceScreen().getPreference(0).setEnabled(false)); in onPreferenceDisabled_maintainContentFocus()
236 assertThat(getCurrentFragment().getView().hasFocus()).isTrue(); in onPreferenceDisabled_maintainContentFocus()
DTopLevelMenuFragmentTest.java64 assertThat(getCurrentFragment().getClass()).isEqualTo(TestSettingsFragment1.class); in onPreferenceTapped_launchesFragment()
82 assertThat(getCurrentFragment().getClass()).isEqualTo(TestSettingsFragment1.class); in onSamePreferenceTapped_noDuplicateEntry()
93 assertThat(getCurrentFragment().getClass()).isEqualTo(TestSettingsFragment2.class); in onDifferentPreferenceTapped_clearsBackStack()
108 private Fragment getCurrentFragment() { in getCurrentFragment() method in TopLevelMenuFragmentTest
DBaseCarSettingsActivityTestCase.java61 protected PreferenceFragment getCurrentFragment() { in getCurrentFragment() method in BaseCarSettingsActivityTestCase
DSinglePaneBaseCarSettingsActivityTest.java80 assertThat(((BaseTestSettingsFragment) getCurrentFragment()).getUxRestrictions() in onUxRestrictionsChanged_fragmentHasUpdatedUxRestrictions()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DBaseCarSettingsActivity.java258 Fragment currentFragment = getCurrentFragment(); in onUxRestrictionsChanged()
315 protected Fragment getCurrentFragment() { in getCurrentFragment() method in BaseCarSettingsActivity
327 Fragment currentFragment = getCurrentFragment(); in launchIfDifferent()
443 if (getCurrentFragment() == null) { in requestContentPaneFocus()
446 View fragmentView = getCurrentFragment().getView(); in requestContentPaneFocus()
485 if (getCurrentFragment() == null) { in removeGlobalLayoutListener()
488 View fragmentView = getCurrentFragment().getView(); in removeGlobalLayoutListener()
/packages/apps/Car/Settings/src/com/android/car/settings/security/
DVerifyLockChangeActivity.java43 Fragment currentFragment = getCurrentFragment(); in getInitialFragment()