Home
last modified time | relevance | path

Searched refs:decorator (Results 1 – 2 of 2) sorted by relevance

/system/tools/aidl/
Daidl_language.cpp276 std::string AidlVariableDeclaration::ValueString(const ConstantValueDecorator& decorator) const { in ValueString()
278 return GetDefaultValue()->As(GetType(), decorator); in ValueString()
405 const ConstantValueDecorator& decorator) const { in As()
425 const std::string raw_value = value->As(array_base, decorator); in As()
428 raw_values.push_back(decorator(array_base, raw_value)); in As()
434 return decorator(type, "{" + Join(raw_values, ", ") + "}"); in As()
437 if (type_string == "boolean") return decorator(type, value_); in As()
440 if (type_string == "char") return decorator(type, value_); in As()
449 return decorator(type, std::to_string(parsed_value)); in As()
454 return decorator(type, std::to_string(parsed_value) + "f"); in As()
[all …]
Daidl_language.h283 std::string ValueString(const ConstantValueDecorator& decorator) const;
355 string As(const AidlTypeSpecifier& type, const ConstantValueDecorator& decorator) const;
384 string ValueString(const ConstantValueDecorator& decorator) const { in ValueString() argument
385 return GetValue().As(GetType(), decorator); in ValueString()