/aosp14/frameworks/base/core/java/android/speech/tts/ |
H A D | Voice.java | 65 private final Locale mLocale; field in Voice 78 this.mLocale = locale; in Voice() 87 …this.mLocale = (Locale)in.readSerializable(java.util.Locale.class.getClassLoader(), java.util.Loca… in Voice() 98 dest.writeSerializable(mLocale); in writeToParcel() 127 return mLocale; in getLocale() 190 .append(", locale: ").append(mLocale) in toString() 204 result = prime * result + ((mLocale == null) ? 0 : mLocale.hashCode()); in hashCode() 233 if (mLocale == null) { in equals() 234 if (other.mLocale != null) { in equals() 237 } else if (!mLocale.equals(other.mLocale)) { in equals()
|
/aosp14/frameworks/base/core/java/android/view/translation/ |
H A D | TranslationSpec.java | 58 private final @NonNull ULocale mLocale; field in TranslationSpec 63 dest.writeSerializable(mLocale); in parcelLocale() 77 mLocale = new ULocale.Builder().setLanguage(language).build(); in TranslationSpec() 89 mLocale = locale; in TranslationSpec() 121 return mLocale; in getLocale() 137 "locale = " + mLocale + ", " + in toString() 156 && Objects.equals(mLocale, that.mLocale) in equals() 168 _hash = 31 * _hash + Objects.hashCode(mLocale); in hashCode() 204 this.mLocale = locale; in TranslationSpec() 206 NonNull.class, null, mLocale); in TranslationSpec()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/hdmi/ |
H A D | HdmiCecSetMenuLanguageHelper.java | 46 private Locale mLocale; field in HdmiCecSetMenuLanguageHelper 65 mLocale = Locale.forLanguageTag(languageTag); in setLocale() 72 return mLocale; in getLocale() 80 return mDenylist.contains(mLocale.toLanguageTag()); in isLocaleDenylisted() 87 mBackgroundExecutor.execute(() -> LocalePicker.updateLocale(mLocale)); in acceptLocale() 94 mDenylist.add(mLocale.toLanguageTag()); in declineLocale()
|
/aosp14/frameworks/base/core/java/android/app/admin/ |
H A D | FullyManagedDeviceProvisioningParams.java | 56 @Nullable private final Locale mLocale; field in FullyManagedDeviceProvisioningParams 77 this.mLocale = locale; in FullyManagedDeviceProvisioningParams() 156 return mLocale; in getLocale() 196 logParam(callerPackage, LOCALE_PROVIDED_PARAM, /* value= */ mLocale != null); in logParams() 220 @Nullable private Locale mLocale; field in FullyManagedDeviceProvisioningParams.Builder 286 this.mLocale = locale; in setLocale() 335 mLocale, in build() 358 + ", mLocale=" + (mLocale == null ? "null" : mLocale) in toString() 373 dest.writeString(mLocale == null ? null : mLocale.toLanguageTag()); in writeToParcel()
|
/aosp14/frameworks/base/location/java/android/location/ |
H A D | GeocoderParams.java | 45 private final Locale mLocale; field in GeocoderParams 59 mLocale = Objects.requireNonNull(locale); in GeocoderParams() 91 return mLocale; in getLocale() 121 parcel.writeString8(mLocale.getLanguage()); in writeToParcel() 122 parcel.writeString8(mLocale.getCountry()); in writeToParcel() 123 parcel.writeString8(mLocale.getVariant()); in writeToParcel()
|
H A D | Address.java | 36 private Locale mLocale; field in Address 64 mLocale = locale; in Address() 71 return mLocale; in getLocale() 534 parcel.writeString(mLocale.getLanguage()); in writeToParcel() 535 parcel.writeString(mLocale.getCountry()); in writeToParcel()
|
/aosp14/frameworks/base/services/voiceinteraction/java/com/android/server/voiceinteraction/ |
H A D | TestModelEnrollmentDatabase.java | 41 private final String mLocale; field in TestModelEnrollmentDatabase.EnrollmentKey 47 mLocale = Objects.requireNonNull(locale); in EnrollmentKey() 59 return mLocale; in locale() 67 sj.add("locale: " + mLocale.toString()); in toString() 77 res = prime * res + mLocale.hashCode(); in hashCode() 89 if (!mLocale.equals(that.mLocale)) return false; in equals()
|
/aosp14/frameworks/base/native/android/ |
H A D | system_fonts.cpp | 54 XmlCharUniquePtr mLocale; member 59 std::optional<std::string> mLocale; member 66 return mFilePath == o.mFilePath && mLocale == o.mLocale && mWeight == o.mWeight && in operator ==() 74 if (font.mLocale) { in operator ()() 75 r = combine(r, std::hash<std::string>{}(*font.mLocale)); in operator ()() 177 if (state.mLocale) { in copyFont() 178 out->mLocale.emplace(reinterpret_cast<const char*>(state.mLocale.get())); in copyFont() 225 state->mLocale.reset(xmlGetProp(family, LOCALE_ATTR_NAME)); in findFirstFontNode() 357 state->mLocale.reset(xmlGetProp(family, LOCALE_ATTR_NAME)); in findNextFontNode() 426 return font->mLocale ? font->mLocale->c_str() : nullptr; in AFont_getLocale()
|
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
H A D | BreakIteratorPerfTest.java | 146 final Locale mLocale; field in BreakIteratorPerfTest.Text 151 this.mLocale = locale; in Text() 169 BreakIterator it = BreakIterator.getLineInstance(text.mLocale); in timeBreakIterator() 184 android.icu.text.BreakIterator.getLineInstance(text.mLocale); in timeIcuBreakIterator()
|
/aosp14/frameworks/base/core/java/android/text/method/ |
H A D | AllCapsTransformationMethod.java | 40 private Locale mLocale; field in AllCapsTransformationMethod 44 mLocale = context.getResources().getConfiguration().getLocales().get(0); in AllCapsTransformationMethod() 63 locale = mLocale; in getTransformation()
|
H A D | DigitsKeyListener.java | 51 private final Locale mLocale; field in DigitsKeyListener 159 mLocale = locale; in DigitsKeyListener() 213 mLocale = null; in DigitsKeyListener()
|
/aosp14/frameworks/base/core/java/com/android/internal/app/ |
H A D | LocaleStore.java | 88 private final Locale mLocale; field in LocaleStore.LocaleInfo 106 this.mLocale = locale; in LocaleInfo() 121 this.mLocale = localeInfo.getLocale(); in LocaleInfo() 154 return mLocale; in getLocale() 213 Locale locale = mLocale.stripExtensions(); in getFullNameNative() 222 mFullCountryNameNative = LocaleHelper.getDisplayCountry(mLocale, mLocale); in getFullCountryNameNative() 229 return LocaleHelper.getDisplayCountry(mLocale); in getFullCountryNameInUiLanguage() 239 Locale locale = mLocale.stripExtensions(); in getFullNameInUiLanguage() 247 .setLocale(mLocale) in getLangScriptKey() 253 ? mLocale.toLanguageTag() in getLangScriptKey() [all …]
|
/aosp14/frameworks/base/core/java/android/text/ |
H A D | InputFilter.java | 60 private final Locale mLocale; field in InputFilter.AllCaps 63 mLocale = null; in AllCaps() 72 mLocale = locale; in AllCaps() 95 final CharSequence upper = TextUtils.toUpperCase(mLocale, wrapper, copySpans); in filter()
|
H A D | AutoText.java | 72 private Locale mLocale; field in AutoText 76 mLocale = resources.getConfiguration().locale; in AutoText() 94 if (!locale.equals(instance.mLocale)) { in getInstance()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | CarrierText.java | 81 private final Locale mLocale; field in CarrierText.CarrierTextTransformationMethod 85 mLocale = context.getResources().getConfiguration().locale; in CarrierTextTransformationMethod() 94 source = source.toString().toUpperCase(mLocale); in getTransformation()
|
/aosp14/frameworks/base/core/java/android/view/textservice/ |
H A D | SpellCheckerSession.java | 535 private final Locale mLocale; field in SpellCheckerSession.SpellCheckerSessionParams 543 mLocale = locale; in SpellCheckerSessionParams() 557 return mLocale; in getLocale() 594 private Locale mLocale; field in SpellCheckerSession.SpellCheckerSessionParams.Builder 613 if (mLocale == null && !mShouldReferToSpellCheckerLanguageSettings) { in build() 617 return new SpellCheckerSessionParams(mLocale, in build() 628 mLocale = locale; in setLocale()
|
/aosp14/frameworks/base/core/java/android/view/textclassifier/ |
H A D | TextClassifierEvent.java | 163 private final ULocale mLocale; field in TextClassifierEvent 184 mLocale = builder.mLocale; in TextClassifierEvent() 201 mLocale = languageTag == null ? null : ULocale.forLanguageTag(languageTag); in TextClassifierEvent() 249 dest.writeString(mLocale == null ? null : mLocale.toLanguageTag()); in writeToParcel() 361 return mLocale; in getLocale() 535 private ULocale mLocale; field in TextClassifierEvent.Builder 649 mLocale = locale; in setLocale()
|
/aosp14/frameworks/base/core/java/android/view/ |
H A D | AccessibilityIterators.java | 77 private Locale mLocale; field in AccessibilityIterators.CharacterTextSegmentIterator 89 mLocale = locale; in CharacterTextSegmentIterator() 158 if (!mLocale.equals(locale)) { in onConfigurationChanged() 159 mLocale = locale; in onConfigurationChanged()
|
/aosp14/frameworks/base/core/java/android/service/voice/ |
H A D | AlwaysOnHotwordDetector.java | 311 private final Locale mLocale; field in AlwaysOnHotwordDetector 862 mLocale = locale; in AlwaysOnHotwordDetector() 950 fakeSupportedLocales.add(mLocale); in overrideAvailability() 1354 return mKeyphraseEnrollmentInfo.getManageKeyphraseIntent(action, mText, mLocale); in getManageIntentLocked() 1495 mKeyphraseMetadata.getId(), mLocale.toLanguageTag(), mInternalCallback, in startRecognitionLocked() 1848 mText, mLocale.toLanguageTag()); in internalUpdateEnrolledKeyphraseMetadata() 1862 return TextUtils.equals(mText, other.mText) && mLocale.equals(other.mLocale); in equals() 1870 return Objects.hash(mText, mLocale); in hashCode() 1878 pw.print(prefix); pw.print("Locale="); pw.println(mLocale); in dump()
|
/aosp14/frameworks/base/core/java/android/widget/ |
H A D | TimePicker.java | 440 protected final Locale mLocale; field in TimePicker.AbstractTimePickerDelegate 453 mLocale = context.getResources().getConfiguration().locale; in AbstractTimePickerDelegate() 475 final Calendar cal = Calendar.getInstance(mLocale); in autofill() 490 final Calendar cal = Calendar.getInstance(mLocale); in getAutofillValue()
|
H A D | TimePickerSpinnerDelegate.java | 204 mTempCalendar = Calendar.getInstance(mLocale); in TimePickerSpinnerDelegate() 227 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in getHourFormatData() 247 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in isAmPmAtStart() 263 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale, in setDividerText()
|
H A D | SimpleMonthView.java | 84 private final Locale mLocale; field in SimpleMonthView 176 mLocale = res.getConfiguration().locale; in SimpleMonthView() 177 mCalendar = Calendar.getInstance(mLocale); in SimpleMonthView() 179 mDayFormatter = NumberFormat.getIntegerInstance(mLocale); in SimpleMonthView() 188 final String format = DateFormat.getBestDateTimePattern(mLocale, MONTH_YEAR_FORMAT); in updateMonthYearLabel() 189 final SimpleDateFormat formatter = new SimpleDateFormat(format, mLocale); in updateMonthYearLabel() 201 final String[] tinyWeekdayNames = DateFormatSymbols.getInstance(mLocale) in updateDayOfWeekLabels()
|
H A D | TimePickerClockDelegate.java | 247 mTempCalendar = Calendar.getInstance(mLocale); in TimePickerClockDelegate() 310 mLocale, mIs24Hour ? "Hm" : "hm"); in updateHourFormat() 335 final String[] digits = DecimalFormatSymbols.getInstance(mLocale).getDigitStrings(); in updateHourFormat() 446 final String dateTimePattern = DateFormat.getBestDateTimePattern(mLocale, "hm"); 461 if (TextUtils.getLayoutDirectionFromLocale(mLocale) == View.LAYOUT_DIRECTION_LTR) { 812 final String bestDateTimePattern = DateFormat.getBestDateTimePattern(mLocale,
|
/aosp14/frameworks/base/core/java/android/service/textservice/ |
H A D | SpellCheckerService.java | 252 private final String mLocale; field in SpellCheckerService.InternalISpellCheckerSession 261 mLocale = locale; in InternalISpellCheckerSession() 315 return mLocale; in getLocale()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/ |
H A D | SystemActions.java | 187 private Locale mLocale; field in SystemActions 212 mLocale = mContext.getResources().getConfiguration().getLocales().get(0); in SystemActions() 240 if (!locale.equals(mLocale)) { in onConfigurationChanged() 241 mLocale = locale; in onConfigurationChanged()
|