Searched defs:hex (Results 1 - 15 of 15) sorted by relevance

/system/nfc/halimpl/bcm2079x/adaptation/
H A Dspdhelper.cpp47 static char hex[] = "0123456789ABCDEF"; local
49 c[0] = hex[((b >> 4) & 0x0F)];
50 c[1] = hex[((b >> 0) & 0x0F)];
H A Dandroid_logmsg.cpp37 static inline void word2hex(const char* data, char** hex);
53 // Protocol decoder is not available, so decode NCI packet into hex numbers.
104 // write hex of data
125 // write hex of data
130 // write hex padding
145 inline void word2hex(const char* data, char** hex) { argument
146 byte2hex(&data[1], hex);
147 byte2hex(&data[0], hex);
162 // Decode a few Bluetooth HCI packets into hex numbers.
176 // Decode a few Bluetooth HCI packets into hex number
[all...]
/system/tpm/attestation/common/
H A Dcrypto_utility_impl_test.cc48 std::string HexDecode(const std::string hex) { argument
50 CHECK(base::HexStringToBytes(hex, &output));
/system/bt/btif/src/
H A Dbtif_sock_util.cc160 static inline void word2hex(const char* data, char** hex) { argument
161 byte2hex(&data[1], hex);
162 byte2hex(&data[0], hex);
193 // write hex of data
214 // write hex of data
219 // write hex padding
/system/extras/ext4_utils/
H A Dext4_crypt.cpp73 static void policy_to_hex(const char* policy, char* hex) { argument
75 hex[j++] = HEX_LOOKUP[(policy[i] & 0xF0) >> 4];
76 hex[j++] = HEX_LOOKUP[policy[i] & 0x0F];
78 hex[EXT4_KEY_DESCRIPTOR_SIZE_HEX - 1] = '\0';
/system/extras/libfec/
H A Dfec_read.cpp34 char hex[bytes_per_line * 3 + 1]; local
45 memset(hex, 0, sizeof(hex));
50 ptrdiff_t offset = &hex[m * 3] - hex;
51 snprintf(hex + offset, sizeof(hex) - offset, "%02x ",
60 strcpy(&hex[m * 3], " ");
64 warn(" %04zu %s %s", n, hex, prn);
/system/netd/server/
H A DNetlinkHandler.cpp129 const char *hex = evt->findParam("HEX"); local
130 notifyStrictCleartext(uid, hex);
227 void NetlinkHandler::notifyStrictCleartext(const char* uid, const char* hex) { argument
228 notify(ResponseCode::StrictCleartext, "%s %s", uid, hex);
/system/tpm/attestation/server/
H A Dpkcs11_key_store_test.cc93 std::string HexDecode(const std::string hex) { argument
95 CHECK(base::HexStringToBytes(hex, &output));
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp287 char* hex = (char*) calloc(1, 5 + (len * 2)); local
288 strcpy(hex, "HEX=");
290 hex[4 + (i * 2)] = "0123456789abcdef"[(raw[i] >> 4) & 0xf];
291 hex[5 + (i * 2)] = "0123456789abcdef"[raw[i] & 0xf];
295 mParams[1] = hex;
/system/core/fs_mgr/
H A Dfs_mgr_avb.cpp110 static bool hex_to_bytes(uint8_t* bytes, size_t bytes_len, const std::string& hex) { argument
113 if (hex.size() % 2 != 0) {
116 if (hex.size() / 2 > bytes_len) {
119 for (size_t i = 0, j = 0, n = hex.size(); i < n; i += 2, ++j) {
121 if (!nibble_value(hex[i], &high)) {
125 if (!nibble_value(hex[i + 1], &low)) {
137 std::string hex; local
140 hex.push_back(hex_digits[(bytes[i] & 0xF0) >> 4]);
141 hex.push_back(hex_digits[bytes[i] & 0x0F]);
143 return hex;
[all...]
/system/core/init/
H A Dproperty_service.cpp649 std::string hex = bytes_to_hex(reinterpret_cast<uint8_t*>(hdr.id), sizeof(hdr.id)); local
650 property_set("ro.recovery_id", hex.c_str());
/system/netd/tests/dns_responder/
H A Ddns_responder.cpp50 static const char* hex = "0123456789ABCDEF"; local
52 str[i*2] = hex[c >> 4];
53 str[i*2 + 1] = hex[c & 0x0F];
/system/nfc/src/adaptation/
H A Dandroid_logmsg.cpp38 static inline void word2hex(const char* data, char** hex);
54 // Protocol decoder is not available, so decode NCI packet into hex numbers.
105 // write hex of data
126 // write hex of data
131 // write hex padding
146 inline void word2hex(const char* data, char** hex) { argument
147 byte2hex(&data[1], hex);
148 byte2hex(&data[0], hex);
163 // Decode a few Bluetooth HCI packets into hex numbers.
177 // Decode a few Bluetooth HCI packets into hex number
[all...]
/system/vold/
H A DUtils.cpp374 status_t HexToStr(const std::string& hex, std::string& str) { argument
378 for (size_t i = 0; i < hex.size(); i++) {
380 switch (hex[i]) {
415 status_t StrToHex(const std::string& str, std::string& hex) { argument
416 hex.clear();
418 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]);
419 hex.push_back(kLookup[str[i] & 0x0F]);
H A DExt4Crypt.cpp141 o << std::hex << std::setw(2) << std::setfill('0') << (int)i;
616 static bool parse_hex(const char* hex, std::string* result) { argument
617 if (strcmp("!", hex) == 0) {
621 if (android::vold::HexToStr(hex, *result) != 0) {
622 LOG(ERROR) << "Invalid FBE hex string"; // Don't log the string for security reasons

Completed in 340 milliseconds