/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/ |
D | BerDataValueTest.java | 37 ByteBuffer.wrap(HexEncoding.decode("aa")), 38 ByteBuffer.wrap(HexEncoding.decode("bb")), 45 ByteBuffer.wrap(HexEncoding.decode("cc")), 46 ByteBuffer.wrap(HexEncoding.decode("dd")), 71 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncoded() 72 assertByteBufferEquals(HexEncoding.decode("cc"), TEST_VALUE2.getEncoded()); in testGetEncoded() 80 assertByteBufferEquals(HexEncoding.decode("aa"), encoded); in testGetEncodedReturnsSlice() 82 assertByteBufferEquals(HexEncoding.decode("aa"), TEST_VALUE1.getEncoded()); in testGetEncodedReturnsSlice() 87 assertByteBufferEquals(HexEncoding.decode("bb"), TEST_VALUE1.getEncodedContents()); in testGetEncodedContents() 88 assertByteBufferEquals(HexEncoding.decode("dd"), TEST_VALUE2.getEncodedContents()); in testGetEncodedContents() [all …]
|
D | BerDataValueReaderTestBase.java | 116 HexEncoding.decode("010203"), readDataValue("3003010203").getEncodedContents()); in testShortFormLength() 123 HexEncoding.decode("010203"), readDataValue("30820003010203").getEncodedContents()); in testLongFormLength() 126 readDataValue(concat(HexEncoding.decode("3081ff"), new byte[255])) in testLongFormLength() 130 readDataValue(concat(HexEncoding.decode("30820110"), new byte[0x110])) in testLongFormLength() 153 HexEncoding.decode("020103"), readDataValue("30800201030000").getEncodedContents()); in testIndefiniteFormLength() 155 HexEncoding.decode( in testIndefiniteFormLength() 261 assertByteBufferEquals(HexEncoding.decode("37018f"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 262 assertByteBufferEquals(HexEncoding.decode("0500"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 263 assertByteBufferEquals(HexEncoding.decode("01020304"), reader.readDataValue().getEncoded()); in testReadAdvancesPosition() 268 return createReader(HexEncoding.decode(hexEncodedInput)); in createReader()
|
/tools/apkzlib/src/main/java/com/android/tools/build/apkzlib/zip/ |
D | EncodeUtils.java | 50 public static String decode(@Nonnull ByteBuffer bytes, int length, @Nonnull GPFlags flags) in decode() method in EncodeUtils 59 return decode(stringBytes, flags); in decode() 70 public static String decode(@Nonnull byte[] data, @Nonnull GPFlags flags) { in decode() method in EncodeUtils 71 return decode(data, flagsCharset(flags)); in decode() 82 private static String decode(@Nonnull byte[] data, @Nonnull Charset charset) { in decode() method in EncodeUtils 86 .decode(ByteBuffer.wrap(data)) in decode() 92 return decode(data, Charsets.UTF_8); in decode() 94 return charset.decode(ByteBuffer.wrap(data)).toString(); in decode()
|
D | CentralDirectory.java | 346 String fileName = EncodeUtils.decode(encodedFileName, flags); in readEntry()
|
D | StoredEntry.java | 473 String fileName = EncodeUtils.decode(fileNameData, cdh.getGpBit()); in readLocalHeader()
|
/tools/acloud/internal/proto/ |
D | user_config_pb2.py | 38 has_default_value=False, default_value=_b("").decode('utf-8'), 45 has_default_value=False, default_value=_b("").decode('utf-8'), 75 has_default_value=False, default_value=_b("").decode('utf-8'), 82 has_default_value=False, default_value=_b("").decode('utf-8'), 89 has_default_value=False, default_value=_b("").decode('utf-8'), 96 has_default_value=False, default_value=_b("").decode('utf-8'), 103 has_default_value=False, default_value=_b("").decode('utf-8'), 110 has_default_value=False, default_value=_b("").decode('utf-8'), 117 has_default_value=False, default_value=_b("").decode('utf-8'), 124 has_default_value=False, default_value=_b("").decode('utf-8'), [all …]
|
D | internal_config_pb2.py | 38 has_default_value=False, default_value=_b("").decode('utf-8'), 45 has_default_value=False, default_value=_b("").decode('utf-8'), 75 has_default_value=False, default_value=_b("").decode('utf-8'), 82 has_default_value=False, default_value=_b("").decode('utf-8'), 127 has_default_value=False, default_value=_b("").decode('utf-8'), 134 has_default_value=False, default_value=_b("").decode('utf-8'), 164 has_default_value=False, default_value=_b("").decode('utf-8'), 171 has_default_value=False, default_value=_b("").decode('utf-8'), 208 has_default_value=False, default_value=_b("").decode('utf-8'), 238 has_default_value=False, default_value=_b("").decode('utf-8'), [all …]
|
/tools/apkzlib/src/test/java/com/android/tools/build/apkzlib/zip/ |
D | EncodeUtilsTest.java | 45 assertEquals(text, EncodeUtils.decode(encoded, flags)); in asciiEncodeAndDecode() 57 assertEquals(kazakhCapital, EncodeUtils.decode(encoded, flags)); in utf8EncodeAndDecode() 69 String text = EncodeUtils.decode(greatWallChinese, flags); in asciiDecodeAsUtf8()
|
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ |
D | Asn1BerParserTest.java | 47 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("300012345678")); in testEmptySequence() 205 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("0280020401000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage() 214 input = ByteBuffer.wrap(HexEncoding.decode("0280028001000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage() 228 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("308002020000000002010c")); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues() 244 ByteBuffer.wrap(HexEncoding.decode("308002800300000280030000020103000002010c")); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues() 257 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("3080308002040000000002010c")); in testConstructedIndefiniteLengthEncodingWithGarbage() 265 ? null : ByteBuffer.wrap(HexEncoding.decode(hexEncodedInput)); in parse()
|
/tools/test/connectivity/tools/lab/utils/ |
D | job.py | 61 self._stdout_str = self._raw_stdout.decode(encoding=self._encoding) 69 self._stderr_str = self._raw_stderr.decode(encoding=self._encoding)
|
/tools/test/connectivity/acts/framework/acts/libs/proc/ |
D | job.py | 61 self._stdout_str = self._raw_stdout.decode(encoding=self._encoding) 69 self._stderr_str = self._raw_stderr.decode(encoding=self._encoding)
|
/tools/tradefederation/core/src/com/android/tradefed/device/ |
D | PackageInfo.java | 96 int flags = Integer.decode(value); in parseFlagsAsInt()
|
/tools/tradefederation/core/src/com/android/tradefed/testtype/ |
D | FakeTest.java | 129 String decode(String encoded) throws IllegalArgumentException { in decode() method in FakeTest 205 final String testSpec = decode(run.getValue()); in run()
|
/tools/test/connectivity/acts/framework/acts/controllers/ |
D | arduino_wifi_dongle.py | 167 serial_ports = utils.exe_cmd(cmd).decode("utf-8", "ignore").split("\n") 173 udev_output = utils.exe_cmd(cmd).decode("utf-8", "ignore") 272 data = ser.readline().decode("utf-8", "ignore")
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | HexEncoding.java | 61 public static byte[] decode(String encoded) { in decode() method in HexEncoding
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/ |
D | _tnhelper.py | 79 ret_text = ret_text.decode()
|
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/ |
D | sain_smart_board.py | 84 result = page.read().decode("utf-8")
|
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/ |
D | FakeTestTest.java | 114 assertEquals(output, mTest.decode(input)); in testDecode() 129 mTest.decode(error); in testDecode()
|
/tools/test/connectivity/acts/tests/google/tel/lab/ |
D | TelLabPowerDataTest.py | 58 destination_ip = (destination_ip.decode("utf-8")).split("\n")[0]
|
D | TelLabDataTest.py | 173 destination_ip = (destination_ip.decode("utf-8")).split("\n")[0]
|
/tools/test/connectivity/acts/framework/acts/test_utils/net/ |
D | ipsec_test_utils.py | 32 return binascii.hexlify(os.urandom(int(len_bits/8))).decode()
|
/tools/apksig/src/apksigner/java/com/android/apksigner/ |
D | PasswordRetriever.java | 291 .decode(ByteBuffer.wrap(pwdBytes)); in decodePassword()
|
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/ |
D | aware_test_utils.py | 180 encoded_list.append(base64.b64encode(bytes(obj, 'utf-8')).decode('utf-8')) 182 encoded_list.append(base64.b64encode(obj).decode('utf-8'))
|
/tools/test/connectivity/acts/framework/acts/controllers/anritsu_lib/ |
D | mg3710a.py | 95 response = result.decode('utf-8')
|
/tools/repohooks/rh/ |
D | utils.py | 90 return self.stringify().decode('utf-8', 'replace').encode(
|