Home
last modified time | relevance | path

Searched refs:language (Results 1 – 25 of 1581) sorted by relevance

12345678910>>...64

/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DANQPParserTest.java53 private static byte[] getVenueNamePayload(String[] language, String[] text) in getVenueNamePayload() argument
57 stream.write(getI18NameListPayload(language, text)); in getVenueNamePayload()
166 private static byte[] getHSFriendlyNamePayload(String[] language, String[] text) in getHSFriendlyNamePayload() argument
168 return getI18NameListPayload(language, text); in getHSFriendlyNamePayload()
246 private static byte[] getI18NameListPayload(String[] language, String[] text) in getI18NameListPayload() argument
249 for (int i = 0; i < language.length; i++) { in getI18NameListPayload()
253 stream.write(language[i].getBytes(StandardCharsets.US_ASCII)); in getI18NameListPayload()
255 if (language[i].getBytes(StandardCharsets.US_ASCII).length in getI18NameListPayload()
273 String[] language = new String[] {"en"}; in parseVenueNameElement() local
278 nameList.add(new I18Name(language[0], Locale.forLanguageTag(language[0]), text[0])); in parseVenueNameElement()
[all …]
DI18NameTest.java52 private byte[] getTestData(String language, String text) throws IOException { in getTestData() argument
54 stream.write(language.getBytes(StandardCharsets.US_ASCII)); in getTestData()
147 String language = "fr"; in parseBufferWithFrenchData() local
149 byte[] data = getTestData(language, text); in parseBufferWithFrenchData()
151 I18Name expectedName = new I18Name(language, Locale.forLanguageTag(language), text); in parseBufferWithFrenchData()
/packages/apps/CellBroadcastReceiver/tests/testapp/src/com/android/cellbroadcastreceiver/tests/
DGsmSmsCbMessage.java128 String language = cbData.first; in createSmsCbMessage() local
155 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage()
159 String language = null; in createSmsCbMessage() local
163 language = p.first; in createSmsCbMessage()
171 header.getServiceCategory(), language, header.getDataCodingScheme(), in createSmsCbMessage()
268 String language = header.getDataCodingSchemeStructedData().language; in parseUmtsBody() local
291 language = p.first; in parseUmtsBody()
294 return new Pair(language, sb.toString()); in parseUmtsBody()
324 String language = dcs.language; in unpackBody() local
332 language = body.substring(0, 2); in unpackBody()
[all …]
/packages/modules/Bluetooth/framework/java/android/bluetooth/
DBluetoothLeAudioContentMetadata.java50 String programInfo, String language, byte[] rawMetadata) { in BluetoothLeAudioContentMetadata() argument
52 mLanguage = language; in BluetoothLeAudioContentMetadata()
150 final String language = in.readString();
154 return new BluetoothLeAudioContentMetadata(programInfo, language, rawMetadata);
187 String language = null; in fromRawBytes() local
193 } else if (language == null && entry.getType() == LANGUAGE_TYPE) { in fromRawBytes()
204 language = new String(bytes, 0, LANGUAGE_LENGTH, StandardCharsets.US_ASCII); in fromRawBytes()
207 return new BluetoothLeAudioContentMetadata(programInfo, language, rawBytes); in fromRawBytes()
264 public @NonNull Builder setLanguage(@Nullable String language) { in setLanguage() argument
265 mLanguage = language; in setLanguage()
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
DGoogleSearch.kt137 val language: String = locale.getLanguage() in getLanguage() constant
138 val hl: StringBuilder = StringBuilder(language) in getLanguage()
140 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage()
144 if (DBG) Log.d(TAG, "language $language, country $country -> hl=$hl") in getLanguage()
149 private fun useLangCountryHl(language: String, country: String): Boolean { in useLangCountryHl()
151 return if ("en".equals(language)) { in useLangCountryHl()
153 } else if ("zh".equals(language)) { in useLangCountryHl()
155 } else if ("pt".equals(language)) { in useLangCountryHl()
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DI18Name.java51 public I18Name(String language, Locale locale, String text) { in I18Name() argument
52 mLanguage = language; in I18Name()
75 String language = ByteBufferReader.readString( in parse() local
80 locale = new Locale.Builder().setLanguage(language).build(); in parse()
82 throw new ProtocolException("Invalid language: " + language); in parse()
87 return new I18Name(language, locale, text); in parse()
DIconInfo.java50 public IconInfo(int width, int height, String language, String iconType, String fileName) { in IconInfo() argument
53 mLanguage = language; in IconInfo()
72 String language = ByteBufferReader.readString( in parse() local
80 return new IconInfo(width, height, language, iconType, fileName); in parse()
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/
DGsmSmsCbMessage.java121 String language = cbData.first; in createSmsCbMessage() local
148 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage()
152 String language = null; in createSmsCbMessage() local
156 language = p.first; in createSmsCbMessage()
164 header.getServiceCategory(), language, header.getDataCodingScheme(), in createSmsCbMessage()
317 String language = header.getDataCodingSchemeStructedData().language; in parseUmtsBody() local
340 language = p.first; in parseUmtsBody()
343 return new Pair(language, sb.toString()); in parseUmtsBody()
374 String language = dcs.language; in unpackBody() local
382 language = body.substring(0, 2); in unpackBody()
[all …]
DSmsCbHeader.java517 public final String language; field in SmsCbHeader.DataCodingScheme
522 String language = null; in DataCodingScheme() local
530 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f]; in DataCodingScheme()
546 language = LANGUAGE_CODES_GROUP_2[dataCodingScheme & 0x0f]; in DataCodingScheme()
604 this.language = language; in DataCodingScheme()
/packages/apps/TV/src/com/android/tv/util/
DTvSettings.java83 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId() argument
86 .putString(PREF_MULTI_AUDIO_ID, language) in setMultiAudioId()
95 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage() argument
98 .putString(PREF_MULTI_AUDIO_LANGUAGE, language) in setMultiAudioLanguage()
147 String language; in getDvrPlaybackTrackSettings() local
156 language = pref.getString(PREF_DVR_MULTI_AUDIO_LANGUAGE, null); in getDvrPlaybackTrackSettings()
159 .setLanguage(language) in getDvrPlaybackTrackSettings()
167 language = pref.getString(PREF_DVR_SUBTITLE_LANGUAGE, null); in getDvrPlaybackTrackSettings()
168 return new TvTrackInfo.Builder(trackType, trackId).setLanguage(language).build(); in getDvrPlaybackTrackSettings()
DTvTrackInfoUtils.java114 List<TvTrackInfo> tracks, String id, String language, int channelCount) {
119 if (language == null) {
129 languages.add(language);
158 String language = context.getString(R.string.multi_audio_unknown_language);
160 language = new Locale(track.getLanguage()).getDisplayName();
215 return language;
218 R.string.multi_audio_display_string_with_channel, language, metadata.toString());
DCaptionSettings.java113 public void setLanguage(String language) { in setLanguage() argument
114 mLanguage = language; in setLanguage()
/packages/modules/Bluetooth/system/gd/packet/parser/
Dbison.gni13 # See the License for the specific language governing permissions and
17 # language and generates a parser which decides whether the input conforms to
22 # Note: We generate C++ output for Bison. We also set --language to C++
23 # (equivalent to %language c++) which forces Bison to generate a C++ parser.
41 "--language=c++",
/packages/apps/TV/tests/robotests/src/com/android/tv/util/
DTvTrackInfoUtilsTest.java61 private TvTrackInfo createTvTrackInfo(String trackId, String language, int audioChannelCount) { in createTvTrackInfo() argument
63 .setLanguage(language) in createTvTrackInfo()
306 private static TvTrackInfo createAudioTrackInfo(String language) { in createAudioTrackInfo() argument
307 return createAudioTrackInfo(language, 0); in createAudioTrackInfo()
310 private static TvTrackInfo createAudioTrackInfo(String language, int channelCount) { in createAudioTrackInfo() argument
312 .setLanguage(language) in createAudioTrackInfo()
/packages/apps/TV/tuner/proto/
Dtrack.proto13 * See the License for the specific language governing permissions and
26 optional string language = 1; field
44 optional string language = 1; field
/packages/apps/Settings/src/com/android/settings/localepicker/
DTermsOfAddressCategoryController.java84 final String language = locale.getLanguage(); in getAvailabilityStatus() local
87 Log.d(TAG, "current language: " + language); in getAvailabilityStatus()
94 if ((supportedLanguageList.contains(language) in getAvailabilityStatus()
/packages/modules/Wifi/service/java/com/android/server/wifi/
DSsidTranslator.java153 String language = null; in updateCurrentLocaleCharset() local
158 language = locale.getLanguage(); in updateCurrentLocaleCharset()
165 if (language != null) { in updateCurrentLocaleCharset()
166 mCurrentLocaleAlternateCharset = mMockCharsetsPerLocaleLanguage.get(language); in updateCurrentLocaleCharset()
168 mCurrentLocaleAlternateCharset = mCharsetsPerLocaleLanguage.get(language); in updateCurrentLocaleCharset()
179 Log.i(TAG, "Locale language changed to " + language + ", alternate charset " in updateCurrentLocaleCharset()
/packages/apps/TV/tests/robotests/src/com/android/tv/
DMainActivityRoboTest.java203 private TvTrackInfo buildTrackForTesting(int type, String id, String language) { in buildTrackForTesting() argument
205 .setLanguage(language) in buildTrackForTesting()
210 private TvTrackInfo buildCaptionTrackForTesting(String id, String language) { in buildCaptionTrackForTesting() argument
212 .setLanguage(language) in buildCaptionTrackForTesting()
/packages/apps/TV/tuner/src/com/android/tv/tuner/data/
DSectionParser.java1215 String language = null; in generateAudioTracks() local
1217 language = audioDescriptor.getLanguage(); in generateAudioTracks()
1219 if (language == null) { in generateAudioTracks()
1220 language = ""; in generateAudioTracks()
1224 .setLanguage(language) in generateAudioTracks()
1277 String language = ISO_LANGUAGE_CODE_MAP.get(audioTrack.getLanguage()); in generateAudioTracks() local
1278 if (language != null) { in generateAudioTracks()
1279 audioTrack = audioTrack.setLanguage(language); in generateAudioTracks()
1599 String language = new String(data, pos, 3); in parseIso639Language() local
1607 .setLanguage(language) in parseIso639Language()
[all …]
/packages/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/
DFileSampleExtractor.java123 videoFormat.language, in handlePrepare()
142 String language = getOptionalStringV16(mediaFormat, android.media.MediaFormat.KEY_LANGUAGE); in createFormat() local
179 language); in createFormat()
201 language, in createFormat()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DLanguageOnSpacebarUtils.java61 final String language = SubtypeLocaleUtils.getSubtypeLocale(ims).getLanguage(); in getLanguageOnSpacebarFormatType() local
62 if (keyboardLanguage.equals(language) && keyboardLayout.equals( in getLanguageOnSpacebarFormatType()
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/
DCellBroadcastAlertServiceTest.java114 int cmasMessageClass, String language) { in createCmasMessageWithLanguage() argument
116 serviceCategory, language, "body", in createCmasMessageWithLanguage()
195 String language) { in sendMessageForCmasMessageClassAndLanguage() argument
200 cmasMessageClass, language); in sendMessageForCmasMessageClassAndLanguage()
401 final String language = "es"; in testShowNewAlertChildAbduction() local
405 doReturn(language).when(mResources).getString(anyInt()); in testShowNewAlertChildAbduction()
408 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction()
416 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction()
731 final String language = "en"; in testFilterLanguage() local
737 doReturn(language).when(mResources).getString( in testFilterLanguage()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/util/
DReverseGeocoder.java357 String language = readUTF(dis); in lookupAddress() local
361 if (language != null) { in lookupAddress()
363 locale = new Locale(language); in lookupAddress()
365 locale = new Locale(language, country); in lookupAddress()
367 locale = new Locale(language, country, variant); in lookupAddress()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDownloadOverMeteredDialog.java60 final String language = (null == localeString) ? "" in setTexts() local
63 prompt.setText(Html.fromHtml(String.format(promptFormat, language))); in setTexts()
/packages/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/
DBmessage.java129 public Bmessage setLanguage(String language) { in setLanguage() argument
130 mBbodyLanguage = language; in setLanguage()

12345678910>>...64