/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 | 394 "Failed for " + algorithm + " with key " + HexEncoding.encode(keyBytes), in testSmallMsgKat() 546 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesOneShot() 547 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesOneShot() 562 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac)); in assertMacDoesNotVerifyOneShot() 580 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesFedOneByteAtATime() 581 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesFedOneByteAtATime() 605 + ", MAC (" + mac.length + " bytes): " + HexEncoding.encode(mac) in assertMacVerifiesFedUsingFixedSizeChunks() 606 + ", actual MAC (" + mac2.length + " bytes): " + HexEncoding.encode(mac2)); in assertMacVerifiesFedUsingFixedSizeChunks()
|
D | RSACipherTest.java | 156 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus() 186 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus() 219 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus() 252 + HexEncoding.encode(plaintext)); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
|
D | SignatureTest.java | 700 + HexEncoding.encode(generatedSigBytes)); in testSmallMsgKat() 733 + HexEncoding.encode(generatedSigBytes)); in testSmallMsgKat() 776 + HexEncoding.encode(sigBytes)); in testLongMsgKat() 823 + HexEncoding.encode(generatedSigBytes)); in testLongMsgKat() 850 + HexEncoding.encode(generatedSigBytes)); in testLongMsgKat() 1259 + HexEncoding.encode(signature)); in assertSignatureVerifiesOneShot() 1277 + HexEncoding.encode(signature)); in assertSignatureDoesNotVerifyOneShot() 1297 + HexEncoding.encode(signature)); in assertSignatureVerifiesFedOneByteAtATime() 1343 + HexEncoding.encode(signature)); in assertSignatureVerifiesFedUsingFixedSizeChunks()
|
D | AESCipherNistCavpKatTest.java | 335 fail("Expected: " + HexEncoding.encode(expectedOutput) in runKatTest() 336 + ", actual: " + HexEncoding.encode(actualOutput)); in runKatTest()
|
D | RSASignatureTest.java | 159 + HexEncoding.encode(sigBytes)); in testSmallKeyRejected()
|
/cts/apps/CameraITS/utils/ |
D | its_session_utils.py | 340 if error is None or error.find('error'.encode()) < 0: 446 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 485 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 508 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 566 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 573 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 597 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 612 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 634 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) 651 self.sock.send(json.dumps(cmd).encode() + '\n'.encode()) [all …]
|
D | sensor_fusion_utils.py | 193 canakit_serial_port.write(CANAKIT_DATA_DELIMITER.encode()) 195 canakit_serial_port.write(cmd_str.encode()) 267 return [('%0.2x' % int(codecs.encode(x, 'hex_codec'), 16) if x else '--')
|
/cts/tests/tests/media/common/src/android/media/cts/ |
D | StreamUtils.java | 67 boolean encode) throws Exception { in MediaCodecStream() argument 69 mEncode = encode; in MediaCodecStream() 75 mCodec.configure(format,null, null, encode ? MediaCodec.CONFIGURE_FLAG_ENCODE : 0); in MediaCodecStream() 79 encode ? mCodec.getInputFormat() : mCodec.getOutputFormat(); in MediaCodecStream() 91 boolean encode) throws Exception { in MediaCodecStream() argument 92 this(format, encode); in MediaCodecStream() 99 boolean encode) throws Exception { in MediaCodecStream() argument 100 this(format, encode); in MediaCodecStream()
|
/cts/tests/tests/media/drmframework/src/android/media/drmframework/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()
|
/cts/tests/security/src/android/keystore/cts/ |
D | RootOfTrust.java | 113 ? BaseEncoding.base64().encode(mVerifiedBootKey) in toString() 121 ? BaseEncoding.base64().encode(mVerifiedBootHash) in toString()
|
D | Attestation.java | 174 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString() 177 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
|
/cts/tests/tests/notification/NotificationApp/src/com/android/test/notificationapp/ |
D | MatchesCallFilterTestActivity.java | 44 Uri.encode("+16175551212")); in onCreate()
|
/cts/tests/tests/media/codec/src/android/media/codec/cts/ |
D | VideoCodecTest.java | 175 VideoEncodeOutput videoEncodeOutput = encode(params, codecConfigs); in internalTestBasic() 265 videoEncodeOutput = encode(params, codecConfigs); in internalTestAsyncEncoding() 315 VideoEncodeOutput videoEncodeOutput = encode(params); in internalTestSyncFrame() 380 VideoEncodeOutput videoEncodeOutput = encode(params); in internalTestDynamicBitrateChange() 458 VideoEncodeOutput videoEncodeOutput = encode(params, codecConfigs); in internalTestParallelEncodingAndDecoding() 461 VideoEncodeOutput videoEncodeOutput = encode(params); in internalTestParallelEncodingAndDecoding() 558 if (encode(params, codecConfigs) == null) { in internalTestEncoderQuality()
|
/cts/hostsidetests/compilation/ |
D | Android.bp | 160 "--encode=com.android.server.art.proto.DexUseProto " + 173 "--encode=com.android.server.art.proto.DexMetadataConfig " + 195 "--encode=com.android.server.art.proto.DexMetadataConfig " +
|
/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/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/mediapc/requirements/ |
D | Android.bp | 25 " --encode=android.media.performanceclass.requirements.RequirementList" +
|
/cts/tests/video/src/android/video/cts/ |
D | CodecEncoderPerformanceTest.java | 131 encode(); in testPerformanceOfHardwareVideoEncoders()
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | NoSessionEncryptionTest.java | 87 new CborEncoder(baos).encode( in noSessionEncryption()
|
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/ |
D | CertSelectionDelegateTest.java | 146 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
|
/cts/tests/tests/media/ |
D | README.md | 8 | CtsMediaCodecTestCases | MediaCodec related tests, for combinations decode/encode …
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvContractTest.java | 179 values.put(Programs.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyProgramValues() 223 values.put(PreviewPrograms.COLUMN_CANONICAL_GENRE, Programs.Genres.encode( in createDummyBasePreviewProgramValues() 267 Programs.Genres.encode(Programs.Genres.MOVIES, Programs.Genres.DRAMA)); in createDummyRecordedProgramValues() 684 values.put(Channels.COLUMN_BROADCAST_GENRE, Genres.encode(broadcastGenre)); in testChannelsForBroadcastGenre() 693 values.put(Channels.COLUMN_BROADCAST_GENRE, Genres.encode(newBroadcastGenre)); in testChannelsForBroadcastGenre() 707 values.put(Channels.COLUMN_BROADCAST_GENRE, Genres.encode(broadcastGenre)); in testChannelsBroadcastGenreEncodeDecode() 1472 assertEquals(ENCODED_GENRE_STRING, Genres.encode(Genres.ANIMAL_WILDLIFE, in testProgramsGenresEncode() 1566 String encoded = Genres.encode(genres); in checkGenreEncodeDecode() 1586 values.put(Programs.COLUMN_BROADCAST_GENRE, Genres.encode(broadcastGenre)); in insertProgramWithBroadcastGenre()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | Base64Test.java | 286 byte[] encoded = Base64.encode(plain, flags); in testInputStream() 364 byte[] encoded = Base64.encode(plain, flags); in testOutputStream()
|