Home
last modified time | relevance | path

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

12345

/system/bt/gd/packet/parser/fields/
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 …]
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 …]
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()
Dscalar_field.cc58 s << "auto " << GetName() << "_it = to_bound + (" << start_offset << ") / 8;"; in GenBounds()
62 …s << "auto " << GetName() << "_it = to_bound + (to_bound.NumBytesRemaining() - (" << byte_offset <… in GenBounds()
75 s << "auto extracted_value = " << GetName() << "_it.extract<" << extract_type << ">();"; in GenExtractor()
90 s << "*" << GetName() << "_ptr = static_cast<" << GetDataType() << ">(extracted_value);"; in GenExtractor()
95 ss << "Get" << util::UnderscoreToCamelCase(GetName()); in GetGetterFunctionName()
104 s << GetDataType() << " " << GetName() << "_value{};"; in GenGetter()
105 s << GetDataType() << "* " << GetName() << "_ptr = &" << GetName() << "_value;"; in GenGetter()
107 s << "return " << GetName() << "_value;"; in GenGetter()
120 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator()
125 s << "i.insert_byte(" << GetName() << "_);"; in GenInserter()
[all …]
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()
100 s << "let " << GetName() << " = "; in GenRustGetter()
106 s << "let " << GetName() << " = &mut buffer[" << start_offset.bytes(); in GenRustWriter()
[all …]
Dcustom_field_fixed_size.cc41 s << "auto " << GetName() << "_it = to_bound + (" << start_offset << ") / 8;"; in GenBounds()
44 …s << "auto " << GetName() << "_it = to_bound (+ to_bound.NumBytesRemaining() - (" << byte_offset <… in GenBounds()
52 s << "*" << GetName() << "_ptr = " << GetName() << "_it.extract<" << GetDataType() << ">();"; in GenExtractor()
64 s << "insert(" << GetName() << "_, i);"; in GenInserter()
90 s << "let " << GetName() << " = bytes[" << start_offset.bytes() << ".."; in GenRustGetter()
104 …s << "let " << GetName() << ": " << GetRustParseDataType() << " = self." << GetName() << ".into();… in GenRustWriter()
106 << GetName() << ");"; in GenRustWriter()
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()
130 s << GetName() << ": " << param_type; in GenRustNameAndType()
142 s << " field: \"" << GetName() << "\".to_string(),"; in GenBoundsCheck()
/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.cc155 auto start_field_offset = GetOffsetForField(field->GetName(), false); in GenParserFieldGetter()
156 auto end_field_offset = GetOffsetForField(field->GetName(), true); in GenParserFieldGetter()
159 ERROR(field) << "Field location for " << field->GetName() << " is ambiguous, " in GenParserFieldGetter()
212 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
216 offset = GetOffsetForField(field->GetName(), true); in GenValidator()
226 …field) << __func__ << ": Can't find checksum field named " << field_name << "(" << field->GetName() in GenValidator()
229 auto end_offset = GetOffsetForField(started_field->GetName(), false); in GenValidator()
233 end_offset = GetOffsetForField(started_field->GetName(), true); in GenValidator()
267 auto offset = GetOffsetForField(field->GetName(), false); in GenValidator()
277 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()
271 const auto& constraint = parent_constraints_.find(field->GetName()); in GenConstructor()
273 s << parent_->name_ << "::" << field->GetName() << "_ = "; in GenConstructor()
[all …]
Dparent_def.cc69 DEBUG() << "field name: " << field->GetName(); in AssignSizeFields()
85 DEBUG() << "field name: " << (*it)->GetName(); in AssignSizeFields()
139 auto offset = GetOffsetForField(field->GetName(), false); in GetSize()
192 if ((*it)->GetName() == field_name) break; in GetOffsetForField()
254 if (parent_constraints_.find(field->GetName()) == parent_constraints_.end()) { in GetParamList()
282 ERROR() << "Only one padding field is allowed. Second field: " << field->GetName(); in GenSize()
407 s << field->GetName() << "_extracted_ = 0;"; in GenSerialize()
441 …field) << __func__ << ": Can't find checksum field named " << field_name << "(" << field->GetName() in GenSerialize()
506 const auto& constraint = parent_constraints_.find(field->GetName()); in GenInstanceOf()
508 s << "if (parent." << field->GetName() << "_ != "; in GenInstanceOf()
[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/tests/golden_output/aidl-test-interface-rust-source/gen/android/aidl/tests/
DINamedCallback.rs14 fn GetName(&self) -> binder::public_api::Result<String>; in GetName() method
23 fn GetName(&self) -> binder::public_api::Result<String> { in GetName() method
28 pub const GetName: binder::TransactionCode = binder::FIRST_CALL_TRANSACTION + 0; constant
37 fn GetName(&self) -> binder::public_api::Result<String> { in GetName() method
38 …let _aidl_reply = self.binder.transact(transactions::GetName, binder::FLAG_PRIVATE_LOCAL, |_aidl_d… in GetName()
43 return _aidl_default_impl.GetName(); in GetName()
54 fn GetName(&self) -> binder::public_api::Result<String> { self.0.GetName() } in GetName() method
58 transactions::GetName => { in on_transact()
59 let _aidl_return = _aidl_service.GetName(); in on_transact()
/system/tools/aidl/
Daidl_to_cpp.cpp85 element_name = type.GetTypeParameters().at(0)->GetName(); in RawParcelMethod()
87 element_name = type.GetName(); in RawParcelMethod()
104 const string& type_name = type.GetName(); in RawParcelMethod()
120 AIDL_FATAL_IF(AidlTypenames::IsBuiltinTypename(type.GetName()), type); in RawParcelMethod()
121 auto definedType = typenames.TryGetDefinedType(type.GetName()); in RawParcelMethod()
124 AIDL_FATAL_IF(definedType == nullptr, type) << type.GetName() << " is not found."; in RawParcelMethod()
148 if (raw_type.IsNullable() && !AidlTypenames::IsPrimitiveTypename(type.GetName()) && in WrapIfNullable()
149 type.GetName() != "IBinder" && typenames.GetEnumDeclaration(type) == nullptr) { in WrapIfNullable()
174 const string& aidl_name = type.GetName(); in GetCppName()
185 auto definedType = typenames.TryGetDefinedType(type.GetName()); in GetCppName()
[all …]
Dgenerate_rust.cpp55 alias << "_" << type->GetName().size() << "_" << type->GetName(); in GenerateMangledAlias()
56 out << "pub(crate) mod mangled { pub use super::" << type->GetName() << " as " << alias.str() in GenerateMangledAlias()
65 return kArgumentPrefix + arg.GetName() + ": " + arg_type; in BuildArg()
76 return "fn " + method.GetName() + "(" + parameters + ") -> " + return_type; in BuildMethod()
87 if (method.GetName() == kGetInterfaceVersion && options.Version() > 0) { in GenerateClientMethod()
94 if (method.GetName() == kGetInterfaceHash && !options.Hash().empty()) { in GenerateClientMethod()
112 << "transactions::" << method.GetName() << ", " << transact_flags << ", |_aidl_data| {\n"; in GenerateClientMethod()
121 auto arg_name = kArgumentPrefix + arg->GetName(); in GenerateClientMethod()
154 default_args += arg->GetName(); in GenerateClientMethod()
159 out << " return _aidl_default_impl." << method.GetName() << "(" << default_args << ");\n"; in GenerateClientMethod()
[all …]
Daidl_language.cpp226 stream << "for annotation " << GetName() << ". "; in CheckValid()
244 << GetName() << "."; in CheckValid()
253 << GetName() << "."; in CheckValid()
260 AIDL_ERROR(this) << "Missing '" << param.name << "' on @" << GetName() << "."; in CheckValid()
291 AIDL_ERROR(this) << "@" << GetName() << " is not available. It can annotate {" in CheckContext()
311 return "@" + GetName(); in ToString()
317 return "@" + GetName() + "(" + Join(param_strings, ", ") + ")"; in ToString()
425 AIDL_ERROR(this) << "'" << annotation.GetName() in CheckValid()
466 string ret = GetName(); in Signature()
516 const string& type_name = GetName(); in CheckValid()
[all …]
Dgenerate_java.cpp107 if (type.GetName() == "List") { in CanDescribeContents()
115 if (type.GetName() == "Map") { in CanDescribeContents()
124 if (type.GetName() == "FileDescriptor") { in CanDescribeContents()
129 if (type.GetName() == "ParcelFileDescriptor" || type.GetName() == "ParcelableHolder" || in CanDescribeContents()
147 out << "_mask |= describeContents(" << f->GetName() << ");\n"; in GenerateParcelableDescribeContents()
169 out << "case " << f->GetName() << ":\n"; in GenerateParcelableDescribeContents()
197 .var = field->GetName(), in GenerateToString()
199 out << "_aidl_sj.add(\"" << field->GetName() << ": \" + ("; in GenerateToString()
221 out << "case " << field->GetName() << ": return \"" << parcel.GetCanonicalName() << "." in GenerateToString()
222 << field->GetName() << "(\" + ("; in GenerateToString()
[all …]
Daidl_to_cpp_common.cpp53 string base_name = defined_type.GetName(); in ClassName()
72 return defined_type.GetName(); in ClassName()
111 return prefix + a.GetName(); in BuildVarName()
116 const string var_name = is_server || is_ndk ? BuildVarName(a) : a.GetName(); in WriteLogForArgument()
157 (*writer) << "_transaction_log.method_name = \"" << method.GetName() << "\";\n"; in GenLogAfterExecute()
184 if (method.GetType().GetName() != "void") { in GenLogAfterExecute()
203 "::" + enum_decl.GetName(); in GenerateEnumValues()
213 code << " " << fq_name << "::" << enumerator->GetName() << ",\n"; in GenerateEnumValues()
242 fields.push_back(prefix + f->GetName()); in GenerateParcelableComparisonOperators()
255 out << "inline bool operator" << op << "(const " << parcelable.GetName() << "&" in GenerateParcelableComparisonOperators()
[all …]
Ddiagnostics.cpp127 if (auto name = i.GetName(); name.size() < 1 || name[0] != 'I') { in Visit()
139 << a.GetName() in Visit()
149 if (ToUpper(e.GetName()) != e.GetName()) { in Visit()
151 << "Enum values should be named in upper case: " << e.GetName(); in Visit()
155 if (ToUpper(c.GetName()) != c.GetName()) { in Visit()
157 << "Constants should be named in upper case: " << c.GetName(); in Visit()
174 AIDL_FATAL_IF(u.GetFields().empty(), u) << "The union '" << u.GetName() << "' has no fields."; in Visit()
185 << "The enum field '" << v.GetName() << "' has no explicit value."; in CheckExplicitDefault()
206 << "The interface '" << i.GetName() in Visit()
219 << "The method '" << m.GetName() << "' an array output parameter '" << a->GetName() in Visit()
[all …]
Daidl_typenames.cpp201 if (it->second->GetName() == type_name) { in TryGetDefinedTypeImpl()
207 if (it->second->GetName() == type_name) { in TryGetDefinedTypeImpl()
244 const string& name = type.GetName(); in CanBeJavaOnlyImmutable()
246 if (type.GetName() == "List" || type.GetName() == "Map") { in CanBeJavaOnlyImmutable()
257 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeJavaOnlyImmutable()
271 const string& name = type.GetName(); in CanBeFixedSize()
281 const AidlDefinedType* t = TryGetDefinedType(type.GetName()); in CanBeFixedSize()
283 << "Failed to look up type. Cannot determine if it can be fixed size: " << type.GetName(); in CanBeFixedSize()
292 return type.GetName() == "List"; in IsList()
301 const string& name = type.GetName(); in GetArgumentAspect()
[all …]
Daidl_dumpapi.cpp37 out << type << " " << dt.GetName(); in DumpType()
107 out << "enum " << t.GetName() << " {\n"; in Visit()
110 out << e->GetName() << " = "; in Visit()
126 out << " " << v.GetName() << " = "; in Visit()
130 out << " " << v.GetName() << ";\n"; in Visit()
137 out << " " << c.GetName() << " = "; in Visit()
143 out << e.GetName() << " = "; in Visit()
156 return options.OutputDir() + package_as_path + OS_PATH_SEPARATOR + defined_type.GetName() + in GetApiDumpPathFor()
/system/unwinding/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/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()
/system/bt/gd/storage/
Ddevice_test.cc52 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
59 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST()
77 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
84 ASSERT_THAT(device3.GetName(), Optional(StrEq("hello"))); in TEST()
106 ASSERT_THAT(device2.GetName(), Optional(StrEq("hello"))); in TEST()
115 ASSERT_FALSE(device.GetName()); in TEST()
120 ASSERT_THAT(device.GetName(), Optional(StrEq("hello world!"))); in TEST()
129 ASSERT_FALSE(device.GetName()); in TEST()
221 ASSERT_THAT(device5.GetName(), Optional(StrEq("hello"))); in TEST()
222 ASSERT_THAT(device1.GetName(), Optional(StrEq("hello"))); in TEST()
[all …]

12345