Lines Matching refs:constant
521 for (const auto& constant : type.GetConstantDeclarations()) { in BuildConstantDefinitions() local
522 const AidlConstantValue& value = constant->GetValue(); in BuildConstantDefinitions()
525 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildConstantDefinitions()
527 new MethodImpl("const " + cppType + "&", class_name, constant->GetName(), type_params, {})); in BuildConstantDefinitions()
530 constant->ValueString(ConstantValueDecorator).c_str())); in BuildConstantDefinitions()
542 for (const auto& constant : type.GetConstantDeclarations()) { in BuildConstantDeclarations() local
543 const AidlTypeSpecifier& type = constant->GetType(); in BuildConstantDeclarations()
544 const AidlConstantValue& value = constant->GetValue(); in BuildConstantDeclarations()
546 const string attribute = GetDeprecatedAttribute(*constant); in BuildConstantDeclarations()
548 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildConstantDeclarations()
549 unique_ptr<Declaration> getter(new MethodDecl("const " + cppType + "&", constant->GetName(), in BuildConstantDeclarations()
553 byte_constant_enum->AddValue(constant->GetName(), in BuildConstantDeclarations()
554 constant->ValueString(ConstantValueDecorator), attribute); in BuildConstantDeclarations()
556 int_constant_enum->AddValue(constant->GetName(), in BuildConstantDeclarations()
557 constant->ValueString(ConstantValueDecorator), attribute); in BuildConstantDeclarations()
559 long_constant_enum->AddValue(constant->GetName(), in BuildConstantDeclarations()
560 constant->ValueString(ConstantValueDecorator), attribute); in BuildConstantDeclarations()