Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 32) sorted by relevance

12

/cts/tests/tests/keystore/src/android/keystore/cts/
DHexEncoding.java36 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()
DMacTest.java343 "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()
DRSACipherTest.java120 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
149 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
181 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
213 + HexEncoding.encode(plaintext)); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
DSignatureTest.java663 + 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()
DAESCipherNistCavpKatTest.java297 fail("Expected: " + HexEncoding.encode(expectedOutput) in runKatTest()
298 + ", actual: " + HexEncoding.encode(actualOutput)); in runKatTest()
DRSASignatureTest.java141 + HexEncoding.encode(sigBytes)); in testSmallKeyRejected()
DBlockCipherTestBase.java1550 + ", backing array: " + HexEncoding.encode( in bufferToString()
1605 + HexEncoding.encode(expected) + ">"); in assertEquals()
1611 + HexEncoding.encode(actual) + ">"); in assertEquals()
DCipherTest.java878 + " bytes): " + HexEncoding.encode(ciphertext) + " for " in testLargerThanMaxSizedPlaintextRejected()
901 + HexEncoding.encode(ciphertext) + " for " in testLargerThanMaxSizedPlaintextRejected()
/cts/tests/tests/provider/src/libcore/util/
DHexEncoding.java33 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/
DMediaDrmMetricsTest.java118 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()
DVpxEncoderTest.java103 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()
DMediaCodecTest.java1926 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/
DAttestation.java135 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString()
138 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
DRootOfTrust.java85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1IA5String.java78 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()
DAsn1OctetString.java167 return getTypeName() + " = [ " + (value == null ? "<null>" : HEX.encode(value)) + " ];\n"; in toIndentedString()
/cts/tests/signature/tests/src/android/signature/cts/tests/
DByteBufferLineSpliteratorTest.java61 return new ByteBufferLineSpliterator<Integer>(Charset.defaultCharset().encode(data), 6, in createSpliterator()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java133 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java203 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/
DTvContractTest.java157 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/
DUsbAccessoryTestActivity.java279 ByteBuffer nameBuffer = Charset.forName("UTF-8").encode(CharBuffer.wrap(testName)); in nextTest()
/cts/libs/testserver/src/android/webkit/cts/
DCtsTestServer.java366 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/
DMediaUtils.java715 public static boolean hasHardwareCodec(String mime, boolean encode) { in hasHardwareCodec() argument
717 if (info.isEncoder() == encode && in hasHardwareCodec()
/cts/apps/CameraITS/pymodules/its/
Ddevice.py890 tagString = unicodedata.normalize('NFKD', jsonObj['tag']).encode('ascii', 'ignore');
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DKeyManagementTest.java780 Uri.parse("https://example.org/?alias=" + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()

12