2434 public void setTextLocale(Locale locale) {
2435 mTextPaint.setTextLocale(locale);
2436 }
1105 public void setTextLocale(Locale locale) {
1106 if (locale == null) {
1107 throw new IllegalArgumentException("locale cannot be null");
1108 }
1109 if (locale.equals(mLocale)) return;
1110 mLocale = locale;
1111 native_setTextLocale(mNativePaint, locale.toString());
1112 }
833 {"native_setTextLocale","(ILjava/lang/String;)V", (void*) SkPaintGlue::setTextLocale},
299 static void setTextLocale(JNIEnv* env, jobject clazz, SkPaint* obj, jstring locale) {
300 ScopedUtfChars localeChars(env, locale);
301 char langTag[ULOC_FULLNAME_CAPACITY];
302 toLanguageTag(langTag, ULOC_FULLNAME_CAPACITY, localeChars.c_str());
303 obj->setLanguage(SkLanguage(langTag));
304 }
389 void SkPaint::setLanguage(const SkLanguage& language) {
390 if(fLanguage != language) {
391 fLanguage = language;
392 GEN_ID_INC;
393 }
394 }