Home
last modified time | relevance | path

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

12

/cts/tests/tests/identity/src/android/security/identity/cts/
DUtilUnitTests.java56 new CborEncoder(baos).encode(new CborBuilder() in prettyPrintMultipleCompleteTypes()
74 new CborEncoder(baos).encode(new UnicodeString("foobar")); in prettyPrintString()
81 new CborEncoder(baos).encode(new ByteString(new byte[]{1, 2, 33, (byte) 254})); in prettyPrintBytestring()
88 new CborEncoder(baos).encode(new UnsignedInteger(42)); in prettyPrintUnsignedInteger()
95 new CborEncoder(baos).encode(new NegativeInteger(-42)); in prettyPrintNegativeInteger()
102 new CborEncoder(baos).encode(new DoublePrecisionFloat(1.1)); in prettyPrintDouble()
106 new CborEncoder(baos).encode(new DoublePrecisionFloat(-42.0000000001)); in prettyPrintDouble()
110 new CborEncoder(baos).encode(new DoublePrecisionFloat(-5)); in prettyPrintDouble()
130 new CborEncoder(baos).encode(new SinglePrecisionFloat(-5f)); in prettyPrintFloat()
137 new CborEncoder(baos).encode(new HalfPrecisionFloat(1.1f)); in prettyPrintHalfFloat()
[all …]
DUtil.java99 encoder.encode(dataItem); in canonicalizeCbor()
292 encoder.encode(dataItems); in encodeCbor()
730 new CborEncoder(baos).encode(dataItem); in cborEncode()
936 new CborEncoder(daBaos).encode(new CborBuilder() in buildDeviceAuthenticationCbor()
962 new CborEncoder(daBaos).encode(new CborBuilder() in buildReaderAuthenticationBytesCbor()
981 new CborEncoder(baos).encode(taggedBytestring); in prependSemanticTagForEncodedCbor()
1149 new CborEncoder(baos).encode(new CborBuilder() in buildSessionTranscript()
1165 new CborEncoder(baos).encode(new CborBuilder() in buildSessionTranscript()
1235 encoder.encode(builder.build()); in createItemsRequest()
DDynamicAuthTest.java198 new CborEncoder(stBaos).encode(new CborBuilder() in dynamicAuthTest()
/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()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMetricsTest.java121 BaseEncoding.base16().encode(sid1).toLowerCase(), in testGetMetricsSession()
122 BaseEncoding.base16().encode(sid2).toLowerCase())); in testGetMetricsSession()
130 BaseEncoding.base16().encode(sid1).toLowerCase(), in testGetMetricsSession()
131 BaseEncoding.base16().encode(sid2).toLowerCase())); in testGetMetricsSession()
177 String hexSid = BaseEncoding.base16().encode(sid).toLowerCase(); in testGetMetricsGetKeyRequest()
DVideoCodecTest.java104 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params, codecConfigs); in internalTestBasic()
182 bufInfos = encode(params, codecConfigs); in internalTestAsyncEncoding()
231 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestSyncFrame()
294 ArrayList<MediaCodec.BufferInfo> bufInfo = encode(params); in internalTestDynamicBitrateChange()
369 bufInfo = encode(params, codecConfigs); in internalTestParallelEncodingAndDecoding()
371 bufInfo = encode(params); in internalTestParallelEncodingAndDecoding()
467 if (encode(params, codecConfigs) == null) { in internalTestEncoderQuality()
DMediaCodecTest.java2070 private Integer encodingOfAudioCodec(String name, MediaFormat format, boolean encode) in encodingOfAudioCodec() argument
2072 final int flagEncoder = encode ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0; in encodingOfAudioCodec()
2081 encode ? codec.getInputFormat() : codec.getOutputFormat(); in encodingOfAudioCodec()
2183 boolean encode) throws Exception { in MediaCodecStream() argument
2185 mEncode = encode; in MediaCodecStream()
2191 mCodec.configure(format,null, null, encode ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in MediaCodecStream()
2195 encode ? mCodec.getInputFormat() : mCodec.getOutputFormat(); in MediaCodecStream()
2207 boolean encode) throws Exception { in MediaCodecStream() argument
2208 this(format, encode); in MediaCodecStream()
2215 boolean encode) throws Exception { in MediaCodecStream() argument
[all …]
/cts/tests/security/src/android/keystore/cts/
DAttestation.java148 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString()
151 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
DRootOfTrust.java85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/
DAsn1IA5String.java79 ByteBuffer buffer = StandardCharsets.US_ASCII.newEncoder().encode(CharBuffer.wrap(alphabet)); in setAlphabet()
109 charset.newEncoder().encode(CharBuffer.wrap(value)); in setValue()
176 ByteBuffer buffer = charset.newEncoder().encode(CharBuffer.wrap(value)); in encodeValueCharacters()
DAsn1OctetString.java168 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.java145 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
/cts/apps/CameraITS/tools/
Drotation_rig.py183 return [('%0.2x' % int(codecs.encode(x, 'hex_codec'), 16) if x else '--')
/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.java158 values.put(Programs.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyProgramValues()
199 values.put(PreviewPrograms.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyBasePreviewProgramValues()
241 Programs.Genres.encode(Programs.Genres.MOVIES, Programs.Genres.DRAMA)); in createDummyRecordedProgramValues()
1263 assertEquals(ENCODED_GENRE_STRING, Genres.encode(Genres.ANIMAL_WILDLIFE, in testProgramsGenresEncode()
1357 String encoded = Genres.encode(genres); in checkGenreEncodeDecode()
1377 values.put(Programs.COLUMN_BROADCAST_GENRE, Genres.encode(broadcastGenre)); in insertProgramWithBroadcastGenre()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/security/
DIdentityCredentialAuthentication.java317 encoder.encode(builder.build()); in createItemsRequest()
/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()

12