Lines Matching refs:constant
421 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local
422 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()
426 cpp::GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
427 out << " " << constant->GetName() << ";\n"; in GenerateConstantDeclarations()
430 out << constant->GetName(); in GenerateConstantDeclarations()
431 cpp::GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
432 out << " = " << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDeclarations()
435 out << constant->GetName(); in GenerateConstantDeclarations()
436 cpp::GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
437 out << " = " << constant->ValueString(ConstantValueDecorator) << " };\n"; in GenerateConstantDeclarations()
445 for (const auto& constant : interface.GetConstantDeclarations()) { in GenerateConstantDefinitions() local
446 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDefinitions()
452 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
453 << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDefinitions()