Home
last modified time | relevance | path

Searched refs:GetName (Results 1 – 25 of 89) sorted by relevance

1234

/system/bt/gd/packet/parser/fields/
Dcustom_field.cc34 std::string ret = "(" + GetName() + "_.size() * 8) "; in GetBuilderSize()
44 s << GetDataType() << "::Parse( " << GetName() << "_ptr, " << GetName() << "_it);"; in GenExtractor()
46 s << GetName() << "_it = *optional_it;"; in GenExtractor()
48 s << GetName() << "_it = " << GetName() << "_it + " << GetName() << "_it.NumBytesRemaining();"; in GenExtractor()
49 s << GetName() << "_ptr = nullptr;"; in GenExtractor()
55 ss << "Get" << util::UnderscoreToCamelCase(GetName()); in GetGetterFunctionName()
66 s << "std::unique_ptr<" << GetDataType() << "> " << GetName() << "_value"; in GenGetter()
68 s << GetDataType() << "* " << GetName() << "_ptr = " << GetName() << "_value.get();"; in GenGetter()
70 s << "if (" << GetName() << "_ptr == nullptr) {" << GetName() << "_value.reset(); }"; in GenGetter()
71 s << "return " << GetName() << "_value;"; in GenGetter()
[all …]
Dvector_field.cc55 …std::string ret = "(static_cast<size_t>(Get" + util::UnderscoreToCamelCase(size_field_->GetName())… in GetSize()
62 …return "(static_cast<size_t>(Get" + util::UnderscoreToCamelCase(size_field_->GetName()) + "()) * "… in GetSize()
71 …std::string ret = "(static_cast<size_t>(" + GetName() + "_.size()) * " + std::to_string(element_si… in GetBuilderSize()
74 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : " + GetName() + in GetBuilderSize()
78 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : " + GetName() + in GetBuilderSize()
92 … std::string ret = "(static_cast<size_t>(to_fill->" + size_field_->GetName() + "_extracted_) * 8)"; in GetStructSize()
99 return "(static_cast<size_t>(to_fill->" + size_field_->GetName() + "_extracted_) * " + in GetStructSize()
111 s << "auto " << element_field_->GetName() << "_it = " << GetName() << "_it;"; in GenExtractor()
113 s << "size_t " << element_field_->GetName() << "_count = "; in GenExtractor()
115 s << "to_fill->" << size_field_->GetName() << "_extracted_;"; in GenExtractor()
[all …]
Dvariable_length_struct_field.cc34 std::string ret = "(" + GetName() + "_->size() * 8) "; in GetBuilderSize()
44 s << GetName() << "_ptr = Parse" << type_name_ << "(" << GetName() << "_it);"; in GenExtractor()
45 s << "if (" << GetName() << "_ptr != nullptr) {"; in GenExtractor()
46 s << GetName() << "_it = " << GetName() << "_it + " << GetName() << "_ptr->size();"; in GenExtractor()
48 s << GetName() << "_it = " << GetName() << "_it + " << GetName() << "_it.NumBytesRemaining();"; in GenExtractor()
54 ss << "Get" << util::UnderscoreToCamelCase(GetName()); in GetGetterFunctionName()
64 s << GetDataType() << " " << GetName() << "_ptr{};"; in GenGetter()
66 s << "return " << GetName() << "_ptr;"; in GenGetter()
87 s << GetName() << "_->Serialize(i);"; in GenInserter()
Darray_field.cc58 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : " + GetName() + in GetBuilderSize()
62 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : " + GetName() + in GetBuilderSize()
72 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : to_fill->" + GetName() + in GetStructSize()
76 std::string ret = "[this](){ size_t length = 0; for (const auto& elem : to_fill->" + GetName() + in GetStructSize()
87 s << GetDataType() << "::iterator ret_it = " << GetName() << "_ptr->begin();"; in GenExtractor()
88 s << "auto " << element_field_->GetName() << "_it = " << GetName() << "_it;"; in GenExtractor()
90 …s << "while (" << element_field_->GetName() << "_it.NumBytesRemaining() >= " << element_size_.byte… in GenExtractor()
91 s << " && ret_it < " << GetName() << "_ptr->end()) {"; in GenExtractor()
93 s << "while (" << element_field_->GetName() << "_it.NumBytesRemaining() > 0 "; in GenExtractor()
94 s << " && ret_it < " << GetName() << "_ptr->end()) {"; in GenExtractor()
[all …]
Dstruct_field.cc34 std::string ret = "(" + GetName() + "_.size() * 8)"; in GetBuilderSize()
43 s << GetName() << "_it = "; in GenExtractor()
44 s << GetDataType() << "::Parse(" << GetName() << "_ptr, " << GetName() << "_it);"; in GenExtractor()
49 ss << "Get" << util::UnderscoreToCamelCase(GetName()); in GetGetterFunctionName()
59 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
60 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
63 s << "return " << GetName() << "_value;"; in GenGetter()
80 s << GetName() << "_.Serialize(i);"; in GenInserter()
Dscalar_field.cc56 s << "auto " << GetName() << "_it = to_bound + (" << start_offset << ") / 8;"; in GenBounds()
60 …s << "auto " << GetName() << "_it = to_bound + (to_bound.NumBytesRemaining() - (" << byte_offset <… in GenBounds()
73 s << "auto extracted_value = " << GetName() << "_it.extract<" << extract_type << ">();"; in GenExtractor()
88 s << "*" << GetName() << "_ptr = static_cast<" << GetDataType() << ">(extracted_value);"; in GenExtractor()
93 ss << "Get" << util::UnderscoreToCamelCase(GetName()); in GetGetterFunctionName()
102 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
103 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
105 s << "return " << GetName() << "_value;"; in GenGetter()
118 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator()
123 s << "i.insert_byte(" << GetName() << "_);"; in GenInserter()
[all …]
Dcustom_field_fixed_size.cc37 s << "auto " << GetName() << "_it = to_bound + (" << start_offset << ") / 8;"; in GenBounds()
40 …s << "auto " << GetName() << "_it = to_bound (+ to_bound.NumBytesRemaining() - (" << byte_offset <… in GenBounds()
48 s << "*" << GetName() << "_ptr = " << GetName() << "_it.extract<" << GetDataType() << ">();"; in GenExtractor()
60 s << "insert(" << GetName() << "_, i);"; in GenInserter()
Dpacket_field.cc24 return "Field{Type:" + GetFieldType() + ", Name:" + GetName() + "}"; in GetDebugName()
31 std::string PacketField::GetName() const { in GetName() function in PacketField
80 s << param_type << " " << GetName(); in GenBuilderParameter()
93 s << "view.Get" << util::UnderscoreToCamelCase(GetName()) << "()"; in GenBuilderParameterFromView()
/system/bt/gd/packet/parser/
Dstruct_parser_generator.cc41 s << "bool " << field->GetName() << "_child_found = false; /* Greedy match */"; in explore_children()
44 s << "if (!" << field->GetName() << "_child_found && "; in explore_children()
45 s << child->struct_def_->name_ << "::IsInstance(*" << field->GetName() << "_value.get())) {"; in explore_children()
46 s << field->GetName() << "_child_found = true;"; in explore_children()
47 …s << "std::unique_ptr<" << child->struct_def_->name_ << "> " << child->packet_field_->GetName() <<… in explore_children()
48 s << child->packet_field_->GetName() << "_value.reset(new "; in explore_children()
49 s << child->struct_def_->name_ << "(*" << field->GetName() << "_value));"; in explore_children()
52 …s << child->struct_def_->name_ << "::Parse( " << child->packet_field_->GetName() << "_value.get(),… in explore_children()
55 s << "} else { return " << field->GetName() << "_value;}"; in explore_children()
57 …s << child->struct_def_->name_ << "::Parse( " << child->packet_field_->GetName() << "_value.get(),… in explore_children()
[all …]
Dpacket_def.cc154 auto start_field_offset = GetOffsetForField(field->GetName(), false); in GenParserFieldGetter()
155 auto end_field_offset = GetOffsetForField(field->GetName(), true); in GenParserFieldGetter()
158 ERROR(field) << "Field location for " << field->GetName() << " is ambiguous, " in GenParserFieldGetter()
207 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
211 offset = GetOffsetForField(field->GetName(), true); in GenValidator()
221 …field) << __func__ << ": Can't find checksum field named " << field_name << "(" << field->GetName() in GenValidator()
224 auto end_offset = GetOffsetForField(started_field->GetName(), false); in GenValidator()
228 end_offset = GetOffsetForField(started_field->GetName(), true); in GenValidator()
262 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
272 const auto& custom_size_var = field->GetName() + "_size"; in GenValidator()
[all …]
Dstruct_def.cc63 s << (firstfield ? " << \"" : " << \", ") << field->GetName() << " = \" << "; in GenToString()
65 field->GenStringRepresentation(s, field->GetName() + "_"); in GenToString()
143 … field->GenBounds(s, GetStructOffsetForField(field->GetName()), Size(), field->GetStructSize()); in GenParse()
144 s << "auto " << field->GetName() << "_ptr = &to_fill->" << field->GetName() << "_;"; in GenParse()
151 … field->GenBounds(s, GetStructOffsetForField(field->GetName()), Size(), field->GetStructSize()); in GenParse()
152 s << "auto " << field->GetName() << "_ptr = &to_fill->" << field->GetName() << "_extracted_;"; in GenParse()
212 s << " mutable " << field->GetDataType() << " " << field->GetName() << "_extracted_{0};"; in GenDefinition()
248 …s << ".def_readwrite(\"" << field->GetName() << "\", &" << name_ << "::" << field->GetName() << "_… in GenDefinitionPybind11()
272 const auto& constraint = parent_constraints_.find(field->GetName()); in GenConstructor()
274 s << parent_->name_ << "::" << field->GetName() << "_ = "; in GenConstructor()
[all …]
/system/linkerconfig/modules/
Dsection.cc42 if (lhs.GetName() == "default") return true; in WriteConfig()
43 if (rhs.GetName() == "default") return false; in WriteConfig()
44 return lhs.GetName() < rhs.GetName(); in WriteConfig()
50 if (ns.GetName() != "default") { in WriteConfig()
51 additional_namespaces.push_back(ns.GetName()); in WriteConfig()
81 ns.GetName(), in Resolve()
84 providers[lib] = ns.GetName(); in Resolve()
99 if (ns.GetName() == name) { in Resolve()
108 providers[new_lib] = new_ns.GetName(); in Resolve()
143 "not found: {} is required by {} in [{}]", lib, ns.GetName(), name_); in Resolve()
[all …]
/system/tools/aidl/
Dgenerate_java.cpp114 if (variable->GetType().GetName() == "ParcelableHolder" || parcel->IsImmutable()) { in generate_parcel_class()
117 out << JavaSignatureOf(variable->GetType(), typenames) << " " << variable->GetName(); in generate_parcel_class()
120 } else if (variable->GetType().GetName() == "ParcelableHolder") { in generate_parcel_class()
144 out << "public static final android.os.Parcelable.Creator<" << parcel->GetName() << "> CREATOR = " in generate_parcel_class()
145 << "new android.os.Parcelable.Creator<" << parcel->GetName() << ">() {\n"; in generate_parcel_class()
147 out << " public " << parcel->GetName() in generate_parcel_class()
150 out << " return new " << parcel->GetName() << "(_aidl_source);\n"; in generate_parcel_class()
152 out << " " << parcel->GetName() << " _aidl_out = new " << parcel->GetName() << "();\n"; in generate_parcel_class()
158 out << " public " << parcel->GetName() << "[] newArray(int _aidl_size) {\n"; in generate_parcel_class()
159 out << " return new " << parcel->GetName() << "[_aidl_size];\n"; in generate_parcel_class()
[all …]
Daidl_to_cpp.cpp69 raw_type.IsArray() || (raw_type.IsGeneric() && raw_type.GetName() == "List"); in RawParcelMethod()
72 const string& aidl_name = type.GetName(); in RawParcelMethod()
108 auto definedType = typenames.TryGetDefinedType(type.GetName()); in RawParcelMethod()
121 CHECK(definedType != nullptr) << type.GetName() << " is not found."; in RawParcelMethod()
141 if (raw_type.IsNullable() && !AidlTypenames::IsPrimitiveTypename(type.GetName()) && in WrapIfNullable()
142 type.GetName() != "IBinder" && typenames.GetEnumDeclaration(type) == nullptr) { in WrapIfNullable()
166 (raw_type.GetName() == "List" && raw_type.GetTypeParameters().size() == 1)); in GetCppName()
168 const string& aidl_name = type.GetName(); in GetCppName()
179 auto definedType = typenames.TryGetDefinedType(type.GetName()); in GetCppName()
192 if (type.GetName() == "long") { in ConstantValueDecorator()
[all …]
Daidl_typenames.cpp180 if (it->second->GetName() == type_name) { in TryGetDefinedTypeImpl()
186 if (it->second->GetName() == type_name) { in TryGetDefinedTypeImpl()
223 const string& name = type.GetName(); in CanBeImmutable()
225 if (type.GetName() == "List" || type.GetName() == "Map") { in CanBeImmutable()
236 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeImmutable()
247 const string& name = type.GetName(); in CanBeOutParameter()
249 return type.IsArray() || type.GetName() == "List" || type.GetName() == "Map" || in CanBeOutParameter()
250 type.GetName() == "ParcelFileDescriptor"; in CanBeOutParameter()
252 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeOutParameter()
253 CHECK(t != nullptr) << "Unrecognized type: '" << type.GetName() << "'"; in CanBeOutParameter()
[all …]
Daidl_language.cpp180 << GetName() << "."; in CheckValid()
187 stream << "for annotation " << GetName() << ". "; in CheckValid()
200 << GetName() << "."; in CheckValid()
216 stream << "for annotation " << GetName() << ". "; in AnnotationParams()
228 << GetName() << "."; in AnnotationParams()
239 return "@" + GetName(); in ToString()
245 return "@" + GetName() + "(" + Join(param_strings, ", ") + ")"; in ToString()
338 AIDL_ERROR(this) << "'" << annotation.GetName() in CheckValid()
384 string ret = GetName(); in ToString()
430 const string& type_name = GetName(); in CheckValid()
[all …]
Dgenerate_ndk.cpp185 const AidlDefinedType* type = types.TryGetDefinedType(typespec.GetName()); in GenerateHeaderIncludes()
259 out << "static const char* " << constant->GetName() << ";\n"; in GenerateConstantDeclarations()
285 out << constant->GetName() << " = " << constant->ValueString(ConstantValueDecorator) in GenerateConstantDeclarations()
301 out << "const char* " << clazz << "::" << constant->GetName() << " = " in GenerateConstantDefinitions()
321 return "(FIRST_CALL_TRANSACTION + " + std::to_string(m.GetId()) + " /*" + m.GetName() + "*/)"; in MethodId()
335 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethodDefinition()
344 } else if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethodDefinition()
363 << "::" << ClassName(defined_type, ClassNames::INTERFACE) << "::" << method.GetName() in GenerateClientMethodDefinition()
403 out << "_aidl_status = " << iface << "::getDefaultImpl()->" << method.GetName() << "("; in GenerateClientMethodDefinition()
418 if (method.GetType().GetName() != "void") { in GenerateClientMethodDefinition()
[all …]
Dgenerate_cpp.cpp115 const auto definedType = typenames.TryGetDefinedType(a->GetType().GetName()); in BuildArgList()
118 const bool isPrimitive = AidlTypenames::IsPrimitiveTypename(a->GetType().GetName()); in BuildArgList()
127 literal += " " + a->GetName(); in BuildArgList()
142 if (method.GetType().GetName() != "void") { in BuildArgList()
169 new MethodDecl{kBinderStatusLiteral, method.GetName(), in BuildMethodDecl()
176 if (method.GetName() == kGetInterfaceVersion && options.Version()) { in BuildMetaMethodDecl()
189 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in BuildMetaMethodDecl()
257 new MethodImpl{kBinderStatusLiteral, bp_name, method.GetName(), in DefineClientTransaction()
276 kTraceVarName, interface.GetName().c_str(), method.GetName().c_str())); in DefineClientTransaction()
293 const string var_name = ((a->IsOut()) ? "*" : "") + a->GetName(); in DefineClientTransaction()
[all …]
Daidl_to_cpp_common.cpp32 string base_name = defined_type.GetName(); in ClassName()
51 return defined_type.GetName(); in ClassName()
90 return prefix + a.GetName(); in BuildVarName()
169 const string& aidl_name = aidl.GetName(); in GetTypeInfo()
220 string varName = isServer || isNdk ? BuildVarName(a) : a.GetName(); in WriteLogForArguments()
303 << "Json::Value(\"" << method.GetName() << "\");\n"; in GenLogAfterExecute()
343 if (method.GetType().GetName() != "void") { in GenLogAfterExecute()
363 "::" + enum_decl.GetName(); in GenerateEnumValues()
372 code << " " << fq_name << "::" << enumerator->GetName() << ",\n"; in GenerateEnumValues()
Daidl_checkapi.cpp147 new_constdecls.emplace(c->GetName(), c.get()); in are_compatible_interfaces()
151 const auto found = new_constdecls.find(old_c->GetName()); in are_compatible_interfaces()
154 << old_c->GetName(); in are_compatible_interfaces()
166 << old_c->GetName() << " from " << old_value << " to " << new_value << "."; in are_compatible_interfaces()
215 return new_field->GetName() == f->GetName(); in are_compatible_parcelables()
220 AIDL_ERROR(new_field) << "Reordered " << new_field->GetName() << " from " << old_index in are_compatible_parcelables()
243 new_field->GetName() == exception.field) { in are_compatible_parcelables()
251 << "Field '" << new_field->GetName() in are_compatible_parcelables()
273 old_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums()
277 new_enum_map[enumerator->GetName()] = enumerator->GetValue(); in are_compatible_enums()
Dgenerate_java_binder.cpp406 decl->name = method.GetName(); in generate_interface_method()
410 … auto var = std::make_shared<Variable>(JavaSignatureOf(arg->GetType(), typenames), arg->GetName()); in generate_interface_method()
439 std::make_shared<StringLiteralExpression>("AIDL::java::" + iface.GetName() + in generate_stub_code()
440 "::" + method.GetName() + "::server")})); in generate_stub_code()
447 auto realCall = std::make_shared<MethodCall>(THIS_VALUE, method.GetName()); in generate_stub_code()
492 if (method.GetType().GetName() == "void") { in generate_stub_code()
546 std::string outline_name = "onTransact$" + method.GetName() + "$"; in generate_stub_case_outline()
587 proxy->name = method.GetName(); in generate_proxy_method()
591 std::make_shared<Variable>(JavaSignatureOf(arg->GetType(), typenames), arg->GetName())); in generate_proxy_method()
608 if (method.GetType().GetName() != "void") { in generate_proxy_method()
[all …]
Daidl_to_java.cpp43 if (type.GetName() == "long" && !type.IsArray()) { in ConstantValueDecorator()
64 const string& aidl_name = aidl.GetName(); in JavaNameOf()
101 const string& backing_type_name = enum_decl->GetBackingType().GetName(); in JavaNameOf()
107 const string& aidl_name = aidl.GetName(); in JavaNameOf()
149 type_name = enum_decl->GetBackingType().GetName(); in AidlBackingTypeName()
151 type_name = type.GetName(); in AidlBackingTypeName()
263 const string& contained_type = c.type.GetTypeParameters().at(0)->GetName(); in WriteToParcelFor()
378 const AidlDefinedType* t = c.typenames.TryGetDefinedType(c.type.GetName()); in WriteToParcelFor()
379 CHECK(t != nullptr) << "Unknown type: " << c.type.GetName() << endl; in WriteToParcelFor()
491 const string& contained_type = c.type.GetTypeParameters().at(0)->GetName(); in CreateFromParcelFor()
[all …]
/system/core/libunwindstack/tests/
DSymbolsTest.cpp73 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/bt/gd/storage/
Ddevice_test.cc50 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
57 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST()
75 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
82 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST()
104 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
113 ASSERT_FALSE(device.GetName()); in TEST()
118 ASSERT_THAT(device.GetName(), Optional(StrEq("hello world!"))); in TEST()
127 ASSERT_FALSE(device.GetName()); in TEST()
219 ASSERT_THAT(device5.GetName(), Optional(StrEq("hello"))); in TEST()
220 ASSERT_THAT(device1.GetName(), Optional(StrEq("hello"))); in TEST()
[all …]
/system/update_engine/update_manager/
Dumtest_utils.h45 ASSERT_NE(nullptr, value.get()) << "Variable: " << variable->GetName(); in ExpectVariableHasValue()
46 EXPECT_EQ(expected, *value) << "Variable: " << variable->GetName(); in ExpectVariableHasValue()
55 EXPECT_EQ(nullptr, value.get()) << "Variable: " << variable->GetName(); in ExpectVariableNotSet()

1234