Home
last modified time | relevance | path

Searched refs:_fields (Results 1 – 25 of 56) sorted by relevance

123

/external/nanopb-c/generator/google/protobuf/internal/
Dpython_message.py303 self._fields = {}
322 self._fields[field] = copy
326 self._fields[field] = copy
404 field_value = self._fields.get(field)
415 field_value = self._fields.setdefault(field, field_value)
450 return self._fields.get(field, default_value)
455 self._fields[field] = new_value
492 field_value = self._fields.get(field)
504 field_value = self._fields.setdefault(field, field_value)
578 all_fields = [item for item in self._fields.iteritems() if _IsPresent(item)]
[all …]
/external/protobuf/python/google/protobuf/internal/
Dpython_message.py484 self._fields = {}
523 self._fields[field] = copy
533 self._fields[field] = copy
617 field_value = self._fields.get(field)
628 field_value = self._fields.setdefault(field, field_value)
664 return self._fields.get(field, default_value)
676 self._fields.pop(field, None)
678 self._fields[field] = new_value
716 field_value = self._fields.get(field)
727 field_value = self._fields.setdefault(field, field_value)
[all …]
Dproto_builder_test.py57 self._fields = dict(self.ordered_fields)
62 self._fields,
85 self._fields,
89 self._fields,
/external/python/cpython2/Lib/test/
Dtest_ast.py13 if t._fields is None:
15 for f in t._fields:
183 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
189 for name in ast_node._fields:
199 self.assertEqual(x._fields, ())
253 self.assertEqual(type(x._fields), tuple)
257 self.assertEqual(x._fields, ('args', 'vararg', 'kwarg', 'defaults'))
268 x._fields = 666
269 self.assertEqual(x._fields, 666)
273 self.assertEqual(x._fields, ('n',))
[all …]
Dtest_collections.py72 self.assertEqual(Point._fields, ('x', 'y'))
88 self.assertNotIn("u'", repr(nt._fields))
90 self.assertNotIn("u'", repr(nt._fields))
110 self.assertEqual(namedtuple('NT', spec, rename=True)._fields, renamed)
127 self.assertEqual(p._fields, ('x', 'y')) # test _fields attribute
174 self.assertEqual(Zero()._fields, ())
183 self.assertEqual(Dot(1)._fields, ('d',))
204 self.assertEqual(b._fields, tuple(names))
214 self.assertEqual(p._fields, q._fields)
221 self.assertEqual(p._fields, q._fields)
[all …]
/external/tensorflow/tensorflow/contrib/py2tf/pyct/
Danno.py63 if field_name not in node._fields:
64 node._fields += (field_name,)
72 node._fields = tuple(f for f in node._fields if f != field_name)
Dpretty_printer.py58 if node._fields:
70 for f in node._fields:
Dast_util.py39 for f in node._fields:
/external/autotest/client/cros/
Ddhcp_packet.py650 self._fields = {}
657 self._fields[field] = field.unpack(byte_str[field.offset :
693 return self._fields.get(FIELD_CLIENT_HWADDR)
702 if self._fields.get(field) is None:
705 if self._fields[FIELD_MAGIC_COOKIE] != FIELD_VALUE_MAGIC_COOKIE:
728 return self._fields.get(FIELD_TRANSACTION_ID)
731 return self._fields.get(field)
737 self._fields[field] = field_value
749 if field not in self._fields:
751 field_data = field.pack(self._fields[field])
[all …]
/external/autotest/scheduler/
Dscheduler_models.py123 _fields = () variable in DBObject
150 assert self._fields, '_fields must be defined in your class'
184 fields = ', '.join(self._fields)
194 assert len(row) == len(self._fields), (
196 self.__table, row, len(row), self._fields, len(self._fields)))
213 for field, row_value in itertools.izip(self._fields, row):
234 for field, value in itertools.izip(self._fields, row):
275 keys = self._fields[1:] # avoid id
317 for field in cls._fields:
343 _fields = ('id', 'job_id', 'host_id') variable in IneligibleHostQueue
[all …]
Drdb_requests.py128 (self.__class__, self.template._fields, kwargs.keys()))
176 (self.__class__, self.template._fields, kwargs.keys()))
211 (self.__class__, self.template._fields, kwargs.keys()))
Dscheduler_models_unittest.py62 fields = list(host._fields)
78 _fields = ('id', 'test_datetime') variable in DBObjectTest.test_compare_fields_in_row_datetime_ignores_microseconds.TestTable
193 hostname_idx = list(scheduler_models.Host._fields).index('hostname')
194 row = [None] * len(scheduler_models.Host._fields)
/external/tensorflow/tensorflow/contrib/gan/python/
Dnamedtuples.py81 collections.namedtuple('InfoGANModel', GANModel._fields + (
103 collections.namedtuple('ACGANModel', GANModel._fields +
/external/tensorflow/tensorflow/contrib/gan/python/losses/python/
Dtuple_losses_impl.py122 return {k: getattr(namedtuple, k) for k in namedtuple._fields}
126 args_from_tuple = set(argspec.args).intersection(set(gan_model._fields))
134 ambiguous_args = set(gan_model._fields).intersection(set(kwargs.keys()))
/external/tensorflow/tensorflow/python/util/
Dnest.py70 isinstance(instance._fields, _collections.Sequence) and
71 all(isinstance(f, _six.string_types) for f in instance._fields))
160 if nest1._fields != nest2._fields:
807 for key in nest._fields:
/external/python/cpython3/Lib/test/
Dtest_ast.py18 if t._fields is None:
20 for f in t._fields:
196 if not isinstance(ast_node, ast.AST) or ast_node._fields is None:
202 for name in ast_node._fields:
212 self.assertEqual(x._fields, ())
276 self.assertEqual(type(x._fields), tuple)
280 self.assertEqual(x._fields, ('args', 'vararg', 'kwonlyargs',
292 x._fields = 666
293 self.assertEqual(x._fields, 666)
297 self.assertEqual(x._fields, ('n',))
[all …]
Dtest_collections.py197 self.assertEqual(Point._fields, ('x', 'y'))
214 self.assertNotIn("u'", repr(nt._fields))
216 self.assertNotIn("u'", repr(nt._fields))
244 self.assertEqual(namedtuple('NT', spec, rename=True)._fields, renamed)
265 self.assertEqual(p._fields, ('x', 'y')) # test _fields attribute
311 self.assertEqual(Zero()._fields, ())
320 self.assertEqual(Dot(1)._fields, ('d',))
342 self.assertEqual(b._fields, tuple(names))
352 self.assertEqual(p._fields, q._fields)
360 self.assertEqual(p._fields, q._fields)
[all …]
/external/lzma/CPP/7zip/UI/Console/
DList.cpp360 CObjectVector<CFieldInfo> _fields; member in CFieldPrinter
373 void Clear() { _fields.Clear(); LinesString.Empty(); } in Clear()
391 CFieldInfo &f = _fields.AddNew(); in Init()
450 _fields.Add(f); in AddProp()
484 FOR_VECTOR (i, _fields) in PrintTitle()
486 const CFieldInfo &f = _fields[i]; in PrintTitle()
545 FOR_VECTOR (i, _fields) in PrintItemInfo()
547 const CFieldInfo &f = _fields[i]; in PrintItemInfo()
719 FOR_VECTOR (i, _fields) in PrintSum()
721 const CFieldInfo &f = _fields[i]; in PrintSum()
/external/skia/tools/skpbench/
D_hardware_pixel.py120 (' '.join(DevfreqKnobs._fields), DEVFREQ_DIRNAME)).splitlines())
123 batch = tuple(itertools.islice(results, 1 + len(DevfreqKnobs._fields)))
/external/skqp/tools/skpbench/
D_hardware_pixel.py125 (' '.join(DevfreqKnobs._fields), DEVFREQ_DIRNAME)).splitlines())
128 batch = tuple(itertools.islice(results, 1 + len(DevfreqKnobs._fields)))
/external/webrtc/webrtc/video/
Dfull_stack_plot.py60 _fields = [ variable
78 name_to_id = {field[1]: field[0] for field in _fields}
79 id_to_title = {field[0]: field[2] for field in _fields}
/external/tensorflow/tensorflow/python/data/util/
Dnest.py78 isinstance(instance._fields, _collections.Sequence) and
79 all(isinstance(f, _six.string_types) for f in instance._fields)):
/external/v8/tools/
Dgen-inlining-tests.py524 emptyflags = flagtuple(*((False,) * len(flagtuple._fields)))
531 for bools in booltuples(len(flagtuple._fields))
/external/python/cpython3/Doc/library/
Dast.rst44 .. attribute:: _fields
46 Each concrete class has an attribute :attr:`_fields` which gives the names
72 in :attr:`T._fields`; they will be assigned as attributes of these names.
164 Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``
/external/python/cpython2/Doc/library/
Dast.rst50 .. attribute:: _fields
52 Each concrete class has an attribute :attr:`_fields` which gives the names
78 in :attr:`T._fields`; they will be assigned as attributes of these names.
177 Yield a tuple of ``(fieldname, value)`` for each field in ``node._fields``

123