Searched refs:constant (Results 1 – 18 of 18) sorted by relevance
416 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDefinitions() local417 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDefinitions()420 std::string cpp_type = CppNameOf(constant->GetType(), typenames); in GenerateConstantDefinitions()422 out << "const " << cpp_type << "& " << q_name << "::" << constant->GetName() << "() {\n"; in GenerateConstantDefinitions()424 << constant->ValueString(ConstantValueDecorator) << ");\n"; in GenerateConstantDefinitions()432 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local433 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()436 out << "static const " << cpp_type << "& " << constant->GetName() << "()"; in GenerateConstantDeclarations()437 GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()440 out << "static constexpr " << cpp_type << " " << constant->GetName(); in GenerateConstantDeclarations()[all …]
421 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local422 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()[all …]
543 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local544 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()545 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()558 GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()559 out << "pub const r#" << constant->GetName() << ": " << const_type << " = " in GenerateConstantDeclarations()560 << constant->ValueString(ConstantValueDecoratorRef) << ";\n"; in GenerateConstantDeclarations()
1207 if (auto constant = AidlCast<AidlConstantDeclaration>(*m); constant) { in AidlDefinedType() local1208 constants_.emplace_back(constant); in AidlDefinedType()1333 for (const auto& constant : GetConstantDeclarations()) { in CheckValidWithMembers() local1334 if (constant_names.count(constant->GetName()) > 0) { in CheckValidWithMembers()1335 AIDL_ERROR(constant) << "Found duplicate constant name '" << constant->GetName() << "'"; in CheckValidWithMembers()1338 constant_names.insert(constant->GetName()); in CheckValidWithMembers()1339 success = success && constant->CheckValid(typenames); in CheckValidWithMembers()
439 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local440 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()441 out << GenerateComments(*constant); in GenerateConstantDeclarations()442 out << GenerateAnnotations(*constant); in GenerateConstantDeclarations()443 out << "public static final " << type.Signature() << " " << constant->GetName() << " = " in GenerateConstantDeclarations()444 << constant->ValueString(ConstantValueDecorator) << ";\n"; in GenerateConstantDeclarations()
89 AidlMember* constant;160 %type<constant> constant_decl
36 GCC_CFLAGS += -fsingle-precision-constant
20 uses a constant nonce.
28 * constant values defined in a .hal file can be used in a C library.
21 #define LABEL(constant) { #constant, constant } argument
97 misplaced-comparison-constant,210 # Regular expression matching correct constant names
91 misplaced-comparison-constant,204 # Regular expression matching correct constant names
167 * `spammer`: Sends a constant stream of messages and events to stress test the
295 # Naming hint for constant names
551 constant in `system/apex/apexd/apexd.cpp`.
83 # information to generate all constant output in the proper language.