Home
last modified time | relevance | path

Searched refs:Uint64FromString (Results 1 – 5 of 5) sorted by relevance

/system/bt/gd/common/
Dstrings_test.cc35 using bluetooth::common::Uint64FromString;
136 ASSERT_THAT(Uint64FromString("42"), Optional(Eq(uint64_t(42)))); in TEST()
137 ASSERT_THAT(Uint64FromString("0"), Optional(Eq(uint64_t(0)))); in TEST()
138 ASSERT_FALSE(Uint64FromString("")); in TEST()
140 ASSERT_FALSE(Uint64FromString("0x42ab")); in TEST()
142 ASSERT_FALSE(Uint64FromString("-42")); in TEST()
144 ASSERT_FALSE(Uint64FromString("42.0")); in TEST()
145 ASSERT_FALSE(Uint64FromString("-42.0")); in TEST()
146 ASSERT_FALSE(Uint64FromString("42abc")); in TEST()
147 ASSERT_FALSE(Uint64FromString("")); in TEST()
[all …]
Dstrings.h68 std::optional<uint64_t> Uint64FromString(const std::string& str);
Dstrings.cc135 std::optional<uint64_t> Uint64FromString(const std::string& str) { in Uint64FromString() function
/system/bt/gd/hci/
Dclass_of_device.cc118 auto num_64bit = common::Uint64FromString(str); in FromLegacyConfigString()
/system/bt/gd/storage/
Dconfig_cache_helper.cc52 return common::Uint64FromString(*value_str); in GetUint64()