Home
last modified time | relevance | path

Searched refs:decode (Results 1 – 25 of 30) sorted by relevance

12

/tools/apksig/src/test/java/com/android/apksig/internal/asn1/ber/
DBerDataValueTest.java37 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 …]
DBerDataValueReaderTestBase.java116 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/
DEncodeUtils.java50 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()
DCentralDirectory.java346 String fileName = EncodeUtils.decode(encodedFileName, flags); in readEntry()
DStoredEntry.java473 String fileName = EncodeUtils.decode(fileNameData, cdh.getGpBit()); in readLocalHeader()
/tools/acloud/internal/proto/
Duser_config_pb2.py38 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 …]
Dinternal_config_pb2.py38 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/
DEncodeUtilsTest.java45 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/
DAsn1BerParserTest.java47 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/
Djob.py61 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/
Djob.py61 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/
DPackageInfo.java96 int flags = Integer.decode(value); in parseFlagsAsInt()
/tools/tradefederation/core/src/com/android/tradefed/testtype/
DFakeTest.java129 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/
Darduino_wifi_dongle.py167 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/
DHexEncoding.java61 public static byte[] decode(String encoded) { in decode() method in HexEncoding
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/
D_tnhelper.py79 ret_text = ret_text.decode()
/tools/test/connectivity/acts/framework/acts/controllers/relay_lib/
Dsain_smart_board.py84 result = page.read().decode("utf-8")
/tools/tradefederation/core/tests/src/com/android/tradefed/testtype/
DFakeTestTest.java114 assertEquals(output, mTest.decode(input)); in testDecode()
129 mTest.decode(error); in testDecode()
/tools/test/connectivity/acts/tests/google/tel/lab/
DTelLabPowerDataTest.py58 destination_ip = (destination_ip.decode("utf-8")).split("\n")[0]
DTelLabDataTest.py173 destination_ip = (destination_ip.decode("utf-8")).split("\n")[0]
/tools/test/connectivity/acts/framework/acts/test_utils/net/
Dipsec_test_utils.py32 return binascii.hexlify(os.urandom(int(len_bits/8))).decode()
/tools/apksig/src/apksigner/java/com/android/apksigner/
DPasswordRetriever.java291 .decode(ByteBuffer.wrap(pwdBytes)); in decodePassword()
/tools/test/connectivity/acts/framework/acts/test_utils/wifi/aware/
Daware_test_utils.py180 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/
Dmg3710a.py95 response = result.decode('utf-8')
/tools/repohooks/rh/
Dutils.py90 return self.stringify().decode('utf-8', 'replace').encode(

12