Searched refs:localeInfo (Results 1 – 9 of 9) sorted by relevance
120 private LocaleInfo(LocaleInfo localeInfo) { in LocaleInfo() argument121 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 …]
78 LocaleStore.LocaleInfo localeInfo = LocaleStore.getAppActivatedLocaleInfo( in getAllAppActiveLocales() local82 if (localeInfo != null && localeInfo.getLocale().getCountry().length() > 0) { in getAllAppActiveLocales()83 map.put(localeInfo.getId(), localeInfo); in getAllAppActiveLocales() local86 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 …]
164 private void setLocaleToListItem(View itemView, LocaleStore.LocaleInfo localeInfo) { in setLocaleToListItem() argument165 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()
63 LocaleInfo localeInfo = LocaleStore.getLocaleInfo(Locale.forLanguageTag("zh-Hant-HK")); in getLevel() local64 assertThat(localeInfo.getParent().toLanguageTag()).isEqualTo("zh-Hant"); in getLevel()65 assertWithMessage("is translated").that(localeInfo.isTranslated()).isTrue(); in getLevel()
132 LocaleInfo localeInfo = adapter.getItem(position); in getLocaleTagList()133 if (localeInfo == null) { in getLocaleTagList()136 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
123 LocaleInfo localeInfo = (LocaleInfo) adapter.getItem(position); in getLocaleTagList()124 if (localeInfo == null) { in getLocaleTagList()127 return localeInfo.getLocale().toLanguageTag(); in getLocaleTagList()
262 LocaleInfo localeInfo = LocaleStore.fromLocale(Locale.forLanguageTag(languageTag)); in createLocaleInfo() local263 localeInfo.mSuggestionFlags = suggestionFlag; in createLocaleInfo()264 localeInfo.setTranslated(true); in createLocaleInfo()265 return localeInfo; in createLocaleInfo()
183 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()
506 for (LocaleInfo localeInfo : localeInfos) { in handleSetMenuLanguage()507 if (mService.localeToMenuLanguage(localeInfo.getLocale()).equals(iso3Language)) { in handleSetMenuLanguage()513 startSetMenuLanguageActivity(localeInfo.getLocale()); in handleSetMenuLanguage()