Home
last modified time | relevance | path

Searched refs:localeInfo (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/core/java/com/android/internal/app/
DLocaleStore.java120 private LocaleInfo(LocaleInfo localeInfo) { in LocaleInfo() argument
121 this.mLocale = localeInfo.getLocale(); in LocaleInfo()
122 this.mId = localeInfo.getId(); in LocaleInfo()
123 this.mParent = localeInfo.getParent(); in LocaleInfo()
124 this.mHasNumberingSystems = localeInfo.mHasNumberingSystems; in LocaleInfo()
125 this.mIsChecked = localeInfo.getChecked(); in LocaleInfo()
126 this.mSuggestionFlags = localeInfo.mSuggestionFlags; in LocaleInfo()
127 this.mIsTranslated = localeInfo.isTranslated(); in LocaleInfo()
128 this.mIsPseudo = localeInfo.mIsPseudo; in LocaleInfo()
370 LocaleInfo localeInfo = new LocaleInfo(cacheInfo); in getAppActivatedLocaleInfo() local
[all …]
DAppLocaleCollector.java78 LocaleStore.LocaleInfo localeInfo = LocaleStore.getAppActivatedLocaleInfo( in getAllAppActiveLocales() local
82 if (localeInfo != null && localeInfo.getLocale().getCountry().length() > 0) { in getAllAppActiveLocales()
83 map.put(localeInfo.getId(), localeInfo); in getAllAppActiveLocales() local
86 map.forEach((language, localeInfo) -> result.add(localeInfo)); in getAllAppActiveLocales()
231 for (LocaleStore.LocaleInfo localeInfo : localeInfoSet) { in getSupportedLocaleList()
233 && localeInfo.getLocale().equals(mAppCurrentLocale.getLocale()); in getSupportedLocaleList()
236 existsInApp = addSystemSuggestionFlag(localeInfo, mAllAppActiveLocales); in getSupportedLocaleList()
237 existsInIme = addSystemSuggestionFlag(localeInfo, mImeLocales); in getSupportedLocaleList()
239 appLocaleList.add(localeInfo); in getSupportedLocaleList()
295 return localeSet.stream().filter(localeInfo -> localeInfo.isSuggested()).collect( in getSuggestedLocales()
[all …]
DBilingualSuggestedLocaleAdapter.java164 private void setLocaleToListItem(View itemView, LocaleStore.LocaleInfo localeInfo) { in setLocaleToListItem() argument
165 if (localeInfo == null) { in setLocaleToListItem()
170 textNative.setText(localeInfo.getLabel(mCountryMode)); in setLocaleToListItem()
171 textNative.setTextLocale(localeInfo.getLocale()); in setLocaleToListItem()
172 textNative.setContentDescription(localeInfo.getContentDescription(mCountryMode)); in setLocaleToListItem()
175 textSecondary.setText(localeInfo.getLocale().getDisplayLanguage(mSecondaryLocale)); in setLocaleToListItem()
178 int layoutDir = TextUtils.getLayoutDirectionFromLocale(localeInfo.getParent()); in setLocaleToListItem()
/frameworks/opt/localepicker/tests/src/com/android/localepicker/
DLocaleStoreTest.java63 LocaleInfo localeInfo = LocaleStore.getLocaleInfo(Locale.forLanguageTag("zh-Hant-HK")); in getLevel() local
64 assertThat(localeInfo.getParent().toLanguageTag()).isEqualTo("zh-Hant"); in getLevel()
65 assertWithMessage("is translated").that(localeInfo.isTranslated()).isTrue(); in getLevel()
DSuggestedLocaleAdapterTest.java132 LocaleInfo localeInfo = adapter.getItem(position); in getLocaleTagList()
133 if (localeInfo == null) { in getLocaleTagList()
136 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DBilingualSuggestedLocaleAdapterTest.java123 LocaleInfo localeInfo = (LocaleInfo) adapter.getItem(position); in getLocaleTagList()
124 if (localeInfo == null) { in getLocaleTagList()
127 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
/frameworks/base/tests/Internal/src/com/android/internal/app/
DAppLocaleCollectorTest.java262 LocaleInfo localeInfo = LocaleStore.fromLocale(Locale.forLanguageTag(languageTag)); in createLocaleInfo() local
263 localeInfo.mSuggestionFlags = suggestionFlag; in createLocaleInfo()
264 localeInfo.setTranslated(true); in createLocaleInfo()
265 return localeInfo; in createLocaleInfo()
DLocaleStoreTest.java183 localeInfos.forEach(localeInfo -> { in getLevelLocales_languageTier_returnAllSupportLanguages()
184 assertTrue(localeInfo.getLocale().getCountry().isEmpty()); in getLevelLocales_languageTier_returnAllSupportLanguages()
211 localeInfos.forEach(localeInfo -> { in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
212 assertEquals("en", localeInfo.getLocale().getLanguage()); in getLevelLocales_regionTierAndParentIsEn_returnEnLocales()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecLocalDevicePlayback.java506 for (LocaleInfo localeInfo : localeInfos) { in handleSetMenuLanguage()
507 if (mService.localeToMenuLanguage(localeInfo.getLocale()).equals(iso3Language)) { in handleSetMenuLanguage()
513 startSetMenuLanguageActivity(localeInfo.getLocale()); in handleSetMenuLanguage()