/frameworks/base/core/tests/coretests/src/android/content/res/ |
H A D | ResourcesLocaleTest.java | 13 * 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 D | Locale.h | 13 * See the License for the specific language governing permissions and 32 char language[4]; member in struct:aapt::LocaleValue 70 void set_language(const char* language); 71 void set_region(const char* language);
|
/frameworks/support/design/tests/src/android/support/design/widget/ |
H A D | TextInputLayoutPseudoLocaleTest.java | 13 * See the License for the specific language governing permissions and 45 // Change language to pseudo locale. 53 private static void setLocale(String language, String country, Context context) { argument 57 configuration.setLocale(new Locale(language, country));
|
/frameworks/base/core/java/android/view/textclassifier/ |
H A D | LangId.java | 13 * 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 D | TextLanguage.java | 13 * 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/opt/telephony/src/java/com/android/internal/telephony/cdma/ |
H A D | CdmaSmsBroadcastConfigInfo.java | 13 * 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/base/telephony/java/com/android/internal/telephony/gsm/ |
H A D | GsmSmsCbMessage.java | 13 * See the License for the specific language governing permissions and 111 String language = null; 115 language = p.first; 123 header.getServiceCategory(), language, sb.toString(), priority, 131 * text into mBody, and optionally the language code into mLanguage 135 * @return a Pair of Strings containing the language and body of the message 139 String language = null; 143 // Extract encoding and language from DCS, as defined in 3gpp TS 23.038, 148 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f]; 162 language 263 unpackBody(byte[] pdu, int encoding, int offset, int length, boolean hasLanguageIndicator, String language) argument [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
H A D | I18Name.java | 13 * See the License for the specific language governing permissions and 51 public I18Name(String language, Locale locale, String text) { argument 52 mLanguage = language; 74 // Read the language string. 75 String language = ByteBufferReader.readString( 77 Locale locale = Locale.forLanguageTag(language); 82 return new I18Name(language, locale, text);
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
H A D | I18NameTest.java | 13 * See the License for the specific language governing permissions and 45 * @param language The language code string 50 private byte[] getTestData(String language, String text) throws IOException { argument 52 stream.write(language.getBytes(StandardCharsets.US_ASCII)); 53 stream.write(new byte[]{(byte) 0x0}); // Padding for language code. 59 * Helper function for generating default test data. The test data include the language code 138 * a non-English (French) language. 145 String language = "fr"; 147 byte[] data = getTestData(language, tex [all...] |
H A D | ANQPParserTest.java | 13 * See the License for the specific language governing permissions and 44 * @param language Array of languages 49 private static byte[] getVenueNamePayload(String[] language, String[] text) argument 53 stream.write(getI18NameListPayload(language, text)); 157 * @param language Array of language 162 private static byte[] getHSFriendlyNamePayload(String[] language, String[] text) argument 164 return getI18NameListPayload(language, text); 221 * @param language Array of language 226 getI18NameListPayload(String[] language, String[] text) argument [all...] |
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmSmsTest.java | 13 * 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 D | SynthesisRequest.java | 13 * 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...] |
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
H A D | TextClassificationManagerTest.java | 13 * 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/telephony/java/android/telephony/cdma/ |
H A D | CdmaSmsCbProgramResults.java | 13 * 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 D | CdmaSmsCbProgramData.java | 13 * 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 D | MccTable.java | 13 * See the License for the specific language governing permissions and 134 * an ISO 2-3 character language code if available. 146 // Choose English as the default language for India. 151 // Ask CLDR for the language this country uses... 281 * Return Locale for the language and country or null if no good match. 284 * @param language Two character language code desired 289 private static Locale getLocaleForLanguageCountry(Context context, String language, argument 291 if (language == null) { 292 Slog.d(LOG_TAG, "getLocaleForLanguageCountry: skipping no language"); [all...] |
/frameworks/base/core/java/android/text/ |
H A D | FontConfig.java | 13 * 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/libs/androidfw/ |
H A D | LocaleData.cpp | 13 * 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);
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
H A D | SmsCbMessage.java | 13 * 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/opt/bluetooth/src/android/bluetooth/client/map/ |
H A D | BluetoothMapBmessage.java | 13 * See the License for the specific language governing permissions and 140 public BluetoothMapBmessage setLanguage(String language) { argument 141 mBbodyLanguage = language;
|
/frameworks/base/media/java/android/media/tv/ |
H A D | TvTrackInfo.java | 13 * 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 D | configuration.cpp | 13 * 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/packages/Osu/src/com/android/hotspot2/flow/ |
H A D | OSUInfo.java | 237 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/services/core/java/com/android/server/hdmi/ |
H A D | HdmiCecMessageBuilder.java | 13 * 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();
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/cdma/ |
H A D | CdmaSmsCbTest.java | 13 * See the License for the specific language governing permissions and 85 * @param language message language code 89 int language) throws BitwiseOutputStream.AccessException { 106 if (language != -1) { 109 bos.write(8, (language & 0xff)); 135 * @param language message language code 145 int language, int encoding, String body, int cmasCategory, int responseType, 169 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); 88 createBearerDataStream(int messageId, int priority, int language) argument 144 createCmasSmsMessage(int serviceCategory, int messageId, int priority, int language, int encoding, String body, int cmasCategory, int responseType, int severity, int urgency, int certainty) argument 192 createBroadcastSmsMessage(int serviceCategory, int messageId, int priority, int language, int encoding, String body) argument [all...] |