/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
D | BluetoothMidiDecoderTest.java | 90 void test(byte[] encoded, byte[][] decoded) throws IOException { in test() argument 91 decodePacket(encoded); in test() 95 void test(byte[][] encoded, byte[][] decoded) throws IOException { in test() argument 96 decodePackets(encoded); in test() 103 final byte[] encoded = { in testOneNoteOn() 111 new DecoderChecker().test(encoded, decoded); in testOneNoteOn() 116 final byte[] encoded = { in testReservedHeaderBit() 125 new DecoderChecker().test(encoded, decoded); in testReservedHeaderBit() 130 final byte[] encoded = { in testTwoNotesOnRunning() 141 new DecoderChecker().test(encoded, decoded); in testTwoNotesOnRunning() [all …]
|
D | BluetoothMidiEncoderTest.java | 111 final byte[][] encoded = {{ in testOneNoteOn() 118 checker.compareWithExpected(encoded); in testOneNoteOn() 123 final byte[][] encoded = {{ in testTwoNoteOnsSameChannel() 135 checker.compareWithExpected(encoded); in testTwoNoteOnsSameChannel() 140 final byte[][] encoded = {{ in testTwoNoteOnsTwoChannels() 152 checker.compareWithExpected(encoded); in testTwoNoteOnsTwoChannels() 157 final byte[][] encoded = { in testTwoNoteOnsOverTime() 183 checker.compareWithExpected(encoded); in testTwoNoteOnsOverTime() 188 final byte[][] encoded = {{ in testSysExBasic() 199 checker.compareWithExpected(encoded); in testSysExBasic() [all …]
|
/frameworks/base/ravenwood/runtime-helper-src/libcore-fake/libcore/util/ |
D | HexEncoding.java | 147 public static byte[] decode(String encoded) throws IllegalArgumentException { in decode() argument 148 return decode(encoded.toCharArray()); in decode() 164 public static byte[] decode(String encoded, boolean allowSingleChar) in decode() argument 166 return decode(encoded.toCharArray(), allowSingleChar); in decode() 180 public static byte[] decode(char[] encoded) throws IllegalArgumentException { in decode() argument 181 return decode(encoded, false); in decode() 197 public static byte[] decode(char[] encoded, boolean allowSingleChar) in decode() argument 199 int encodedLength = encoded.length; in decode() 209 result[resultOffset++] = (byte) toDigit(encoded, i); in decode() 219 result[resultOffset++] = (byte) ((toDigit(encoded, i) << 4) | toDigit(encoded, i + 1)); in decode()
|
/frameworks/base/core/java/android/net/ |
D | Uri.java | 1889 StringBuilder encoded = null; in encode() local 1914 encoded.append(s, current, oldLength); in encode() 1915 return encoded.toString(); in encode() 1919 if (encoded == null) { in encode() 1920 encoded = new StringBuilder(); in encode() 1925 encoded.append(s, current, nextToEncode); in encode() 1947 encoded.append('%'); in encode() 1948 encoded.append(HEX_DIGITS[(bytes[i] & 0xf0) >> 4]); in encode() 1949 encoded.append(HEX_DIGITS[bytes[i] & 0xf]); in encode() 1959 return encoded == null ? s : encoded.toString(); in encode() [all …]
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | NotificationShellCmd.java | 451 Icon parseIcon(Resources res, String encoded) throws IllegalArgumentException { in parseIcon() argument 452 if (TextUtils.isEmpty(encoded)) return null; in parseIcon() 453 if (encoded.startsWith("/")) { in parseIcon() 454 encoded = "file://" + encoded; in parseIcon() 456 if (encoded.startsWith("http:") in parseIcon() 457 || encoded.startsWith("https:") in parseIcon() 458 || encoded.startsWith("content:") in parseIcon() 459 || encoded.startsWith("file:") in parseIcon() 460 || encoded.startsWith("android.resource:")) { in parseIcon() 461 Uri asUri = Uri.parse(encoded); in parseIcon() [all …]
|
/frameworks/base/core/tests/coretests/src/android/util/ |
D | Base64Test.java | 337 byte[] encoded = Base64.encode(plain, flags); in testInputStream() 348 bais = new ByteArrayInputStream(encoded); in testInputStream() 357 bais = new ByteArrayInputStream(encoded); in testInputStream() 366 bais = new ByteArrayInputStream(encoded); in testInputStream() 393 assertPartialEquals(actual, ap, encoded); in testInputStream() 402 assertPartialEquals(actual, ap, encoded); in testInputStream() 421 assertPartialEquals(actual, ap, encoded); in testInputStream() 454 byte[] encoded = Base64.encode(plain, flags); in testOutputStream() 469 assertArrayEquals(encoded, actual); in testOutputStream() 479 assertArrayEquals(encoded, actual); in testOutputStream() [all …]
|
/frameworks/base/core/java/android/content/pm/ |
D | VerifierDeviceIdentity.java | 114 final char encoded[] = new char[LONG_SIZE + (LONG_SIZE / GROUP_SIZE)]; in encodeBase32() local 116 int index = encoded.length; in encodeBase32() 125 encoded[--index] = SEPARATOR; in encodeBase32() 134 encoded[--index] = alphabet[group]; in encodeBase32() 137 return String.valueOf(encoded); in encodeBase32()
|
/frameworks/base/keystore/java/android/security/keystore2/ |
D | AndroidKeyStoreCipherSpiBase.java | 723 byte[] encoded = null; in engineWrap() 727 encoded = key.getEncoded(); in engineWrap() 729 if (encoded == null) { in engineWrap() 735 encoded = spec.getEncoded(); in engineWrap() 744 encoded = key.getEncoded(); in engineWrap() 746 if (encoded == null) { in engineWrap() 751 encoded = spec.getEncoded(); in engineWrap() 760 encoded = key.getEncoded(); in engineWrap() 762 if (encoded == null) { in engineWrap() 767 encoded = spec.getEncoded(); in engineWrap() [all …]
|
D | AndroidKeyStoreXDHPublicKey.java | 74 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 75 if (encoded.length != (preamble.length + X25519_KEY_SIZE_BYTES)) { in matchesPreamble() 79 if (Arrays.compare(preamble, 0, preamble.length, encoded, 0, preamble.length) != 0) { in matchesPreamble()
|
D | AndroidKeyStoreEdECPublicKey.java | 105 private static int matchesPreamble(byte[] preamble, byte[] encoded) { in matchesPreamble() argument 106 if (encoded.length != (preamble.length + ED25519_KEY_SIZE_BYTES)) { in matchesPreamble() 109 if (Arrays.compare(preamble, Arrays.copyOf(encoded, preamble.length)) != 0) { in matchesPreamble()
|
/frameworks/base/libs/androidfw/ |
D | StringPool.cpp | 369 const std::string& encoded = util::Utf8ToModifiedUtf8(str); in EncodeString() local 371 utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(encoded.data()), encoded.size()); in EncodeString() 376 if ((((size_t)encoded.size()) > EncodeLengthMax<char>()) || in EncodeString() 386 EncodedLengthUnits<char>(encoded.size()) + encoded.size() + 1; in EncodeString() 394 data = EncodeLength(data, encoded.size()); in EncodeString() 395 strncpy(data, encoded.data(), encoded.size()); in EncodeString() 398 const std::u16string encoded = util::Utf8ToUtf16(str); in EncodeString() local 399 const ssize_t utf16_length = encoded.size(); in EncodeString() 412 const size_t total_size = EncodedLengthUnits<char16_t>(utf16_length) + encoded.size() + 1; in EncodeString() 418 const size_t byte_length = encoded.size() * sizeof(char16_t); in EncodeString() [all …]
|
/frameworks/proto_logging/stats/atoms/transparency/ |
D | boot_integrity_extension_atoms.proto | 25 // the hex encoded string of sepolicy (from sysfs) hash 27 // the hex encoded string of VBMeta Digest value
|
/frameworks/av/media/libdatasource/ |
D | DataURISource.cpp | 60 AString encoded(cleansed); in Create() local 63 buffer = decodeBase64(encoded); in Create()
|
/frameworks/base/errorprone/tests/res/libcore/util/ |
D | HexEncoding.java | 24 public static byte[] decode(String encoded) { in decode() argument
|
/frameworks/base/core/java/org/apache/http/conn/ssl/ |
D | AndroidDistinguishedNameParser.java | 184 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/ |
D | etc1.cpp | 517 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/base/packages/SystemUI/tests/src/com/android/systemui/log/echo/ |
D | LogcatEchoTrackerDebugTest.kt | 186 val encoded = LogcatEchoSettingFormat().stringifyOverrides(overrides.asList()) in setOverrides() constant 187 globalSettings.putString(OVERRIDE_SETTING_PATH, encoded) in setOverrides()
|
/frameworks/av/media/module/id3/include/ |
D | ID3.h | 96 static bool ParseSyncsafeInteger(const uint8_t encoded[4], size_t *x);
|
/frameworks/base/tests/AttestationVerificationTest/src/com/android/server/security/ |
D | AttestationVerificationPeerDeviceVerifierTest.kt | 104 pkRequirements.putByteArray(PARAM_PUBLIC_KEY, leafCert.publicKey.encoded) in verifyAttestation_returnsSuccessTypePublicKey() 228 bos.write(it.encoded) in fromPEMFileToByteArray()
|
/frameworks/av/drm/mediadrm/plugins/clearkey/common/protos/ |
D | DeviceFiles.proto | 50 // A raw (not hex-encoded) SHA256, taken over the bytes of 'file'.
|
/frameworks/base/services/tests/servicestests/src/com/android/server/updates/ |
D | CertPinInstallReceiverTest.java | 131 byte[] encoded = content.getBytes(); in getCurrentHash() 132 byte[] fingerprint = dgst.digest(encoded); in getCurrentHash()
|
/frameworks/base/services/core/java/com/android/server/security/rkp/ |
D | RemoteProvisioningShellCommand.java | 264 String encoded = Base64.getEncoder().encodeToString(cert.getEncoded()); in certify() local 266 pw.println(encoded.replaceAll("(.{64})", "$1\n").stripTrailing()); in certify()
|
/frameworks/base/services/tests/VpnTests/java/com/android/internal/net/ |
D | VpnProfileTest.java | 204 final String encoded = new String(getSampleIkev2Profile(DUMMY_PROFILE_KEY).encode()); in getEncodedDecodedIkev2ProfileMissingValues() local 206 new ArrayList<>(Arrays.asList(encoded.split(VpnProfile.VALUE_DELIMITER))); in getEncodedDecodedIkev2ProfileMissingValues()
|
/frameworks/proto_logging/stats/ |
D | attribution_node.proto | 35 // element has no tag, it is encoded as an empty string.
|
/frameworks/base/services/core/java/com/android/server/pm/ |
D | ShortcutPackageInfo.java | 233 final String encoded = Base64.getEncoder().encodeToString(mSigHashes.get(i)); in saveToXml() local 234 ShortcutService.writeAttr(out, ATTR_SIGNATURE_HASH, encoded); in saveToXml()
|