/system/linkerconfig/modules/ |
D | section.cc | 42 if (ns.GetName() != "default") { in WriteConfig() 43 additional_namespaces.push_back(ns.GetName()); in WriteConfig() 63 return ns.GetName() == "default" || ns.GetName() == ctx.GetTargetApex(); in ShouldFailOnMissingDeps() 87 ns.GetName(), in Resolve() 90 providers[lib] = ns.GetName(); in Resolve() 101 if (ns.GetName() == name) { in Resolve() 110 providers[new_lib] = new_ns.GetName(); in Resolve() 149 "not found: {} is required by {} in [{}]", lib, ns.GetName(), name_); in Resolve() 159 if (lhs.GetName() == "default") return true; in Resolve() 160 if (rhs.GetName() == "default") return false; in Resolve() [all …]
|
/system/tools/aidl/ |
D | aidl_to_cpp.cpp | 90 element_name = type.GetTypeParameters().at(0)->GetName(); in RawParcelMethod() 92 element_name = type.GetName(); in RawParcelMethod() 109 const string& type_name = type.GetName(); in RawParcelMethod() 125 AIDL_FATAL_IF(AidlTypenames::IsBuiltinTypename(type.GetName()), type); in RawParcelMethod() 126 auto definedType = typenames.TryGetDefinedType(type.GetName()); in RawParcelMethod() 129 AIDL_FATAL_IF(definedType == nullptr, type) << type.GetName() << " is not found."; in RawParcelMethod() 153 if (raw_type.IsNullable() && !AidlTypenames::IsPrimitiveTypename(type.GetName()) && in WrapIfNullable() 154 type.GetName() != "IBinder" && typenames.GetEnumDeclaration(type) == nullptr) { in WrapIfNullable() 182 const string& aidl_name = type.GetName(); in GetCppName() 193 auto definedType = typenames.TryGetDefinedType(type.GetName()); in GetCppName() [all …]
|
D | aidl_to_cpp_common.cpp | 62 string base_name = defined_type.GetName(); in ClassName() 83 return defined_type.GetName(); in ClassName() 149 return prefix + a.GetName(); in BuildVarName() 154 const string var_name = is_server || is_ndk ? BuildVarName(a) : a.GetName(); in WriteLogForArgument() 195 (*writer) << "_transaction_log.method_name = \"" << method.GetName() << "\";\n"; in GenLogAfterExecute() 222 if (method.GetType().GetName() != "void") { in GenLogAfterExecute() 252 out << " " << enum_decl.GetName() << " : " << backing_type << " {\n"; in GenerateEnumClassDecl() 255 out << enumerator->GetName(); in GenerateEnumClassDecl() 293 code << " " << fq_name << "::" << enumerator->GetName() << ",\n"; in GenerateEnumValues() 322 code << " case " << q_name << "::" << enumerator->GetName() << ":\n"; in GenerateEnumToString() [all …]
|
D | generate_java.cpp | 112 if (type.GetName() == "List") { in CanDescribeContents() 120 if (type.GetName() == "Map") { in CanDescribeContents() 129 if (type.GetName() == "FileDescriptor") { in CanDescribeContents() 134 if (type.GetName() == "ParcelFileDescriptor" || type.GetName() == "ParcelableHolder" || in CanDescribeContents() 152 out << "_mask |= describeContents(" << f->GetName() << ");\n"; in GenerateParcelableDescribeContents() 174 out << "case " << f->GetName() << ":\n"; in GenerateParcelableDescribeContents() 202 .var = field->GetName(), in GenerateToString() 205 out << "_aidl_sj.add(\"" << field->GetName() << ": \" + ("; in GenerateToString() 209 out << "return \"" << parcel.GetName() << "\" + _aidl_sj.toString() ;\n"; in GenerateToString() 228 out << "case " << field->GetName() << ": return \"" << parcel.GetName() << "." in GenerateToString() [all …]
|
D | diagnostics.cpp | 136 if (auto name = i.GetName(); name.size() < 1 || name[0] != 'I') { in Visit() 148 << a.GetName() in Visit() 158 if (ToUpper(e.GetName()) != e.GetName()) { in Visit() 160 << "Enum values should be named in upper case: " << e.GetName(); in Visit() 164 if (ToUpper(c.GetName()) != c.GetName()) { in Visit() 166 << "Constants should be named in upper case: " << c.GetName(); in Visit() 179 AIDL_FATAL_IF(u.GetFields().empty(), u) << "The union '" << u.GetName() << "' has no fields."; in Visit() 190 << "The enum field '" << v.GetName() << "' has no explicit value."; in CheckExplicitDefault() 212 << "The interface '" << i.GetName() in Visit() 236 << "The interface '" << i.GetName() in Visit() [all …]
|
D | generate_rust.cpp | 77 return type.GetName(); in Typename() 89 return Module(*type.GetParentType()) + "::r#" + type.GetName(); in Module() 108 return kArgumentPrefix + arg.GetName() + ": " + arg_type; in BuildArg() 168 return fn_prefix + "fn r#" + method.GetName() + lifetime_str + "(" + parameters + ") -> " + in BuildMethod() 182 out << "fn build_parcel_" + method.GetName() + "(" + parameters + in GenerateClientMethodHelpers() 194 auto arg_name = kArgumentPrefix + arg->GetName(); in GenerateClientMethodHelpers() 220 out << "fn read_response_" + method.GetName() + "(" + parameters + in GenerateClientMethodHelpers() 234 default_args += arg->GetName(); in GenerateClientMethodHelpers() 239 out << " return _aidl_default_impl.r#" << method.GetName() << "(" << default_args << ");\n"; in GenerateClientMethodHelpers() 254 if (method.GetType().GetName() != "void") { in GenerateClientMethodHelpers() [all …]
|
D | aidl_language.cpp | 284 stream << "for annotation " << GetName() << ". "; in CheckValid() 302 << GetName() << "."; in CheckValid() 311 << GetName() << "."; in CheckValid() 318 AIDL_ERROR(this) << "Missing '" << param.name << "' on @" << GetName() << "."; in CheckValid() 376 AIDL_ERROR(this) << "@" << GetName() in CheckContext() 396 return "@" + GetName(); in ToString() 402 return "@" + GetName() + "(" + Join(param_strings, ", ") + ")"; in ToString() 581 AIDL_ERROR(this) << "'" << annotation->GetName() in CheckValid() 665 string ret = GetName(); in Signature() 727 const string& type_name = GetName(); in CheckValid() [all …]
|
D | aidl_typenames.cpp | 134 if (IsBuiltinTypename(type->GetName())) { in AddDocument() 181 defined_types_.emplace(type->GetName(), type); in AddDocument() 269 const string& name = type.GetName(); in CanBeJavaOnlyImmutable() 271 if (type.GetName() == "List" || type.GetName() == "Map") { in CanBeJavaOnlyImmutable() 282 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeJavaOnlyImmutable() 299 const string& name = type.GetName(); in CanBeFixedSize() 312 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeFixedSize() 314 << "Failed to look up type. Cannot determine if it can be fixed size: " << type.GetName(); in CanBeFixedSize() 323 return type.GetName() == "List"; in IsList() 332 const string& name = type.GetName(); in GetArgumentAspect() [all …]
|
D | generate_cpp.cpp | 114 const auto defined_type = typenames.TryGetDefinedType(a->GetType().GetName()); in GenerateArgList() 117 const bool is_primitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in GenerateArgList() 126 literal += " /*" + a->GetName() + "*/"; in GenerateArgList() 128 literal += " " + a->GetName(); in GenerateArgList() 143 if (method.GetType().GetName() != "void") { in GenerateArgList() 164 out << "::android::binder::Status " << clazz_prefix << method.GetName() << "(" in GenerateMethodDecl() 197 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str()); in GenerateClientTransaction() 217 const string var_name = ((a->IsOut()) ? "*" : "") + a->GetName(); in GenerateClientTransaction() 251 arg_names.emplace_back(StringPrintf("std::move(%s)", a->GetName().c_str())); in GenerateClientTransaction() 253 arg_names.emplace_back(a->GetName()); in GenerateClientTransaction() [all …]
|
D | aidl_to_java.cpp | 49 if (type.GetName() == "long") { in ConstantValueDecorator() 55 return type.GetName() + "." + value.substr(value.find_last_of('.') + 1); in ConstantValueDecorator() 74 const string& aidl_name = aidl.GetName(); in JavaNameOf() 112 const string& backing_type_name = enum_decl->GetBackingType().GetName(); in JavaNameOf() 122 const string& aidl_name = aidl.GetName(); in JavaNameOf() 169 type_name = enum_decl->GetBackingType().GetName(); in AidlBackingTypeName() 171 type_name = type.GetName(); in AidlBackingTypeName() 199 AIDL_FATAL_IF(!AidlTypenames::IsPrimitiveTypename(aidl.GetName()), aidl); in JavaBoxingTypeOf() 289 auto name = type.GetName(); in GenerateParcelHelpers() 309 const auto& element_name = type.GetTypeParameters()[0]->GetName(); in GenerateParcelHelpers() [all …]
|
D | generate_java_binder.cpp | 458 out << "public static final " << type.Signature() << " " << constant->GetName() << " = " in GenerateConstantDeclarations() 469 decl->name = method.GetName(); in GenerateInterfaceMethod() 477 auto var = std::make_shared<Variable>(JavaSignatureOf(arg->GetType()), arg->GetName()); in GenerateInterfaceMethod() 500 *code_ << "/** Helper method to enforce permissions for " << method_.GetName() << " */\n"; in Prologue() 501 *code_ << "protected void " << method_.GetName() << "_enforcePermission() " in Prologue() 507 *code_ << "static final String[] PERMISSIONS_" << method_.GetName() << " = {" in AddStaticArrayPermissions() 519 *code_ << "mEnforcer.enforcePermissionAllOf(PERMISSIONS_" << method_.GetName() << ", " in operator ()() 531 *code_ << "mEnforcer.enforcePermissionAnyOf(PERMISSIONS_" << method_.GetName() << ", " in operator ()() 569 auto realCall = std::make_shared<MethodCall>(THIS_VALUE, method.GetName()); in GenerateStubCode() 584 method.GetName() + " is unimplemented.\")")); in GenerateStubCode() [all …]
|
D | generate_cpp_analyzer.cpp | 60 if (method.GetType().GetName() != "void") { in GenerateAnalyzerTransaction() 66 if (method.GetType().GetName() != "void") { in GenerateAnalyzerTransaction() 89 a->GetName().c_str()); in GenerateAnalyzerTransaction() 109 a->GetName().c_str(), BuildVarName(*a).c_str()); in GenerateAnalyzerTransaction() 113 if (method.GetType().GetName() != "void") { in GenerateAnalyzerTransaction() 135 string interfaceName = defined_type.GetName(); in GenerateAnalyzerSource() 162 method->GetName().c_str()); in GenerateAnalyzerSource()
|
D | aidl_checkapi.cpp | 142 new_constdecls[c->GetName()] = &*c; in are_compatible_constants() 146 const auto found = new_constdecls.find(old_c->GetName()); in are_compatible_constants() 149 << old_c->GetName(); in are_compatible_constants() 161 << old_c->GetName() << " from " << old_value << " to " << new_value << "."; in are_compatible_constants() 292 return new_field->GetName() == f->GetName(); in are_compatible_parcelables() 297 AIDL_ERROR(new_field) << "Reordered " << new_field->GetName() << " from " << old_index in are_compatible_parcelables() 320 AIDL_ERROR(new_field) << "Field '" << new_field->GetName() << "' of enum '" in are_compatible_parcelables() 321 << enum_decl->GetName() in are_compatible_parcelables() 323 << enum_decl->GetName() << "' has '0' as a valid value."; in are_compatible_parcelables() 341 new_field->GetName() == exception.field) { in are_compatible_parcelables() [all …]
|
D | aidl_to_rust.cpp | 59 const auto& aidl_name = type.GetName(); in ConstantValueDecoratorInternal() 118 return !(type.GetName() == "ParcelFileDescriptor" || type.GetName() == "IBinder" || in AutoConstructor() 139 const string& type_name = type.GetName(); in GetRustName() 194 if (typenames.IsPrimitiveTypename(element_type.GetName())) { in UsesOptionInNullableVector() 236 if (type.IsArray() && element_type.GetName() == "byte") { in RustNameOf() 297 const auto typeName = arg.GetType().GetName(); in ArgumentStorageMode() 360 const auto definedType = typenames.TryGetDefinedType(type.GetName()); in TypeIsInterface() 374 const string& aidl_name = type.GetName(); in TypeNeedsOption()
|
D | aidl_dumpapi.cpp | 57 out << type << " " << dt.GetName(); in DumpType() 163 out << "enum " << t.GetName() << " {\n"; in Visit() 167 out << e->GetName(); in Visit() 193 out << " " << v.GetName() << " = "; in Visit() 197 out << " " << v.GetName() << ";\n"; in Visit() 208 out << " " << c.GetName() << " = "; in Visit() 255 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
|
D | generate_ndk.cpp | 431 out << " " << constant->GetName() << ";\n"; in GenerateConstantDeclarations() 434 out << constant->GetName(); in GenerateConstantDeclarations() 439 out << constant->GetName(); in GenerateConstantDeclarations() 456 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions() 474 return "(FIRST_CALL_TRANSACTION + " + std::to_string(m.GetId()) + " /*" + m.GetName() + "*/)"; in MethodId() 488 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition() 497 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition() 515 << "::" << ClassName(defined_type, ClassNames::INTERFACE) << "::" << method.GetName() in GenerateClientMethodDefinition() 572 out << "_aidl_status = " << iface << "::getDefaultImpl()->" << method.GetName() << "("; in GenerateClientMethodDefinition() 587 if (method.GetType().GetName() != "void") { in GenerateClientMethodDefinition() [all …]
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | INamedCallback.rs | 21 fn r#GetName(&self) -> binder::Result<String>; 31 fn r#GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; 36 async fn r#GetName(&self) -> binder::Result<String>; 58 fn r#GetName(&self) -> binder::Result<String> { in new_async_binder() 59 self._rt.block_on(self._inner.r#GetName()) in new_async_binder() 67 fn r#GetName(&self) -> binder::Result<String> { 72 …pub const r#GetName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSA… 84 return _aidl_default_impl.r#GetName(); in read_response_GetName() 95 fn r#GetName(&self) -> binder::Result<String> { 97 …let _aidl_reply = self.binder.submit_transact(transactions::r#GetName, _aidl_data, binder::binder_… [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-rust-source/gen/android/aidl/tests/ |
D | INamedCallback.rs | 21 fn r#GetName(&self) -> binder::Result<String>; 31 fn r#GetName<'a>(&'a self) -> binder::BoxFuture<'a, binder::Result<String>>; 36 async fn r#GetName(&self) -> binder::Result<String>; 58 fn r#GetName(&self) -> binder::Result<String> { in new_async_binder() 59 self._rt.block_on(self._inner.r#GetName()) in new_async_binder() 67 fn r#GetName(&self) -> binder::Result<String> { 72 …pub const r#GetName: binder::binder_impl::TransactionCode = binder::binder_impl::FIRST_CALL_TRANSA… 84 return _aidl_default_impl.r#GetName(); in read_response_GetName() 95 fn r#GetName(&self) -> binder::Result<String> { 97 …let _aidl_reply = self.binder.submit_transact(transactions::r#GetName, _aidl_data, binder::binder_… [all …]
|
/system/unwinding/libunwindstack/tests/ |
D | SymbolsTest.cpp | 73 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 78 ASSERT_TRUE(symbols.GetName<TypeParam>(0x500f, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 83 ASSERT_FALSE(symbols.GetName<TypeParam>(0x4fff, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 84 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5010, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 101 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 110 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 118 ASSERT_FALSE(symbols.GetName<TypeParam>(0x5000, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 147 ASSERT_TRUE(symbols.GetName<TypeParam>(0x3005, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 152 ASSERT_TRUE(symbols.GetName<TypeParam>(0x5004, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() 157 ASSERT_TRUE(symbols.GetName<TypeParam>(0xa011, &this->memory_, &name, &func_offset)); in TYPED_TEST_P() [all …]
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | INamedCallback.java | 11 @Override public java.lang.String GetName() throws android.os.RemoteException in GetName() method in INamedCallback.Default 82 java.lang.String _result = this.GetName(); in onTransact() 109 @Override public java.lang.String GetName() throws android.os.RemoteException in GetName() method in INamedCallback.Stub.Proxy 136 public java.lang.String GetName() throws android.os.RemoteException; in GetName() method
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-java-source/gen/android/aidl/tests/ |
D | INamedCallback.java | 11 @Override public java.lang.String GetName() throws android.os.RemoteException in GetName() method in INamedCallback.Default 82 java.lang.String _result = this.GetName(); in onTransact() 109 @Override public java.lang.String GetName() throws android.os.RemoteException in GetName() method in INamedCallback.Stub.Proxy 136 public java.lang.String GetName() throws android.os.RemoteException; in GetName() method
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | INamedCallback.h | 23 virtual ::android::binder::Status GetName(::android::String16* _aidl_return) = 0; 31 ::android::binder::Status GetName(::android::String16* /*_aidl_return*/) override { in GetName() function
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-cpp-source/gen/include/android/aidl/tests/ |
D | INamedCallback.h | 23 virtual ::android::binder::Status GetName(::android::String16* _aidl_return) = 0; 31 ::android::binder::Status GetName(::android::String16* /*_aidl_return*/) override { in GetName() function
|
/system/tools/aidl/tests/golden_output/frozen/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/ |
D | BnNamedCallback.h | 35 ::ndk::ScopedAStatus GetName(std::string* _aidl_return) override { in GetName() function 36 return _impl->GetName(_aidl_return); in GetName()
|
/system/tools/aidl/tests/golden_output/aidl-test-interface-ndk-source/gen/include/aidl/android/aidl/tests/ |
D | BnNamedCallback.h | 35 ::ndk::ScopedAStatus GetName(std::string* _aidl_return) override { in GetName() function 36 return _impl->GetName(_aidl_return); in GetName()
|