Home
last modified time | relevance | path

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

/system/tools/aidl/
Daidl_language.cpp910 if (auto constant = m->AsConstantDeclaration(); constant) { in AidlDefinedType() local
911 constants_.emplace_back(constant); in AidlDefinedType()
972 for (const auto& constant : GetConstantDeclarations()) { in CheckValidWithMembers() local
973 if (constant_names.count(constant->GetName()) > 0) { in CheckValidWithMembers()
974 AIDL_ERROR(constant) << "Found duplicate constant name '" << constant->GetName() << "'"; in CheckValidWithMembers()
977 constant_names.insert(constant->GetName()); in CheckValidWithMembers()
978 success = success && constant->CheckValid(typenames); in CheckValidWithMembers()
1461 for (const auto& constant : GetConstantDeclarations()) { in CheckValid() local
1462 if (constant_names.count(constant->GetName()) > 0) { in CheckValid()
1463 AIDL_ERROR(constant) << "Found duplicate constant name '" << constant->GetName() << "'"; in CheckValid()
[all …]
Dgenerate_cpp.cpp521 for (const auto& constant : type.GetConstantDeclarations()) { in BuildConstantDefinitions() local
522 const AidlConstantValue& value = constant->GetValue(); in BuildConstantDefinitions()
525 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildConstantDefinitions()
527 new MethodImpl("const " + cppType + "&", class_name, constant->GetName(), type_params, {})); in BuildConstantDefinitions()
530 constant->ValueString(ConstantValueDecorator).c_str())); in BuildConstantDefinitions()
542 for (const auto& constant : type.GetConstantDeclarations()) { in BuildConstantDeclarations() local
543 const AidlTypeSpecifier& type = constant->GetType(); in BuildConstantDeclarations()
544 const AidlConstantValue& value = constant->GetValue(); in BuildConstantDeclarations()
546 const string attribute = GetDeprecatedAttribute(*constant); in BuildConstantDeclarations()
548 std::string cppType = CppNameOf(constant->GetType(), typenames); in BuildConstantDeclarations()
[all …]
Dgenerate_rust.cpp331 for (const auto& constant : type.GetConstantDeclarations()) { in GenerateConstantDeclarations() local
332 const AidlTypeSpecifier& type = constant->GetType(); in GenerateConstantDeclarations()
333 const AidlConstantValue& value = constant->GetValue(); in GenerateConstantDeclarations()
345 GenerateDeprecated(out, *constant); in GenerateConstantDeclarations()
346 out << "pub const " << constant->GetName() << ": " << const_type << " = " in GenerateConstantDeclarations()
347 << constant->ValueString(ConstantValueDecoratorRef) << ";\n"; in GenerateConstantDeclarations()
Dgenerate_ndk.cpp313 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()
[all …]
Dgenerate_java_binder.cpp394 for (const auto& constant : type.GetConstantDeclarations()) { in generate_constant_declarations() local
395 const AidlTypeSpecifier& type = constant->GetType(); in generate_constant_declarations()
396 out << GenerateComments(*constant); in generate_constant_declarations()
397 out << GenerateAnnotations(*constant); in generate_constant_declarations()
398 out << "public static final " << type.Signature() << " " << constant->GetName() << " = " in generate_constant_declarations()
399 << constant->ValueString(ConstantValueDecorator) << ";\n"; in generate_constant_declarations()
Daidl.cpp705 for (const auto& constant : defined_type->GetConstantDeclarations()) { in load_and_validate_aidl() local
706 if (constant->ValueString(AidlConstantValueDecorator).empty()) { in load_and_validate_aidl()
Daidl_language_y.yy88 AidlMember* constant;
161 %type<constant> constant_decl
/system/chre/build/arch/
Dcortexm.mk33 TARGET_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/bt/build/secondary/third_party/aac/
DBUILD.gn227 "-Wno-constant-logical-operand",
/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/bt/gd/packet/parser/
Dpacket_def.cc1211 auto constant = value.substr(value.find("::") + 2, std::string::npos); in GenRustBuilderStructImpls() local
1212 s << field->GetDataType() << "::" << util::ConstantCaseToCamelCase(constant); in GenRustBuilderStructImpls()
/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.