Home
last modified time | relevance | path

Searched refs:ToHexString (Results 1 – 10 of 10) sorted by relevance

/system/bt/gd/common/
Dstrings_test.cc36 using bluetooth::common::ToHexString;
48 ASSERT_EQ(ToHexString(0), "0x00000000"); in TEST()
49 ASSERT_EQ(ToHexString(3), "0x00000003"); in TEST()
50 ASSERT_EQ(ToHexString(25), "0x00000019"); in TEST()
51 ASSERT_EQ(ToHexString(-25), "-0x00000019"); in TEST()
52 ASSERT_EQ(ToHexString(INT_MIN + 1), "-0x7fffffff"); in TEST()
53 ASSERT_EQ(ToHexString(INT_MAX), "0x7fffffff"); in TEST()
54 ASSERT_EQ(ToHexString(INT_MIN), "INT_MIN"); in TEST()
56 ASSERT_EQ(ToHexString(1 + INT_MAX), "INT_MIN"); in TEST()
57 ASSERT_EQ(ToHexString(2 + INT_MAX), "-0x7fffffff"); // Rolled over in TEST()
[all …]
Dstrings.h39 std::string ToHexString(T x) { in ToHexString() function
42 return "-" + ToHexString(-x); in ToHexString()
50 inline std::string ToHexString<signed long>(signed long x) {
53 return "-" + ToHexString<signed long>(-x);
63 std::string ToHexString(InputIt first, InputIt last) { in ToHexString() function
74 std::string ToHexString(const std::vector<uint8_t>& value);
Dstrings.cc46 std::string ToHexString(const std::vector<uint8_t>& value) { in ToHexString() function
47 return ToHexString(value.begin(), value.end()); in ToHexString()
Dbyte_array.h76 return common::ToHexString(bytes.begin(), bytes.end()); in ToString()
/system/bt/gd/os/android/
Dmetrics.cc70 common::ToHexString(cmd_status).c_str(), in LogMetricLinkLayerConnectionEvent()
71 common::ToHexString(reason_code).c_str(), in LogMetricLinkLayerConnectionEvent()
72 common::ToHexString(hci_cmd).c_str(), in LogMetricLinkLayerConnectionEvent()
73 common::ToHexString(hci_event).c_str(), in LogMetricLinkLayerConnectionEvent()
74 common::ToHexString(hci_ble_event).c_str(), in LogMetricLinkLayerConnectionEvent()
77 common::ToHexString(link_type).c_str(), in LogMetricLinkLayerConnectionEvent()
85 LOG_WARN("Failed for opcode %s, error %d", common::ToHexString(hci_cmd).c_str(), ret); in LogMetricHciTimeoutEvent()
97 common::ToHexString(status).c_str(), in LogMetricRemoteVersionInfo()
98 common::ToHexString(version).c_str(), in LogMetricRemoteVersionInfo()
99 common::ToHexString(manufacturer_name).c_str(), in LogMetricRemoteVersionInfo()
[all …]
/system/core/fs_mgr/libsnapshot/
Dtest_helpers.cpp79 std::string ToHexString(const uint8_t* buf, size_t len) { in ToHexString() function
126 *hash = ToHexString(out, sizeof(out)); in WriteRandomData()
168 *hash = ToHexString(out, sizeof(out)); in WriteRandomData()
201 return ToHexString(out, sizeof(out)); in HashSnapshot()
215 return ToHexString(out, sizeof(out)); in GetHash()
/system/core/fs_mgr/liblp/
Dutility.cpp290 inline std::string ToHexString(uint64_t value) { in ToHexString() function
307 LWARN << "Zeroing unexpected flags: " << ToHexString(metadata->header.flags); in SetMetadataHeaderV0()
320 << " partition attribute: " << ToHexString(partition.attributes); in SetMetadataHeaderV0()
/system/bt/gd/storage/
Dconfig_cache_helper.cc107 config_cache_.SetProperty(section, property, common::ToHexString(value)); in SetBin()
/system/bt/gd/hci/
Dhci_metrics_logging.cc857 …sdp_di_vendor_id_source << "N:SDP::DIP::" << common::ToHexString(device.GetSdpDiVendorIdSource().v… in log_remote_device_information()
862 common::ToHexString(device.GetSdpDiManufacturer().value_or(0)).c_str(), in log_remote_device_information()
863 common::ToHexString(device.GetSdpDiModel().value_or(0)).c_str(), in log_remote_device_information()
864 common::ToHexString(device.GetSdpDiHardwareVersion().value_or(0)).c_str(), in log_remote_device_information()
/system/bt/gd/hal/
Dhci_hal_android_hidl.cc62 common::ToHexString(vec.begin(), std::min(vec.end(), vec.begin() + 5)).c_str()); in GetTimerText()