Home
last modified time | relevance | path

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

1234

/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/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/google/protobuf/
Ddescriptor_pb2.py232 has_default_value=False, default_value=_b("").decode('utf-8'),
239 has_default_value=False, default_value=_b("").decode('utf-8'),
309 has_default_value=False, default_value=_b("").decode('utf-8'),
377 has_default_value=False, default_value=_b("").decode('utf-8'),
457 has_default_value=False, default_value=_b("").decode('utf-8'),
485 has_default_value=False, default_value=_b("").decode('utf-8'),
492 has_default_value=False, default_value=_b("").decode('utf-8'),
499 has_default_value=False, default_value=_b("").decode('utf-8'),
546 has_default_value=False, default_value=_b("").decode('utf-8'),
577 has_default_value=False, default_value=_b("").decode('utf-8'),
[all …]
/tools/test/connectivity/acts/framework/acts/controllers/
Dbluetooth_pts_device.py314 key.decode(), value.decode())
318 key.decode(), value.decode())
469 task_name = task[0].decode("utf-8")
494 msg = (ctypes.c_char_p(msg_str).value).decode("utf-8")
513 b' ').decode("utf-8")
515 b' ').decode("utf-8")
517 b' ').decode("utf-8")
529 log_time = (ctypes.c_char_p(log_time_str).value).decode("utf-8")
530 log_descr = (ctypes.c_char_p(log_descr_str).value).decode("utf-8")
531 log_msg = (ctypes.c_char_p(log_msg_str).value).decode("utf-8")
[all …]
Darduino_wifi_dongle.py165 serial_ports = utils.exe_cmd(cmd).decode('utf-8', 'ignore').split('\n')
171 udev_output = utils.exe_cmd(cmd).decode('utf-8', 'ignore')
272 data = ser.readline().decode('utf-8', 'ignore')
/tools/tradefederation/core/atest/proto/
Dinternal_user_log_pb2.py42 has_default_value=False, default_value=_b("").decode('utf-8'),
56 has_default_value=False, default_value=_b("").decode('utf-8'),
63 has_default_value=False, default_value=_b("").decode('utf-8'),
107 has_default_value=False, default_value=_b("").decode('utf-8'),
114 has_default_value=False, default_value=_b("").decode('utf-8'),
158 has_default_value=False, default_value=_b("").decode('utf-8'),
172 has_default_value=False, default_value=_b("").decode('utf-8'),
246 has_default_value=False, default_value=_b("").decode('utf-8'),
260 has_default_value=False, default_value=_b("").decode('utf-8'),
304 has_default_value=False, default_value=_b("").decode('utf-8'),
[all …]
Dexternal_user_log_pb2.py190 has_default_value=False, default_value=_b("").decode('utf-8'),
287 has_default_value=False, default_value=_b("").decode('utf-8'),
294 has_default_value=False, default_value=_b("").decode('utf-8'),
308 has_default_value=False, default_value=_b("").decode('utf-8'),
/tools/asuite/atest/proto/
Dinternal_user_log_pb2.py42 has_default_value=False, default_value=_b("").decode('utf-8'),
56 has_default_value=False, default_value=_b("").decode('utf-8'),
63 has_default_value=False, default_value=_b("").decode('utf-8'),
107 has_default_value=False, default_value=_b("").decode('utf-8'),
114 has_default_value=False, default_value=_b("").decode('utf-8'),
158 has_default_value=False, default_value=_b("").decode('utf-8'),
172 has_default_value=False, default_value=_b("").decode('utf-8'),
246 has_default_value=False, default_value=_b("").decode('utf-8'),
260 has_default_value=False, default_value=_b("").decode('utf-8'),
304 has_default_value=False, default_value=_b("").decode('utf-8'),
[all …]
Dexternal_user_log_pb2.py190 has_default_value=False, default_value=_b("").decode('utf-8'),
287 has_default_value=False, default_value=_b("").decode('utf-8'),
294 has_default_value=False, default_value=_b("").decode('utf-8'),
308 has_default_value=False, default_value=_b("").decode('utf-8'),
/tools/test/connectivity/acts/tests/google/wifi/
DWifiRvrTwTest.py145 dB=port.readline().decode()
210 data = port.readline().decode('utf-8')
272 RSSI = wifiinfo.decode("utf-8")[wifiinfo.decode("utf-8").find("signal:") +
273 7:wifiinfo.decode("utf-8").find("dBm") - 1]
277 LS = wifiinfo.decode("utf-8")[wifiinfo.decode("utf-8").find("bitrate:") +
278 8:wifiinfo.decode("utf-8").find("Bit/s") - 2]
282 FR = wifiinfo.decode("utf-8")[wifiinfo.decode("utf-8").find("freq:") +
283 6:wifiinfo.decode("utf-8").find("freq:") + 10]
/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/asuite/atest/tools/tradefederation/core/proto/
Dtest_record_pb2.py139 has_default_value=False, default_value=_b("").decode('utf-8'),
176 has_default_value=False, default_value=_b("").decode('utf-8'),
213 has_default_value=False, default_value=_b("").decode('utf-8'),
220 has_default_value=False, default_value=_b("").decode('utf-8'),
321 has_default_value=False, default_value=_b("").decode('utf-8'),
362 has_default_value=False, default_value=_b("").decode('utf-8'),
369 has_default_value=False, default_value=_b("").decode('utf-8'),
414 has_default_value=False, default_value=_b("").decode('utf-8'),
421 has_default_value=False, default_value=_b("").decode('utf-8'),
428 has_default_value=False, default_value=_b("").decode('utf-8'),
/tools/test/connectivity/acts/framework/acts/test_utils/power/loggers/protos/
Dpower_metric_pb2.py45 has_default_value=False, default_value=_b("").decode('utf-8'),
59 has_default_value=False, default_value=_b("").decode('utf-8'),
66 has_default_value=False, default_value=_b("").decode('utf-8'),
73 has_default_value=False, default_value=_b("").decode('utf-8'),
94 has_default_value=False, default_value=_b("").decode('utf-8'),
101 has_default_value=False, default_value=_b("").decode('utf-8'),
108 has_default_value=False, default_value=_b("").decode('utf-8'),
122 has_default_value=False, default_value=_b("").decode('utf-8'),
/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/asuite/atest/
Datest_utils.py145 line = proc.stdout.readline().decode('utf-8')
621 find_git_cmd, shell=True).decode().splitlines()
627 git_status_cmd, shell=True).decode().rstrip().splitlines()
634 find_modified_files, shell=True).decode().splitlines()
693 if matched_tf_error_log(line.decode()):
694 content = content + line.decode()
776 output = subprocess.check_output(cmd).decode()
/tools/test/connectivity/acts/framework/acts/test_utils/bt/loggers/protos/
Dbluetooth_metric_pb2.py125 has_default_value=False, default_value=_b("").decode('utf-8'),
132 has_default_value=False, default_value=_b("").decode('utf-8'),
139 has_default_value=False, default_value=_b("").decode('utf-8'),
146 has_default_value=False, default_value=_b("").decode('utf-8'),
153 has_default_value=False, default_value=_b("").decode('utf-8'),
160 has_default_value=False, default_value=_b("").decode('utf-8'),
167 has_default_value=False, default_value=_b("").decode('utf-8'),
174 has_default_value=False, default_value=_b("").decode('utf-8'),
/tools/test/connectivity/acts/framework/acts/metrics/loggers/protos/gen/
Dmetrics_pb2.py38 has_default_value=False, default_value=_b("").decode('utf-8'),
45 has_default_value=False, default_value=_b("").decode('utf-8'),
52 has_default_value=False, default_value=_b("").decode('utf-8'),
80 has_default_value=False, default_value=_b("").decode('utf-8'),
149 has_default_value=False, default_value=_b("").decode('utf-8'),
156 has_default_value=False, default_value=_b("").decode('utf-8'),
/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/test/connectivity/acts/framework/acts/controllers/buds_lib/dev_utils/proto/gen/
Dplugin_pb2.py47 has_default_value=False, default_value=_b("").decode('utf-8'),
85 has_default_value=False, default_value=_b("").decode('utf-8'),
92 has_default_value=False, default_value=_b("").decode('utf-8'),
99 has_default_value=False, default_value=_b("").decode('utf-8'),
129 has_default_value=False, default_value=_b("").decode('utf-8'),
/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/test/openhst/
Dstress_test.py191 if search(line.decode("utf-8")):
285 self.output_fp.write(line.decode("utf-8").rstrip())
378 "ro.product.name"]).strip().decode("utf-8")
632 logging.info(line.decode("utf-8"))
826 serial_numbers.append(serial_number.decode("utf-8"))
992 if "adb" in subprocess.check_output(["ps", "-ale"]).decode("utf-8"):
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DAoaTargetPreparer.java108 int count = matcher.group(1) == null ? 1 : Integer.decode(matcher.group(1)); in ACTIONS.put()
191 return new Point(Integer.decode(x), Integer.decode(y)); in parsePoint()
209 return keycode != null ? keycode : Integer.decode(key); in parseKeycode()
/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/attenuator_lib/minicircuits/
Dhttp.py62 config_str = att_req.read().decode('utf-8')
118 att_resp = att_req.read().decode('utf-8')
144 att_resp = att_req.read().decode('utf-8')
/tools/external_updater/
Dgithub_archive_updater.py94 data = json.loads(request.read().decode())
114 data = json.loads(request.read().decode())
138 data = json.loads(request.read().decode())

1234