Searched refs:locale (Results 26 - 50 of 130) sorted by relevance

123456

/frameworks/base/tools/layoutlib/bridge/src/android/text/
H A DStaticLayout_Delegate.java28 /*package*/ static int[] nLineBreakOpportunities(String locale, char[] text, int length, argument
30 BreakIterator iterator = BreakIterator.getLineInstance(new ULocale(locale));
/frameworks/support/v4/ics-mr1/android/support/v4/speech/tts/
H A DTextToSpeechICSMR1.java17 static Set<String> getFeatures(TextToSpeech tts, Locale locale) { argument
20 return tts.getFeatures(locale);
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java82 * service to expose multiple backends for a single locale. Each one of them can have a different
93 * {@link #onGetDefaultVoiceNameFor(String, String, String)} is a link between locale and voice
98 * If the client uses a voice instead of a locale, {@link SynthesisRequest} will contain the
102 * pre-existing locale-based implementation.
171 * @return Code indicating the support status for the locale.
211 * @return Code indicating the support status for the locale.
255 private int getExpectedLanguageAvailableStatus(Locale locale) { argument
257 if (locale.getVariant().isEmpty()) {
258 if (locale.getCountry().isEmpty()) {
274 * the locale'
[all...]
/frameworks/base/location/java/android/location/
H A DGeocoder.java75 * @param locale the desired Locale for the query results
79 public Geocoder(Context context, Locale locale) { argument
80 if (locale == null) {
81 throw new NullPointerException("locale == null");
83 mParams = new GeocoderParams(context, locale);
101 * The returned addresses will be localized for the locale
151 * returned addresses will be localized for the locale provided to
193 * returned addresses will be localized for the locale provided to
/frameworks/base/core/java/android/text/method/
H A DAllCapsTransformationMethod.java26 * Transforms source text into an ALL CAPS string, locale-aware.
37 mLocale = context.getResources().getConfiguration().locale;
H A DWordIterator.java44 * Constructs a WordIterator using the default locale.
51 * Constructs a new WordIterator for the specified locale.
52 * @param locale The locale to be used when analysing the text.
54 public WordIterator(Locale locale) { argument
55 mIterator = BreakIterator.getWordInstance(locale);
/frameworks/support/v4/ics/android/support/v4/view/
H A DPagerTitleStripIcs.java37 mLocale = context.getResources().getConfiguration().locale;
/frameworks/support/v7/appcompat/src/android/support/v7/internal/text/
H A DAllCapsTransformationMethod.java33 mLocale = context.getResources().getConfiguration().locale;
/frameworks/base/core/java/android/text/style/
H A DSuggestionSpan.java111 * @param locale Locale of the suggestions
115 public SuggestionSpan(Locale locale, String[] suggestions, int flags) { argument
116 this(null, locale, suggestions, flags, null);
121 * @param locale locale Locale of the suggestions
128 public SuggestionSpan(Context context, Locale locale, String[] suggestions, int flags, argument
133 if (locale != null) {
134 mLocaleString = locale.toString();
136 mLocaleString = context.getResources().getConfiguration().locale.toString();
138 Log.e("SuggestionSpan", "No locale o
283 hashCodeInternal(String[] suggestions, String locale, String notificationTargetClassName) argument
[all...]
/frameworks/base/core/tests/inputmethodtests/src/android/os/
H A DInputMethodSubtypeArrayTest.java68 private static InputMethodSubtype createDummySubtype(final int id, final String locale) { argument
73 .setSubtypeLocale(locale)
H A DInputMethodSubtypeTest.java52 // The locale string in InputMethodSubtype has accepted an arbitrary text actually,
53 // regardless of the validity of the text as a locale string.
55 verifyLocale("apparently invalid locale string");
93 private static final InputMethodSubtype createDummySubtype(final String locale) { argument
97 .setSubtypeLocale(locale)
/frameworks/base/include/androidfw/
H A DAssetManager.h127 * Set the current locale and vendor. The locale can change during
133 void setLocale(const char* locale);
139 void setConfiguration(const ResTable_config& config, const char* locale = NULL);
148 * This will search through locale-specific and vendor-specific
160 * but aren't assets. These sit outside the usual "locale/vendor"
176 * locale-specific, and generic assets stored loosely or in asset
188 * locale-specific, and generic assets stored loosely or in asset
249 const asset_path& path, const char* locale, const char* vendor);
250 String8 createPathNameLocked(const asset_path& path, const char* locale,
[all...]
/frameworks/base/tools/split-select/
H A DRuleGenerator.cpp102 if (group[index].config.locale != 0) {
103 sp<Rule> locale = new Rule(); local
104 locale->op = Rule::EQUALS;
105 locale->key = Rule::LANGUAGE;
108 locale->stringArgs.add(String8(str));
109 rootRule->subrules.add(locale);
/frameworks/av/media/libmedia/
H A DMediaScanner.cpp40 void MediaScanner::setLocale(const char *locale) { argument
45 if (locale) {
46 mLocale = strdup(locale);
50 const char *MediaScanner::locale() const { function in class:android::MediaScanner
100 client.setLocale(locale());
/frameworks/base/core/java/android/hardware/soundtrigger/
H A DKeyphraseEnrollmentInfo.java79 * Intent extra: The voice locale to use while managing the keyphrase.
206 // Try adding locales if the locale string is non-empty.
250 * for the locale.
257 * @param locale The locale for which the enrollment needs to be performed.
259 * given keyphrase/locale combination isn't possible.
261 public Intent getManageKeyphraseIntent(int action, String keyphrase, Locale locale) { argument
267 if (getKeyphraseMetadata(keyphrase, locale) != null) {
271 .putExtra(EXTRA_VOICE_KEYPHRASE_LOCALE, locale.toLanguageTag())
279 * Gets the {@link KeyphraseMetadata} for the given keyphrase and locale, nul
288 getKeyphraseMetadata(String keyphrase, Locale locale) argument
[all...]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
H A DKeyguardStatusView.java224 final Locale locale = Locale.getDefault();
231 final String key = locale.toString() + dateViewSkel + clockView12Skel + clockView24Skel;
234 dateView = DateFormat.getBestDateTimePattern(locale, dateViewSkel);
236 clockView12 = DateFormat.getBestDateTimePattern(locale, clockView12Skel);
243 clockView24 = DateFormat.getBestDateTimePattern(locale, clockView24Skel);
/frameworks/base/services/core/java/com/android/server/
H A DTextServicesManagerService.java177 // TODO: Update for each locale
329 // TODO: find an appropriate spell checker for specified locale
330 private SpellCheckerInfo findAvailSpellCheckerLocked(String locale, String prefPackage) { argument
356 public SpellCheckerInfo getCurrentSpellChecker(String locale) { argument
378 // TODO: Save SpellCheckerSubtype by supported languages by looking at "locale".
381 String locale, boolean allowImplicitlySelectedSubtype) {
418 // 1. Use keyboard locale if available in the spell checker
424 // 2. Use System locale if available in the spell checker
425 candidateLocale = mContext.getResources().getConfiguration().locale.toString();
444 Slog.w(TAG, "Return subtype " + scs.hashCode() + ", input= " + locale
380 getCurrentSpellCheckerSubtype( String locale, boolean allowImplicitlySelectedSubtype) argument
459 getSpellCheckerService(String sciId, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, Bundle bundle) argument
539 startSpellCheckerServiceInnerLocked(SpellCheckerInfo info, String locale, ITextServicesSessionListener tsListener, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
601 setCurrentSpellChecker(String locale, String sciId) argument
618 setCurrentSpellCheckerSubtype(String locale, int hashCode) argument
787 SpellCheckerBindGroup(InternalServiceConnection connection, ITextServicesSessionListener listener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
823 addListener(ITextServicesSessionListener tsListener, String locale, ISpellCheckerSessionListener scListener, int uid, Bundle bundle) argument
919 InternalServiceConnection( String id, String locale, Bundle bundle) argument
[all...]
/frameworks/base/core/java/android/service/textservice/
H A DSpellCheckerService.java65 * locale before {@link SpellCheckerService.Session#onCreate()} </p>
242 public InternalISpellCheckerSession(String locale, ISpellCheckerSessionListener listener, argument
246 mLocale = locale;
316 String locale, ISpellCheckerSessionListener listener, Bundle bundle) {
321 new InternalISpellCheckerSession(locale, listener, bundle, session);
365 public SentenceLevelAdapter(Locale locale) { argument
366 mWordIterator = new WordIterator(locale);
315 getISpellCheckerSession( String locale, ISpellCheckerSessionListener listener, Bundle bundle) argument
/frameworks/base/core/java/android/text/
H A DBidiFormatter.java157 * @param locale The context locale.
159 public Builder(Locale locale) { argument
160 initialize(isRtlLocale(locale));
234 * Factory for creating an instance of BidiFormatter for the default locale directionality.
251 * Factory for creating an instance of BidiFormatter given the context locale.
253 * @param locale The context locale.
255 public static BidiFormatter getInstance(Locale locale) { argument
256 return new Builder(locale)
446 isRtlLocale(Locale locale) argument
[all...]
H A DAutoText.java77 mLocale = resources.getConfiguration().locale;
82 * Returns the instance of AutoText. If the locale has changed, it will create a new
83 * instance of AutoText for the locale.
89 Locale locale = res.getConfiguration().locale;
95 if (!locale.equals(instance.mLocale)) {
116 * no auto correction data available for the current locale.
/frameworks/base/core/java/com/android/internal/inputmethod/
H A DInputMethodUtils.java152 // At first, find the fallback locale from the IMEs that are declared as "default" in the
153 // current locale. Note that IME developers can declare an IME as "default" only for
164 // If no fallback locale is found in the above condition, find fallback locales regardless
175 Slog.w(TAG, "Found no fallback locale. imis=" + Arrays.toString(imis.toArray()));
202 return context.getResources().getConfiguration().locale;
216 @Nullable final Locale locale, final boolean checkCountry,
220 if (isSystemImeThatHasSubtypeOf(imi, context, checkDefaultAttribute, locale,
275 // 1. checkDefaultAttribute: true, locale: fallbackLocale, checkCountry: true
276 // 2. checkDefaultAttribute: false, locale: fallbackLocale, checkCountry: true
277 // 3. checkDefaultAttribute: true, locale
214 fillImes(final ArrayList<InputMethodInfo> imis, final Context context, final boolean checkDefaultAttribute, @Nullable final Locale locale, final boolean checkCountry, final String requiredSubtypeMode) argument
412 containsSubtypeOf(final InputMethodInfo imi, @Nullable final Locale locale, final boolean checkCountry, final String mode) argument
600 getLanguageFromLocaleString(String locale) argument
619 findLastResortApplicableSubtypeLocked( Resources res, List<InputMethodSubtype> subtypes, String mode, String locale, boolean canIgnoreLocaleAsLastResort) argument
[all...]
H A DInputMethodSubtypeSwitchingController.java84 * Returns the language component of a given locale string.
87 private static String parseLanguageFromLocaleString(final String locale) { argument
88 final int idx = locale.indexOf('_');
90 return locale;
92 return locale.substring(0, idx);
172 final Locale locale = context.getResources().getConfiguration().locale;
173 mSystemLocaleStr = locale != null ? locale.toString() : "";
/frameworks/support/v4/java/android/support/v4/text/
H A DBidiFormatter.java153 * @param locale The context locale.
155 public Builder(Locale locale) { argument
156 initialize(isRtlLocale(locale));
230 * Factory for creating an instance of BidiFormatter for the default locale directionality.
247 * Factory for creating an instance of BidiFormatter given the context locale.
249 * @param locale The context locale.
251 public static BidiFormatter getInstance(Locale locale) { argument
252 return new Builder(locale)
436 isRtlLocale(Locale locale) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java91 Locale locale = new Locale("", entry.mIso);
92 String[] tz = TimeZoneNames.forLocale(locale);
187 Locale locale = null;
190 locale = getLocaleFromMcc(context, mcc);
204 if (locale != null) {
205 config.setLocale(locale);
254 // If this is a regular user and they already have a persisted locale, we're done.
276 for (String locale : locales) {
277 final Locale l = Locale.forLanguageTag(locale.replace('_', '-'));
291 // Otherwise somewhat arbitrarily take the first locale fo
[all...]
/frameworks/base/core/java/android/speech/srec/
H A DRecognizer.java139 * @param locale <code>Locale</code> corresponding to the desired language,
143 public static String getConfigDir(Locale locale) { argument
144 if (locale == null) locale = Locale.US;
146 locale.toString().replace('_', '.').toLowerCase(Locale.ROOT);
442 || SR_VocabularyGetLanguage ( applicationData.vocabulary, &applicationData.locale )
701 // ESR_Locale* locale);
715 // private static native void SR_RecognizerResultGetLocale(long recognizer, ESR_Locale* locale);

Completed in 503 milliseconds

123456