Home
last modified time | relevance | path

Searched refs:hex_str (Results 1 – 18 of 18) sorted by relevance

/external/autotest/client/common_lib/
Dsmogcheck_ina219.py136 hex_str = '0x%.4x' % self.readWord(self.range_dict[measure]['reg'])
137 logging.debug('Word read = %r', hex_str)
138 return self._checkMeasureRange(hex_str, measure)
158 def _checkMeasureRange(self, hex_str, measure): argument
172 hex_str, self.range_dict[measure]['denom'])
181 def _convertHexToFloat(self, hex_str, denom): argument
202 match = HEX_STR_PATTERN.match(hex_str)
205 'expected pattern' % hex_str)
/external/skia/modules/skottie/src/layers/
DSolidLayer.cpp24 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer() local
27 !hex_str || in attachSolidLayer()
28 *hex_str->begin() != '#' || in attachSolidLayer()
29 !SkParse::FindHex(hex_str->begin() + 1, &c)) { in attachSolidLayer()
/external/capstone/suite/arm/
Dtest_arm_regression.c200 char *hex_str = NULL; in test_invalids() local
204 hex_str = hex_string(invalid_code->code, invalid_code->size); in test_invalids()
206 printf("%s %s: %s\n", invalid->platform_comment, hex_str, invalid_code->comment); in test_invalids()
208 free(hex_str); in test_invalids()
328 char * hex_str = NULL; in test_valids() local
333 hex_str = hex_string(valid_code->code, valid_code->size); in test_valids()
336 valid->platform_comment, hex_str, valid_code->start_addr, in test_valids()
/external/python/asn1crypto/asn1crypto/
Dutil.py67 hex_str = '%x' % value
68 if len(hex_str) & 1:
69 hex_str = '0' + hex_str
71 output = hex_str.decode('hex')
/external/python/cryptography/tests/
Dutils.py173 hex_str = "".join(value).replace(" ", "").encode("ascii")
174 example_vector[key] = hex_str
200 hex_str = "".join(value).replace(" ", "").encode("ascii")
201 example_vector[key] = hex_str
221 hex_str = "".join(value).replace(" ", "")
222 public_key_vector[key] = int(hex_str, 16)
225 hex_str = "".join(value).replace(" ", "")
226 private_key_vector[key] = int(hex_str, 16)
/external/rust/crates/ring/src/
Dtest.rs365 pub fn from_hex(hex_str: &str) -> Result<Vec<u8>, String> { in from_hex()
366 if hex_str.len() % 2 != 0 { in from_hex()
372 let mut result = Vec::with_capacity(hex_str.len() / 2); in from_hex()
373 for digits in hex_str.as_bytes().chunks(2) { in from_hex()
/external/bazelbuild-rules_android/rules/
Dutils.bzl322 hex_str = ""
326 hex_str = _HEX_CHAR[r] + hex_str
328 return hex_str
330 return hex_str.lstrip("0")
/external/skqp/modules/skottie/src/
DSkottieLayer.cpp279 const skjson::StringValue* hex_str = jlayer["sc"]; in attachSolidLayer() local
282 !hex_str || in attachSolidLayer()
283 *hex_str->begin() != '#' || in attachSolidLayer()
284 !SkParse::FindHex(hex_str->begin() + 1, &c)) { in attachSolidLayer()
/external/llvm-project/lldb/examples/python/
Dgdbremote.py366 def get_value_from_hex_string(self, hex_str): argument
370 packet = Packet(hex_str)
527 hex_str = self.str[0:n]
529 return hex_str
533 hex_str = self.get_hex_chars(n)
534 if hex_str is None:
536 return int(hex_str, 16)
/external/llvm-project/lldb/source/Utility/
DArgs.cpp521 char hex_str[3] = {*p, '\0', '\0'}; in EncodeEscapeSequences() local
524 hex_str[1] = *p; in EncodeEscapeSequences()
527 unsigned long hex_value = strtoul(hex_str, nullptr, 16); in EncodeEscapeSequences()
/external/python/cpython3/Lib/
Dipaddress.py1801 hex_str = '%032x' % ip_int
1802 hextets = ['%x' % int(hex_str[x:x+4], 16) for x in range(0, 32, 4)]
1825 hex_str = '%032x' % ip_int
1826 parts = [hex_str[x:x+4] for x in range(0, 32, 4)]
/external/skia/src/utils/
DSkJSON.cpp672 const char hex_str[] = {p[1], p[2], p[3], p[4], '\0'}; in unescapeString() local
673 const auto* eos = SkParse::FindHex(hex_str, &hexed); in unescapeString()
/external/skqp/src/utils/
DSkJSON.cpp664 const char hex_str[] = {p[1], p[2], p[3], p[4], '\0'}; in unescapeString() local
665 const auto* eos = SkParse::FindHex(hex_str, &hexed); in unescapeString()
/external/python/ipaddress/
Dipaddress.py1949 hex_str = '%032x' % ip_int
1950 hextets = ['%x' % int(hex_str[x:x + 4], 16) for x in range(0, 32, 4)]
1973 hex_str = '%032x' % ip_int
1974 parts = [hex_str[x:x + 4] for x in range(0, 32, 4)]
/external/llvm-project/lldb/source/Core/
DFormatEntity.cpp2133 char hex_str[3] = {0, 0, 0}; in ParseInternal() local
2134 hex_str[0] = format[0]; in ParseInternal()
2139 hex_str[1] = format[0]; in ParseInternal()
2143 unsigned long hex_value = strtoul(hex_str, nullptr, 16); in ParseInternal()
/external/python/pyopenssl/src/OpenSSL/
Dcrypto.py2097 def set_serial(self, hex_str): argument
2111 bn_result = _lib.BN_hex2bn(bignum_ptr, hex_str)
/external/llvm-project/lldb/tools/debugserver/source/
DRNBRemote.cpp2679 std::string hex_str; in cstring_to_asciihex_string() local
2680 hex_str.reserve (strlen (str) * 2); in cstring_to_asciihex_string()
2685 hex_str += hexbuf; in cstring_to_asciihex_string()
2687 return hex_str; in cstring_to_asciihex_string()
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dbackend.py331 hex_str = self._ffi.string(hex_cdata)
333 return int(hex_str, 16)