Home
last modified time | relevance | path

Searched refs:AidlConstantValue (Results 1 – 6 of 6) sorted by relevance

/system/tools/aidl/
Daidl_language.cpp249 AidlConstantValue* default_value) in AidlVariableDeclaration()
330 AidlConstantValue::AidlConstantValue(const AidlLocation& location, Type type, in AidlConstantValue() function in AidlConstantValue
337 AidlConstantValue::AidlConstantValue(const AidlLocation& location, Type type, in AidlConstantValue() function in AidlConstantValue
338 std::vector<std::unique_ptr<AidlConstantValue>>* values) in AidlConstantValue()
347 AidlConstantValue* AidlConstantValue::Boolean(const AidlLocation& location, bool value) { in Boolean()
348 return new AidlConstantValue(location, Type::BOOLEAN, value ? "true" : "false"); in Boolean()
351 AidlConstantValue* AidlConstantValue::Character(const AidlLocation& location, char value) { in Character()
354 return new AidlConstantValue(location, Type::ERROR, ""); in Character()
356 return new AidlConstantValue(location, Type::CHARACTER, std::string("'") + value + "'"); in Character()
359 AidlConstantValue* AidlConstantValue::Floating(const AidlLocation& location, in Floating()
[all …]
Daidl_language_y.yy54 AidlConstantValue* constant_value;
55 std::vector<std::unique_ptr<AidlConstantValue>>* constant_value_list;
260 : TRUE_LITERAL { $$ = AidlConstantValue::Boolean(loc(@1), true); }
261 | FALSE_LITERAL { $$ = AidlConstantValue::Boolean(loc(@1), false); }
262 | CHARVALUE { $$ = AidlConstantValue::Character(loc(@1), $1); }
264 $$ = AidlConstantValue::Integral(loc(@1), $1->GetText());
268 $$ = AidlConstantValue::Floating(loc(@1), $1->GetText());
272 $$ = AidlConstantValue::Hex(loc(@1), $1->GetText());
276 $$ = AidlConstantValue::String(loc(@1), $1->GetText());
280 $$ = AidlConstantValue::Array(loc(@1), $2);
[all …]
Daidl_language.h264 class AidlConstantValue; variable
270 const std::string& name, AidlConstantValue* default_value);
275 const AidlConstantValue* GetDefaultValue() const { return default_value_.get(); } in GetDefaultValue()
288 std::unique_ptr<AidlConstantValue> default_value_;
332 class AidlConstantValue : public AidlNode {
336 virtual ~AidlConstantValue() = default;
338 static AidlConstantValue* Boolean(const AidlLocation& location, bool value);
339 static AidlConstantValue* Character(const AidlLocation& location, char value);
341 static AidlConstantValue* Floating(const AidlLocation& location, const std::string& value);
342 static AidlConstantValue* Hex(const AidlLocation& location, const std::string& value);
[all …]
Dgenerate_ndk.cpp175 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
176 if (value.GetType() == AidlConstantValue::Type::STRING) { in GenerateConstantDeclarations()
184 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
185 if (value.GetType() == AidlConstantValue::Type::HEXIDECIMAL || in GenerateConstantDeclarations()
186 value.GetType() == AidlConstantValue::Type::INTEGRAL) { in GenerateConstantDeclarations()
196 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
197 if (value.GetType() == AidlConstantValue::Type::HEXIDECIMAL || in GenerateConstantDeclarations()
198 value.GetType() == AidlConstantValue::Type::INTEGRAL) { in GenerateConstantDeclarations()
211 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDefinitions()
212 if (value.GetType() == AidlConstantValue::Type::STRING) { in GenerateConstantDefinitions()
Dgenerate_cpp.cpp744 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceSource()
745 if (value.GetType() != AidlConstantValue::Type::STRING) continue; in BuildInterfaceSource()
930 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceHeader()
933 case AidlConstantValue::Type::STRING: { in BuildInterfaceHeader()
940 case AidlConstantValue::Type::INTEGRAL: in BuildInterfaceHeader()
941 case AidlConstantValue::Type::HEXIDECIMAL: { in BuildInterfaceHeader()
Dgenerate_java_binder.cpp1022 const AidlConstantValue& value = constant->GetValue(); in generate_binder_interface_class()
1025 case AidlConstantValue::Type::STRING: { in generate_binder_interface_class()
1030 case AidlConstantValue::Type::INTEGRAL: in generate_binder_interface_class()
1031 case AidlConstantValue::Type::HEXIDECIMAL: { in generate_binder_interface_class()