Home
last modified time | relevance | path

Searched refs:US_ASCII (Results 1 – 25 of 38) sorted by relevance

12

/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DByteBufferReaderTest.java122 ByteBufferReader.readString(ByteBuffer.wrap(new byte[10]), -1, StandardCharsets.US_ASCII); in readStringWithNegativeSize()
133 ByteBuffer.wrap(new byte[10]), 0, StandardCharsets.US_ASCII); in readStringWithZeroSize()
146 ByteBuffer buffer = ByteBuffer.wrap(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readString()
148 buffer, buffer.remaining(), StandardCharsets.US_ASCII); in readString()
163 buffer.put(expectedValue.getBytes(StandardCharsets.US_ASCII)); in readStringWithByteLength()
167 ByteBufferReader.readStringWithByteLength(buffer, StandardCharsets.US_ASCII); in readStringWithByteLength()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/
DIconInfoTestUtil.java55 out.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); in getTestData()
57 writeByteArrayWithLength(out, TEST_TYPE.getBytes(StandardCharsets.US_ASCII)); in getTestData()
DHSIconFileElementTest.java53 byte[] iconTypeBytes = TEST_ICON_TYPE.getBytes(StandardCharsets.US_ASCII); in getTestData()
DNAIRealmDataTestUtil.java108 utfEncoding ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII); in getNAIRealmData()
DI18NameTest.java52 stream.write(language.getBytes(StandardCharsets.US_ASCII)); in getTestData()
DOsuProviderInfoTestUtil.java151 out.write(value.getLanguage().getBytes(StandardCharsets.US_ASCII)); in getI18NameData()
DVenueNameElementTest.java58 stream.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); in appendVenue()
DANQPParserTest.java251 stream.write(language[i].getBytes(StandardCharsets.US_ASCII)); in getI18NameListPayload()
253 if (language[i].getBytes(StandardCharsets.US_ASCII).length in getI18NameListPayload()
DHSFriendlyNameElementTest.java59 stream.write(TEST_LANGUAGE.getBytes(StandardCharsets.US_ASCII)); in appendOperatorName()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/anqp/
DIconInfo.java73 payload, LANGUAGE_CODE_LENGTH, StandardCharsets.US_ASCII).trim(); in parse()
76 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.US_ASCII); in parse()
DHSIconFileElement.java86 ByteBufferReader.readStringWithByteLength(payload, StandardCharsets.US_ASCII); in parse()
DI18Name.java76 payload, LANGUAGE_CODE_LENGTH, StandardCharsets.US_ASCII).trim(); in parse()
DNAIRealmData.java80 payload, utf8 ? StandardCharsets.UTF_8 : StandardCharsets.US_ASCII); in parse()
/frameworks/base/core/java/com/android/internal/util/
DProcFileReader.java184 final String s = new String(mBuffer, 0, tokenIndex, StandardCharsets.US_ASCII); in parseAndConsumeString()
215 "invalid long: " + new String(mBuffer, 0, tokenIndex, StandardCharsets.US_ASCII)); in invalidLong()
/frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/exif/
DExifTag.java70 private static Charset US_ASCII = Charset.forName("US-ASCII"); field in ExifTag
332 byte[] buf = value.getBytes(US_ASCII); in setValue()
546 return new String((byte[]) mValue, US_ASCII); in getValueAsString()
752 return new String((byte[]) mValue, US_ASCII); in forceGetValueAsString()
809 return new String((byte[]) mValue, US_ASCII); in getString()
/frameworks/base/core/java/android/net/nsd/
DNsdServiceInfo.java153 StandardCharsets.US_ASCII); in setTxtRecords()
166 key = new String(txtRecordsRawBytes, pos, recordLen, StandardCharsets.US_ASCII); in setTxtRecords()
294 System.arraycopy(key.getBytes(StandardCharsets.US_ASCII), 0, txtRecord, ptr, in getTxtRecord()
/frameworks/base/core/java/android/nfc/
DNdefRecord.java429 byte[] typeBytes = mimeType.getBytes(StandardCharsets.US_ASCII); in createMime()
499 languageCodeBytes = languageCode.getBytes(StandardCharsets.US_ASCII); in createTextRecord()
502 getBytes(StandardCharsets.US_ASCII); in createTextRecord()
689 String mimeType = new String(mType, StandardCharsets.US_ASCII); in toMimeType()
747 … return Uri.parse("vnd.android.nfc://ext/" + new String(mType, StandardCharsets.US_ASCII)); in toUri()
/frameworks/base/keystore/java/android/security/
DCredentials.java138 Writer writer = new OutputStreamWriter(bao, StandardCharsets.US_ASCII); in convertToPem()
153 Reader reader = new InputStreamReader(bai, StandardCharsets.US_ASCII); in convertFromPem()
/frameworks/base/wifi/tests/src/android/net/wifi/
DWifiSsidTest.java35 private static final byte[] TEST_SSID_BYTES = TEST_SSID.getBytes(StandardCharsets.US_ASCII);
/frameworks/base/services/core/java/com/android/server/pm/
DPackageUsage.java67 out.write(sb.toString().getBytes(StandardCharsets.US_ASCII)); in writeInternal()
80 out.write(sb.toString().getBytes(StandardCharsets.US_ASCII)); in writeInternal()
/frameworks/base/telephony/common/com/google/android/mms/pdu/
DCharacterSets.java34 public static final int US_ASCII = 0x03; field in CharacterSets
105 US_ASCII,
/frameworks/base/wifi/java/android/net/wifi/
DWifiNetworkSuggestion.java182 final CharsetEncoder asciiEncoder = StandardCharsets.US_ASCII.newEncoder(); in setWpa2Passphrase()
200 final CharsetEncoder asciiEncoder = StandardCharsets.US_ASCII.newEncoder(); in setWpa3Passphrase()
DWifiNetworkSpecifier.java205 final CharsetEncoder asciiEncoder = StandardCharsets.US_ASCII.newEncoder(); in setWpa2Passphrase()
223 final CharsetEncoder asciiEncoder = StandardCharsets.US_ASCII.newEncoder(); in setWpa3Passphrase()
/frameworks/base/core/java/android/util/
DXml.java113 US_ASCII("US-ASCII"), enumConstant
/frameworks/base/core/java/android/util/jar/
DStrictJarManifestReader.java122 String nameString = new String(buf, mark, pos - mark - 1, StandardCharsets.US_ASCII); in readName()

12