Home
last modified time | relevance | path

Searched refs:raw_value (Results 1 – 12 of 12) sorted by relevance

/system/bt/gd/hci/
Denum_helper.h38 auto raw_value = common::Int64FromString(str); in FromLegacyConfigString() local
39 if (!raw_value) { in FromLegacyConfigString()
42 if (*raw_value < hci::DeviceType::UNKNOWN || *raw_value > hci::DeviceType::DUAL) { in FromLegacyConfigString()
45 return static_cast<hci::DeviceType>(*raw_value); in FromLegacyConfigString()
51 auto raw_value = common::Int64FromString(str); in FromLegacyConfigString() local
52 if (!raw_value) { in FromLegacyConfigString()
55 if (*raw_value < static_cast<int64_t>(hci::AddressType::PUBLIC_DEVICE_ADDRESS) || in FromLegacyConfigString()
56 *raw_value > static_cast<int64_t>(hci::AddressType::RANDOM_IDENTITY_ADDRESS)) { in FromLegacyConfigString()
59 return static_cast<hci::AddressType>(*raw_value); in FromLegacyConfigString()
65 auto raw_value = common::Int64FromString(str); in FromLegacyConfigString() local
[all …]
/system/tools/aidl/
Daidl_to_rust.cpp43 const std::string& raw_value, bool by_ref) { in ConstantValueDecoratorInternal() argument
46 return "vec!" + raw_value; in ConstantValueDecoratorInternal()
51 return raw_value + " as u16"; in ConstantValueDecoratorInternal()
56 return raw_value + "32"; in ConstantValueDecoratorInternal()
60 return raw_value + "f64"; in ConstantValueDecoratorInternal()
66 return raw_value + ".into()"; in ConstantValueDecoratorInternal()
71 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecoratorInternal()
72 return GetRawRustName(type) + "::" + raw_value.substr(raw_value.find_last_of('.') + 1); in ConstantValueDecoratorInternal()
75 return raw_value; in ConstantValueDecoratorInternal()
137 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() argument
[all …]
Daidl_to_cpp.cpp193 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() argument
195 return raw_value; in ConstantValueDecorator()
199 return raw_value + "L"; in ConstantValueDecorator()
203 return "::android::String16(" + raw_value + ")"; in ConstantValueDecorator()
208 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecorator()
209 return GetRawCppName(type) + "::" + raw_value.substr(raw_value.find_last_of('.') + 1); in ConstantValueDecorator()
212 return raw_value; in ConstantValueDecorator()
Daidl_to_rust.h56 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
58 std::string ConstantValueDecoratorRef(const AidlTypeSpecifier& type, const std::string& raw_value);
Daidl_to_ndk.cpp72 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() argument
74 return raw_value; in ConstantValueDecorator()
78 return raw_value + "L"; in ConstantValueDecorator()
83 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecorator()
85 "::" + raw_value.substr(raw_value.find_last_of('.') + 1); in ConstantValueDecorator()
88 return raw_value; in ConstantValueDecorator()
Daidl_to_java.h42 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
Daidl_to_cpp.h26 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
Daidl_to_java.cpp41 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecorator() argument
43 return raw_value; in ConstantValueDecorator()
46 return raw_value + "L"; in ConstantValueDecorator()
50 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecorator()
51 return type.GetName() + "." + raw_value.substr(raw_value.find_last_of('.') + 1); in ConstantValueDecorator()
53 return raw_value; in ConstantValueDecorator()
Daidl_to_ndk.h34 std::string ConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
Daidl_language.cpp637 const std::string& raw_value) { in AidlConstantValueDecorator() argument
639 return raw_value; in AidlConstantValueDecorator()
644 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in AidlConstantValueDecorator()
645 return type.GetName() + "." + raw_value.substr(raw_value.find_last_of('.') + 1); in AidlConstantValueDecorator()
647 return raw_value; in AidlConstantValueDecorator()
Daidl_language.h197 std::function<std::string(const AidlTypeSpecifier& type, const std::string& raw_value)>;
434 std::string AidlConstantValueDecorator(const AidlTypeSpecifier& type, const std::string& raw_value);
/system/nvram/messages/include/nvram/messages/
Dproto.hpp194 uint64_t raw_value; in Decode() local
195 if (!reader->ReadVarint(&raw_value)) { in Decode()
198 value = static_cast<Type>(raw_value); in Decode()
199 return static_cast<uint64_t>(value) == raw_value; in Decode()