Lines Matching refs:raw_value
43 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
138 auto rust_value = ConstantValueDecoratorInternal(type, raw_value, false); in ConstantValueDecorator()
145 std::string ConstantValueDecoratorRef(const AidlTypeSpecifier& type, const std::string& raw_value) { in ConstantValueDecoratorRef() argument
146 auto rust_value = ConstantValueDecoratorInternal(type, raw_value, true); in ConstantValueDecoratorRef()