/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ANQPParserTest.java | 53 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 …]
|
D | I18NameTest.java | 52 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/ |
D | GsmSmsCbMessage.java | 120 String language = cbData.first; in createSmsCbMessage() local 147 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage() 151 String language = null; in createSmsCbMessage() local 155 language = p.first; in createSmsCbMessage() 163 header.getServiceCategory(), language, header.getDataCodingScheme(), in createSmsCbMessage() 260 String language = header.getDataCodingSchemeStructedData().language; in parseUmtsBody() local 283 language = p.first; in parseUmtsBody() 286 return new Pair(language, sb.toString()); in parseUmtsBody() 316 String language = dcs.language; in unpackBody() local 324 language = body.substring(0, 2); in unpackBody() [all …]
|
/packages/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmSmsCbMessage.java | 124 String language = cbData.first; in createSmsCbMessage() local 151 header.getServiceCategory(), language, header.getDataCodingScheme(), body, in createSmsCbMessage() 155 String language = null; in createSmsCbMessage() local 159 language = p.first; in createSmsCbMessage() 167 header.getServiceCategory(), language, header.getDataCodingScheme(), in createSmsCbMessage() 323 String language = header.getDataCodingSchemeStructedData().language; in parseUmtsBody() local 346 language = p.first; in parseUmtsBody() 349 return new Pair(language, sb.toString()); in parseUmtsBody() 380 String language = dcs.language; in unpackBody() local 388 language = body.substring(0, 2); in unpackBody() [all …]
|
D | SmsCbHeader.java | 515 public final String language; field in SmsCbHeader.DataCodingScheme 520 String language = null; in DataCodingScheme() local 528 language = LANGUAGE_CODES_GROUP_0[dataCodingScheme & 0x0f]; in DataCodingScheme() 542 language = LANGUAGE_CODES_GROUP_2[dataCodingScheme & 0x0f]; in DataCodingScheme() 597 this.language = language; in DataCodingScheme()
|
/packages/apps/TV/src/com/android/tv/util/ |
D | TvSettings.java | 80 public static void setMultiAudioId(Context context, String language) { in setMultiAudioId() argument 83 .putString(PREF_MULTI_AUDIO_ID, language) in setMultiAudioId() 92 public static void setMultiAudioLanguage(Context context, String language) { in setMultiAudioLanguage() argument 95 .putString(PREF_MULTI_AUDIO_LANGUAGE, language) in setMultiAudioLanguage() 144 String language; in getDvrPlaybackTrackSettings() local 153 language = pref.getString(PREF_DVR_MULTI_AUDIO_LANGUAGE, null); in getDvrPlaybackTrackSettings() 156 .setLanguage(language) in getDvrPlaybackTrackSettings() 164 language = pref.getString(PREF_DVR_SUBTITLE_LANGUAGE, null); in getDvrPlaybackTrackSettings() 165 return new TvTrackInfo.Builder(trackType, trackId).setLanguage(language).build(); in getDvrPlaybackTrackSettings()
|
D | TvTrackInfoUtils.java | 114 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());
|
D | CaptionSettings.java | 113 public void setLanguage(String language) { in setLanguage() argument 114 mLanguage = language; in setLanguage()
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
D | GoogleSearch.java | 76 String language = locale.getLanguage(); in getLanguage() local 77 StringBuilder hl = new StringBuilder(language); in getLanguage() 80 if (!TextUtils.isEmpty(country) && useLangCountryHl(language, country)) { in getLanguage() 85 if (DBG) Log.d(TAG, "language " + language + ", country " + country + " -> hl=" + hl); in getLanguage() 90 private static boolean useLangCountryHl(String language, String country) { in useLangCountryHl() argument 92 if ("en".equals(language)) { in useLangCountryHl() 94 } else if ("zh".equals(language)) { in useLangCountryHl() 96 } else if ("pt".equals(language)) { in useLangCountryHl()
|
/packages/modules/Wifi/service/java/com/android/server/wifi/hotspot2/anqp/ |
D | I18Name.java | 51 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()
|
D | IconInfo.java | 50 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/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastAlertServiceTest.java | 72 int cmasMessageClass, String language) { in createCmasMessageWithLanguage() argument 74 serviceCategory, language, "body", in createCmasMessageWithLanguage() 138 String language) { in sendMessageForCmasMessageClassAndLanguage() argument 143 cmasMessageClass, language); in sendMessageForCmasMessageClassAndLanguage() 344 final String language = "es"; in testShowNewAlertChildAbduction() local 348 doReturn(language).when(mResources).getString(anyInt()); in testShowNewAlertChildAbduction() 351 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction() 359 SmsCbConstants.MESSAGE_ID_CMAS_ALERT_CHILD_ABDUCTION_EMERGENCY, language); in testShowNewAlertChildAbduction()
|
/packages/apps/TV/tests/robotests/src/com/android/tv/util/ |
D | TvTrackInfoUtilsTest.java | 61 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/src/com/android/tv/tuner/data/ |
D | SectionParser.java | 1215 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 …]
|
D | PsipData.java | 397 String language, in Ac3AudioDescriptor() argument 412 mLanguage = language; in Ac3AudioDescriptor() 585 public ShortEventDescriptor(String language, String eventName, String text) { in ShortEventDescriptor() argument 586 mLanguage = language; in ShortEventDescriptor()
|
/packages/apps/TV/tuner/proto/ |
D | track.proto | 13 * See the License for the specific language governing permissions and 26 optional string language = 1; field 44 optional string language = 1; field
|
/packages/apps/TV/tests/robotests/src/com/android/tv/ |
D | MainActivityRoboTest.java | 203 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/Gallery2/src/com/android/gallery3d/util/ |
D | ReverseGeocoder.java | 357 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/apps/TV/tuner/src/com/android/tv/tuner/exoplayer2/ |
D | FileSampleExtractor.java | 123 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/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/ |
D | CdmaSmsMessageTest.java | 175 int language) throws BitwiseOutputStream.AccessException { in createBearerDataStream() argument 192 if (language != -1) { in createBearerDataStream() 195 bos.write(8, (language & 0xff)); in createBearerDataStream() 233 int language, int encoding, String body, int cmasCategory, int responseType, in createCmasSmsMessage() argument 257 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); in createCmasSmsMessage() 282 int priority, int language, int encoding, String body) throws Exception { in createBroadcastSmsMessage() argument 284 BitwiseOutputStream bos = createBearerDataStream(messageId, priority, language); in createBroadcastSmsMessage()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | LanguageOnSpacebarUtils.java | 61 final String language = SubtypeLocaleUtils.getSubtypeLocale(ims).getLanguage(); in getLanguageOnSpacebarFormatType() local 62 if (keyboardLanguage.equals(language) && keyboardLayout.equals( in getLanguageOnSpacebarFormatType()
|
D | ScriptUtils.java | 187 String language = locale.getLanguage(); in getScriptFromSpellCheckerLocale() local 188 Integer script = mLanguageCodeToScriptCode.get(language); in getScriptFromSpellCheckerLocale()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
D | DownloadOverMeteredDialog.java | 60 final String language = (null == localeString) ? "" in setTexts() local 63 prompt.setText(Html.fromHtml(String.format(promptFormat, language))); in setTexts()
|
/packages/apps/Bluetooth/src/com/android/bluetooth/mapclient/obex/ |
D | Bmessage.java | 132 public Bmessage setLanguage(String language) { in setLanguage() argument 133 mBbodyLanguage = language; in setLanguage()
|
/packages/apps/TV/tuner/src/com/google/android/exoplayer/ |
D | MediaFormatUtil.java | 33 String language = getOptionalStringV16(format, android.media.MediaFormat.KEY_LANGUAGE); in createMediaFormat() local 71 language, in createMediaFormat()
|