/cts/tests/tests/keystore/src/android/keystore/cts/ |
D | HexEncoding.java | 36 public static String encode(byte[] data) { in encode() method in HexEncoding 37 return encode(data, 0, data.length); in encode() 43 public static String encode(byte[] data, int offset, int len) { in encode() method in HexEncoding 56 public static String encode(ByteBuffer buf) { in encode() method in HexEncoding 57 return encode(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining()); in encode()
|
D | MacTest.java | 343 "Failed for " + algorithm + " with key " + HexEncoding.encode(keyBytes), in testSmallMsgKat() 479 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesOneShot() 480 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesOneShot() 495 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac)); in assertMacDoesNotVerifyOneShot() 513 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesFedOneByteAtATime() 514 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesFedOneByteAtATime() 538 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesFedUsingFixedSizeChunks() 539 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesFedUsingFixedSizeChunks()
|
D | RSACipherTest.java | 120 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 149 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() 181 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus() 213 + HexEncoding.encode(plaintext)); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
|
D | SignatureTest.java | 663 + HexEncoding.encode(generatedSigBytes)); in testSmallMsgKat() 696 + HexEncoding.encode(generatedSigBytes)); in testSmallMsgKat() 737 + HexEncoding.encode(sigBytes)); in testLongMsgKat() 781 + HexEncoding.encode(generatedSigBytes)); in testLongMsgKat() 808 + HexEncoding.encode(generatedSigBytes)); in testLongMsgKat() 1204 + HexEncoding.encode(signature)); in assertSignatureVerifiesOneShot() 1222 + HexEncoding.encode(signature)); in assertSignatureDoesNotVerifyOneShot() 1242 + HexEncoding.encode(signature)); in assertSignatureVerifiesFedOneByteAtATime() 1288 + HexEncoding.encode(signature)); in assertSignatureVerifiesFedUsingFixedSizeChunks()
|
D | AESCipherNistCavpKatTest.java | 297 fail("Expected: " + HexEncoding.encode(expectedOutput) in runKatTest() 298 + ", actual: " + HexEncoding.encode(actualOutput)); in runKatTest()
|
D | RSASignatureTest.java | 141 + HexEncoding.encode(sigBytes)); in testSmallKeyRejected()
|
D | BlockCipherTestBase.java | 1550 + ", backing array: " + HexEncoding.encode( in bufferToString() 1605 + HexEncoding.encode(expected) + ">"); in assertEquals() 1611 + HexEncoding.encode(actual) + ">"); in assertEquals()
|
D | CipherTest.java | 878 + " bytes): " + HexEncoding.encode(ciphertext) + " for " in testLargerThanMaxSizedPlaintextRejected() 901 + HexEncoding.encode(ciphertext) + " for " in testLargerThanMaxSizedPlaintextRejected()
|
/cts/tests/tests/provider/src/libcore/util/ |
D | HexEncoding.java | 33 public static char[] encode(byte[] data) { in encode() method in HexEncoding 34 return encode(data, 0, data.length); in encode() 40 public static char[] encode(byte[] data, int offset, int len) { in encode() method in HexEncoding 56 return new String(encode(data)); in encodeToString()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmMetricsTest.java | 118 BaseEncoding.base16().encode(sid1).toLowerCase(), in testGetMetricsSession() 119 BaseEncoding.base16().encode(sid2).toLowerCase())); in testGetMetricsSession() 127 BaseEncoding.base16().encode(sid1).toLowerCase(), in testGetMetricsSession() 128 BaseEncoding.base16().encode(sid2).toLowerCase())); in testGetMetricsSession() 173 String hexSid = BaseEncoding.base16().encode(sid).toLowerCase(); in testGetMetricsGetKeyRequest()
|
D | VpxEncoderTest.java | 103 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestBasic() 177 bufInfos = encode(params); in internalTestAsyncEncoding() 224 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestSyncFrame() 286 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestDynamicBitrateChange() 358 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestParallelEncodingAndDecoding() 450 if (encode(params) == null) { in internalTestEncoderQuality()
|
D | MediaCodecTest.java | 1926 private Integer encodingOfAudioCodec(String name, MediaFormat format, boolean encode) in encodingOfAudioCodec() argument 1928 final int flagEncoder = encode ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0; in encodingOfAudioCodec() 1937 encode ? codec.getInputFormat() : codec.getOutputFormat(); in encodingOfAudioCodec() 2039 boolean encode) throws Exception { in MediaCodecStream() argument 2041 mEncode = encode; in MediaCodecStream() 2047 mCodec.configure(format,null, null, encode ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in MediaCodecStream() 2051 encode ? mCodec.getInputFormat() : mCodec.getOutputFormat(); in MediaCodecStream() 2063 boolean encode) throws Exception { in MediaCodecStream() argument 2064 this(format, encode); in MediaCodecStream() 2071 boolean encode) throws Exception { in MediaCodecStream() argument [all …]
|
/cts/tests/security/src/android/keystore/cts/ |
D | Attestation.java | 135 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString() 138 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
|
D | RootOfTrust.java | 85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
|
/cts/tests/tests/location/src/android/location/cts/asn1/base/ |
D | Asn1IA5String.java | 78 ByteBuffer buffer = StandardCharsets.US_ASCII.newEncoder().encode(CharBuffer.wrap(alphabet)); in setAlphabet() 108 charset.newEncoder().encode(CharBuffer.wrap(value)); in setValue() 175 ByteBuffer buffer = charset.newEncoder().encode(CharBuffer.wrap(value)); in encodeValueCharacters()
|
D | Asn1OctetString.java | 167 return getTypeName() + " = [ " + (value == null ? "<null>" : HEX.encode(value)) + " ];\n"; in toIndentedString()
|
/cts/tests/signature/tests/src/android/signature/cts/tests/ |
D | ByteBufferLineSpliteratorTest.java | 61 return new ByteBufferLineSpliterator<Integer>(Charset.defaultCharset().encode(data), 6, in createSpliterator()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 133 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | UriTest.java | 203 String encoded = Uri.encode("Bob:/", "/"); in testEncodeAndDecode() 220 assertEquals(s, Uri.decode(Uri.encode(s, null))); in assertEncodeDecodeRoundtripExact()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 157 values.put(Programs.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyProgramValues() 198 values.put(PreviewPrograms.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyBasePreviewProgramValues() 240 Programs.Genres.encode(Programs.Genres.MOVIES, Programs.Genres.DRAMA)); in createDummyRecordedProgramValues() 1256 assertEquals(ENCODED_GENRE_STRING, Genres.encode(Genres.ANIMAL_WILDLIFE, in testProgramsGenresEncode() 1350 String encoded = Genres.encode(genres); in checkGenreEncodeDecode() 1370 values.put(Programs.COLUMN_BROADCAST_GENRE, Genres.encode(broadcastGenre)); in insertProgramWithBroadcastGenre()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/accessory/ |
D | UsbAccessoryTestActivity.java | 279 ByteBuffer nameBuffer = Charset.forName("UTF-8").encode(CharBuffer.wrap(testName)); in nextTest()
|
/cts/libs/testserver/src/android/webkit/cts/ |
D | CtsTestServer.java | 366 sb.append(URLEncoder.encode(getAssetUrl(path), "UTF-8")); in getQueryRedirectingAssetUrl() 403 sb.append(URLEncoder.encode(url, "UTF-8")); in getLinkedScriptUrl()
|
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/ |
D | MediaUtils.java | 715 public static boolean hasHardwareCodec(String mime, boolean encode) { in hasHardwareCodec() argument 717 if (info.isEncoder() == encode && in hasHardwareCodec()
|
/cts/apps/CameraITS/pymodules/its/ |
D | device.py | 890 tagString = unicodedata.normalize('NFKD', jsonObj['tag']).encode('ascii', 'ignore');
|
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/ |
D | KeyManagementTest.java | 780 Uri.parse("https://example.org/?alias=" + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
|