/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | LocaleSet.java | 34 private final LocaleList mLocaleList; field in LocaleSet 37 mLocaleList = localeList; in LocaleSet() 111 return mLocaleList; in getAllLocales() 125 for (int i = 0; i < mLocaleList.size(); i++) { in shouldPreferJapanese() 126 final Locale l = mLocaleList.get(i); in shouldPreferJapanese() 144 for (int i = 0; i < mLocaleList.size(); i++) { in shouldPreferSimplifiedChinese() 145 final Locale l = mLocaleList.get(i); in shouldPreferSimplifiedChinese() 163 return Objects.equals(mLocaleList, LocaleList.getDefault()); in isCurrent() 173 return mLocaleList.equals(other.mLocaleList); in equals() 180 return mLocaleList.toString(); in toString()
|
/packages/apps/Settings/src/com/android/settings/regionalpreferences/ |
D | RegionPickerBaseListPreferenceController.java | 51 private Set<LocaleInfo> mLocaleList; field in RegionPickerBaseListPreferenceController 59 mLocaleList = getLocaleCollectorController(context).getSupportedLocaleList(null, in RegionPickerBaseListPreferenceController() 62 mLocaleOptions.ensureCapacity(mLocaleList.size()); in RegionPickerBaseListPreferenceController() 85 mLocaleList = getLocaleCollectorController(mContext).getSupportedLocaleList( in updatePreferences() 89 mLocaleOptions.ensureCapacity(mLocaleList.size()); in updatePreferences() 132 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSuggestedLocaleList() 133 mLocaleOptions.addAll(mLocaleList.stream() in getSuggestedLocaleList() 144 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSupportedLocaleList() 145 mLocaleOptions.addAll(mLocaleList.stream() in getSupportedLocaleList()
|
D | NumberingSystemController.java | 34 private LocaleList mLocaleList; field in NumberingSystemController 39 mLocaleList = getNumberingSystemLocale(); in NumberingSystemController() 55 return mLocaleList.isEmpty() ? CONDITIONALLY_UNAVAILABLE : AVAILABLE; in getAvailabilityStatus()
|
D | NewNumberingSystemController.java | 37 private LocaleList mLocaleList; field in NewNumberingSystemController 42 mLocaleList = getNumberingSystemLocale(); in NewNumberingSystemController() 59 return mLocaleList.isEmpty() ? CONDITIONALLY_UNAVAILABLE : AVAILABLE; in getAvailabilityStatus()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/localepicker/ |
D | SystemLocaleAllListPreferenceControllerTest.java | 81 private List<LocaleStore.LocaleInfo> mLocaleList; field in SystemLocaleAllListPreferenceControllerTest 122 mLocaleList = new ArrayList<>(); in setUpLocaleConditions() 126 mLocaleList.add(mSupportedLocaleInfo_1); in setUpLocaleConditions() 130 mLocaleList.add(mSupportedLocaleInfo_2); in setUpLocaleConditions() 135 ReflectionHelpers.setField(mController, "mLocaleOptions", mLocaleList); in setupPreference_hasSupportedPreference_categoryIsVisible() 137 mController.setupPreference(mLocaleList, mPreferences); in setupPreference_hasSupportedPreference_categoryIsVisible() 140 assertThat(mPreferenceCategory.getPreferenceCount()).isEqualTo(mLocaleList.size()); in setupPreference_hasSupportedPreference_categoryIsVisible() 145 mLocaleList.clear(); in setupPreference_noSupportedPreference_categoryIsGone() 146 ReflectionHelpers.setField(mController, "mLocaleOptions", mLocaleList); in setupPreference_noSupportedPreference_categoryIsGone() 148 mController.setupPreference(mLocaleList, mPreferences); in setupPreference_noSupportedPreference_categoryIsGone()
|
D | LocaleListEditorTest.java | 113 private List<LocaleStore.LocaleInfo> mLocaleList; field in LocaleListEditorTest 283 when(mAdapter.getFeedItemList()).thenReturn(mLocaleList); in showConfirmDialog_systemLocaleSelected_shouldShowLocaleChangeDialog() 317 when(mAdapter.getFeedItemList()).thenReturn(mLocaleList); in showConfirmDialog_2ndLocaleSelected_shouldShowLocaleChangeDialog() 388 when(mAdapter.getFeedItemList()).thenReturn(mLocaleList); in onTouch_dragDifferentLocaleToTop_showConfirmDialog() 402 when(mAdapter.getFeedItemList()).thenReturn(mLocaleList); in onTouch_dragSameLocaleToTop_updateAdapter() 511 mLocaleList = new ArrayList<>(); in onBindViewHolder_shouldSetCheckedBoxText() 512 mLocaleList.add(mLocaleInfo); in onBindViewHolder_shouldSetCheckedBoxText() 516 mAdapter = spy(new LocaleDragAndDropAdapter(mLocaleListEditor, mLocaleList)); in onBindViewHolder_shouldSetCheckedBoxText() 517 ReflectionHelpers.setField(mAdapter, "mFeedItemList", mLocaleList); in onBindViewHolder_shouldSetCheckedBoxText() 518 ReflectionHelpers.setField(mAdapter, "mCacheItemList", new ArrayList<>(mLocaleList)); in onBindViewHolder_shouldSetCheckedBoxText() [all …]
|
D | SystemLocaleSuggestedListPreferenceControllerTest.java | 81 private List<LocaleStore.LocaleInfo> mLocaleList; field in SystemLocaleSuggestedListPreferenceControllerTest 124 mLocaleList = new ArrayList<>(); in setUpLocaleConditions() 128 mLocaleList.add(mSuggestedLocaleInfo_1); in setUpLocaleConditions() 132 mLocaleList.add(mSuggestedLocaleInfo_2); in setUpLocaleConditions() 138 mController.setupPreference(mLocaleList, mPreferences); in displayPreference_hasSuggestedPreference_categoryIsVisible() 146 mLocaleList.clear(); in displayPreference_noSuggestedPreference_categoryIsGone() 148 mController.setupPreference(mLocaleList, mPreferences); in displayPreference_noSuggestedPreference_categoryIsGone()
|
D | AppLocaleSuggestedListPreferenceControllerTest.java | 89 private List<LocaleStore.LocaleInfo> mLocaleList; field in AppLocaleSuggestedListPreferenceControllerTest 142 mLocaleList = new ArrayList<>(); in setUpLocaleConditions() 147 mLocaleList.add(mSuggestedLocaleInfo_1); in setUpLocaleConditions() 152 mLocaleList.add(mSuggestedLocaleInfo_2); in setUpLocaleConditions() 174 mController.setupSuggestedPreference(mLocaleList, mPreferences); in onPreferenceClick_shouldShowAppLanguagePage()
|
/packages/apps/Settings/src/com/android/settings/localepicker/ |
D | LocalePickerBaseListPreferenceController.java | 65 private Set<LocaleStore.LocaleInfo> mLocaleList; field in LocalePickerBaseListPreferenceController 222 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSuggestedLocaleList() 223 mLocaleOptions.addAll(mLocaleList.stream() in getSuggestedLocaleList() 235 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSupportedLocaleList() 236 mLocaleOptions.addAll(mLocaleList.stream() in getSupportedLocaleList() 246 mLocaleList = getLocaleCollectorController(mContext).getSupportedLocaleList( in setupLocaleList() 248 mLocaleOptions = new ArrayList<>(mLocaleList.size()); in setupLocaleList() 265 for (LocaleStore.LocaleInfo locale : mLocaleList) { in switchFragment() 305 mLocaleList = getLocaleCollectorController(mContext).getSupportedLocaleList(localeInfo, in shouldShowLocaleEditor() 313 return mLocaleList.size() == 1 || isSystemLocale || localeInfo.isSuggested() in shouldShowLocaleEditor()
|
D | AppLocaleAllListPreferenceController.java | 69 private Set<LocaleStore.LocaleInfo> mLocaleList; field in AppLocaleAllListPreferenceController 208 mLocaleList = mAppLocaleCollector.getSupportedLocaleList(localeInfo, in shouldShowAppLanguage() 216 return mLocaleList.size() == 1 || isSystemLocale || mIsNumberingSystemMode in shouldShowAppLanguage() 222 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSupportedLocaleList() 224 mLocaleList.stream().filter(localeInfo -> !localeInfo.isSuggested()).collect( in getSupportedLocaleList() 233 mLocaleList = mAppLocaleCollector.getSupportedLocaleList(mParentLocale, in setupLocaleList()
|
D | AppLocaleSuggestedListPreferenceController.java | 62 private Set<LocaleStore.LocaleInfo> mLocaleList; field in AppLocaleSuggestedListPreferenceController 188 if (mLocaleList != null && !mLocaleList.isEmpty()) { in getSuggestedLocaleList() 190 mLocaleList.stream().filter(localeInfo -> (localeInfo.isSuggested())).collect( in getSuggestedLocaleList() 199 mLocaleList = mAppLocaleCollector.getSupportedLocaleList(mParentLocale, in setupLocaleList()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/localepicker/ |
D | SystemLocaleAllListPreferenceControllerTest.java | 55 private Set<LocaleStore.LocaleInfo> mLocaleList; field in SystemLocaleAllListPreferenceControllerTest 67 mLocaleList = systemLocaleCollector.getSupportedLocaleList(null, false, false); in setUp() 80 for (LocaleStore.LocaleInfo localeInfo : mLocaleList) { in displayPreference_supportedLocaleShouldBeInSupportedCategory() 92 for (LocaleStore.LocaleInfo localeInfo : mLocaleList) { in displayPreference_hasSupportedPreference_categoryIsVisible()
|
D | SystemLocaleSuggestedListPreferenceControllerTest.java | 62 private Set<LocaleStore.LocaleInfo> mLocaleList; field in SystemLocaleSuggestedListPreferenceControllerTest 74 mLocaleList = systemLocaleCollector.getSupportedLocaleList(null, false, false); in setUp() 87 for (LocaleStore.LocaleInfo localeInfo : mLocaleList) { in displayPreference_suggestedLocaleShouldBeInSuggestedCategory() 99 for (LocaleStore.LocaleInfo localeInfo : mLocaleList) { in displayPreference_hasSuggestedPreference_categoryIsVisible()
|
/packages/modules/Permission/PermissionController/iconloaderlib/src/com/android/launcher3/icons/cache/ |
D | BaseIconCache.java | 90 protected LocaleList mLocaleList = LocaleList.getEmptyLocaleList(); field in BaseIconCache 230 mLocaleList = mContext.getResources().getConfiguration().getLocales(); in updateSystemState() 231 mSystemState = mLocaleList.toLanguageTags() + "," + Build.VERSION.SDK_INT; in updateSystemState() 272 componentName.getPackageName(), cachingLogic.getKeywords(object, mLocaleList)); in addIconToDBAndMemCache()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | SsidTranslatorTest.java | 59 private @Mock LocaleList mLocaleList; field in SsidTranslatorTest 68 when(mConfiguration.getLocales()).thenReturn(mLocaleList); in setUp() 69 when(mLocaleList.get(0)).thenReturn(mLocale); in setUp()
|