Home
last modified time | relevance | path

Searched refs:locale (Results 1 – 10 of 10) sorted by relevance

/development/apps/CustomLocale/src/com/android/customlocale2/
DCustomLocaleReceiver.java57 String locale = intent.getStringExtra(EXTRA_LOCALE); in onReceive() local
60 boolean is_ok = locale != null; in onReceive()
61 is_ok = is_ok && (locale.length() == 2 || locale.length() == 5); in onReceive()
62 if (is_ok && locale.length() >= 2) { in onReceive()
63 is_ok = Character.isLetter(locale.charAt(0)) && in onReceive()
64 Character.isLetter(locale.charAt(1)); in onReceive()
66 if (is_ok && locale.length() == 5) { in onReceive()
67 is_ok = locale.charAt(2) == '_' && in onReceive()
68 Character.isLetter(locale.charAt(3)) && in onReceive()
69 Character.isLetter(locale.charAt(4)); in onReceive()
[all …]
DCustomLocaleActivity.java134 String locale = data.getExtras().getString(NewLocaleDialog.INTENT_EXTRA_LOCALE); in onActivityResult() local
135 if (locale != null && locale.length() > 0) { in onActivityResult()
141 customLocales = locale; in onActivityResult()
143 customLocales += CUSTOM_LOCALES_SEP + locale; in onActivityResult()
153 getString(R.string.added_custom_locale_1s, locale), in onActivityResult()
161 checkLocaleInList(locale); in onActivityResult()
164 changeSystemLocale(locale); in onActivityResult()
215 for (String locale : locales) { in setupLocaleList()
216 if (locale != null && locale.length() > 0) { in setupLocaleList()
217 Locale loc = new Locale(locale); in setupLocaleList()
[all …]
DChangeLocale.java42 public static boolean changeSystemLocale(String locale) { in changeSystemLocale() argument
44 Log.d(TAG, "Change locale to: " + locale); in changeSystemLocale()
53 String[] langCountry = locale.split("_"); in changeSystemLocale()
57 loc = new Locale(locale); in changeSystemLocale()
60 config.locale = loc; in changeSystemLocale()
DNewLocaleDialog.java59 String locale = mEditText.getText().toString(); in onClick() local
63 Log.d(TAG, "New Locale: " + locale + (select ? " + select" : "")); in onClick()
67 data.putExtra(INTENT_EXTRA_LOCALE, locale); in onClick()
/development/scripts/
Dusb-reset-by-serial.py28 import locale
94 encoding = locale.getdefaultlocale()[1]
/development/samples/browseable/NfcProvisioning/src/com.example.android.nfcprovisioning/
DNfcProvisioningFragment.java77 mEditLocale = (EditText) view.findViewById(R.id.locale); in onViewCreated()
84 mEditLocale.addTextChangedListener(new TextWatcherWrapper(R.id.locale, this)); in onViewCreated()
153 case R.id.locale: in onTextChanged()
DProvisioningValuesLoader.java166 context.getResources().getConfiguration().locale.toString()); in loadSystemValues()
/development/apps/Development/src/com/android/development/
DConfigurationViewer.java44 + "locale=" + c.locale + "\n" in onCreate()
/development/tools/logblame/
Dsample.txt863 Indexing locale 'en_US' took 17 millis
866 Indexing locale 'en_US' took 10 millis
1138 Indexing locale 'en_US' took 35 millis
1141 Indexing locale 'en_US' took 10 millis
2149 Indexing locale 'en_US' took 60 millis
2152 Indexing locale 'en_US' took 22 millis
2417 Indexing locale 'en_US' took 22 millis
2420 Indexing locale 'en_US' took 23 millis
2706 Indexing locale 'en_US' took 42 millis
2709 Indexing locale 'en_US' took 19 millis
/development/tools/winscope/
Dyarn.lock2852 os-locale@^1.4.0:
2854 …resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13…
4369 os-locale "^1.4.0"