Lines Matching refs:constant
803 for (const auto& constant : interface.GetConstantDeclarations()) { in BuildInterfaceSource() local
804 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceSource()
807 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildInterfaceSource()
810 constant->GetName(), {})); in BuildInterfaceSource()
813 constant->ValueString(ConstantValueDecorator).c_str())); in BuildInterfaceSource()
970 for (const auto& constant : interface.GetConstantDeclarations()) { in BuildInterfaceHeader() local
971 const AidlConstantValue& value = constant->GetValue(); in BuildInterfaceHeader()
975 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildInterfaceHeader()
976 unique_ptr<Declaration> getter(new MethodDecl("const " + cppType + "&", constant->GetName(), in BuildInterfaceHeader()
984 int_constant_enum->AddValue(constant->GetName(), in BuildInterfaceHeader()
985 constant->ValueString(ConstantValueDecorator)); in BuildInterfaceHeader()