/system/tools/aidl/ |
D | aidl_to_cpp.cpp | 84 AIDL_FATAL_IF(type.GetTypeParameters().size() != 1, type); in RawParcelMethod() 90 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(element_name), type); in RawParcelMethod() 92 AIDL_FATAL_IF(element_name != "String", type); in RawParcelMethod() 106 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(type_name), type); in RawParcelMethod() 114 AIDL_FATAL_IF(type_name != "String", type); in RawParcelMethod() 120 AIDL_FATAL_IF(AidlTypenames::IsBuiltinTypename(type.GetName()), type); in RawParcelMethod() 124 AIDL_FATAL_IF(definedType == nullptr, type) << type.GetName() << " is not found."; in RawParcelMethod() 172 AIDL_FATAL_IF(typenames.IsList(raw_type) && raw_type.GetTypeParameters().size() != 1, raw_type); in GetCppName() 176 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), raw_type); in GetCppName() 180 AIDL_FATAL_IF(aidl_name != "String", type); in GetCppName() [all …]
|
D | aidl_to_ndk.cpp | 83 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecorator() 195 AIDL_FATAL_IF(aparcel_name_it == kAParcelTypeNameMap.end(), enum_decl); in EnumDeclarationTypeInfo() 352 AIDL_FATAL_IF(!aidl.IsResolved(), aidl) << aidl.ToString(); in GetTypeAspect() 359 AIDL_FATAL_IF(!aidl.IsGeneric(), aidl) << "List must be generic type."; in GetTypeAspect() 360 AIDL_FATAL_IF(aidl.GetTypeParameters().size() != 1, aidl) in GetTypeAspect() 364 AIDL_FATAL_IF(type_param->IsGeneric(), aidl) << "AIDL doesn't support nested type parameter"; in GetTypeAspect() 377 AIDL_FATAL_IF(it == kNdkTypeInfoMap.end(), aidl_name); in GetTypeAspect() 381 AIDL_FATAL_IF(type == nullptr, aidl_name) << "Unrecognized type."; in GetTypeAspect() 397 AIDL_FATAL_IF(info.nullable_array == nullptr, aidl) in GetTypeAspect() 401 AIDL_FATAL_IF(info.array == nullptr, aidl) in GetTypeAspect() [all …]
|
D | aidl_const_expressions.cpp | 313 AIDL_FATAL_IF(left == Type::STRING || right == Type::STRING, AIDL_LOCATION_HERE); in UsualArithmeticConversion() 314 AIDL_FATAL_IF(left == Type::FLOATING || right == Type::FLOATING, AIDL_LOCATION_HERE); in UsualArithmeticConversion() 433 AIDL_FATAL_IF(value.empty(), location); in Integral() 447 AIDL_FATAL_IF(values == nullptr, location); in Array() 594 AIDL_FATAL_IF(err == 0, this); in ValueString() 784 AIDL_FATAL_IF(!resolved_, this) << "Should be resolved first: " << value_; in CheckValid() 791 AIDL_FATAL_IF(!resolved_, this) << "Should be resolved first: " << value_; in evaluate() 809 AIDL_FATAL_IF(unary_ == nullptr, this); in CheckValid() 867 AIDL_FATAL_IF(left_val_ == nullptr, this); in CheckValid() 868 AIDL_FATAL_IF(right_val_ == nullptr, this); in CheckValid() [all …]
|
D | aidl_to_java.cpp | 50 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecorator() 58 AIDL_FATAL_IF(!aidl.IsResolved(), aidl) << aidl.ToString(); in JavaNameOf() 108 AIDL_FATAL_IF(m.find(backing_type_name) == m.end(), enum_decl); in JavaNameOf() 109 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(backing_type_name), enum_decl); in JavaNameOf() 120 AIDL_FATAL_IF(boxing_types.find(aidl_name) == m.end(), aidl); in JavaNameOf() 124 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(aidl_name), aidl); in JavaNameOf() 186 AIDL_FATAL_IF(name == "void", aidl); in DefaultJavaValueOf() 189 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(name), aidl); in DefaultJavaValueOf() 385 AIDL_FATAL_IF(t == nullptr, c.type) << "Unknown type: " << c.type.GetName(); in WriteToParcelFor() 419 AIDL_FATAL_IF(c.is_classloader_created == nullptr, AIDL_LOCATION_HERE); in EnsureAndGetClassloader() [all …]
|
D | aidl_to_rust.cpp | 71 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in ConstantValueDecoratorInternal() 107 AIDL_FATAL_IF(typenames.IsList(type) && type.GetTypeParameters().size() != 1, type); in GetRustName() 111 AIDL_FATAL_IF(!AidlTypenames::IsBuiltinTypename(element_type_name), type); in GetRustName()
|
D | comments.cpp | 49 AIDL_FATAL_IF(!StartsWith(s, prefix), AIDL_LOCATION_HERE) in ConsumePrefix() 55 AIDL_FATAL_IF(!EndsWith(s, suffix), AIDL_LOCATION_HERE); in ConsumeSuffix() 108 AIDL_FATAL_IF(c.type != Comment::Type::BLOCK, AIDL_LOCATION_HERE); in BlockTags()
|
D | generate_ndk.cpp | 59 AIDL_FATAL_IF(!i_writer->Close(), i_header); in GenerateNdkInterface() 65 AIDL_FATAL_IF(!bp_writer->Close(), bp_header); in GenerateNdkInterface() 71 AIDL_FATAL_IF(!bn_writer->Close(), bn_header); in GenerateNdkInterface() 75 AIDL_FATAL_IF(!source_writer->Close(), output_file); in GenerateNdkInterface() 95 AIDL_FATAL_IF(!header_writer->Close(), header_path); in GenerateNdkParcel() 101 AIDL_FATAL_IF(!bp_writer->Close(), bp_header); in GenerateNdkParcel() 107 AIDL_FATAL_IF(!bn_writer->Close(), bn_header); in GenerateNdkParcel() 114 AIDL_FATAL_IF(!code_writer->Close(), filename); in GenerateNdkParcelDeclaration() 124 AIDL_FATAL_IF(!header_writer->Close(), header_path); in GenerateNdkEnumDeclaration() 130 AIDL_FATAL_IF(!bp_writer->Close(), bp_header); in GenerateNdkEnumDeclaration() [all …]
|
D | aidl_typenames.cpp | 146 AIDL_FATAL_IF(documents_.size() == 0, AIDL_LOCATION_HERE) << "Main document doesn't exist"; in MainDocument() 282 AIDL_FATAL_IF(t == nullptr, type) in CanBeFixedSize() 320 AIDL_FATAL_IF(t == nullptr, type) << "Unrecognized type: '" << name << "'"; in GetArgumentAspect()
|
D | generate_cpp.cpp | 181 AIDL_FATAL_IF(method.IsUserDefined(), method); in BuildMetaMethodDecl() 410 AIDL_FATAL_IF(method.IsUserDefined(), method); in DefineClientMetaTransaction() 698 AIDL_FATAL_IF(method.IsUserDefined(), method); in HandleServerMetaTransaction() 1485 AIDL_FATAL_IF(!header_writer->Close(), header_path); in GenerateCppParcelable() 1491 AIDL_FATAL_IF(!bp_writer->Close(), bp_header); in GenerateCppParcelable() 1495 AIDL_FATAL_IF(!bn_writer->Close(), bn_header); in GenerateCppParcelable() 1505 AIDL_FATAL_IF(!source_writer->Close(), output_file); in GenerateCppParcelable() 1515 AIDL_FATAL_IF(!source_writer->Close(), filename); in GenerateCppParcelDeclaration() 1521 AIDL_FATAL_IF(!header_writer->Close(), header_path); in GenerateCppParcelDeclaration() 1525 AIDL_FATAL_IF(!bp_writer->Close(), bp_header); in GenerateCppParcelDeclaration() [all …]
|
D | logging.h | 78 #define AIDL_FATAL_IF(CONDITION, CONTEXT) \ macro
|
D | aidl_language.cpp | 303 AIDL_FATAL_IF(!param_type, this); in AnnotationParams() 332 AIDL_FATAL_IF(a.Repeatable(), a) in GetAnnotation() 383 AIDL_FATAL_IF(!names.has_value(), this); in SuppressWarnings() 454 AIDL_FATAL_IF(!is_array_, this); in ArrayBase() 456 AIDL_FATAL_IF(IsGeneric(), this); in ArrayBase() 490 AIDL_FATAL_IF(IsResolved(), this); in Resolve() 644 AIDL_FATAL_IF(!enum_type, type) << "Invalid type for \"" << raw_value << "\""; in AidlConstantValueDecorator() 695 AIDL_FATAL_IF(name_.size() <= 0, *this) << "Name can't be empty."; in GetCapitalizedName() 1015 AIDL_FATAL_IF(other.IsGeneric(), AIDL_LOCATION_HERE); in AidlParameterizable()
|
D | parser.h | 108 AIDL_FATAL_IF(HasError(), FileName()); in ParsedDocument()
|
D | aidl_language.h | 591 AIDL_FATAL_IF(!is_valid_, this); 594 AIDL_FATAL_IF(final_type_ != Type::ARRAY, this); 601 AIDL_FATAL_IF(final_type_ != Type::FLOATING, this); 603 AIDL_FATAL_IF(!ParseFloating(value_, &result), this); 606 AIDL_FATAL_IF(final_type_ != Type::STRING, this); 609 AIDL_FATAL_IF(final_type_ < Type::INT8 && final_type_ > Type::INT64, this); 612 AIDL_FATAL_IF(final_type_ != Type::CHARACTER, this); 616 AIDL_FATAL_IF(final_type_ != Type::BOOLEAN, this);
|
D | code_writer.cpp | 79 AIDL_FATAL_IF(indent_level_ <= 0, "Mismatched dedent"); in Dedent()
|
D | aidl_checkapi.cpp | 208 AIDL_FATAL_IF(old_args.size() != new_args.size(), old_m); in are_compatible_interfaces() 426 AIDL_FATAL_IF(!options.IsStructured(), AIDL_LOCATION_HERE); in check_api() 427 AIDL_FATAL_IF(options.InputFiles().size() != 2, AIDL_LOCATION_HERE) in check_api()
|
D | aidl.cpp | 604 AIDL_FATAL_IF(defined_type == nullptr, main_parser->FileName()); in load_and_validate_aidl() 612 AIDL_FATAL_IF( in load_and_validate_aidl() 805 AIDL_FATAL_IF(defined_type == nullptr, input_file); in compile_aidl() 922 AIDL_FATAL_IF(shouldReportError != reportedError, AIDL_LOCATION_HERE) in aidl_entry()
|
D | aidl_dumpapi.cpp | 155 AIDL_FATAL_IF(options.OutputDir().empty() || options.OutputDir().back() != '/', defined_type); in GetApiDumpPathFor()
|
D | options.cpp | 534 AIDL_FATAL_IF(!output_dir_.empty() && output_dir_.back() != OS_PATH_SEPARATOR, output_dir_); in Options() 535 AIDL_FATAL_IF(!output_header_dir_.empty() && output_header_dir_.back() != OS_PATH_SEPARATOR, in Options()
|
D | io_delegate.cpp | 205 AIDL_FATAL_IF(result == nullptr, dirname); in add_list_files()
|
D | aidl_language_y.yy | 32 AIDL_FATAL_IF(begin.begin.filename != begin.end.filename, AIDL_LOCATION_HERE); 33 AIDL_FATAL_IF(begin.end.filename != end.begin.filename, AIDL_LOCATION_HERE); 34 AIDL_FATAL_IF(end.begin.filename != end.end.filename, AIDL_LOCATION_HERE);
|
D | diagnostics.cpp | 174 AIDL_FATAL_IF(u.GetFields().empty(), u) << "The union '" << u.GetName() << "' has no fields."; in Visit()
|
D | aidl_to_cpp_common.cpp | 366 AIDL_FATAL_IF(decl.GetFields().empty(), decl) << "Union '" << name << "' is empty."; in PublicFields()
|
D | generate_rust.cpp | 614 AIDL_FATAL_IF(parcel->GetFields().empty(), *parcel) in GenerateParcelDefault()
|
D | generate_java.cpp | 713 AIDL_FATAL_IF(decl->GetFields().empty(), *decl) << "Union '" << clazz << "' is empty."; in generate_union()
|
D | generate_java_binder.cpp | 979 AIDL_FATAL_IF(non_outline_count > outline_threshold, iface); in compute_outline_methods()
|