Searched defs:language (Results 26 - 41 of 41) sorted by last modified time

12

/frameworks/base/packages/Osu/src/com/android/hotspot2/flow/
H A DOSUInfo.java237 private static int languageScore(String language, Locale locale) { argument
238 if (language.length() == 3 && language.equalsIgnoreCase(locale.getISO3Language()) ||
239 language.length() == 2 && language.equalsIgnoreCase(locale.getLanguage())) {
241 } else if (language.equalsIgnoreCase(GenericLocale)) {
243 } else if (language.equalsIgnoreCase("eng")) {
/frameworks/base/native/android/
H A Dconfiguration.cpp13 * See the License for the specific language governing permissions and
53 outLanguage[0] = config->language[0];
54 outLanguage[1] = config->language[1];
145 void AConfiguration_setLanguage(AConfiguration* config, const char* language) { argument
146 config->language[0] = language[0];
147 config->language[1] = language[1];
/frameworks/base/libs/androidfw/
H A DLocaleData.cpp13 * See the License for the specific language governing permissions and
31 inline uint32_t packLocale(const char* language, const char* region) { argument
32 return (((uint8_t) language[0]) << 24u) | (((uint8_t) language[1]) << 16u) |
176 // the last ancestor is just the language by itself. We will use the
201 void localeDataComputeScript(char out[4], const char* language, const char* region) { argument
202 if (language[0] == '\0') {
206 uint32_t lookup_key = packLocale(language, region);
H A DResourceTypes.cpp13 * See the License for the specific language governing permissions and
1780 // language code.
1824 void ResTable_config::packLanguage(const char* language) { argument
1825 packLanguageOrRegion(language, 'a', this->language);
1832 size_t ResTable_config::unpackLanguage(char language[4]) const {
1833 return unpackLanguageOrRegion(this->language, 'a', language);
1878 // The language & region are equal, so compare the scripts and variants.
1887 // The language, regio
[all...]
/frameworks/base/libs/androidfw/include/androidfw/
H A DResourceTypes.h13 * See the License for the specific language governing permissions and
888 // - a 3 char language code
922 // - Two 7 bit ascii values interpreted as ISO-639-1 language
927 // ISO-639-2 3 letter language code. This will be of the form:
931 // bit[0, 4] = first letter of the language code
932 // bit[5, 9] = second letter of the language code
933 // bit[10, 14] = third letter of the language code.
941 char language[2]; member in struct:android::ResTable_config::__anon1178::__anon1179
950 // in the same manner as the language codes, though we should need
1255 // and language, i
[all...]
/frameworks/base/media/java/android/media/
H A DMediaFormat.java13 * See the License for the specific language governing permissions and
97 * <tr><td>{@link #KEY_LANGUAGE}</td><td>String</td><td>The language of the content.</td></tr>
147 * A key describing the language of the content, using either ISO 639-1
150 public static final String KEY_LANGUAGE = "language";
969 * @param language The language of the content, using either ISO 639-1 or 639-2/T
970 * codes. Specify null or "und" if language information is only included
971 * in the content. (This will also work if there are multiple language
976 String language) {
979 format.setString(KEY_LANGUAGE, language);
974 createSubtitleFormat( String mime, String language) argument
[all...]
/frameworks/base/media/java/android/media/tv/
H A DTvTrackInfo.java13 * See the License for the specific language governing permissions and
71 private TvTrackInfo(int type, String id, String language, CharSequence description, argument
77 mLanguage = language;
121 * Returns the language information encoded by either ISO 639-1 or ISO 639-2/T. If the language
344 * Sets the language information of the current track.
346 * @param language The language string encoded by either ISO 639-1 or ISO 639-2/T.
348 public final Builder setLanguage(String language) { argument
349 mLanguage = language;
[all...]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
H A DTextClassificationManagerTest.java13 * See the License for the specific language governing permissions and
274 private static Matcher<List<TextLanguage>> isDetectedLanguage(final String language) { argument
285 && new Locale(language).getLanguage()
295 description.appendValue(String.format("%s", language));
/frameworks/base/core/tests/coretests/src/android/content/res/
H A DResourcesLocaleTest.java13 * License for the specific language governing permissions and limitations under
52 private static void ensureNoLanguage(Resources resources, String language) { argument
60 language.equals(Locale.forLanguageTag(languageTag).getLanguage()));
92 // The APK we loaded has default and Polish languages. We expect the Polish language to
/frameworks/base/core/java/android/speech/tts/
H A DSynthesisRequest.java13 * License for the specific language governing permissions and limitations under
24 * <li>The synthesis locale, represented as a language, country and a variant.
25 * The language is an ISO 639-3 letter language code, and the country is an
86 * Gets the ISO 3-letter language code for the language to use.
93 * Gets the ISO 3-letter country code for the language to use.
100 * Gets the language variant to use.
137 void setLanguage(String language, String country, String variant) { argument
138 mLanguage = language;
[all...]
H A DTextToSpeechService.java13 * License for the specific language governing permissions and limitations under
61 * The first three deal primarily with language management, and are used to
62 * query the engine for it's support for a given language and indicate to it
63 * that requests in a given language are imminent.
143 // Load default language
162 * Checks whether the engine supports a given language.
168 * @param lang ISO-3 language code.
181 * Returns the language, country and variant currently being used by the TTS engine.
188 * @return A 3-element array, containing language (ISO 3-letter code),
199 * Notifies the engine that it should load a speech synthesis language
1188 LoadLanguageItem(Object callerIdentity, int callerUid, int callerPid, String language, String country, String variant) argument
[all...]
/frameworks/base/core/java/android/text/
H A DFontConfig.java13 * See the License for the specific language governing permissions and
206 public Family(@NonNull String name, @NonNull Font[] fonts, @NonNull String language, argument
210 mLanguage = language;
229 * Returns the language for this family. May be null.
/frameworks/base/core/java/android/view/textclassifier/
H A DLangId.java13 * See the License for the specific language governing permissions and
38 * Detects the language for given text.
64 ClassificationResult(String language, float score) { argument
65 mLanguage = language;
H A DTextLanguage.java13 * See the License for the specific language governing permissions and
72 * Returns the language locale at the specified index.
76 * @see #getLanguageCount() for the number of language locales available.
84 * Returns the confidence score for the specified language. The value ranges from
85 * 0 (low confidence) to 1 (high confidence). 0 indicates that the language was
89 public float getConfidenceScore(@Nullable Locale language) { argument
90 return mLanguageConfidence.getConfidenceScore(language);
125 * Sets a language locale with the associated confidence score.
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp13 * See the License for the specific language governing permissions and
411 * (2) persist.sys.language/country/localevar (country and localevar are
412 * inspected iff. language is non-empty.
414 * (4) ro.product.locale.language/region
416 * Note that we need to inspect persist.sys.language/country/localevar to
417 * preserve language settings for devices that are upgrading from Lollipop
418 * to M. The same goes for ro.product.locale.language/region as well.
427 const std::string language = getProperty("persist.sys.language", ""); local
428 if (!language
[all...]
/frameworks/av/media/libstagefright/httplive/
H A DM3UParser.cpp13 * See the License for the specific language governing permissions and
56 const char *language,
103 const char *language,
114 if (language) {
115 item.mLanguage = language;
217 format->setString("language", lang);
1102 } else if (!strcasecmp("language", key.c_str())) {
100 addMedia( const char *name, const char *uri, const char *language, uint32_t flags) argument

Completed in 6242 milliseconds

12