Home
last modified time | relevance | path

Searched refs:attr_name (Results 1 - 25 of 44) sorted by relevance

12

/third_party/skia/modules/svg/include/
H A DSkSVGNode.h64 #define SVG_PRES_ATTR(attr_name, attr_type, attr_inherited) \
66 bool set##attr_name(SkSVGAttributeParser::ParseResult< \
68 if (pr.isValid()) { this->set##attr_name(std::move(*pr)); } \
73 const SkSVGProperty<attr_type, attr_inherited>& get##attr_name() const { \
74 return fPresentationAttributes.f##attr_name; \
76 void set##attr_name(const SkSVGProperty<attr_type, attr_inherited>& v) { \
77 auto* dest = &fPresentationAttributes.f##attr_name; \
85 void set##attr_name(SkSVGProperty<attr_type, attr_inherited>&& v) { \
86 auto* dest = &fPresentationAttributes.f##attr_name; \
191 #define _SVG_ATTR_SETTERS(attr_name, attr_typ
[all...]
/third_party/skia/modules/sksg/include/
H A DSkSGNode.h98 #define SG_ATTRIBUTE(attr_name, attr_type, attr_container) \
99 const attr_type& get##attr_name() const { return attr_container; } \
100 void set##attr_name(const attr_type& v) { \
105 void set##attr_name(attr_type&& v) { \
111 #define SG_MAPPED_ATTRIBUTE(attr_name, attr_type, attr_container) \
112 attr_type get##attr_name() const { return attr_container.get##attr_name(); } \
113 void set##attr_name(const attr_type& v) { \
114 if (attr_container.get##attr_name() == v) return; \
115 attr_container.set##attr_name(
[all...]
/third_party/protobuf/python/
H A Dstubout.py45 def SmartSet(self, obj, attr_name, new_attr):
46 """Replace obj.attr_name with new_attr. This method is smart and works
51 This method supports the case where attr_name is a staticmethod or a
66 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))):
68 orig_attr = getattr(obj, attr_name)
83 orig_attr = getattr(obj, attr_name)
92 old_attribute = obj.__dict__.get(attr_name)
96 self.stubs.append((orig_obj, attr_name, orig_attr))
97 setattr(orig_obj, attr_name, new_attr)
H A Dmox.py208 def StubOutWithMock(self, obj, attr_name, use_mock_anything=False):
217 attr_name: str. The name of the attribute to replace with a mock.
222 attr_to_replace = getattr(obj, attr_name)
228 self.stubs.Set(obj, attr_name, stub)
1350 for attr_name in dir(base):
1351 d[attr_name] = getattr(base, attr_name)
/third_party/python/Lib/lib2to3/fixes/
H A Dfix_renames.py34 ( attr_name=%r | import_as_name< attr_name=%r 'as' any >) >
37 power< module_name=%r trailer< '.' attr_name=%r > any* >
64 attr_name = results.get("attr_name")
68 if mod_name and attr_name:
69 new_attr = LOOKUP[(mod_name.value, attr_name.value)]
70 attr_name.replace(Name(new_attr, prefix=attr_name.prefix))
/third_party/elfutils/libdw/
H A Ddwarf_hasattr.c58 unsigned int attr_name; in dwarf_hasattr() local
59 get_uleb128_unchecked (attr_name, attrp); in dwarf_hasattr()
64 if (attr_name == 0 && attr_form == 0) in dwarf_hasattr()
67 if (attr_name == search_name) in dwarf_hasattr()
H A Ddwarf_child.c64 unsigned int attr_name; in __libdw_find_attr() local
65 get_uleb128_unchecked (attr_name, attrp); in __libdw_find_attr()
71 if (attr_name == 0 && attr_form == 0) in __libdw_find_attr()
86 if (attr_name == search_name && search_name != INVALID) in __libdw_find_attr()
89 *codep = attr_name; in __libdw_find_attr()
/third_party/skia/experimental/skrive/include/
H A DSkRive.h29 #define ACTOR_ATTR(attr_name, attr_type, attr_default) \
31 attr_type f##attr_name = attr_default; \
33 const attr_type& get##attr_name() const { return f##attr_name; } \
34 void set##attr_name(const attr_type& v) { \
35 if (f##attr_name == v) return; \
36 f##attr_name = v; \
39 void set##attr_name(attr_type&& v) { \
40 if (f##attr_name == v) return; \
41 f##attr_name
[all...]
/third_party/ntfs-3g/ntfsprogs/
H A Dntfscat.c111 static const char *attr_name[] = { in parse_attribute() local
134 for (i = 0; attr_name[i]; i++) { in parse_attribute()
135 if ((strcmp(value, attr_name[i]) == 0) || in parse_attribute()
136 (strcmp(value, attr_name[i] + 1) == 0)) { in parse_attribute()
187 opts.attr_name = NULL; in parse_options()
233 &opts.attr_name); in parse_options()
452 result = cat(vol, inode, attr, opts.attr_name, opts.attr_name_len); in main()
H A Dntfscp.c68 char *attr_name; /* Write to attribute with this name. */ member
179 opts.attr_name = NULL; in parse_options()
229 if (opts.attr_name) { in parse_options()
234 opts.attr_name = argv[optind - 1]; in parse_options()
296 && (opts.attr_name || (opts.attribute != AT_DATA))) { in parse_options()
850 ntfschar *attr_name; in main() local
1052 attr_name = ntfs_str2ucs(opts.attr_name, &attr_name_len); in main()
1053 if (!attr_name) { in main()
1055 opts.attr_name); in main()
[all...]
H A Dntfstruncate.c79 ntfschar *attr_name = NULL; variable
230 attr_name = AT_UNNAMED; in parse_options()
245 attr_name_len = ntfs_mbstoucs(s, &attr_name); in parse_options()
257 attr_name = AT_UNNAMED; in parse_options()
262 if (attr_name == AT_UNNAMED) in parse_options()
701 ntfs_ucsfree(attr_name); in ntfstruncate_exit()
766 na = ntfs_attr_open(ni, attr_type, attr_name, attr_name_len); in main()
805 ntfs_ucsfree(attr_name); in main()
H A Dntfsfallocate.c84 ntfschar *attr_name = NULL; variable
357 attr_name = AT_UNNAMED; in parse_options()
373 attr_name_len = ntfs_mbstoucs(s, &attr_name); in parse_options()
386 attr_name = AT_UNNAMED; in parse_options()
392 if (attr_name == AT_UNNAMED) in parse_options()
705 if (ntfs_attr_lookup(attr_type, attr_name, attr_name_len, in ntfs_full_allocation()
755 na = ntfs_attr_open(ni, attr_type, attr_name, attr_name_len); in ntfs_fallocate()
901 ntfs_ucsfree(attr_name); in main()
/third_party/musl/libc-test/src/functional/
H A Dtest-malloc-info.c31 static const xmlChar *get_attribute(const char *attr_name, xmlNodePtr node) in get_attribute() argument
34 if (xmlStrEqual(curr_attr->name, (const xmlChar *) attr_name)) { in get_attribute()
41 static xmlNodePtr find_child_node_with_attr(const char *name, const char *attr_name, const char *attr_value, xmlNodePtr parent) in find_child_node_with_attr() argument
48 if (attr_name == NULL) { in find_child_node_with_attr()
51 if (xmlStrEqual(get_attribute(attr_name, curr_node), (const xmlChar *) attr_value)) { in find_child_node_with_attr()
/third_party/python/Lib/test/
H A D_test_embed_structseq.py27 for attr_name in (
35 with self.subTest(attr=attr_name):
36 attr = getattr(sys, attr_name)
/third_party/cups-filters/filter/
H A Drastertopdf.cpp1407 char *attr_name = (char *)"cupsPclmStripHeightPreferred"; in main() local
1408 if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL) in main()
1411 attr_name, attr->value); in main()
1417 attr_name = (char *)"cupsPclmStripHeightSupported"; in main()
1418 if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL) in main()
1421 attr_name, attr->value); in main()
1429 attr_name = (char *)"cupsPclmRasterBackSide"; in main()
1430 if ((attr = ppdFindAttr(ppd, attr_name, NULL)) != NULL) in main()
1433 attr_name, attr->value); in main()
1437 attr_name in main()
[all...]
/third_party/alsa-utils/topology/
H A Dpre-process-class.c210 /* get token_ref for attribute with name attr_name in the class */
212 snd_config_t *class, const char *attr_name) in tplg_class_get_attribute_token_ref()
222 ret = snd_config_search(attributes, attr_name, &attr); in tplg_class_get_attribute_token_ref()
244 const char *attr_name, *attr_value; in tplg_class_attribute_valid_tuple_value() local
247 ret = snd_config_get_id(attr, &attr_name); in tplg_class_attribute_valid_tuple_value()
261 ret = snd_config_search(attributes, attr_name, &cfg); in tplg_class_attribute_valid_tuple_value()
211 tplg_class_get_attribute_token_ref(struct tplg_pre_processor *tplg_pp ATTRIBUTE_UNUSED, snd_config_t *class, const char *attr_name) tplg_class_get_attribute_token_ref() argument
/third_party/rust/crates/serde/serde_derive_internals/src/
H A Dattr.rs1395 attr_name: Symbol, in get_ser_and_de()
1404 let mut ser_meta = VecAttr::none(cx, attr_name); in get_ser_and_de()
1405 let mut de_meta = VecAttr::none(cx, attr_name); in get_ser_and_de()
1409 if let Some(both) = f(cx, attr_name, attr_name, meta)?.into() { in get_ser_and_de()
1416 if let Some(v) = f(cx, attr_name, SERIALIZE, &meta)?.into() { in get_ser_and_de()
1420 if let Some(v) = f(cx, attr_name, DESERIALIZE, &meta)?.into() { in get_ser_and_de()
1426 attr_name, in get_ser_and_de()
1440 attr_name: Symbol, in get_renames()
1443 let (ser, de) = get_ser_and_de(cx, attr_name, met in get_renames()
[all...]
/third_party/rust/crates/serde/serde_derive/src/internals/
H A Dattr.rs1395 attr_name: Symbol, in get_ser_and_de()
1404 let mut ser_meta = VecAttr::none(cx, attr_name); in get_ser_and_de()
1405 let mut de_meta = VecAttr::none(cx, attr_name); in get_ser_and_de()
1409 if let Some(both) = f(cx, attr_name, attr_name, meta)?.into() { in get_ser_and_de()
1416 if let Some(v) = f(cx, attr_name, SERIALIZE, &meta)?.into() { in get_ser_and_de()
1420 if let Some(v) = f(cx, attr_name, DESERIALIZE, &meta)?.into() { in get_ser_and_de()
1426 attr_name, in get_ser_and_de()
1440 attr_name: Symbol, in get_renames()
1443 let (ser, de) = get_ser_and_de(cx, attr_name, met in get_renames()
[all...]
/third_party/alsa-utils/alsactl/
H A Dinit_sysfs.c72 static char *sysfs_attr_get_value(const char *devpath, const char *attr_name) in sysfs_attr_get_value() argument
84 dbg("open '%s'/'%s'", devpath, attr_name); in sysfs_attr_get_value()
89 strlcat(path_full, attr_name, sizeof(path_full)); in sysfs_attr_get_value()
/third_party/node/test/fixtures/wpt/resources/
H A Dsriharness.js56 for (const [attr_name, attr_val] of Object.entries(attrs)) {
57 element[attr_name] = attr_val;
113 for (const [attr_name, attr_val] of Object.entries(link_attrs)) {
114 link[attr_name] = attr_val; // This may override `rel` to modulepreload.
/third_party/mesa3d/src/amd/llvm/
H A Dac_llvm_util.c281 const char *attr_name = attr_to_str(attr); in ac_add_function_attr() local
282 unsigned kind_id = LLVMGetEnumAttributeKindForName(attr_name, strlen(attr_name)); in ac_add_function_attr()
/third_party/selinux/libsepol/src/
H A Dmodule_to_cil.c183 char *attr_name; member
250 free(attr->attr_name); in attr_list_destroy()
752 char *attr_name = NULL; in get_new_attr_name() local
763 attr_name = malloc(len); in get_new_attr_name()
764 if (!attr_name) { in get_new_attr_name()
769 rlen = snprintf(attr_name, len, "%s%s%i", pdb->name, infix, num_attrs); in get_new_attr_name()
772 free(attr_name); in get_new_attr_name()
773 attr_name = NULL; in get_new_attr_name()
778 return attr_name; in get_new_attr_name()
781 static int cil_add_attr_to_list(struct list *attr_list, char *attr_name, in argument
809 cil_print_attr_strs(int indent, struct policydb *pdb, int is_type, void *set, char *attr_name) cil_print_attr_strs() argument
954 char *attr_name = NULL; set_to_names() local
[all...]
/third_party/PyYAML/
H A Dsetup.py119 setattr(self, ext.attr_name, None)
145 with_ext = getattr(self, ext.attr_name) or os.environ.get('PYYAML_FORCE_{0}'.format(ext.feature_name.upper()))
169 self.attr_name = 'with_' + feature_name.replace('-', '_')
/third_party/mesa3d/src/gallium/auxiliary/gallivm/
H A Dlp_bld_intr.c202 const char *attr_name = attr_to_str(attr); in lp_add_function_attr()
203 unsigned kind_id = LLVMGetEnumAttributeKindForName(attr_name, in lp_add_function_attr()
204 strlen(attr_name)); in lp_add_function_attr()
/third_party/python/Lib/distutils/
H A Dfancy_getopt.py73 self.attr_name = {}
205 self.attr_name[long] = self.get_attr_name(long)
257 attr = self.attr_name[opt]

Completed in 21 milliseconds

12