Home
last modified time | relevance | path

Searched refs:LocaleDialogFragment (Results 1 – 5 of 5) sorted by relevance

/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java19 import static com.android.settings.localepicker.LocaleDialogFragment.ARG_DIALOG_TYPE;
20 import static com.android.settings.localepicker.LocaleDialogFragment.ARG_TARGET_LOCALE;
21 import static com.android.settings.localepicker.LocaleDialogFragment.DIALOG_CONFIRM_SYSTEM_DEFAULT;
56 private LocaleDialogFragment mDialogFragment;
62 mDialogFragment = new LocaleDialogFragment(); in setUp()
78 LocaleDialogFragment.LocaleDialogController controller = in getDialogContent_confirmSystemDefault_has2ButtonText()
82 LocaleDialogFragment.LocaleDialogController.DialogContent dialogContent = in getDialogContent_confirmSystemDefault_has2ButtonText()
94 setArgument(LocaleDialogFragment.DIALOG_NOT_AVAILABLE_LOCALE); in getDialogContent_unavailableLocale_has1ButtonText()
95 LocaleDialogFragment.LocaleDialogController controller = in getDialogContent_unavailableLocale_has1ButtonText()
99 LocaleDialogFragment.LocaleDialogController.DialogContent dialogContent = in getDialogContent_unavailableLocale_has1ButtonText()
[all …]
/packages/apps/Settings/src/com/android/settings/localepicker/
DLocaleListEditor.java23 import static com.android.settings.localepicker.LocaleDialogFragment.DIALOG_ADD_SYSTEM_LOCALE;
24 import static com.android.settings.localepicker.LocaleDialogFragment.DIALOG_CONFIRM_SYSTEM_DEFAULT;
168 final LocaleDialogFragment dialogFragment = in onViewStateRestored()
169 (LocaleDialogFragment) mFragmentManager.findFragmentByTag( in onViewStateRestored()
234 args.putInt(LocaleDialogFragment.ARG_DIALOG_TYPE, in onActivityResult()
235 LocaleDialogFragment.DIALOG_NOT_AVAILABLE_LOCALE); in onActivityResult()
236 args.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, localeInfo); in onActivityResult()
237 LocaleDialogFragment localeDialogFragment = LocaleDialogFragment.newInstance(); in onActivityResult()
251 LocaleDialogFragment.ARG_TARGET_LOCALE); in onActivityResult()
337 final LocaleDialogFragment localeDialogFragment = in showDialogForAddedLocale()
[all …]
DLocaleDialogFragment.java49 public class LocaleDialogFragment extends InstrumentedDialogFragment { class
50 private static final String TAG = LocaleDialogFragment.class.getSimpleName();
68 public static LocaleDialogFragment newInstance() { in newInstance()
69 return new LocaleDialogFragment(); in newInstance()
171 LocaleDialogFragment dialogFragment, LocaleListEditor parentFragment) { in getLocaleDialogController()
184 @NonNull Context context, @NonNull LocaleDialogFragment dialogFragment, in LocaleDialogController()
208 bundle.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, mLocaleInfo); in onClick()
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/
DLocaleDialogFragmentTest.java19 import static com.android.settings.localepicker.LocaleDialogFragment.ARG_DIALOG_TYPE;
20 import static com.android.settings.localepicker.LocaleDialogFragment.ARG_TARGET_LOCALE;
21 import static com.android.settings.localepicker.LocaleDialogFragment.DIALOG_CONFIRM_SYSTEM_DEFAULT;
65 private LocaleDialogFragment mDialogFragment;
70 mDialogFragment = LocaleDialogFragment.newInstance(); in setUp()
DLocaleListEditorTest.java20 import static com.android.settings.localepicker.LocaleDialogFragment.DIALOG_ADD_SYSTEM_LOCALE;
294 verify(mFragmentTransaction).add(any(LocaleDialogFragment.class), in showConfirmDialog_systemLocaleSelected_shouldShowLocaleChangeDialog()
318 verify(mFragmentTransaction).add(any(LocaleDialogFragment.class), in onActivityResult_ResultCodeIsOk_showNotAvailableDialog()
344 verify(mFragmentTransaction).add(any(LocaleDialogFragment.class), in onTouch_dragDifferentLocaleToTop_showConfirmDialog()
367 verify(mFragmentTransaction).add(any(LocaleDialogFragment.class), in showDiallogForAddedLocale_showConfirmDialog()
379 bundle.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, info); in showDiallogForAddedLocale_clickAdd()
395 bundle.putSerializable(LocaleDialogFragment.ARG_TARGET_LOCALE, info); in showDiallogForAddedLocale_clickCancel()
414 verify(mFragmentTransaction, never()).add(any(LocaleDialogFragment.class), in showDiallogForAddedLocale_invalidLocale_noDialog()
428 verify(mFragmentTransaction, never()).add(any(LocaleDialogFragment.class), in showDiallogForAddedLocale_noDialogType_noDialog()
443 verify(mFragmentTransaction, never()).add(any(LocaleDialogFragment.class), in showDiallogForAddedLocale_inSystemLocale_noDialog()