Home
last modified time | relevance | path

Searched refs:encode (Results 1 – 25 of 85) 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.java71 return HexEncoding.encode(builder.generateVerityTreeRootHash( in generateRootHash()
97 assertEquals(expectedRootHash, HexEncoding.encode(rootHash)); in generateVerityTreeRootHashFromDummyDataSource()
114 assertEquals(expectedRootHash, HexEncoding.encode(rootHash)); in generateVerityTreeRootHashFromDummyDataSource()
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.java914 System.out.println(name + " certificate SHA-256 digest: " + HexEncoding.encode( in printCertificate()
916 System.out.println(name + " certificate SHA-1 digest: " + HexEncoding.encode( in printCertificate()
919 name + " certificate MD5 digest: " + HexEncoding.encode(md5.digest(encodedCert))); in printCertificate()
941 System.out.println(name + " public key SHA-256 digest: " + HexEncoding.encode( in printCertificate()
943 System.out.println(name + " public key SHA-1 digest: " + HexEncoding.encode( in printCertificate()
946 name + " public key MD5 digest: " + HexEncoding.encode(md5.digest(encodedKey))); in printCertificate()
/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/test/connectivity/acts/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.py283 ssid_encoded = binascii.hexlify(ssid.encode()).decode()
288 psk_encoded = binascii.b2a_hex(psk.encode()).decode()
296 password_encoded = binascii.b2a_hex(password.encode()).decode()
/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')
Dmd8475a.py586 querytoSend = (query + TERMINATOR).encode('utf-8')
591 TERMINATOR.encode('utf-8'))
611 cmdToSend = (command + ";ERROR?" + TERMINATOR).encode('utf-8')
616 TERMINATOR.encode('utf-8'))
627 cmdToSend = (command + TERMINATOR).encode('utf-8')
/tools/tradefederation/core/atest/
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/asuite/atest/
Datest_utils_unittest.py372 encode()).hexdigest())
402 x.encode('utf-8') for x in ['/a/b/',
408 x.encode('utf-8') for x in ['/a/b/',
/tools/apksig/src/test/java/com/android/apksig/
DApkVerifierTest.java645 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testCorrectCertUsedFromPkcs7SignedDataCertsSet()
699 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded()
724 HexEncoding.encode(sha256(signingCerts.get(0).getEncoded()))); in testV1SchemeSignatureCertNotReencoded2()
/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/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/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()
/tools/treble/split/
Dmanifest_split_test.py172 mock_check_output.return_value = '\n'.join(makefiles).encode()
329 kati_stamp_dump = product_makefile.encode()
/tools/repohooks/rh/
Dutils.py359 input = input.encode('utf-8')
430 args=cmd, stderr=estr.encode('utf-8'), returncode=255)
/tools/tradefederation/core/common_util/com/android/tradefed/util/net/
DHttpHelper.java82 urlBuilder.append(URLEncoder.encode(key, "UTF-8")); in buildParameters()
84 urlBuilder.append(URLEncoder.encode(value, "UTF-8")); in buildParameters()

1234