Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 47) 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.java394 "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()
DRSACipherTest.java156 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextEqualToModulus()
186 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneLargerThanModulus()
219 + HexEncoding.encode(ciphertext)); in testNoPaddingEncryptionFailsWithPlaintextOneByteLongerThanModulus()
252 + HexEncoding.encode(plaintext)); in testNoPaddingDecryptionFailsWithCiphertextOneByteLongerThanModulus()
DSignatureTest.java700 + 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()
DAESCipherNistCavpKatTest.java335 fail("Expected: " + HexEncoding.encode(expectedOutput) in runKatTest()
336 + ", actual: " + HexEncoding.encode(actualOutput)); in runKatTest()
DRSASignatureTest.java159 + HexEncoding.encode(sigBytes)); in testSmallKeyRejected()
/cts/apps/CameraITS/utils/
Dits_session_utils.py340 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 …]
Dsensor_fusion_utils.py193 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/
DStreamUtils.java67 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/
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()
/cts/tests/security/src/android/keystore/cts/
DRootOfTrust.java113 ? BaseEncoding.base64().encode(mVerifiedBootKey) in toString()
121 ? BaseEncoding.base64().encode(mVerifiedBootHash) in toString()
DAttestation.java174 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/
DMatchesCallFilterTestActivity.java44 Uri.encode("+16175551212")); in onCreate()
/cts/tests/tests/media/codec/src/android/media/codec/cts/
DVideoCodecTest.java175 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/
DAndroid.bp160 "--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/
DByteBufferLineSpliteratorTest.java61 return new ByteBufferLineSpliterator<Integer>(Charset.defaultCharset().encode(data), 6, in createSpliterator()
/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/mediapc/requirements/
DAndroid.bp25 " --encode=android.media.performanceclass.requirements.RequirementList" +
/cts/tests/video/src/android/video/cts/
DCodecEncoderPerformanceTest.java131 encode(); in testPerformanceOfHardwareVideoEncoders()
/cts/tests/tests/identity/src/android/security/identity/cts/
DNoSessionEncryptionTest.java87 new CborEncoder(baos).encode( in noSessionEncryption()
/cts/hostsidetests/devicepolicy/app/CertInstaller/src/com/android/cts/certinstaller/
DCertSelectionDelegateTest.java146 + URLEncoder.encode(alias, "UTF-8")); in KeyChainAliasFuture()
/cts/tests/tests/media/
DREADME.md8 | CtsMediaCodecTestCases | MediaCodec related tests, for combinations decode/encode
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java179 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/
DBase64Test.java286 byte[] encoded = Base64.encode(plain, flags); in testInputStream()
364 byte[] encoded = Base64.encode(plain, flags); in testOutputStream()

12