Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl_const_expressions.cpp73 bool handleUnary(const AidlConstantValue& context, const string& op, T val, int64_t* out) { in handleUnary()
82 bool handleUnary<bool>(const AidlConstantValue& context, const string& op, bool val, int64_t* out) { in handleUnary()
96 bool handleBinaryCommon(const AidlConstantValue& context, T lval, const string& op, T rval, in handleBinaryCommon()
119 bool handleShift(const AidlConstantValue& context, T lval, const string& op, int64_t rval, in handleShift()
129 bool handleLogical(const AidlConstantValue& context, bool lval, const string& op, bool rval, in handleLogical()
189 AidlConstantValue::Type AidlBinaryConstExpression::UsualArithmeticConversion(Type left, in UsualArithmeticConversion()
204 AidlConstantValue::Type AidlBinaryConstExpression::IntegralPromotion(Type in) { in IntegralPromotion()
209 T AidlConstantValue::cast() const { in cast()
217 AidlConstantValue* AidlConstantValue::Default(const AidlTypeSpecifier& specifier) { in Default()
241 AidlConstantValue* AidlConstantValue::Boolean(const AidlLocation& location, bool value) { in Boolean()
[all …]
Daidl_language_y.yy76 std::map<std::string, std::shared_ptr<AidlConstantValue>>* param_list;
81 AidlConstantValue* const_expr;
85 std::vector<std::unique_ptr<AidlConstantValue>>* constant_value_list;
383 : TRUE_LITERAL { $$ = AidlConstantValue::Boolean(loc(@1), true); }
384 | FALSE_LITERAL { $$ = AidlConstantValue::Boolean(loc(@1), false); }
385 | CHARVALUE { $$ = AidlConstantValue::Character(loc(@1), $1); }
387 $$ = AidlConstantValue::Integral(loc(@1), $1->GetText());
392 $$ = AidlConstantValue::Integral(loc(@1), "0");
397 $$ = AidlConstantValue::Floating(loc(@1), $1->GetText());
401 $$ = AidlConstantValue::Integral(loc(@1), $1->GetText());
[all …]
Daidl_language.h149 class AidlConstantValue; variable
175 std::map<std::string, std::shared_ptr<AidlConstantValue>>* parameter_list);
203 std::map<std::string, std::shared_ptr<AidlConstantValue>>&& parameters);
207 std::map<std::string, std::shared_ptr<AidlConstantValue>> parameters_;
322 class AidlConstantValue; variable
331 const std::string& name, AidlConstantValue* default_value);
346 const AidlConstantValue* GetDefaultValue() const { return default_value_.get(); } in GetDefaultValue()
360 std::unique_ptr<AidlConstantValue> default_value_;
413 class AidlConstantValue : public AidlNode {
437 virtual ~AidlConstantValue() = default;
[all …]
Dgenerate_ndk.cpp255 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
256 CHECK(value.GetType() != AidlConstantValue::Type::UNARY && in GenerateConstantDeclarations()
257 value.GetType() != AidlConstantValue::Type::BINARY); in GenerateConstantDeclarations()
258 if (value.GetType() == AidlConstantValue::Type::STRING) { in GenerateConstantDeclarations()
266 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
267 CHECK(value.GetType() != AidlConstantValue::Type::UNARY && in GenerateConstantDeclarations()
268 value.GetType() != AidlConstantValue::Type::BINARY); in GenerateConstantDeclarations()
269 if (value.GetType() == AidlConstantValue::Type::BOOLEAN || in GenerateConstantDeclarations()
270 value.GetType() == AidlConstantValue::Type::INT8 || in GenerateConstantDeclarations()
271 value.GetType() == AidlConstantValue::Type::INT32) { in GenerateConstantDeclarations()
[all …]
Daidl_language.cpp143 std::map<std::string, std::shared_ptr<AidlConstantValue>>* parameter_list) { in Parse()
171 std::map<std::string, std::shared_ptr<AidlConstantValue>>&& parameters) in AidlAnnotation()
177 const std::shared_ptr<AidlConstantValue>& param = name_and_param.second; in CheckValid()
212 const std::shared_ptr<AidlConstantValue>& param = name_and_param.second; in AnnotationParams()
525 : AidlVariableDeclaration(location, type, name, AidlConstantValue::Default(*type)) { in AidlVariableDeclaration()
531 AidlConstantValue* default_value) in AidlVariableDeclaration()
632 AidlConstantValue* value) in AidlConstantDeclaration()
956 AidlConstantValue* value, const std::string& comments) in AidlEnumerator()
993 std::unique_ptr<AidlConstantValue>(AidlConstantValue::Integral(GetLocation(), "0"))); in Autofill()
995 auto prev_value = std::unique_ptr<AidlConstantValue>( in Autofill()
[all …]
Daidl.cpp668 case AidlConstantValue::Type::STRING: // fall-through in load_and_validate_aidl()
669 case AidlConstantValue::Type::INT8: // fall-through in load_and_validate_aidl()
670 case AidlConstantValue::Type::INT32: // fall-through in load_and_validate_aidl()
671 case AidlConstantValue::Type::INT64: // fall-through in load_and_validate_aidl()
672 case AidlConstantValue::Type::FLOATING: // fall-through in load_and_validate_aidl()
673 case AidlConstantValue::Type::UNARY: // fall-through in load_and_validate_aidl()
674 case AidlConstantValue::Type::BINARY: { in load_and_validate_aidl()
Daidl_checkapi.cpp271 std::map<std::string, const AidlConstantValue*> old_enum_map; in are_compatible_enums()
275 std::map<std::string, const AidlConstantValue*> new_enum_map; in are_compatible_enums()
Dgenerate_cpp.cpp804 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceSource()
805 if (value.GetType() != AidlConstantValue::Type::STRING) continue; in BuildInterfaceSource()
971 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceHeader()
974 case AidlConstantValue::Type::STRING: { in BuildInterfaceHeader()
981 case AidlConstantValue::Type::BOOLEAN: // fall-through in BuildInterfaceHeader()
982 case AidlConstantValue::Type::INT8: // fall-through in BuildInterfaceHeader()
983 case AidlConstantValue::Type::INT32: { in BuildInterfaceHeader()
Dgenerate_java_binder.cpp1093 const AidlConstantValue& value = constant->GetValue(); in generate_binder_interface_class()
1100 case AidlConstantValue::Type::STRING: { in generate_binder_interface_class()
1105 case AidlConstantValue::Type::BOOLEAN: // fall-through in generate_binder_interface_class()
1106 case AidlConstantValue::Type::INT8: // fall-through in generate_binder_interface_class()
1107 case AidlConstantValue::Type::INT32: { in generate_binder_interface_class()