Searched defs:language (Results 1 - 25 of 29) sorted by relevance

12

/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/tools/aapt2/
H A DLocale.h13 * See the License for the specific language governing permissions and
32 char language[4]; member in struct:aapt::LocaleValue
72 void setLanguage(const char* language);
73 void setRegion(const char* language);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/
H A DCdmaSmsBroadcastConfigInfo.java13 * See the License for the specific language governing permissions and
28 * language defines a language code of Broadcast Message
30 * All other values can be treated as empty language code.
46 int language, boolean selected) {
49 mLanguage = language;
45 CdmaSmsBroadcastConfigInfo(int fromServiceCategory, int toServiceCategory, int language, boolean selected) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
H A DGsmSmsCbMessage.java13 * See the License for the specific language governing permissions and
76 String language = null;
80 language = p.first;
88 header.getServiceCategory(), language, sb.toString(), priority,
109 * text into mBody, and optionally the language code into mLanguage
113 * @return a Pair of Strings containing the language and body of the message
117 String language = null;
121 // Extract encoding and language from DCS, as defined in 3gpp TS 23.038,
126 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f];
140 language
241 unpackBody(byte[] pdu, int encoding, int offset, int length, boolean hasLanguageIndicator, String language) argument
[all...]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
H A DGsmSmsTest.java13 * See the License for the specific language governing permissions and
348 private void decodeSingle(int language) throws Exception { argument
374 String decoded = GsmAlphabet.gsm7BitPackedToString(septets, 0, 128, 0, language, 0);
375 byte[] reEncoded = GsmAlphabet.stringToGsm7BitPacked(decoded, language, 0);
377 assertEquals(sBasicTables[language], decoded);
418 for (int language = 0; language < 3; language++) {
419 int[] tableIndex = sExtendedTableIndexes[language];
452 0, language);
[all...]
/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
1155 LoadLanguageItem(Object callerIdentity, int callerUid, int callerPid, String language, String country, String variant) argument
[all...]
/frameworks/base/services/core/java/com/android/server/hdmi/
H A DHdmiUtils.java13 * See the License for the specific language governing permissions and
296 * Convert 3 byte-long language code in string to integer representation.
299 * @param language language code in string
300 * @return language code in integer representation
302 static int languageToInt(String language) { argument
303 String normalized = language.toLowerCase();
H A DHdmiCecMessageBuilder.java13 * See the License for the specific language governing permissions and
102 * @param language 3-letter ISO639-2 based language code
103 * @return newly created {@link HdmiCecMessage} if language is valid.
106 static HdmiCecMessage buildSetMenuLanguageCommand(int src, String language) { argument
107 if (language.length() != 3) {
111 String normalized = language.toLowerCase();
H A DHdmiCecLocalDeviceTv.java13 * See the License for the specific language governing permissions and
575 boolean broadcastMenuLanguage(String language) { argument
578 mAddress, language);
/frameworks/base/telephony/java/android/telephony/cdma/
H A DCdmaSmsCbProgramResults.java13 * See the License for the specific language governing permissions and
66 public CdmaSmsCbProgramResults(int category, int language, int categoryResult) { argument
68 mLanguage = language;
101 * Returns the CDMA language code for this service category.
102 * @return one of the language values defined in BearerData.LANGUAGE_*
119 + ", language=" + mLanguage + ", result=" + mCategoryResult + '}';
H A DCdmaSmsCbProgramData.java13 * See the License for the specific language governing permissions and
97 public CdmaSmsCbProgramData(int operation, int category, int language, int maxMessages, argument
101 mLanguage = language;
150 * Returns the CDMA language code for this service category.
151 * @return one of the language values defined in BearerData.LANGUAGE_*
174 * Returns the service category name, in the language specified by {@link #getLanguage()}.
184 + ", language=" + mLanguage + ", max messages=" + mMaxMessages
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
H A DMccTable.java13 * See the License for the specific language governing permissions and
117 * an ISO 2-3 character language code if available.
127 // Ask CLDR for the language this country uses...
251 // Somewhat arbitrarily take the first locale for the language,
259 * Return Locale for the language and country or null if no good match.
262 * @param language Two character language code desired
267 private static Locale getLocaleForLanguageCountry(Context context, String language, argument
269 if (language == null) {
270 Slog.d(LOG_TAG, "getLocaleForLanguageCountry: skipping no language");
[all...]
/frameworks/base/libs/androidfw/
H A DLocaleData.cpp13 * See the License for the specific language governing permissions and
30 inline uint32_t packLocale(const char* language, const char* region) { argument
31 return (((uint8_t) language[0]) << 24u) | (((uint8_t) language[1]) << 16u) |
153 // the last ancestor is just the language by itself. We will use the
178 void localeDataComputeScript(char out[4], const char* language, const char* region) { argument
179 if (language[0] == '\0') {
183 uint32_t lookup_key = packLocale(language, region);
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
H A DOSUInfo.java222 private static int languageScore(String language, Locale locale) { argument
223 if (language.length() == 3 && language.equalsIgnoreCase(locale.getISO3Language()) ||
224 language.length() == 2 && language.equalsIgnoreCase(locale.getLanguage())) {
226 } else if (language.equalsIgnoreCase(GenericLocale)) {
228 } else if (language.equalsIgnoreCase("eng")) {
/frameworks/opt/bluetooth/src/android/bluetooth/client/map/
H A DBluetoothMapBmessage.java13 * See the License for the specific language governing permissions and
140 public BluetoothMapBmessage setLanguage(String language) { argument
141 mBbodyLanguage = language;
/frameworks/opt/telephony/src/java/android/telephony/
H A DSmsCbMessage.java13 * See the License for the specific language governing permissions and
126 /** Message language, as a two-character string, e.g. "en". */
145 SmsCbLocation location, int serviceCategory, String language, String body,
152 mLanguage = language;
278 * Get the ISO-639-1 language code for this message, or null if unspecified
368 + mServiceCategory + ", language=" + mLanguage + ", body=" + mBody
144 SmsCbMessage(int messageFormat, int geographicalScope, int serialNumber, SmsCbLocation location, int serviceCategory, String language, String body, int priority, SmsCbEtwsInfo etwsWarningInfo, SmsCbCmasInfo cmasWarningInfo) argument
/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/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/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/
H A DCdmaSmsCbTest.java13 * See the License for the specific language governing permissions and
83 * @param language message language code
87 int language) throws BitwiseOutputStream.AccessException {
104 if (language != -1) {
107 bos.write(8, (language & 0xff));
136 * @param language message language code
146 int language, int encoding, String body, int cmasCategory, int responseType,
170 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language);
86 createBearerDataStream(int messageId, int priority, int language) argument
145 createCmasSmsMessage(int serviceCategory, int messageId, int priority, int language, int encoding, String body, int cmasCategory, int responseType, int severity, int urgency, int certainty) argument
193 createBroadcastSmsMessage(int serviceCategory, int messageId, int priority, int language, int encoding, String body) argument
[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
/frameworks/base/media/java/android/media/
H A DMediaFormat.java13 * See the License for the specific language governing permissions and
90 * <tr><td>{@link #KEY_LANGUAGE}</td><td>String</td><td>The language of the content.</td></tr>
138 * A key describing the language of the content, using either ISO 639-1
141 public static final String KEY_LANGUAGE = "language";
908 * @param language The language of the content, using either ISO 639-1 or 639-2/T
909 * codes. Specify null or "und" if language information is only included
910 * in the content. (This will also work if there are multiple language
915 String language) {
918 format.setString(KEY_LANGUAGE, language);
913 createSubtitleFormat( String mime, String language) argument
[all...]
/frameworks/base/core/jni/
H A DAndroidRuntime.cpp13 * See the License for the specific language governing permissions and
391 * (2) persist.sys.language/country/localevar (country and localevar are
392 * inspected iff. language is non-empty.
394 * (4) ro.product.locale.language/region
396 * Note that we need to inspect persist.sys.language/country/localevar to
397 * preserve language settings for devices that are upgrading from Lollipop
398 * to M. The same goes for ro.product.locale.language/region as well.
407 const std::string language = getProperty("persist.sys.language", ""); local
408 if (!language
[all...]
/frameworks/base/tools/aapt/
H A DAaptAssets.h62 char language[4]; member in struct:AaptLocaleValue
92 void setLanguage(const char* language);
93 void setRegion(const char* language);
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DBearerData.java13 * See the License for the specific language governing permissions and
165 public int language = LANGUAGE_UNKNOWN; field in class:BearerData
370 * Returns the language indicator as a two-character ISO 639 string.
371 * @return a two character ISO 639 language code
374 return getLanguageCodeForValue(language);
378 * Converts a CDMA language indicator value to an ISO 639 two character language code.
379 * @param languageValue the CDMA language value to convert
380 * @return the two character ISO 639 language code for the specified value, or null if unknown
420 builder.append(", language
[all...]

Completed in 642 milliseconds

12