/external/chromium_org/third_party/protobuf/python/ |
H A D | stubout.py | 42 def SmartSet(self, obj, attr_name, new_attr): 43 """Replace obj.attr_name with new_attr. This method is smart and works 48 This method supports the case where attr_name is a staticmethod or a 63 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))): 65 orig_attr = getattr(obj, attr_name) 80 orig_attr = getattr(obj, attr_name) 89 old_attribute = obj.__dict__.get(attr_name) 93 self.stubs.append((orig_obj, attr_name, orig_attr)) 94 setattr(orig_obj, attr_name, new_attr)
|
H A D | mox.py | 208 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)
|
/external/protobuf/python/ |
H A D | stubout.py | 42 def SmartSet(self, obj, attr_name, new_attr): 43 """Replace obj.attr_name with new_attr. This method is smart and works 48 This method supports the case where attr_name is a staticmethod or a 63 (not inspect.isclass(obj) and obj.__dict__.has_key(attr_name))): 65 orig_attr = getattr(obj, attr_name) 80 orig_attr = getattr(obj, attr_name) 89 old_attribute = obj.__dict__.get(attr_name) 93 self.stubs.append((orig_obj, attr_name, orig_attr)) 94 setattr(orig_obj, attr_name, new_attr)
|
H A D | mox.py | 208 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)
|
/external/elfutils/0.153/libdw/ |
H A D | dwarf_child.c | 105 unsigned int attr_name; local 106 get_uleb128 (attr_name, attrp); 111 if (attr_name == 0 && attr_form == 0) 115 if (attr_name == search_name && search_name != INVALID) 118 *codep = attr_name;
|
/external/chromium_org/tools/grit/grit/gather/ |
H A D | igoogle_strings.py | 44 for attr_name in attr_names: 46 att_text.append(attr_name) 49 xml.sax.saxutils.quoteattr(attrs.getValueByQName(attr_name)))
|
H A D | muppet_strings.py | 51 for attr_name in attr_names: 53 att_text.append(attr_name) 56 xml.sax.saxutils.quoteattr(attrs.getValueByQName(attr_name)))
|
/external/chromium_org/content/browser/download/ |
H A D | file_metadata_unittest_linux.cc | 65 void CheckExtendedAttributeValue(const string attr_name, argument 67 ssize_t len = getxattr(test_file().value().c_str(), attr_name.c_str(), 70 FAIL() << "Attribute '" << attr_name << "' does not exist"; 73 len = getxattr(test_file().value().c_str(), attr_name.c_str(), buffer, len);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/w3c/ |
H A D | test_converter.py | 140 for attr_name, attr_value in attrs: 141 if attr_name == target_attr: 151 for attr_name, attr_value in attrs: 152 if attr_name == 'style': 155 if attr_name == 'class' and 'instructions' in attr_value:
|
/external/chromium_org/third_party/cython/src/Cython/Includes/cpython/ |
H A D | object.pxd | 15 bint PyObject_HasAttrString(object o, char *attr_name) 16 # Returns 1 if o has the attribute attr_name, and 0 18 # "hasattr(o, attr_name)". This function always succeeds. 20 object PyObject_GetAttrString(object o, char *attr_name) 22 # attr_name from object o. Returns the attribute value on success, 24 # expression "o.attr_name". 26 bint PyObject_HasAttr(object o, object attr_name) 27 # Returns 1 if o has the attribute attr_name, and 0 29 # "hasattr(o, attr_name)". This function always succeeds. 31 object PyObject_GetAttr(object o, object attr_name) [all...] |
/external/antlr/antlr-3.4/runtime/Ruby/lib/antlr3/ |
H A D | util.rb | 94 def alias_accessor( alias_name, attr_name ) 95 alias_method( alias_name, attr_name ) 96 alias_method( :"#{ alias_name }=", :"#{ attr_name }=" )
|
/external/chromium_org/third_party/cython/src/Cython/Compiler/ |
H A D | TreePath.py | 23 def iterchildren(node, attr_name): 25 child = getattr(node, attr_name) 79 for attr_name in node.child_attrs: 80 for child in iterchildren(node, attr_name):
|
H A D | Visitor.pxd | 40 cdef _dispatch_to_method_handler(self, attr_name, self_arg,
|
H A D | Visitor.py | 591 attr_name = function.attribute 608 attr_name, self_arg, is_unbound_method, type_name, 613 def _dispatch_to_method_handler(self, attr_name, self_arg, 617 "method_%s_%s" % (type_name, attr_name), kwargs) 619 if (attr_name in TypeSlots.method_name_to_slot 620 or attr_name == '__new__'): 622 "slot%s" % attr_name, kwargs) 625 node, type_name, attr_name, function, 640 def _handle_method(self, node, type_name, attr_name, function,
|
/external/chromium_org/chrome/browser/extensions/activity_log/ |
H A D | activity_actions.cc | 120 std::string attr_name; local 123 args_->GetString(1u, &attr_name); 125 if (attr_name == kSrc) { 130 } else if (element_name == kAnchor && attr_name == kHref) { 394 std::string attr_name; local 398 args_->GetString(1u, &attr_name); 400 if (element_name == kIframe && attr_name == kSrc) { 403 } else if (element_name == kAnchor && attr_name == kHref) {
|
/external/compiler-rt/test/msan/Linux/ |
H A D | xattr.cc | 81 const char *attr_name) { 87 ssize_t res = fun(attr_name, buf, buf_size);
|
/external/chromium_org/third_party/cython/src/Cython/Utility/ |
H A D | ObjectHandling.c | 1034 static CYTHON_INLINE PyObject* __Pyx_PyObject_LookupSpecial(PyObject* obj, PyObject* attr_name) { argument 1039 return __Pyx_PyObject_GetAttrStr(obj, attr_name); 1042 res = _PyType_Lookup(tp, attr_name); 1051 PyErr_SetObject(PyExc_AttributeError, attr_name); 1062 static CYTHON_INLINE PyObject* __Pyx_PyObject_GetAttrStr(PyObject* obj, PyObject* attr_name) { argument 1065 return tp->tp_getattro(obj, attr_name); 1068 return tp->tp_getattr(obj, PyString_AS_STRING(attr_name)); 1070 return PyObject_GetAttr(obj, attr_name); 1080 static CYTHON_INLINE int __Pyx_PyObject_SetAttrStr(PyObject* obj, PyObject* attr_name, PyObject* value) { argument 1083 return tp->tp_setattro(obj, attr_name, valu [all...] |
/external/valgrind/main/coregrind/ |
H A D | pub_core_libcfile.h | 53 extern SysRes VG_(getxattr) ( const HChar* file_name, const HChar* attr_name, Addr attr_value, SizeT attr_value_len );
|
H A D | m_libcfile.c | 362 SysRes VG_(getxattr) ( const HChar* file_name, const HChar* attr_name, Addr attr_value, SizeT attr_value_len ) argument 366 res = VG_(do_syscall4)(__NR_getxattr, (UWord)file_name, (UWord)attr_name,
|
/external/chromium_org/build/android/pylib/utils/ |
H A D | parallelizer.py | 184 def _assertNoShadow(self, attr_name): 185 """Ensures that |attr_name| isn't shadowing part of the wrapped obejcts. 187 If the wrapped objects _do_ have an |attr_name| attribute, it will be 191 attr_name: The attribute to check. 193 AssertionError if the wrapped objects have an attribute named 'attr_name'
|
/external/chromium_org/content/browser/accessibility/ |
H A D | browser_accessibility.h | 237 bool GetAriaTristate(const char* attr_name,
|
/external/linux-tools-perf/perf-3.12.0/tools/perf/util/ |
H A D | dwarf-aux.c | 222 static int die_get_attr_udata(Dwarf_Die *tp_die, unsigned int attr_name, argument 227 if (dwarf_attr(tp_die, attr_name, &attr) == NULL || 235 static int die_get_attr_sdata(Dwarf_Die *tp_die, unsigned int attr_name, argument 240 if (dwarf_attr(tp_die, attr_name, &attr) == NULL ||
|
/external/chromium_org/third_party/WebKit/Source/core/css/parser/ |
H A D | CSSGrammar.y | 364 %type <string> attr_name 1243 attr_name: label 1266 '[' maybe_space attr_name closing_square_bracket { 1271 | '[' maybe_space attr_name match maybe_space ident_or_string maybe_space maybe_attr_match_type closing_square_bracket { 1277 | '[' maybe_space namespace_selector attr_name closing_square_bracket { 1282 | '[' maybe_space namespace_selector attr_name match maybe_space ident_or_string maybe_space maybe_attr_match_type closing_square_bracket {
|
/external/wpa_supplicant_8/hs20/client/ |
H A D | spp_client.c | 33 char *attr_name) 35 return xml_node_get_attr_value_ns(ctx, node, SPP_NS_URI, attr_name); 32 get_spp_attr_value(struct xml_node_ctx *ctx, xml_node_t *node, char *attr_name) argument
|
/external/chromium_org/third_party/cython/src/ |
H A D | runtests.py | 1042 for attr_name in filter(is_private_field, dir(test_case)): 1043 if attr_name == '_dt_test': 1046 elif attr_name != '_shortDescription': 1047 setattr(test_case, attr_name, None)
|