Home
last modified time | relevance | path

Searched refs:encoded (Results 1 – 25 of 45) sorted by relevance

12

/frameworks/base/core/java/android/net/
DUri.java1875 StringBuilder encoded = null; in encode() local
1900 encoded.append(s, current, oldLength); in encode()
1901 return encoded.toString(); in encode()
1905 if (encoded == null) { in encode()
1906 encoded = new StringBuilder(); in encode()
1911 encoded.append(s, current, nextToEncode); in encode()
1933 encoded.append('%'); in encode()
1934 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]); in encode()
1935 encoded.append(HEX_DIGITS[bytes[i] & 0xf]); in encode()
1945 return encoded == null ? s : encoded.toString(); in encode()
[all …]
DIkev2VpnProfile.java591 private static byte[] decodeFromIpsecSecret(@NonNull String encoded) { in decodeFromIpsecSecret() argument
592 checkNotNull(encoded, MISSING_PARAM_MSG_TMPL, "encoded"); in decodeFromIpsecSecret()
594 return Base64.getDecoder().decode(encoded); in decodeFromIpsecSecret()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationShellCmd.java294 Icon parseIcon(Resources res, String encoded) throws IllegalArgumentException { in parseIcon() argument
295 if (TextUtils.isEmpty(encoded)) return null; in parseIcon()
296 if (encoded.startsWith("/")) { in parseIcon()
297 encoded = "file://" + encoded; in parseIcon()
299 if (encoded.startsWith("http:") in parseIcon()
300 || encoded.startsWith("https:") in parseIcon()
301 || encoded.startsWith("content:") in parseIcon()
302 || encoded.startsWith("file:") in parseIcon()
303 || encoded.startsWith("android.resource:")) { in parseIcon()
304 Uri asUri = Uri.parse(encoded); in parseIcon()
[all …]
/frameworks/base/wifi/tests/assets/hsr1/
DREADME.txt2 HSR1ProfileWithCACert.base64 - base64 encoded of the data contained in HSR1ProfileWithCAWith.conf
3 HSR1ProfileWithNonBase64Part.base64 - base64 encoded installation file that contains a part of non-…
4 HSR1ProfileWithMissingBoundary.base64 - base64 encoded installation file with missing end-boundary …
5 HSR1ProfileWithInvalidContentType.base64 - base64 encoded installation file with that contains a MI…
/frameworks/base/keystore/java/android/security/keystore/
DAndroidKeyStoreCipherSpiBase.java596 byte[] encoded = null; in engineWrap()
599 encoded = key.getEncoded(); in engineWrap()
601 if (encoded == null) { in engineWrap()
607 encoded = spec.getEncoded(); in engineWrap()
616 encoded = key.getEncoded(); in engineWrap()
618 if (encoded == null) { in engineWrap()
623 encoded = spec.getEncoded(); in engineWrap()
632 encoded = key.getEncoded(); in engineWrap()
634 if (encoded == null) { in engineWrap()
639 encoded = spec.getEncoded(); in engineWrap()
[all …]
DAndroidKeyStoreSpi.java864 final byte[] encoded; in engineSetCertificateEntry()
866 encoded = cert.getEncoded(); in engineSetCertificateEntry()
871 if (!mKeyStore.put(Credentials.CA_CERTIFICATE + alias, encoded, mUid, KeyStore.FLAG_NONE)) { in engineSetCertificateEntry()
/frameworks/base/core/tests/coretests/src/android/util/
DBase64Test.java329 byte[] encoded = Base64.encode(plain, flags); in testInputStream()
340 bais = new ByteArrayInputStream(encoded); in testInputStream()
349 bais = new ByteArrayInputStream(encoded); in testInputStream()
358 bais = new ByteArrayInputStream(encoded); in testInputStream()
385 assertEquals(actual, ap, encoded); in testInputStream()
394 assertEquals(actual, ap, encoded); in testInputStream()
413 assertEquals(actual, ap, encoded); in testInputStream()
444 byte[] encoded = Base64.encode(plain, flags); in testOutputStream()
459 assertEquals(encoded, actual); in testOutputStream()
469 assertEquals(encoded, actual); in testOutputStream()
[all …]
/frameworks/base/core/java/android/content/pm/
DVerifierDeviceIdentity.java113 final char encoded[] = new char[LONG_SIZE + (LONG_SIZE / GROUP_SIZE)]; in encodeBase32() local
115 int index = encoded.length; in encodeBase32()
124 encoded[--index] = SEPARATOR; in encodeBase32()
133 encoded[--index] = alphabet[group]; in encodeBase32()
136 return String.valueOf(encoded); in encodeBase32()
/frameworks/base/tools/aapt2/
DStringPool.cpp370 const std::string& encoded = util::Utf8ToModifiedUtf8(str); in EncodeString() local
372 reinterpret_cast<const uint8_t*>(encoded.data()), encoded.size()); in EncodeString()
377 if ((((size_t)encoded.size()) > EncodeLengthMax<char>()) in EncodeString()
388 + EncodedLengthUnits<char>(encoded.size()) + encoded.size() + 1; in EncodeString()
396 data = EncodeLength(data, encoded.size()); in EncodeString()
397 strncpy(data, encoded.data(), encoded.size()); in EncodeString()
400 const std::u16string encoded = util::Utf8ToUtf16(str); in EncodeString() local
401 const ssize_t utf16_length = encoded.size(); in EncodeString()
415 + encoded.size() + 1; in EncodeString()
421 const size_t byte_length = encoded.size() * sizeof(char16_t); in EncodeString()
[all …]
/frameworks/av/media/libdatasource/
DDataURISource.cpp60 AString encoded(cleansed); in Create() local
63 buffer = decodeBase64(encoded); in Create()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DNativeUtil.java60 ByteBuffer encoded = encoder.encode(CharBuffer.wrap(str)); in stringToByteArrayList() local
61 byte[] byteArray = new byte[encoded.remaining()]; in stringToByteArrayList()
62 encoded.get(byteArray); in stringToByteArrayList()
/frameworks/base/core/java/org/apache/http/conn/ssl/
DAndroidDistinguishedNameParser.java184 byte[] encoded = new byte[hexLen / 2]; in hexAV()
185 for (int i = 0, p = beg + 1; i < encoded.length; p += 2, i++) { in hexAV()
186 encoded[i] = (byte) getByte(p); in hexAV()
/frameworks/native/opengl/libs/ETC1/
Detc1.cpp517 etc1_byte encoded[ETC1_ENCODED_BLOCK_SIZE]; in etc1_encode_image() local
549 etc1_encode_block(block, mask, encoded); in etc1_encode_image()
550 memcpy(pOut, encoded, sizeof(encoded)); in etc1_encode_image()
551 pOut += sizeof(encoded); in etc1_encode_image()
/frameworks/layoutlib/rename_font/
DREADME1 This tool is used to rename the PS name encoded inside the ttf font that we ship
/frameworks/base/tests/net/java/com/android/internal/net/
DVpnProfileTest.java172 final String encoded = new String(getSampleIkev2Profile(DUMMY_PROFILE_KEY).encode()); in getEncodedDecodedIkev2ProfileMissingValues() local
174 new ArrayList<>(Arrays.asList(encoded.split(VpnProfile.VALUE_DELIMITER))); in getEncodedDecodedIkev2ProfileMissingValues()
/frameworks/av/drm/mediadrm/plugins/clearkey/hidl/protos/
DDeviceFiles.proto45 // A raw (not hex-encoded) SHA256, taken over the bytes of 'file'.
/frameworks/av/media/libstagefright/include/
DID3.h97 static bool ParseSyncsafeInteger(const uint8_t encoded[4], size_t *x);
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/
DCertPinInstallReceiverTest.java131 byte[] encoded = content.getBytes(); in getCurrentHash()
132 byte[] fingerprint = dgst.digest(encoded); in getCurrentHash()
/frameworks/base/core/tests/coretests/src/android/net/
DUriTest.java250 String encoded = Uri.encode("Bob:/", "/"); in testEncodeWithAllowedChars() local
251 assertEquals(-1, encoded.indexOf(':')); in testEncodeWithAllowedChars()
252 assertTrue(encoded.indexOf('/') > -1); in testEncodeWithAllowedChars()
841 private Object createPart(Class partClass, String encoded, String decoded) throws Exception { in createPart() argument
844 return partConstructor.newInstance(encoded, decoded); in createPart()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutPackageInfo.java232 final String encoded = Base64.getEncoder().encodeToString(mSigHashes.get(i)); in saveToXml() local
233 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, encoded); in saveToXml()
/frameworks/base/core/proto/android/debug/
Denums.proto52 * An empty or invalid base64 encoded key was provided to the framework; the connection was
/frameworks/av/media/libstagefright/id3/
DID3.cpp160 bool ID3::ParseSyncsafeInteger(const uint8_t encoded[4], size_t *x) { in ParseSyncsafeInteger()
163 if (encoded[i] & 0x80) { in ParseSyncsafeInteger()
167 *x = ((*x) << 7) | encoded[i]; in ParseSyncsafeInteger()
/frameworks/base/cmds/statsd/src/
Dstatsd_config.proto338 // The |trace_config| field is a proto-encoded message of type
342 // passed binary-encoded to the perfetto cmdline client.
/frameworks/base/tests/AccessoryDisplay/
DREADME19 The sink application decodes encoded video from the source and
/frameworks/av/drm/libmediadrm/protos/
Dmetrics.proto104 // Session ids are strings of hex-encoded byte arrays.

12