Lines Matching refs:constant
313 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local
314 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()
318 cpp::GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
319 out << " " << constant->GetName() << ";\n"; in GenerateConstantDeclarations()
322 out << constant->GetName(); in GenerateConstantDeclarations()
323 cpp::GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
324 out << " = " << constant->ValueString(ConstantValueDecorator) << " };\n"; in GenerateConstantDeclarations()
333 for (const auto& constant : interface.GetConstantDeclarations()) { in GenerateConstantDefinitions() local
334 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDefinitions()
340 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
341 << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDefinitions()