/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | UtilUnitTests.java | 56 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 …]
|
D | Util.java | 99 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()
|
D | DynamicAuthTest.java | 198 new CborEncoder(stBaos).encode(new CborBuilder() in dynamicAuthTest()
|
/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()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | MediaDrmMetricsTest.java | 121 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()
|
D | VideoCodecTest.java | 104 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()
|
D | MediaCodecTest.java | 2070 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/ |
D | Attestation.java | 148 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString() 151 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
|
D | RootOfTrust.java | 85 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
|
/cts/tests/location/location_gnss/src/android/location/cts/gnss/asn1/base/ |
D | Asn1IA5String.java | 79 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()
|
D | Asn1OctetString.java | 168 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 | 145 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
|
/cts/apps/CameraITS/tools/ |
D | rotation_rig.py | 183 return [('%0.2x' % int(codecs.encode(x, 'hex_codec'), 16) if x else '--')
|
/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 | 158 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/ |
D | IdentityCredentialAuthentication.java | 317 encoder.encode(builder.build()); in createItemsRequest()
|
/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()
|