Home
last modified time | relevance | path

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

12345

/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/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/
DThemeColors.kt22 val SliceTrackBackground = Color.decode("#2b2b2b")
24 val RowLabelBackground = Color.decode("#313335")
25 val RowLabelText = Color.decode("#9A9DA0")
27 val ProcessLabelBackground = Color.decode("#3c3f41")
28 val ProcessLabelText = Color.decode("#A9B7C6")
/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()
/tools/trebuchet/trebuchet/viewer/src/main/kotlin/traceviewer/ui/tracks/
DSchedTrack.kt44 val Runnable = Color.decode("#03A9F4")
45 val Running = Color.decode("#4CAF50")
46 val Sleeping = Color.decode("#424242")
47 val UnintrSleep = Color.decode("#A71C1C")
/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/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py313 key.decode(), value.decode())
317 key.decode(), value.decode())
468 task_name = task[0].decode("utf-8")
493 msg = (ctypes.c_char_p(msg_str).value).decode("utf-8")
512 b' ').decode("utf-8")
514 b' ').decode("utf-8")
516 b' ').decode("utf-8")
528 log_time = (ctypes.c_char_p(log_time_str).value).decode("utf-8")
529 log_descr = (ctypes.c_char_p(log_descr_str).value).decode("utf-8")
530 log_msg = (ctypes.c_char_p(log_msg_str).value).decode("utf-8")
[all …]
Darduino_wifi_dongle.py164 serial_ports = utils.exe_cmd(cmd).decode('utf-8', 'ignore').split('\n')
170 udev_output = utils.exe_cmd(cmd).decode('utf-8', 'ignore')
271 data = ser.readline().decode('utf-8', 'ignore')
/tools/test/connectivity/acts_tests/tests/google/wifi/
DWifiRvrTwTest.py205 degree_data = port.readline().decode("utf-8")
276 link_speed = wifiinfo.decode(
277 "utf-8")[wifiinfo.decode("utf-8").find("bitrate:") +
278 8:wifiinfo.decode("utf-8").find("Bit/s") - 2]
282 frequency = wifiinfo.decode(
283 "utf-8")[wifiinfo.decode("utf-8").find("freq:") +
284 6:wifiinfo.decode("utf-8").find("freq:") + 10]
367 hw_stage = hw_stage_temp.decode("utf-8").split("\n")[0]
379 country_code = country_code_temp.decode("utf-8").split(" ")[4].split(
393 channel = channel_temp.decode("utf-8").split(": ")[1].split("\n")[0]
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/minicircuits/
Dhttp.py62 config_str = att_req.read().decode('utf-8').strip()
120 att_resp = att_req.read().decode('utf-8').strip()
149 att_resp = att_req.read().decode('utf-8').strip()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/net/
Darduino_test_utils.py41 file_path = utils.exe_cmd(cmd).decode("utf-8", "ignore").split()[-1]
63 file_path = utils.exe_cmd(cmd).decode("utf-8", "ignore").rstrip()
/tools/apksig/src/test/java/com/android/apksig/internal/asn1/
DAsn1BerParserTest.java47 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("300012345678")); in testEmptySequence()
247 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("0280020401000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
256 input = ByteBuffer.wrap(HexEncoding.decode("0280028001000002010c")); in testPrimitiveIndefiniteLengthEncodingWithGarbage()
270 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("308002020000000002010c")); in testConstructedIndefiniteLengthEncodingWithoutNestedIndefiniteLengthDataValues()
286 ByteBuffer.wrap(HexEncoding.decode("308002800300000280030000020103000002010c")); in testConstructedIndefiniteLengthEncodingWithNestedIndefiniteLengthDataValues()
299 ByteBuffer input = ByteBuffer.wrap(HexEncoding.decode("3080308002040000000002010c")); in testConstructedIndefiniteLengthEncodingWithGarbage()
307 ? null : ByteBuffer.wrap(HexEncoding.decode(hexEncodedInput)); in parse()
/tools/test/connectivity/acts_tests/tests/meta/
DActsUnitTest.py64 stdout.decode('utf-8', errors='replace')))
70 stdout.decode('utf-8', errors='replace')))
/tools/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py258 has_default_value=False, default_value=b"".decode('utf-8'),
265 has_default_value=False, default_value=b"".decode('utf-8'),
335 has_default_value=False, default_value=b"".decode('utf-8'),
401 has_default_value=False, default_value=b"".decode('utf-8'),
480 has_default_value=False, default_value=b"".decode('utf-8'),
508 has_default_value=False, default_value=b"".decode('utf-8'),
515 has_default_value=False, default_value=b"".decode('utf-8'),
522 has_default_value=False, default_value=b"".decode('utf-8'),
568 has_default_value=False, default_value=b"".decode('utf-8'),
598 has_default_value=False, default_value=b"".decode('utf-8'),
[all …]
/tools/external_updater/
Dcrates_updater.py74 data = json.loads(request.read().decode())
112 data = json.loads(request.read().decode())
128 data = json.loads(request.read().decode())
137 data = json.loads(request.read().decode())
Dnotifier.py188 stdout = out.stdout.decode('utf-8')
189 stderr = out.stderr.decode('utf-8')
/tools/test/connectivity/acts/framework/acts/controllers/fuchsia_lib/
Dssh.py43 self._stdout = process.stdout.decode('utf-8', errors='replace')
44 self._stderr = process.stderr.decode('utf-8', errors='replace')
212 stderr = e.stderr.decode('utf-8', errors='replace')
Dffx.py41 self.stdout: str = process.stdout.decode('utf-8', errors='replace')
42 self.stderr: str = process.stderr.decode('utf-8', errors='replace')
311 ffx_version = self.run("version").stdout.decode('utf-8')
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAoaTargetPreparer.java109 int count = matcher.group(1) == null ? 1 : Integer.decode(matcher.group(1)); in ACTIONS.put()
192 return new Point(Integer.decode(x), Integer.decode(y)); in parsePoint()
213 return key != null ? key : new AoaKey(Integer.decode(value)); in parseKey()
/tools/security/fuzzing/orphans/hex/
Dhex_decoding_fuzzer.rs21 let _ = hex::decode(data);
Dhex_encoding_fuzzer.rs22 let decoded = hex::decode(encoded);
/tools/test/connectivity/acts/framework/acts/libs/proc/
Djob.py57 self._stdout_str = self._raw_stdout.decode(encoding=self._encoding,
66 self._stderr_str = self._raw_stderr.decode(encoding=self._encoding,
/tools/tradefederation/core/res/perfetto/
Drecord_android_trace224 digest = f.read().decode()
476 lines = probe.communicate()[0].decode().strip().split('\n')
524 on_device_config = mktmp.communicate()[0].decode().strip().strip()
560 proc_out = proc.communicate()[0].decode().strip()
596 poll_res = poll.communicate()[0].decode().strip()
/tools/security/fuzzing/orphans/libskia/
DAndroid.bp27 "libwebp-decode",
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/functional/
DMatchFilterTest.py76 p_mf = base64.b64encode(p_mf).decode(
78 s_mf = base64.b64encode(s_mf).decode(

12345