/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 | 128 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/ |
D | BluetoothLeAudioContentMetadata.java | 50 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/ |
D | GoogleSearch.kt | 137 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/ |
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/modules/CellBroadcastService/src/com/android/cellbroadcastservice/ |
D | GsmSmsCbMessage.java | 121 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 …]
|
D | SmsCbHeader.java | 517 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/ |
D | TvSettings.java | 83 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()
|
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/modules/Bluetooth/system/gd/packet/parser/ |
D | bison.gni | 13 # 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/ |
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/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/Settings/src/com/android/settings/localepicker/ |
D | TermsOfAddressCategoryController.java | 84 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/ |
D | SsidTranslator.java | 153 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/ |
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/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 …]
|
/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/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()
|
/packages/apps/CellBroadcastReceiver/tests/unit/src/com/android/cellbroadcastreceiver/unit/ |
D | CellBroadcastAlertServiceTest.java | 114 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/ |
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/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/modules/Bluetooth/android/app/src/com/android/bluetooth/mapclient/obex/ |
D | Bmessage.java | 129 public Bmessage setLanguage(String language) { in setLanguage() argument 130 mBbodyLanguage = language; in setLanguage()
|