/frameworks/base/core/java/com/android/internal/app/ |
D | AppLocaleCollector.java | 48 private LocaleStore.LocaleInfo mAppCurrentLocale; 49 private Set<LocaleStore.LocaleInfo> mAllAppActiveLocales; 50 private Set<LocaleStore.LocaleInfo> mImeLocales; 61 public LocaleStore.LocaleInfo getAppCurrentLocale() { in getAppCurrentLocale() 62 return LocaleStore.getAppActivatedLocaleInfo(mContext, mAppPackageName, true); in getAppCurrentLocale() 70 public Set<LocaleStore.LocaleInfo> getAllAppActiveLocales() { in getAllAppActiveLocales() 73 HashSet<LocaleStore.LocaleInfo> result = new HashSet<>(); in getAllAppActiveLocales() 75 HashMap<String, LocaleStore.LocaleInfo> map = new HashMap<>(); in getAllAppActiveLocales() 78 LocaleStore.LocaleInfo localeInfo = LocaleStore.getAppActivatedLocaleInfo( in getAllAppActiveLocales() 97 public Set<LocaleStore.LocaleInfo> getActiveImeLocales() { in getActiveImeLocales() [all …]
|
D | SuggestedLocaleAdapter.java | 63 protected ArrayList<LocaleStore.LocaleInfo> mLocaleOptions; 64 protected ArrayList<LocaleStore.LocaleInfo> mOriginalLocaleOptions; 75 public SuggestedLocaleAdapter(Set<LocaleStore.LocaleInfo> localeOptions, boolean countryMode) { in SuggestedLocaleAdapter() 79 public SuggestedLocaleAdapter(Set<LocaleStore.LocaleInfo> localeOptions, boolean countryMode, in SuggestedLocaleAdapter() 85 for (LocaleStore.LocaleInfo li : localeOptions) { in SuggestedLocaleAdapter() 116 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getItemViewType() 132 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getItemViewType() 245 LocaleStore.LocaleInfo info = (LocaleStore.LocaleInfo) getItem(position); in getView() 283 if (((LocaleStore.LocaleInfo) getItem(position)).isAppCurrentLocale()) { in getNewViewIfNeeded() 352 ArrayList<LocaleStore.LocaleInfo> values; in performFiltering() [all …]
|
D | SystemLocaleCollector.java | 52 public Set<LocaleStore.LocaleInfo> getSupportedLocaleList(LocaleStore.LocaleInfo parent, in getSupportedLocaleList() 55 Set<LocaleStore.LocaleInfo> localeList; in getSupportedLocaleList() 57 localeList = LocaleStore.getLevelLocales(mContext, in getSupportedLocaleList() 60 localeList = LocaleStore.getLevelLocales(mContext, langTagsToIgnore, in getSupportedLocaleList()
|
D | BilingualSuggestedLocaleAdapter.java | 42 private LocaleStore.LocaleInfo mSelectedLocaleInfo; 45 Set<LocaleStore.LocaleInfo> localeOptions, in BilingualSuggestedLocaleAdapter() 52 Set<LocaleStore.LocaleInfo> localeOptions, in BilingualSuggestedLocaleAdapter() 105 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getView() 118 public void setSelectedLocaleInfo(LocaleStore.LocaleInfo info) { in setSelectedLocaleInfo() 124 public LocaleStore.LocaleInfo getSelectedLocaleInfo() { in getSelectedLocaleInfo() 128 private boolean isSelectedLocaleInfo(LocaleStore.LocaleInfo item) { in isSelectedLocaleInfo() 164 private void setLocaleToListItem(View itemView, LocaleStore.LocaleInfo localeInfo) { in setLocaleToListItem()
|
D | LocalePickerWithRegion.java | 54 private Set<LocaleStore.LocaleInfo> mLocaleList; 55 private LocaleStore.LocaleInfo mParentLocale; 76 void onLocaleSelected(LocaleStore.LocaleInfo locale); in onLocaleSelected() 87 Set<LocaleStore.LocaleInfo> getSupportedLocaleList(LocaleStore.LocaleInfo parent, in getSupportedLocaleList() 95 LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, in createNumberingSystemPicker() 107 LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, in createCountryPicker() 161 private boolean setListener(LocaleSelectedListener listener, LocaleStore.LocaleInfo parent, in setListener() 265 final LocaleStore.LocaleInfo locale = in onListItemClick() 266 (LocaleStore.LocaleInfo) parent.getAdapter().getItem(position); in onListItemClick()
|
D | LocaleHelper.java | 210 public static final class LocaleInfoComparator implements Comparator<LocaleStore.LocaleInfo> { 250 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { in compare()
|
D | LocaleStore.java | 43 public class LocaleStore { class 48 private static final String TAG = LocaleStore.class.getSimpleName(); 618 for (LocaleStore.LocaleInfo li : supportedLocaleInfos.values()) { in getTierLocales()
|
/frameworks/opt/localepicker/tests/src/com/android/localepicker/ |
D | SuggestedLocaleAdapterTest.java | 22 import com.android.localepicker.LocaleStore.LocaleInfo; 44 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 45 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.GERMANY)); in setUp() 46 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.JAPAN)); in setUp() 47 LocaleInfo korea = LocaleStore.getLocaleInfo(Locale.KOREA); in setUp() 53 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 54 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.UK)); in setUp() 55 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.CANADA)); in setUp() 56 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.forLanguageTag("en-IN"))); in setUp() 57 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.forLanguageTag("en-HK"))); in setUp() [all …]
|
D | LocaleHelperTest.java | 22 import com.android.localepicker.LocaleStore.LocaleInfo; 73 LocaleInfo germany = LocaleStore.getLocaleInfo(Locale.GERMANY); in localeInfoComparator_shouldSortLocales() 74 LocaleInfo unitedStates = LocaleStore.getLocaleInfo(Locale.US); in localeInfoComparator_shouldSortLocales() 75 LocaleInfo japan = LocaleStore.getLocaleInfo(Locale.JAPAN); in localeInfoComparator_shouldSortLocales()
|
D | LocaleStoreTest.java | 29 import com.android.localepicker.LocaleStore.LocaleInfo; 58 LocaleStore.fillCache(application); in fillCache() 63 LocaleInfo localeInfo = LocaleStore.getLocaleInfo(Locale.forLanguageTag("zh-Hant-HK")); in getLevel()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/app/ |
D | BilingualSuggestedLocaleAdapterTest.java | 24 import com.android.internal.app.LocaleStore.LocaleInfo; 45 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 46 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.GERMANY)); in setUp() 47 mLocaleOptions.add(LocaleStore.getLocaleInfo(Locale.JAPAN)); in setUp() 48 LocaleInfo korea = LocaleStore.getLocaleInfo(Locale.KOREA); in setUp() 54 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.US)); in setUp() 55 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.UK)); in setUp() 56 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.CANADA)); in setUp() 57 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.forLanguageTag("en-IN"))); in setUp() 58 mEnglishCountryOptions.add(LocaleStore.getLocaleInfo(Locale.forLanguageTag("en-HK"))); in setUp() [all …]
|
/frameworks/base/tests/Internal/src/com/android/internal/app/ |
D | LocaleStoreTest.java | 30 import com.android.internal.app.LocaleStore.LocaleInfo; 55 Set<LocaleInfo> localeSet = LocaleStore.transformImeLanguageTagToLocaleInfo(list); in testTransformImeLanguageTagToLocaleInfo() 74 Set<LocaleInfo> localeSet = LocaleStore.transformImeLanguageTagToLocaleInfo(list); in testTransformImeLanguageTagToLocaleInfo_duplicateTagFilter() 89 LocaleStore.convertExplicitLocales( in convertExplicitLocales_noExplicitLcoales_returnEmptyHashMap() 103 LocaleStore.convertExplicitLocales(localelist, supportedLocale); in convertExplicitLocales_hasEmptyLocale_receiveException() 117 LocaleStore.convertExplicitLocales(locales, supportedLocale); in convertExplicitLocales_hasSameLocale_returnNonSameLocales() 129 LocaleStore.convertExplicitLocales(locales, supportedLocale); in convertExplicitLocales_hasEnUs_resultHasParentEn() 140 LocaleStore.convertExplicitLocales(locales, supportedLocale); in convertExplicitLocales_hasZhTw_resultZhHantTw() 151 LocaleStore.convertExplicitLocales(locales, supportedLocale); in convertExplicitLocales_nonRegularFormat_resultEmptyContry() 163 LocaleStore.convertExplicitLocales(locales, supportedLocale); in convertExplicitLocales_differentEnFormat() [all …]
|
D | AppLocaleCollectorTest.java | 34 import com.android.internal.app.LocaleStore.LocaleInfo; 54 private LocaleStore.LocaleInfo mAppCurrentLocale; 83 Set<LocaleStore.LocaleInfo> list = in testGetSystemCurrentLocales() 88 for (LocaleStore.LocaleInfo info : list) { in testGetSystemCurrentLocales() 141 for (LocaleStore.LocaleInfo info: result) { in testGetSupportedLocaleList_filterNonAppsupportedSystemLanguage() 245 private Set<LocaleStore.LocaleInfo> getSystemCurrentLocales(String []languageTags) { in getSystemCurrentLocales() 246 HashSet<LocaleStore.LocaleInfo> hs = new HashSet<>(languageTags.length); in getSystemCurrentLocales() 262 LocaleInfo localeInfo = LocaleStore.fromLocale(Locale.forLanguageTag(languageTag)); in createLocaleInfo()
|
/frameworks/opt/localepicker/src/com/android/localepicker/ |
D | SuggestedLocaleAdapter.java | 63 private ArrayList<LocaleStore.LocaleInfo> mLocaleOptions; 64 private ArrayList<LocaleStore.LocaleInfo> mOriginalLocaleOptions; 73 public SuggestedLocaleAdapter(Set<LocaleStore.LocaleInfo> localeOptions, boolean countryMode) { in SuggestedLocaleAdapter() 76 for (LocaleStore.LocaleInfo li : localeOptions) { in SuggestedLocaleAdapter() 128 public LocaleStore.LocaleInfo getItem(int position) { in getItem() 206 LocaleStore.LocaleInfo item = (LocaleStore.LocaleInfo) getItem(position); in getView() 255 ArrayList<LocaleStore.LocaleInfo> values; in performFiltering() 266 final ArrayList<LocaleStore.LocaleInfo> newValues = new ArrayList<>(); in performFiltering() 269 final LocaleStore.LocaleInfo value = values.get(i); in performFiltering() 307 mLocaleOptions = (ArrayList<LocaleStore.LocaleInfo>) results.values; in publishResults() [all …]
|
D | LocaleHelper.java | 181 public static final class LocaleInfoComparator implements Comparator<LocaleStore.LocaleInfo> { 219 public int compare(LocaleStore.LocaleInfo lhs, LocaleStore.LocaleInfo rhs) { in compare()
|
D | LocaleStore.java | 36 public class LocaleStore { class 355 ArrayList<LocaleStore.LocaleInfo> localeInfos = new ArrayList<>(sLocaleCache.values()); in getLevelLocales() 356 for (LocaleStore.LocaleInfo li : localeInfos) { in getLevelLocales()
|
/frameworks/base/config/ |
D | preloaded-classes | 15351 java.time.format.DateTimeTextProvider$LocaleStore
|
D | boot-image-profile.txt | 26968 HSPLjava/time/format/DateTimeTextProvider$LocaleStore;-><init>(Ljava/util/Map;)V 47928 Ljava/time/format/DateTimeTextProvider$LocaleStore;
|