Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DTextReadingPreviewControllerTest.java56 private TextReadingPreviewPreference mPreviewPreference; field in TextReadingPreviewControllerTest
73 mPreviewPreference = spy(new TextReadingPreviewPreference(mContext, /* attr= */ null)); in setUp()
82 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapter_verifyAction()
88 verify(mPreviewPreference).setPreviewAdapter(any(PreviewPagerAdapter.class)); in initPreviewerAdapter_verifyAction()
93 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapterWithoutDisplaySizePreference_throwNPE()
98 verify(mPreviewPreference).setPreviewAdapter(any(PreviewPagerAdapter.class)); in initPreviewerAdapterWithoutDisplaySizePreference_throwNPE()
103 when(mPreferenceScreen.findPreference(PREVIEW_KEY)).thenReturn(mPreviewPreference); in initPreviewerAdapterWithoutFontSizePreference_throwNPE()
108 verify(mPreviewPreference).setPreviewAdapter(any(PreviewPagerAdapter.class)); in initPreviewerAdapterWithoutFontSizePreference_throwNPE()
DTextReadingPreferenceFragmentForSetupWizardTest.java71 private TextReadingPreviewPreference mPreviewPreference; field in TextReadingPreferenceFragmentForSetupWizardTest
85 doReturn(mPreviewPreference).when(mFragment).findPreference(PREVIEW_KEY); in setUp()
123 verify(mPreviewPreference).setLayoutMinHorizontalPadding(anyInt()); in adjustPreviewPaddingsForSetupWizard_setPreviewLayoutPaddings()
124 verify(mPreviewPreference).setBackgroundMinHorizontalPadding(anyInt()); in adjustPreviewPaddingsForSetupWizard_setPreviewLayoutPaddings()
/packages/apps/Settings/src/com/android/settings/accessibility/
DTextReadingPreviewController.java60 private TextReadingPreviewPreference mPreviewPreference; field in TextReadingPreviewController
90 mPreviewPreference = screen.findPreference(PREVIEW_KEY); in displayPreference()
110 mPreviewPreference.setPreviewAdapter(pagerAdapter); in displayPreference()
111 mPreviewPreference.setCurrentItem( in displayPreference()
116 mPreviewPreference.setLastLayerIndex(initialPagerIndex); in displayPreference()
123 mPreviewPreference.notifyPreviewPagerChanged(getPagerIndex()); in notifyPreferenceChanged()
137 mPreviewPreference.setCurrentItem(index); in setCurrentItem()
141 return mPreviewPreference.getCurrentItem(); in getCurrentItem()