/aosp12/frameworks/base/media/packages/BluetoothMidiService/tests/unit/src/com/android/bluetoothmidiservice/ |
H A D | BluetoothMidiDecoderTest.java | 91 decodePacket(encoded); in test() 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() 130 final byte[] encoded = { in testTwoNotesOnRunning() 146 final byte[] encoded = { in testTwoNoteOnsTwoChannels() 162 final byte[][] encoded = {{ in testTwoNoteOnsOverTime() 185 final byte[][] encoded = {{ in testSysExBasic() 202 final byte[][] encoded = {{ in testSysExTwoPackets() [all …]
|
H A D | BluetoothMidiEncoderTest.java | 110 final byte[][] encoded = {{ in testOneNoteOn() 117 checker.compareWithExpected(encoded); in testOneNoteOn() 122 final byte[][] encoded = {{ in testTwoNoteOnsSameChannel() 134 checker.compareWithExpected(encoded); in testTwoNoteOnsSameChannel() 139 final byte[][] encoded = {{ in testTwoNoteOnsTwoChannels() 151 checker.compareWithExpected(encoded); in testTwoNoteOnsTwoChannels() 156 final byte[][] encoded = { in testTwoNoteOnsOverTime() 182 checker.compareWithExpected(encoded); in testTwoNoteOnsOverTime() 187 final byte[][] encoded = {{ in testSysExBasic() 203 final byte[][] encoded = {{ in testSysExTwoPackets() [all …]
|
/aosp12/packages/modules/Wifi/framework/java/android/net/wifi/util/ |
H A D | HexEncoding.java | 107 public static byte[] decode(String encoded) throws IllegalArgumentException { in decode() argument 108 return decode(encoded.toCharArray()); in decode() 118 public static byte[] decode(String encoded, boolean allowSingleChar) in decode() argument 120 return decode(encoded.toCharArray(), allowSingleChar); in decode() 129 public static byte[] decode(char[] encoded) throws IllegalArgumentException { in decode() argument 130 return decode(encoded, false); in decode() 140 public static byte[] decode(char[] encoded, boolean allowSingleChar) in decode() argument 142 int encodedLength = encoded.length; in decode() 152 result[resultOffset++] = (byte) toDigit(encoded, i); in decode() 162 result[resultOffset++] = (byte) ((toDigit(encoded, i) << 4) | toDigit(encoded, i + 1)); in decode()
|
/aosp12/hardware/interfaces/identity/support/tests/ |
H A D | cppbor_test.cpp | 702 uint8_t* encEnd = encoded.data() + encoded.size(); in TEST() 708 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 717 uint8_t* encEnd = encoded.data() + encoded.size(); in TEST() 724 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 739 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 754 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 769 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 816 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 862 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() 877 parse(encoded.data(), encoded.data() + encoded.size(), &mpc); in TEST() [all …]
|
/aosp12/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 1886 StringBuilder encoded = null; in encode() local 1916 if (encoded == null) { in encode() 1956 return encoded == null ? s : encoded.toString(); in encode() 2001 volatile String encoded; field in Uri.AbstractPart 2008 this.encoded = encoded; in AbstractPart() 2059 super(encoded, decoded); in Part() 2069 return hasEncoded ? encoded : (encoded = encode(decoded)); in getEncoded() 2121 if (encoded == null) { in from() 2168 super(encoded, decoded); in PathPart() 2176 return hasEncoded ? encoded : (encoded = encode(decoded, "/")); in getEncoded() [all …]
|
/aosp12/packages/modules/Wifi/framework/tests/assets/hsr1/ |
H A D | README.txt | 2 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… 6 HSR1ProfileWithUpdateIdentifier.base64 - base64 encoded installation file with that contains an R2 …
|
/aosp12/hardware/interfaces/rebootescrow/aidl/default/ |
H A D | HadamardUtils.cpp | 120 static uint16_t DecodeWord(size_t word, const std::vector<uint8_t>& encoded) { in DecodeWord() argument 125 scores.push_back(1 - 2 * read_bit(encoded, i * KEY_CODEWORDS + word)); in DecodeWord() 158 std::vector<uint8_t> encoded(OUTPUT_SIZE_BYTES, 0); in DecodeKey() local 159 encoded[0] = shuffled[0]; in DecodeKey() 163 encoded[i] = encoded[j]; in DecodeKey() 164 encoded[j] = shuffled[i]; in DecodeKey() 170 uint16_t val = DecodeWord(i, encoded); in DecodeKey()
|
H A D | HadamardUtilsTest.cpp | 45 auto encoded = EncodeKey(key); in TEST_F() local 46 ASSERT_EQ(64 * 1024, encoded.size()); in TEST_F() 47 AddError(&encoded); in TEST_F() 48 auto decoded = DecodeKey(encoded); in TEST_F()
|
H A D | RebootEscrow.cpp | 39 auto encoded = hadamard::EncodeKey(ukek); in storeKey() local 41 if (!::android::base::WriteFully(fd, encoded.data(), encoded.size())) { in storeKey()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | Base64Test.java | 385 assertEquals(actual, ap, encoded); in testInputStream() 394 assertEquals(actual, ap, encoded); in testInputStream() 413 assertEquals(actual, ap, encoded); in testInputStream() 459 assertEquals(encoded, actual); in testOutputStream() 469 assertEquals(encoded, actual); in testOutputStream() 492 assertEquals(encoded, actual); in testOutputStream() 499 b64os.write(encoded); in testOutputStream() 508 b64os.write(encoded[i]); in testOutputStream() 519 while (p < encoded.length) { in testOutputStream() 521 l = Math.min(l, encoded.length-p); in testOutputStream() [all …]
|
/aosp12/frameworks/base/keystore/java/android/security/keystore2/ |
H A D | AndroidKeyStoreCipherSpiBase.java | 702 byte[] encoded = null; in engineWrap() 705 encoded = key.getEncoded(); in engineWrap() 707 if (encoded == null) { in engineWrap() 713 encoded = spec.getEncoded(); in engineWrap() 722 encoded = key.getEncoded(); in engineWrap() 724 if (encoded == null) { in engineWrap() 738 encoded = key.getEncoded(); in engineWrap() 740 if (encoded == null) { in engineWrap() 756 if (encoded == null) { in engineWrap() 762 return engineDoFinal(encoded, 0, encoded.length); in engineWrap() [all …]
|
/aosp12/frameworks/base/services/core/java/com/android/server/notification/ |
H A D | NotificationShellCmd.java | 447 if (TextUtils.isEmpty(encoded)) return null; in parseIcon() 448 if (encoded.startsWith("/")) { in parseIcon() 449 encoded = "file://" + encoded; in parseIcon() 451 if (encoded.startsWith("http:") in parseIcon() 452 || encoded.startsWith("https:") in parseIcon() 453 || encoded.startsWith("content:") in parseIcon() 454 || encoded.startsWith("file:") in parseIcon() 456 Uri asUri = Uri.parse(encoded); in parseIcon() 458 } else if (encoded.startsWith("@")) { in parseIcon() 464 } else if (encoded.startsWith("data:")) { in parseIcon() [all …]
|
/aosp12/frameworks/base/tools/aapt2/ |
H A D | StringPool.cpp | 370 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 …]
|
/aosp12/frameworks/base/core/java/android/content/pm/ |
H A 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()
|
/aosp12/art/tools/hiddenapi/ |
H A D | README.md | 22 Methods are encoded as: 25 Fields are encoded as: 31 Two bits of information are encoded in the DEX access flags. These are encoded 35 First bit is encoded as the inversion of visibility access flags (bits 2:0). 40 Second bit is encoded differently for each given type of class member as there
|
/aosp12/hardware/interfaces/confirmationui/1.0/ |
H A D | IConfirmationResultCallback.hal | 37 * The message is CBOR (RFC 7049) encoded and has the following format: 39 * The message is a CBOR encoded map (type 5) with the keys 40 * "prompt" and "extra". The keys are encoded as CBOR text string 41 * (type 3). The value <promptText> is encoded as CBOR text string 42 * (type 3), and the value <extraData> is encoded as CBOR byte string 54 * i.e. the literal UTF-8 encoded string "confirmation token", without
|
/aosp12/hardware/interfaces/identity/aidl/default/libeic/ |
H A D | EicCbor.c | 151 size_t encoded = value; in eicCborAppendSemantic() local 152 eicCborBegin(cbor, EIC_CBOR_MAJOR_TYPE_SEMANTIC, encoded); in eicCborAppendSemantic() 156 size_t encoded = value; in eicCborAppendUnsigned() local 157 eicCborBegin(cbor, EIC_CBOR_MAJOR_TYPE_UNSIGNED, encoded); in eicCborAppendUnsigned() 162 size_t encoded = -1 - value; in eicCborAppendNumber() local 163 eicCborBegin(cbor, EIC_CBOR_MAJOR_TYPE_NEGATIVE, encoded); in eicCborAppendNumber()
|
/aosp12/packages/apps/Messaging/src/com/android/messaging/util/ |
H A D | ImageUtils.java | 536 final byte[] encoded = recodeImage(attempts); in resizeStaticImage() 539 if (encoded != null && encoded.length <= mByteLimit) { in resizeStaticImage() 540 return encoded; in resizeStaticImage() 542 final int currentSize = (encoded == null ? 0 : encoded.length); in resizeStaticImage() 673 byte[] encoded = null; in recodeImage() 738 encoded = ImageUtils.bitmapToBytes(mScaled, mQuality); in recodeImage() 739 if (encoded != null && logv) { in recodeImage() 741 "getResizedImageData: Encoded down to " + encoded.length + "@" in recodeImage() 751 return encoded; in recodeImage()
|
/aosp12/frameworks/av/media/libdatasource/ |
H A D | DataURISource.cpp | 60 AString encoded(cleansed); in Create() local 63 buffer = decodeBase64(encoded); in Create()
|
/aosp12/hardware/interfaces/identity/support/include/cppbor/ |
H A D | README.md | 63 producing encoded CBOR. The basic process for "complete tree" 65 below) is to construct an `Item` which models the data to be encoded, 74 It's relatively rare that single values are encoded as above. More often, the 119 accomplish the same task but output the encoded data in different 129 for each encoded byte. It's the responsibility of the implementor 139 sufficient capacity to hold the encoding, and inserts the encoded 179 CppBor also supports parsing of encoded CBOR data, with the same
|
/aosp12/packages/services/Mms/src/com/android/mms/service/ |
H A D | MmsHttpClient.java | 505 byte[] encoded = null; in getNai() 507 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getNai() 509 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getNai() 512 nai = new String(encoded, "UTF-8"); in getNai() 514 nai = new String(encoded); in getNai()
|
/aosp12/packages/apps/Messaging/src/android/support/v7/mms/ |
H A D | MmsHttpClient.java | 453 byte[] encoded = null; in getEncodedNai() 455 encoded = Base64.encode(nai.getBytes("UTF-8"), Base64.NO_WRAP); in getEncodedNai() 457 encoded = Base64.encode(nai.getBytes(), Base64.NO_WRAP); in getEncodedNai() 460 return new String(encoded, "UTF-8"); in getEncodedNai() 462 return new String(encoded); in getEncodedNai()
|
/aosp12/packages/modules/Wifi/service/java/com/android/server/wifi/util/ |
H A D | NativeUtil.java | 59 ByteBuffer encoded = encoder.encode(CharBuffer.wrap(str)); in stringToByteArrayList() local 60 byte[] byteArray = new byte[encoded.remaining()]; in stringToByteArrayList() 61 encoded.get(byteArray); in stringToByteArrayList()
|
/aosp12/frameworks/base/core/java/org/apache/http/conn/ssl/ |
H A 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()
|
/aosp12/frameworks/native/opengl/libs/ETC1/ |
H A 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()
|