Searched defs:lang (Results 1 - 25 of 27) sorted by relevance

12

/frameworks/base/tools/layoutlib/create/tests/mock_data/java/lang/
H A DJavaClass.java17 package java.lang;
/frameworks/base/tools/aapt2/
H A DLocale_test.cpp25 static ::testing::AssertionResult TestLanguage(const char* input, const char* lang) { argument
38 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
39 return ::testing::AssertionFailure() << "expected " << lang << " but got "
46 static ::testing::AssertionResult TestLanguageRegion(const char* input, const char* lang, argument
60 if (memcmp(lv.language, lang, std::min(strlen(lang), sizeof(lv.language))) != 0) {
H A DLocale.cpp81 const std::string& lang = parts[0]; local
82 if (isAlpha(lang) && (lang.length() == 2 || lang.length() == 3)) {
83 setLanguage(lang.c_str());
/frameworks/base/libs/androidfw/tests/
H A DConfigLocale_test.cpp114 /* static */ void fillIn(const char* lang, const char* country, argument
117 if (lang != NULL) {
118 out->packLanguage(lang);
/frameworks/base/core/jni/android/graphics/
H A DMinikinUtils.cpp36 const std::string& lang = paint->getTextLocale(); local
37 FontLanguage minikinLang(lang.c_str(), lang.size());
H A DFontFamily.cpp38 static jlong FontFamily_create(JNIEnv* env, jobject clazz, jstring lang, jint variant) { argument
40 if (lang != NULL) {
41 ScopedUtfChars str(env, lang);
128 { "nCreateFamily", "(Ljava/lang/String;I)J", (void*)FontFamily_create },
130 { "nAddFont", "(JLjava/lang/String;)Z", (void*)FontFamily_addFont },
131 { "nAddFontWeightStyle", "(JLjava/lang/String;IZ)Z", (void*)FontFamily_addFontWeightStyle },
132 { "nAddFontFromAsset", "(JLandroid/content/res/AssetManager;Ljava/lang/String;)Z",
/frameworks/base/graphics/java/android/graphics/
H A DFontFamily.java39 public FontFamily(String lang, String variant) { argument
46 mNativePtr = nCreateFamily(lang, varEnum);
73 private static native long nCreateFamily(String lang, int variant); argument
H A DFontListParser.java63 public Family(String name, List<Font> fonts, String lang, String variant) { argument
66 this.lang = lang;
72 public String lang; field in class:FontListParser.Family
108 String lang = parser.getAttributeValue(null, "lang");
125 return new Family(name, fonts, lang, variant);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DMockableTextToSpeechService.java40 protected int onIsLanguageAvailable(String lang, String country, String variant) { argument
41 return sDelegate.onIsLanguageAvailable(lang, country, variant);
50 protected int onLoadLanguage(String lang, String country, String variant) { argument
51 return sDelegate.onLoadLanguage(lang, country, variant);
65 int onIsLanguageAvailable(String lang, String country, String variant); argument
69 int onLoadLanguage(String lang, String country, String variant); argument
/frameworks/av/media/libstagefright/timedtext/
H A DTimedTextDriver.cpp279 const char *lang = "und"; local
281 meta->findCString(kKeyMediaLanguage, &lang);
283 parcel->writeString16(String16(lang));
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cat/
H A DResponseData.java165 public LanguageResponseData(String lang) { argument
167 mLang = lang;
/frameworks/base/tools/layoutlib/bridge/src/android/graphics/
H A DFontFamily_Delegate.java249 /*package*/ static long nCreateFamily(String lang, int variant) { argument
250 // TODO: support lang. This is required for japanese locale.
/frameworks/minikin/include/minikin/
H A DFontFamily.h71 FontStyle(FontLanguage lang, int variant = 0, int weight = 4, bool italic = false) { argument
73 | (variant << kVariantShift) | (lang.bits() << kLangShift);
125 FontFamily(FontLanguage lang, int variant) : mLang(lang), mVariant(variant) { argument
136 FontLanguage lang() const { return mLang; } function in class:android::FontFamily
/frameworks/minikin/libs/minikin/
H A DFontCollection.cpp107 FontLanguage lang, int variant) const {
124 int score = lang.match(family->lang()) * 2;
143 return getFamilyForChar(ch, lang, variant);
172 FontLanguage lang = style.getLanguage(); local
190 FontFamily* family = getFamilyForChar(ch, lang, variant);
106 getFamilyForChar(uint32_t ch, FontLanguage lang, int variant) const argument
H A DLayout.cpp756 string lang = language.getString(); local
757 hb_buffer_set_language(buffer, hb_language_from_string(lang.c_str(), -1));
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/
H A DTimeZoneData.java374 String lang = Locale.getDefault().getLanguage();
408 country = getCountryNames(lang, countryCode);
482 private String getCountryNames(String lang, String countryCode) { argument
488 countryDisplayName = new Locale(lang, countryCode).getDisplayCountry(defaultLocale);
/frameworks/av/media/libstagefright/webm/
H A DWebmElement.cpp61 const char *lang,
68 ls.push_back(new WebmString(kMkvLanguage, lang));
312 const char *lang) {
322 lang,
345 const char *lang) {
355 lang,
57 populateCommonTrackEntries( int num, uint64_t uid, bool lacing, const char *lang, const char *codec, TrackTypes type, List<sp<WebmElement> > &ls) argument
305 AudioTrackEntry( int chans, double rate, const sp<ABuffer> &buf, int bps, uint64_t uid, bool lacing, const char *lang) argument
340 VideoTrackEntry( uint64_t width, uint64_t height, uint64_t uid, bool lacing, const char *lang) argument
/frameworks/av/media/libstagefright/
H A DStagefrightMetadataRetriever.cpp660 const char *lang; local
661 trackMeta->findCString(kKeyMediaLanguage, &lang);
662 timedTextLang.append(String8(lang));
H A DAwesomePlayer.cpp2682 const char *lang; local
2683 if (!meta->findCString(kKeyMediaLanguage, &lang)) {
2684 lang = "und";
2686 reply->writeString16(String16(lang));
/frameworks/base/tools/layoutlib/create/tests/data/
H A Dmock_android.jar ... _r1/s?defs= " () public void genericMethod1 (java.lang.Object, java.lang.Object[]) Object a Object ...
/frameworks/av/media/libmediaplayerservice/nuplayer/
H A DGenericSource.cpp1088 const char *lang; local
1089 if (!meta->findCString(kKeyMediaLanguage, &lang)) {
1090 lang = "und";
1092 format->setString("language", lang);
H A DNuPlayer.cpp442 AString lang; local
443 CHECK(format->findString("language", &lang));
448 reply->writeString16(String16(lang.c_str()));
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp216 const char *lang = item.mLanguage.empty() ? "und" : item.mLanguage.c_str(); local
217 format->setString("language", lang);
1189 // pass the CC track flags (lang, auto) to the app in the future.
/frameworks/base/core/java/android/speech/tts/
H A DTextToSpeechService.java167 * @param lang ISO-3 language code.
177 protected abstract int onIsLanguageAvailable(String lang, String country, String variant); argument
207 * @param lang ISO-3 language code.
217 protected abstract int onLoadLanguage(String lang, String country, String variant); argument
245 * @param lang ISO-3 language code.
250 protected Set<String> onGetFeaturesForLanguage(String lang, String country, String variant) { argument
315 * @param lang ISO-3 language code.
321 public String onGetDefaultVoiceNameFor(String lang, String country, String variant) { argument
322 int localeStatus = onIsLanguageAvailable(lang, country, variant);
326 iso3Locale = new Locale(lang);
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.cpp220 const String8& lang = parts[0]; local
221 if (isAlpha(lang) && (lang.length() == 2 || lang.length() == 3)) {
222 setLanguage(lang.string());

Completed in 862 milliseconds

12