Home
last modified time | relevance | path

Searched refs:constant (Results 1 – 18 of 18) sorted by relevance

/system/tools/aidl/
Dgenerate_cpp.cpp416 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDefinitions() local
417 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() local
433 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 …]
Dgenerate_ndk.cpp421 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()
[all …]
Dgenerate_rust.cpp543 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local
544 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()
Daidl_language.cpp1207 if (auto constant = AidlCast<AidlConstantDeclaration>(*m); constant) { in AidlDefinedType() local
1208 constants_.emplace_back(constant); in AidlDefinedType()
1333 for (const auto& constant : GetConstantDeclarations()) { in CheckValidWithMembers() local
1334 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()
Dgenerate_java_binder.cpp439 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local
440 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()
Daidl_language_y.yy89 AidlMember* constant;
160 %type<constant> constant_decl
/system/chre/build/arch/
Dcortexm.mk36 GCC_CFLAGS += -fsingle-precision-constant
/system/core/trusty/confirmationui/
DREADME20 uses a constant nonce.
/system/tools/hidl/test/vendor/1.0/
Dtypes.hal28 * constant values defined in a .hal file can be used in a C library.
/system/core/toolbox/
Dgetevent.c21 #define LABEL(constant) { #constant, constant } argument
/system/apex/
Dpylintrc97 misplaced-comparison-constant,
210 # Regular expression matching correct constant names
/system/tools/mkbootimg/
Dpylintrc91 misplaced-comparison-constant,
204 # Regular expression matching correct constant names
/system/chre/doc/
Dnanoapp_overview.md167 * `spammer`: Sends a constant stream of messages and events to stress test the
/system/update_engine/
Dpylintrc295 # Naming hint for constant names
/system/apex/docs/
DREADME.md551 constant in `system/apex/apexd/apexd.cpp`.
/system/chre/pal/doc/
DDoxyfile83 # information to generate all constant output in the proper language.
/system/chre/chre_api/doc/
DDoxyfile83 # information to generate all constant output in the proper language.
/system/media/audio_utils/
DDoxyfile83 # information to generate all constant output in the proper language.