Home
last modified time | relevance | path

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

1234

/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py295 self.profile_under_test.encode())
341 self.profile_under_test.encode(), self.use_auto_impl_send_func,
355 self.pts_installation_directory.encode(), self.dev_search_msg_func,
396 self.profile_under_test.encode())
407 (self.ixit[ixit_name])[1], self.profile_under_test.encode())
419 address_b = self.address_str.encode("utf-8")
425 self.pts_installation_directory).encode()
426 res = self.pts_library.InitEtsEx(self.profile_under_test.encode(),
427 self.log_directory.encode(),
434 res = self.pts_library.InitStackEx(self.profile_under_test.encode())
[all …]
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java58 HexEncoding.encode(parse("30050403123456", SequenceWithOctetString.class).buf)); in testOctetString()
60 "", HexEncoding.encode(parse("30020400", SequenceWithOctetString.class).buf)); in testOctetString()
67 HexEncoding.encode(parse("30050303123456", SequenceWithBitString.class).buf)); in testBitString()
69 "", HexEncoding.encode(parse("30020300", SequenceWithBitString.class).buf)); in testBitString()
250 assertEquals("02010c", HexEncoding.encode(input)); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
259 assertEquals("02010c", HexEncoding.encode(input)); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
273 assertEquals("02010c", HexEncoding.encode(input)); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues()
275 assertEquals("02020000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues()
289 assertEquals("02010c", HexEncoding.encode(input)); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
291 assertEquals("0280030000", HexEncoding.encode(c.obj.getEncoded())); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
DAsn1DerEncoderTest.java109 encode(new Choice(null, null)); in testChoiceWithNoFieldsSet()
115 encode(new Choice(123, "1.3.6.1.4.1.311.21.20")); in testChoiceWithMultipleFieldsSet()
213 private static byte[] encode(Object obj) throws Asn1EncodingException { in encode() method in Asn1DerEncoderTest
214 return Asn1DerEncoder.encode(obj); in encode()
218 return HexEncoding.encode(encode(obj)); in encodeToHex()
/tools/apksig/src/test/java/com/android/apksig/internal/util/
DHexEncoding.java34 public static String encode(byte[] data) { in encode() method in HexEncoding
35 return encode(data, 0, data.length); in encode()
41 public static String encode(byte[] data, int offset, int len) { in encode() method in HexEncoding
54 public static String encode(ByteBuffer buf) { in encode() method in HexEncoding
55 return encode(buf.array(), buf.arrayOffset() + buf.position(), buf.remaining()); in encode()
DVerityTreeBuilderTest.java70 return HexEncoding.encode(builder.generateVerityTreeRootHash( in generateRootHash()
95 assertEquals(expectedRootHash, HexEncoding.encode(rootHash)); in generateVerityTreeRootHashFromPlaceholderDataSource()
111 assertEquals(expectedRootHash, HexEncoding.encode(rootHash)); in generateVerityTreeRootHashFromPlaceholderDataSource()
DChainedDataSourceTest.java118 HexEncoding.encode(buffer.array()) + " vs " + HexEncoding.encode(buffer2.array()), in assertByteBufferEquals()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DHexEncoding.java34 public static String encode(byte[] data, int offset, int length) { in encode() method in HexEncoding
47 public static String encode(byte[] data) { in encode() method in HexEncoding
48 return encode(data, 0, data.length); in encode()
55 return encode(data.array(), data.arrayOffset() + data.position(), data.remaining()); in encodeRemaining()
DApkSignerTool.java1114 System.out.println(name + " certificate SHA-256 digest: " + HexEncoding.encode( in printCertificate()
1116 System.out.println(name + " certificate SHA-1 digest: " + HexEncoding.encode( in printCertificate()
1119 name + " certificate MD5 digest: " + HexEncoding.encode(md5.digest(encodedCert))); in printCertificate()
1141 System.out.println(name + " public key SHA-256 digest: " + HexEncoding.encode( in printCertificate()
1143 System.out.println(name + " public key SHA-1 digest: " + HexEncoding.encode( in printCertificate()
1146 name + " public key MD5 digest: " + HexEncoding.encode(md5.digest(encodedKey))); in printCertificate()
/tools/acloud/internal/lib/
Dadb_tools_test.py31 "transport_id:98").encode()
33 "127.0.0.1:48451 offline").encode()
36 "emulator-5554\tdevice\n").encode()
Demulator_console.py119 self._socket.send(command.encode() + b"\n")
139 expected_data = expected_substring.encode()
/tools/test/connectivity/acts_tests/tests/google/bt/pts/
DGattPtsTest.py48 ':', '').encode())
51 b'IA5STRING', self.dut_bluetooth_local_name.encode())
63 ':', '').encode())
66 b'IA5STRING', self.dut_bluetooth_local_name.encode())
DA2dpPtsTest.py43 ':', '').encode())
54 ':', '').encode())
DSdpPtsTest.py113 ':', '').encode())
124 ':', '').encode())
/tools/security/fuzzing/orphans/libcppbor/
Dcppbor_fuzzer.cpp25 cppbor::parse(val.encode()); in FuzzStringParsing()
36 cppbor::parse(map.encode()); in FuzzVectorParsing()
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/
DEncodeUtilsTest.java43 byte[] encoded = EncodeUtils.encode(text, flags); in asciiEncodeAndDecode()
53 byte[] encoded = EncodeUtils.encode(kazakhCapital, flags); in utf8EncodeAndDecode()
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRvrTwTest.py144 port.write('V?;'.encode())
163 port.write(InputdB.encode())
208 port.write('DG?;'.encode())
231 port.write(InputDG.encode())
DWifiDppTest.py369 ssid_encoded = binascii.hexlify(ssid.encode()).decode()
374 psk_encoded = binascii.b2a_hex(psk.encode()).decode()
381 password_encoded = binascii.b2a_hex(password.encode()).decode()
802 ssid_encoded = binascii.hexlify(ssid.encode()).decode()
806 psk_encoded = binascii.b2a_hex(psk.encode()).decode()
809 password_encoded = binascii.b2a_hex(password.encode()).decode()
/tools/security/remote_provisioning/attestation_testing/java/com/google/attestationexample/
DRootOfTrust.java95 .append(BaseEncoding.base64().encode(verifiedBootKey)) in toString()
101 .append(BaseEncoding.base64().encode(verifiedBootHash)) in toString()
DAttestation.java160 s.append(" (base64): [" + BaseEncoding.base64().encode(attestationChallenge) + "]"); in toString()
163 s.append("\nUnique ID (base64): [" + BaseEncoding.base64().encode(uniqueId) + "]"); in toString()
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/
Dmg3710a.py93 querytoSend = (query + TERMINATOR).encode('utf-8')
97 result = self._sock.recv(256).rstrip(TERMINATOR.encode('utf-8'))
116 cmdToSend = (command + TERMINATOR).encode('utf-8')
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/
DEncodeUtils.java107 public static byte[] encode(@Nonnull String name, @Nonnull GPFlags flags) { in encode() method in EncodeUtils
109 ByteBuffer bytes = charset.encode(name); in encode()
/tools/treble/split/
Dmanifest_split_test.py225 mock_check_output.return_value = '\n'.join(makefiles).encode()
373 kati_stamp_dump = product_makefile.encode()
560 kati_stamp_dump = product_makefile.encode()
/tools/asuite/atest-py2/
Datest_utils.py56 encode()).hexdigest()
476 _cmd = ''.join(cmd_list).encode('utf-8').split()
505 hashed_fn = hashlib.md5(str(main_file_name).encode())
/tools/apksig/src/main/java/com/android/apksig/internal/util/
DX509CertificateUtils.java127 byte[] reencodedForm = Asn1DerEncoder.encode(reencodedCert); in generateCertificate()
191 byte[] reencodedForm = Asn1DerEncoder.encode(reencodedCert); in generateCertificates()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueReaderTestBase.java235 HexEncoding.encode(readDataValue("028002030000010000").getEncodedContents())); in testPrimitiveIndefiniteLengthContentsMustNotBeParsed()
245 HexEncoding.encode(readDataValue( in testConstructedIndefiniteLengthContentsContainingIndefiniteLengthEncodedValues()

1234