Home
last modified time | relevance | path

Searched refs:name_ (Results 1 – 25 of 84) sorted by relevance

1234

/system/bt/gd/packet/parser/
Dpacket_def.cc33 s << "class " << name_ << "View"; in GenParserDefinition()
35 s << " : public " << parent_->name_ << "View {"; in GenParserDefinition()
43 s << "static " << name_ << "View Create(" << parent_->name_ << "View parent)"; in GenParserDefinition()
44 s << "{ return " << name_ << "View(std::move(parent)); }"; in GenParserDefinition()
46 …s << "static " << name_ << "View Create(PacketView<" << (is_little_endian_ ? "" : "!") << "kLittle… in GenParserDefinition()
47 s << "{ return " << name_ << "View(std::move(packet)); }"; in GenParserDefinition()
74 s << "explicit " << name_ << "View(" << parent_->name_ << "View parent)"; in GenParserDefinition()
75 s << " : " << parent_->name_ << "View(std::move(parent)) { was_validated_ = false; }"; in GenParserDefinition()
77 …s << "explicit " << name_ << "View(PacketView<" << (is_little_endian_ ? "" : "!") << "kLittleEndia… in GenParserDefinition()
96 s << "static " << name_ << "View FromBytes(std::vector<uint8_t> bytes) {"; in GenTestingParserFromBytes()
[all …]
Denum_gen.cc27 stream << e_.name_; in GenDefinition()
37 stream << "py::enum_<" << e_.name_ << ">(m, \"" << e_.name_ << "\")"; in GenDefinitionPybind11()
39 stream << ".value(\"" << pair.second << "\", " << e_.name_ << "::" << pair.second << ")"; in GenDefinitionPybind11()
46 stream << "inline std::string " << e_.name_ << "Text(const " << e_.name_ << "& param) {"; in GenLogging()
49 stream << "case " << e_.name_ << "::" << pair.second << ":"; in GenLogging()
53 …stream << " return std::string(\"Unknown " << e_.name_ << ": \") + std::to_string(static_cast<int… in GenLogging()
58 stream << "inline std::ostream& operator<<(std::ostream& os, const " << e_.name_ << "& param) {"; in GenLogging()
59 stream << " return os << " << e_.name_ << "Text(param);"; in GenLogging()
Dstruct_def.cc28 return new VariableLengthStructField(name, name_, loc); in GetNewField()
30 return new StructField(name, name_, total_size_, loc); in GetNewField()
42 s << "static " << name_ << "* Specialize(" << parent_->name_ << "* parent) {"; in GenSpecialize()
43 s << "ASSERT(" << name_ << "::IsInstance(*parent));"; in GenSpecialize()
44 s << "return static_cast<" << name_ << "*>(parent);"; in GenSpecialize()
51 s << "ss << std::hex << std::showbase << \"" << name_ << " { \";"; in GenToString()
88 s << " Parse(" << name_ << "* to_fill, " << iterator << " struct_begin_it "; in GenParse()
101 …s << "auto parent_optional_it = " << parent_->name_ << "::Parse(to_fill, to_bound" << parent_param… in GenParse()
108 s << parent_->name_ << "::Parse(to_fill, to_bound" << parent_param << ");"; in GenParse()
162 s << "std::unique_ptr<" << name_ << "> Parse" << name_ << "("; in GenParseFunctionPrototype()
[all …]
Dcustom_field_def.cc32 return new CustomField(name, name_, loc); in GetNewField()
34 return new CustomFieldFixedSize(name, name_, size_, loc); in GetNewField()
65 …s << "static_assert(std::is_base_of_v<CustomFieldFixedSizeInterface<" << name_ << ">, " << name_ <… in GenFixedSizeCustomFieldCheck()
66 …s << name_ << " is not a valid fixed size custom field type. Please see README for more details.\"… in GenFixedSizeCustomFieldCheck()
67 s << "static_assert(CustomFieldFixedSizeInterface<" << name_ << ">::length() * 8 == " << size_ in GenFixedSizeCustomFieldCheck()
68 …<< ", \"CustomFieldFixedSizeInterface<" << name_ << ">::length * 8 should match PDL defined size (… in GenFixedSizeCustomFieldCheck()
73 s << "static_assert(CustomTypeChecker<" << name_ << ", "; in GenCustomFieldCheck()
75 s << name_ << " is not a valid custom field type. Please see README for more details.\");"; in GenCustomFieldCheck()
Dstruct_parser_generator.cc30 if (node.struct_def_->parent_->name_ == parent.struct_def_->name_) { in StructParserGenerator()
45 s << child->struct_def_->name_ << "::IsInstance(*" << field->GetName() << "_value.get())) {"; in explore_children()
47 …s << "std::unique_ptr<" << child->struct_def_->name_ << "> " << child->packet_field_->GetName() <<… 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()
57 …s << child->struct_def_->name_ << "::Parse( " << child->packet_field_->GetName() << "_value.get(),… in explore_children()
73 … s << "inline std::unique_ptr<" << node.struct_def_->name_ << "> Parse" << node.struct_def_->name_; in Generate()
80 s << "std::make_unique<" << node.struct_def_->name_ << ">();"; in Generate()
84 s << node.struct_def_->name_ << "::Parse( " << field->GetName() << "_value.get(), "; in Generate()
Dtype_def.h25 TypeDef(std::string name) : name_(name) {} in TypeDef()
27 TypeDef(std::string name, int size) : name_(name), size_(size) {} in TypeDef()
32 return name_; in GetTypeName()
48 const std::string name_; variable
Dparent_def.cc31 ERROR() << "Attempting to constrain field " << field_name << " in parent " << parent_->name_ in AddParentConstraint()
37 …strained_field) << "Attempting to constrain a scalar field to an enum value in " << parent_->name_; in AddParentConstraint()
41 …strained_field) << "Attempting to constrain an enum field to a scalar value in " << parent_->name_; in AddParentConstraint()
46 << "\" for constraint on enum in parent " << parent_->name_ << "."; in AddParentConstraint()
52 …ERROR(constrained_field) << "Field in parent " << parent_->name_ << " is not viable for constraini… in AddParentConstraint()
168 …OR() << "Can't find a field offset for nonexistent field named: " << field_name << " in " << name_; in GetOffsetForField()
203 …ERROR() << "Empty offset for payload in " << parent_->name_ << " finding the offset for field: " <… in GetOffsetForField()
209 …ERROR() << "Empty offset for body in " << parent_->name_ << " finding the offset for field: " << f… in GetOffsetForField()
265 s << " + " << parent_->name_ << "Builder::BitsOfHeader() "; in GenSize()
267 s << " + " << parent_->name_ << "::BitsOfHeader() "; in GenSize()
[all …]
Dchecksum_def.cc25 return new ChecksumField(name, name_, size_, loc); in GetNewField()
33 …s << "static_assert(ChecksumTypeChecker<" << name_ << "," << util::GetTypeForSize(size_) << ">::va… in GenChecksumCheck()
34 s << name_ << " is not a valid checksum type. Please see README for more details.\");"; in GenChecksumCheck()
/system/core/fs_mgr/libdm/
Dtest_util.h40 : dm_(DeviceMapper::Instance()), name_(name), valid_(false) { in TempDevice()
44 : dm_(other.dm_), name_(other.name_), path_(other.path_), valid_(other.valid_) { in TempDevice()
49 dm_.DeleteDevice(name_); in ~TempDevice()
57 return dm_.DeleteDevice(name_); in Destroy()
60 const std::string& name() const { return name_; } in name()
67 name_ = other.name_;
75 std::string name_; variable
/system/core/libprocessgroup/cgrouprc_format/
Dcgroup_controller.cpp24 memset(name_, 0, sizeof(name_)); in CgroupController()
36 strncpy(name_, name.c_str(), sizeof(name_) - 1); in CgroupController()
37 name_[sizeof(name_) - 1] = '\0'; in CgroupController()
51 return name_; in name()
/system/core/fs_mgr/libsnapshot/
Dutility.cpp43 name_.clear(); in Release()
61 if (name_.empty()) return; in ~AutoUnmapDevice()
62 if (!dm_->DeleteDeviceIfExists(name_)) { in ~AutoUnmapDevice()
63 LOG(ERROR) << "Failed to auto unmap device " << name_; in ~AutoUnmapDevice()
68 if (name_.empty()) return; in ~AutoUnmapImage()
69 if (!images_->UnmapImageIfExists(name_)) { in ~AutoUnmapImage()
70 LOG(ERROR) << "Failed to auto unmap cow image " << name_; in ~AutoUnmapImage()
89 if (!name_.empty() && !manager_->DeleteSnapshot(lock_, name_)) { in ~AutoDeleteSnapshot()
90 LOG(ERROR) << "Failed to auto delete snapshot " << name_; in ~AutoDeleteSnapshot()
145 if (name_.empty()) return; in ~AutoUnmountDevice()
[all …]
/system/bt/include/hardware/avrcp/
Davrcp_common.h192 std::string name_; member
196 : id_(id), name_(name), browsable_(browsable) { in MediaPlayerItem()
197 if (name_.size() > MAX_FIELD_LEN) { in MediaPlayerItem()
198 name_.resize(MAX_FIELD_LEN); in MediaPlayerItem()
218 size_t size() const { return kHeaderSize() + name_.size(); } in size()
225 std::string name_; member
232 name_(name) { in FolderItem()
233 if (name_.size() > MAX_FIELD_LEN) { in FolderItem()
234 name_.resize(MAX_FIELD_LEN); in FolderItem()
252 size_t size() const { return kHeaderSize() + name_.size(); } in size()
[all …]
/system/core/init/
Dueventd_parser_test.cpp29 EXPECT_EQ(expected.name_, test.name_); in TestSubsystems()
30 EXPECT_EQ(expected.devname_source_, test.devname_source_) << expected.name_; in TestSubsystems()
31 EXPECT_EQ(expected.dir_name_, test.dir_name_) << expected.name_; in TestSubsystems()
35 EXPECT_EQ(expected.name_, test.name_); in TestPermissions()
36 EXPECT_EQ(expected.perm_, test.perm_) << expected.name_; in TestPermissions()
37 EXPECT_EQ(expected.uid_, test.uid_) << expected.name_; in TestPermissions()
38 EXPECT_EQ(expected.gid_, test.gid_) << expected.name_; in TestPermissions()
39 EXPECT_EQ(expected.prefix_, test.prefix_) << expected.name_; in TestPermissions()
40 EXPECT_EQ(expected.wildcard_, test.wildcard_) << expected.name_; in TestPermissions()
Dservice.cpp143 : name_(name), in Service()
169 std::string prop_name = "init.svc." + name_; in NotifyStateChange()
174 std::string boottime_property = "ro.boottime." + name_; in NotifyStateChange()
182 std::string pid_property = "init.svc_debug_pid." + name_; in NotifyStateChange()
196 LOG(INFO) << "Sending signal " << signal << " to service '" << name_ << "' (pid " << pid_ in KillProcessGroup()
209 << " additional processes from a oneshot process group for service '" << name_ in KillProcessGroup()
218 LmkdUnregister(name_, pid_); in KillProcessGroup()
229 PLOG(FATAL) << "prctl(PR_GET_SECUREBITS) failed for " << name_; in SetProcessAttributesAndCaps()
233 PLOG(FATAL) << "prctl(PR_SET_SECUREBITS) failed for " << name_; in SetProcessAttributesAndCaps()
238 LOG(FATAL) << "cannot set attribute for " << name_ << ": " << result.error(); in SetProcessAttributesAndCaps()
[all …]
Ddevices.h50 const std::string& name() const { return name_; } in name()
53 std::string name_;
87 Subsystem(std::string name) : name_(std::move(name)) {} in Subsystem()
89 : name_(std::move(name)), devname_source_(source), dir_name_(std::move(dir_name)) {} in Subsystem()
101 bool operator==(const std::string& string_name) const { return name_ == string_name; }
104 std::string name_;
/system/bt/test/headless/
Dget_options.cc43 fprintf(stdout, "%s: Usage:\n", name_); in Usage()
46 name_); in Usage()
48 name_); in Usage()
49 fprintf(stdout, "%s --loop=<loop> Number of loops\n", name_); in Usage()
50 fprintf(stdout, "%s --msleep=<msecs> Sleep msec between loops\n", name_); in Usage()
51 fprintf(stdout, "%s --stderr Dump stderr to stdout\n", name_); in Usage()
115 : name_(argv[0]) { in GetOpt()
/system/tools/aidl/tests/
Dsimple_parcelable.cpp30 : name_(name.c_str(), name.length()), in SimpleParcelable()
34 status_t status = parcel->writeString16(name_); in writeToParcel()
43 status_t status = parcel->readString16(&name_); in readFromParcel()
51 return StringPrintf("%s(%d)", String8(name_).string(), number_); in toString()
Dsimple_parcelable.h55 return (lhs.name_ == rhs.name_) && (lhs.number_ == rhs.number_);
63 String16 name_;
/system/core/logd/
DLogStatistics.h283 name_(android::pidToName(pid)) {} in PidEntry()
285 : EntryBaseDropped(element), uid_(element.uid), name_(android::pidToName(element.pid)) {} in PidEntry()
289 name_(element.name_ ? strdup(element.name_) : nullptr) {} in PidEntry()
290 ~PidEntry() { free(name_); } in ~PidEntry()
293 const char* name() const { return name_; } in name()
296 if (name_ && !fastcmp<strncmp>(name_, "zygote", 6)) { in Add()
297 free(name_); in Add()
298 name_ = nullptr; in Add()
300 if (!name_) { in Add()
301 name_ = android::pidToName(new_pid); in Add()
[all …]
/system/core/fs_mgr/libsnapshot/include/libsnapshot/
Dauto_device.h30 bool HasDevice() const { return !name_.empty(); } in HasDevice()
33 AutoDevice(const std::string& name) : name_(name) {} in AutoDevice()
34 std::string name_; member
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h34 : inode_(inode), size_(size), count_(count), exporter_(exporter), name_(name) { in DmaBuffer()
60 const std::string& name() const { return name_; } in name()
62 void SetName(const std::string& name) { name_ = name; } in SetName()
68 return (inode_ == rhs.inode()) && (size_ == rhs.size()) && (name_ == rhs.name()) &&
79 std::string name_; member
/system/bt/gd/os/linux_generic/
Dthread.cc36 : name_(name), reactor_(), running_thread_(&Thread::run, this, priority) {} in Thread()
76 return name_; in GetThreadName()
80 return "Thread " + name_; in ToString()
/system/tools/aidl/
Dast_cpp.cpp45 : name_(name), in ClassDecl()
51 : name_(name), in ClassDecl()
57 to->Write("class %s ", name_.c_str()); in Write()
80 to->Write("}; // class %s\n", name_.c_str()); in Write()
158 : name_(name), in ConstructorDecl()
169 to->Write("%s", name_.c_str()); in Write()
180 : name_(name), in MacroDecl()
184 to->Write("%s", name_.c_str()); in Write()
197 name_(name), in MethodDecl()
213 to->Write("%s %s", return_type_.c_str(), name_.c_str()); in Write()
[all …]
/system/testing/gtest_extras/
DTest.cpp42 name_(suite_name_ + test_name_), in Test()
61 printf(" %s\n", name_.c_str()); in Print()
76 printf(" %s", name_.c_str()); in Print()
/system/bt/gd/packet/parser/fields/
Dfixed_enum_field.cc30 return enum_->name_; in GetDataType()
34 s << enum_->name_ << "::" << value_; in GenValue()

1234