Searched refs:hex (Results 1 - 25 of 71) sorted by relevance

123

/system/tpm/tpm_manager/server/
H A Dtpm_util.h23 LOG(severity) << "TPM error 0x" << std::hex << result << " (" \
/system/keymaster/tests/
H A Dckdf_test.cpp73 template <class Blob> Blob hex2span(const char* hex) { argument
74 string bytes = hex2str(hex);
79 KeymasterKeyBlob hex2key(const char* hex) { argument
80 return hex2span<KeymasterKeyBlob>(hex);
83 KeymasterBlob hex2blob(const char* hex) { argument
84 return hex2span<KeymasterBlob>(hex);
/system/netd/libnetdutils/
H A DNetfilter.cpp26 return os << std::hex << "nfgenmsg["
H A DNetlink.cpp63 return os << std::hex << "nlmsghdr["
70 return os << std::hex << "nlattr["
75 return os << std::hex << "sockaddr_nl["
H A DSlice.cpp55 return os << std::hex << "Slice[base: " << reinterpret_cast<void*>(slice.base())
/system/connectivity/wificond/
H A Dlogging_utils.cpp34 ss << std::hex << std::setfill('0') << std::setw(2) << static_cast<int>(b);
/system/tpm/trunks/
H A Dtrunks_ftdi_spi.cc180 LOG(ERROR) << "unknown did_vid: 0x" << std::hex << did_vid;
188 LOG(ERROR) << "invalid reset status: 0x" << std::hex << (unsigned)cmd;
195 LOG(ERROR) << "failed to claim locality, status: 0x" << std::hex
202 LOG(ERROR) << "unexpected TPM family value, status: 0x" << std::hex
228 LOG(ERROR) << "failed to get expected status " << std::hex
319 LOG(ERROR) << "unexpected status 0x" << std::hex << status;
330 LOG(ERROR) << "unexpected status 0x" << std::hex << status;
H A Dresource_manager.cc247 VLOG(1) << "CLEANUP_SESSION: " << std::hex << flushed_handle;
280 VLOG(1) << "RELOAD_SESSION: " << std::hex << session_handle;
307 VLOG(1) << "EVICT_OBJECT: " << std::hex << info.tpm_handle;
321 VLOG(1) << "EVICT_SESSION: " << std::hex << session_to_evict;
747 VLOG(1) << "RELOAD_OBJECT: " << std::hex << virtual_handle;
749 VLOG(1) << "INPUT_HANDLE_REPLACE: " << std::hex << virtual_handle << " -> "
750 << std::hex << handle_info.tpm_handle;
763 VLOG(1) << "OUTPUT_HANDLE_NEW_SESSION: " << std::hex << handle;
778 VLOG(1) << "OUTPUT_HANDLE_NEW_VIRTUAL: " << std::hex << handle << " -> "
779 << std::hex << new_virtual_handl
[all...]
H A Dtpm_state_impl.cc235 VLOG(1) << "TPM Property 0x" << std::hex << property.property
261 VLOG(1) << "Algorithm Properties 0x" << std::hex << property.alg
/system/netd/server/
H A DNetlinkHandler.h53 void notifyStrictCleartext(const char* uid, const char* hex);
H A DNetlinkHandler.cpp163 const char *hex = evt->findParam("HEX"); local
164 notifyStrictCleartext(uid, hex);
261 void NetlinkHandler::notifyStrictCleartext(const char* uid, const char* hex) { argument
262 notify(ResponseCode::StrictCleartext, "%s %s", uid, hex);
/system/bt/vendor_libs/test_vendor_lib/src/
H A Dbt_address.cc74 ss << std::hex << std::setfill('0') << std::setw(2);
77 ss << std::hex << std::setfill('0') << std::setw(2) << octet;
/system/core/fs_mgr/
H A Dfs_mgr_avb.cpp63 static bool hex_to_bytes(uint8_t* bytes, size_t bytes_len, const std::string& hex) { argument
66 if (hex.size() % 2 != 0) {
69 if (hex.size() / 2 > bytes_len) {
72 for (size_t i = 0, j = 0, n = hex.size(); i < n; i += 2, ++j) {
74 if (!nibble_value(hex[i], &high)) {
78 if (!nibble_value(hex[i + 1], &low)) {
90 std::string hex; local
93 hex.push_back(hex_digits[(bytes[i] & 0xF0) >> 4]);
94 hex.push_back(hex_digits[bytes[i] & 0x0F]);
96 return hex;
[all...]
/system/vold/
H A DUtils.h84 /* Converts hex string to raw bytes, ignoring [ :-] */
85 status_t HexToStr(const std::string& hex, std::string& str);
86 /* Converts raw bytes to hex string */
87 status_t StrToHex(const std::string& str, std::string& hex);
88 /* Converts raw key bytes to hex string */
89 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex);
90 /* Normalize given hex string into consistent format */
H A DUtils.cpp411 status_t HexToStr(const std::string& hex, std::string& str) { argument
415 for (size_t i = 0; i < hex.size(); i++) {
417 switch (hex[i]) {
452 status_t StrToHex(const std::string& str, std::string& hex) { argument
453 hex.clear();
455 hex.push_back(kLookup[(str[i] & 0xF0) >> 4]);
456 hex.push_back(kLookup[str[i] & 0x0F]);
461 status_t StrToHex(const KeyBuffer& str, KeyBuffer& hex) { argument
462 hex.clear();
464 hex
[all...]
H A DKeyUtil.cpp102 o << std::hex << std::setw(2) << std::setfill('0') << (int)i;
/system/core/adb/client/
H A Dusb_osx.cpp159 LOG(ERROR) << "Unable to create an interface plug-in (" << std::hex << kr << ")";
170 LOG(ERROR) << "Couldn't query the interface (" << std::hex << result << ")";
191 LOG(ERROR) << "Couldn't grab device from interface (" << std::hex << kr << ")";
206 LOG(ERROR) << "Unable to create a device plug-in (" << std::hex << kr << ")";
216 LOG(ERROR) << "Couldn't create a device interface (" << std::hex << result << ")";
321 LOG(ERROR) << "Could not clear pipe stall both ends: " << std::hex << rc;
340 LOG(ERROR) << "Could not open interface: " << std::hex << kr;
347 LOG(ERROR) << "Unable to get number of endpoints: " << std::hex << kr;
388 << std::hex << kr;
503 LOG(ERROR) << "usb_write failed with status: " << std::hex << resul
[all...]
/system/extras/ext4_utils/
H A Dext4_crypt.cpp100 static void policy_to_hex(const char* policy, char* hex) { argument
102 hex[j++] = HEX_LOOKUP[(policy[i] & 0xF0) >> 4];
103 hex[j++] = HEX_LOOKUP[policy[i] & 0x0F];
105 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/bt/packet/tests/base/
H A Dpacket_test_common.h27 tmp << "0x" << std::internal << std::hex << std::setfill('0')
/system/bt/btcore/test/
H A Ddevice_class_test.cc35 ss << std::showbase << std::hex << std::setw(8) << std::setfill('0') << m;
39 ss << std::showbase << std::hex << std::setw(8) << std::setfill('0') << n;
/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/update_engine/
H A Dcommon_service.cc80 << "flags=0x" << std::hex << flags << " "
99 << "flags=0x" << std::hex << flags << " "
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp304 char* hex = (char*) calloc(1, 5 + (len * 2)); local
305 strcpy(hex, "HEX=");
307 hex[4 + (i * 2)] = "0123456789abcdef"[(raw[i] >> 4) & 0xf];
308 hex[5 + (i * 2)] = "0123456789abcdef"[raw[i] & 0xf];
312 mParams[1] = hex;
/system/core/init/
H A Dutil.cpp276 * Writes hex_len hex characters (1/2 byte) to hex from bytes.
279 std::string hex("0x");
281 android::base::StringAppendF(&hex, "%02x", bytes[i]);
282 return hex;

Completed in 4140 milliseconds

123