Lines Matching refs:constant
809 for (const auto& constant : interface.GetConstantDeclarations()) { in BuildInterfaceSource() local
810 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceSource()
813 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildInterfaceSource()
816 constant->GetName(), {})); in BuildInterfaceSource()
819 constant->ValueString(ConstantValueDecorator).c_str())); in BuildInterfaceSource()
976 for (const auto& constant : interface.GetConstantDeclarations()) { in BuildInterfaceHeader() local
977 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceHeader()
981 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildInterfaceHeader()
982 unique_ptr<Declaration> getter(new MethodDecl("const " + cppType + "&", constant->GetName(), in BuildInterfaceHeader()
990 int_constant_enum->AddValue(constant->GetName(), in BuildInterfaceHeader()
991 constant->ValueString(ConstantValueDecorator)); in BuildInterfaceHeader()