Home
last modified time | relevance | path

Searched refs:isinstance (Results 1 – 25 of 2887) sorted by relevance

12345678910>>...116

/external/bcc/src/cc/frontends/p4/compiler/
DebpfParser.py21 assert isinstance(serializer, programSerializer.ProgramSerializer)
22 assert isinstance(program, ebpfProgram.EbpfProgram)
37 assert isinstance(selectVarName, str)
38 assert isinstance(serializer, programSerializer.ProgramSerializer)
39 assert isinstance(program, ebpfProgram.EbpfProgram)
44 if isinstance(e, p4_field):
46 assert isinstance(instance, p4_header_instance)
51 assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)
53 if isinstance(instance.index, int):
64 assert isinstance(ebpfHeader, ebpfInstance.EbpfHeader)
[all …]
DebpfDeparser.py22 assert(isinstance(parse_state, p4_parse_state))
50 if not isinstance(next_state, p4_parse_state):
67 assert isinstance(serializer, ProgramSerializer)
68 assert isinstance(program, ebpfProgram.EbpfProgram)
83 assert isinstance(header, ebpfInstance.EbpfHeader)
84 assert isinstance(serializer, ProgramSerializer)
85 assert isinstance(program, ebpfProgram.EbpfProgram)
87 assert isinstance(p4header, p4_header_instance)
96 assert isinstance(ebpfStack, ebpfInstance.EbpfHeaderStack)
98 if isinstance(p4header.index, int):
[all …]
DebpfProgram.py24 assert isinstance(hlir, HLIR)
25 assert isinstance(isRouter, bool)
26 assert isinstance(config, target.TargetConfig)
35 assert isinstance(config, target.TargetConfig)
88 assert isinstance(h, p4_header_instance)
137 assert isinstance(headerInstance, p4_header_instance)
141 assert isinstance(formatString, str)
145 assert isinstance(serializer, programSerializer.ProgramSerializer)
186 if isinstance(self.config, target.KernelSamplesConfig):
189 elif isinstance(self.config, target.BccConfig):
[all …]
DebpfConditional.py24 assert isinstance(p4conditional, p4_conditional_node)
25 assert isinstance(program, ebpfProgram.EbpfProgram)
30 if isinstance(node, p4_expression):
34 elif isinstance(node, int):
36 elif isinstance(node, p4_header_instance):
38 assert isinstance(header, ebpfInstance.EbpfHeader)
42 elif isinstance(node, p4_field):
45 if isinstance(einstance, ebpfInstance.EbpfHeader):
55 assert isinstance(serializer, ProgramSerializer)
56 assert isinstance(program, ebpfProgram.EbpfProgram)
[all …]
DebpfAction.py58 assert isinstance(p4action, p4_action)
59 assert isinstance(program, ebpfProgram.EbpfProgram)
86 assert isinstance(serializer, ProgramSerializer)
88 assert isinstance(arg, EbpfActionData)
91 assert isinstance(argtype, ebpfType.EbpfType)
108 assert isinstance(serializer, ProgramSerializer)
109 assert isinstance(program, ebpfProgram.EbpfProgram)
110 assert isinstance(dataContainer, str)
114 assert isinstance(action, p4_action)
116 assert isinstance(arguments, list)
[all …]
Dtarget.py26 assert isinstance(serializer, ProgramSerializer)
34 assert isinstance(serializer, ProgramSerializer)
39 assert isinstance(serializer, ProgramSerializer)
40 assert isinstance(tableName, str)
41 assert isinstance(isHash, bool)
42 assert isinstance(keyType, str)
43 assert isinstance(valueType, str)
44 assert isinstance(size, int)
127 assert isinstance(serializer, ProgramSerializer)
128 assert isinstance(tableName, str)
[all …]
DebpfTable.py16 assert isinstance(instance, ebpfInstance.EbpfInstanceBase)
17 assert isinstance(field, ebpfStructType.EbpfField)
25 assert isinstance(serializer, ProgramSerializer)
32 assert isinstance(serializer, ProgramSerializer)
33 assert isinstance(keyName, str)
34 assert isinstance(program, ebpfProgram.EbpfProgram)
41 if isinstance(self.instance, ebpfInstance.EbpfMetadata):
46 if isinstance(self.instance, ebpfInstance.SimpleInstance):
50 assert isinstance(self.instance, ebpfInstance.EbpfHeaderStack)
73 assert isinstance(program, ebpfProgram.EbpfProgram)
[all …]
/external/python/cpython2/Lib/
Dast.py48 if isinstance(node_or_string, basestring):
50 if isinstance(node_or_string, Expression):
53 if isinstance(node, Str):
55 elif isinstance(node, Num):
57 elif isinstance(node, Tuple):
59 elif isinstance(node, List):
61 elif isinstance(node, Dict):
64 elif isinstance(node, Name):
67 elif isinstance(node, BinOp) and \
68 isinstance(node.op, (Add, Sub)) and \
[all …]
/external/llvm/bindings/python/llvm/tests/
Dtest_object.py21 assert isinstance(section, Section)
22 assert isinstance(section.name, str)
23 assert isinstance(section.size, long)
24 assert isinstance(section.contents, str)
25 assert isinstance(section.address, long)
39 assert isinstance(symbol, Symbol)
40 assert isinstance(symbol.name, str)
41 assert isinstance(symbol.address, long)
42 assert isinstance(symbol.size, long)
54 assert isinstance(section, Section)
[all …]
/external/llvm-project/llvm/bindings/python/llvm/tests/
Dtest_object.py23 assert isinstance(section, Section)
24 assert isinstance(section.name, str)
25 assert isinstance(section.size, Integral)
26 assert isinstance(section.contents, str)
27 assert isinstance(section.address, Integral)
41 assert isinstance(symbol, Symbol)
42 assert isinstance(symbol.name, str)
43 assert isinstance(symbol.address, Integral)
44 assert isinstance(symbol.size, Integral)
56 assert isinstance(section, Section)
[all …]
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/parse/
Dast.py39 elif isinstance(item_or_items, list):
41 assert isinstance(item, self._list_item_type)
44 assert isinstance(item_or_items, self._list_item_type)
65 assert isinstance(item, self._list_item_type)
72 assert isinstance(item, self._list_item_type)
88 assert isinstance(mojom_name, str)
100 assert isinstance(key, str)
121 assert attribute_list is None or isinstance(attribute_list, AttributeList)
123 assert isinstance(typename, str)
126 assert isinstance(value, str) or isinstance(value, tuple)
[all …]
/external/python/apitools/apitools/base/protorpclite/
Dprotojson.py110 if isinstance(value, messages.Enum):
113 if six.PY3 and isinstance(value, bytes):
116 if isinstance(value, messages.Message):
165 if isinstance(field, messages.BytesField):
170 elif isinstance(field, message_types.DateTimeField):
229 if isinstance(value, bool):
231 elif isinstance(value, six.integer_types):
233 elif isinstance(value, float):
235 elif isinstance(value, six.string_types):
237 elif isinstance(value, (list, tuple)):
[all …]
/external/toolchain-utils/cros_utils/
Dtiny_render.py91 if isinstance(piece, LineBreak):
95 if isinstance(piece, str):
99 if isinstance(piece, Bold):
105 if isinstance(piece, Link):
110 if isinstance(piece, UnorderedList):
115 if isinstance(piece, Switch):
119 if isinstance(piece, (list, tuple)):
140 if isinstance(piece, str):
144 if isinstance(piece, Bold):
150 if isinstance(piece, Link):
[all …]
/external/python/jinja/tests/
Dtest_nativetypes.py23 assert isinstance(t.render(), Undefined)
36 assert isinstance(result, int)
43 assert isinstance(result, list)
50 assert not isinstance(result, list)
57 assert isinstance(result, str)
64 assert isinstance(result, int)
71 assert isinstance(result, int)
89 assert isinstance(result, bool)
96 assert isinstance(result, type)
102 assert isinstance(result, type)
[all …]
/external/fonttools/Lib/fontTools/colorLib/
Dtable_builder.py50 return {k: v for k, v in convertersByName.items() if not isinstance(v, ComputedInt)}
54 if isinstance(value, tupleClass):
56 if isinstance(value, tuple):
62 return isinstance(value, collections.abc.Sequence) and not isinstance(value, str)
70 elif isinstance(source, collections.abc.Mapping):
76 assert isinstance(
107 if isinstance(value, enumClass):
109 elif isinstance(value, str):
117 elif isinstance(converter, IntValue):
119 elif isinstance(converter, FloatValue):
[all …]
/external/tensorflow/tensorflow/python/autograph/pyct/
Dast_util.py40 if isinstance(node, list):
42 elif isinstance(node, tuple):
44 elif not isinstance(node, (gast.AST, ast.AST)):
49 assert isinstance(node, (gast.AST, ast.AST))
133 if isinstance(node, list):
135 elif isinstance(node, tuple):
169 if isinstance(p, (list, tuple)) and len(p) == 1:
171 if isinstance(p, gast.Name) and p.id == '_':
199 if isinstance(v, (list, tuple)):
200 if not isinstance(p, (list, tuple)) or len(v) != len(p):
[all …]
/external/python/cryptography/src/cryptography/x509/
Dextensions.py32 if isinstance(public_key, RSAPublicKey):
37 elif isinstance(public_key, EllipticCurvePublicKey):
95 if isinstance(ext.value, extclass):
122 if not isinstance(crl_number, six.integer_types):
128 if not isinstance(other, CRLNumber):
162 isinstance(x, GeneralName) for x in authority_cert_issuer
169 if authority_cert_serial_number is not None and not isinstance(
206 if not isinstance(other, AuthorityKeyIdentifier):
252 if not isinstance(other, SubjectKeyIdentifier):
270 if not all(isinstance(x, AccessDescription) for x in descriptions):
[all …]
/external/tensorflow/tensorflow/python/framework/
Dtype_spec.py114 if not isinstance(spec_or_value, TypeSpec):
160 if isinstance(value, TypeSpec):
162 elif (isinstance(value, tensor_shape.TensorShape) and
355 if isinstance(value,
358 if isinstance(value, compat.bytes_or_text_types):
362 if isinstance(value, dict):
368 if isinstance(value, tuple):
370 if isinstance(value, list):
372 if isinstance(value, tensor_shape.TensorShape):
378 if isinstance(value, np.ndarray):
[all …]
/external/tensorflow/tensorflow/python/keras/saving/saved_model/
Djson_utils.py44 if isinstance(obj, tensor_shape.TensorShape):
54 if isinstance(x, tuple):
57 elif isinstance(x, list):
59 elif isinstance(x, dict):
71 if isinstance(obj, dict) and 'class_name' in obj:
103 if isinstance(obj, np.ndarray):
116 if isinstance(obj, tensor_shape.Dimension):
119 if isinstance(obj, tensor_shape.TensorShape):
122 if isinstance(obj, dtypes.DType):
125 if isinstance(obj, collections_abc.Mapping):
[all …]
/external/python/cpython2/Lib/json/
Dencoder.py46 if isinstance(s, str) and HAS_UTF8.search(s) is not None:
194 if isinstance(o, basestring):
195 if isinstance(o, str):
208 if not isinstance(chunks, (list, tuple)):
232 if isinstance(o, str):
281 isinstance=isinstance, argument
312 if isinstance(value, basestring):
320 elif isinstance(value, (int, long)):
322 elif isinstance(value, float):
326 if isinstance(value, (list, tuple)):
[all …]
/external/python/cpython3/Lib/json/
Dencoder.py191 if isinstance(o, str):
200 if not isinstance(chunks, (list, tuple)):
267 isinstance=isinstance, argument
274 if _indent is not None and not isinstance(_indent, str):
301 if isinstance(value, str):
309 elif isinstance(value, int):
314 elif isinstance(value, float):
319 if isinstance(value, (list, tuple)):
321 elif isinstance(value, dict):
357 if isinstance(key, str):
[all …]
/external/fonttools/Lib/fontTools/ufoLib/
Dvalidators.py21 if isinstance(value, Mapping):
32 return isinstance(value, typ)
38 if not isinstance(values, (list, tuple)):
45 if not isinstance(value, int):
53 if not isinstance(value, int):
63 if not isinstance(value, numberTypes):
74 if not isinstance(value, Mapping):
91 if not isinstance(v, prototypeType):
112 if not isinstance(value, list):
140 if not isinstance(value, str):
[all …]
/external/libaom/libaom/test/
Dgviz_api.py50 if isinstance(o, datetime.datetime):
60 elif isinstance(o, datetime.date):
62 elif isinstance(o, datetime.time):
209 if isinstance(value, tuple):
213 (len(value) == 3 and not isinstance(value[2], dict))):
216 if not isinstance(value[1], types.StringTypes + (types.NoneType,)):
229 if isinstance(value, (int, long, float)):
234 if isinstance(value, unicode):
240 if isinstance(value, datetime.datetime):
242 elif isinstance(value, datetime.date):
[all …]
/external/python/cpython3/Tools/peg_generator/scripts/
Dgrammar_grapher.py56 if isinstance(item, Alt):
58 elif isinstance(item, Cut):
60 elif isinstance(item, Group):
62 elif isinstance(item, Lookahead):
64 elif isinstance(item, NamedItem):
68 elif isinstance(item, NameLeaf):
72 elif isinstance(item, Leaf):
75 elif isinstance(item, Opt):
77 elif isinstance(item, Repeat):
79 elif isinstance(item, Rhs):
[all …]
/external/python/cpython3/Lib/test/
Dtest_isinstance.py37 self.assertEqual(False, isinstance(I(), C()))
57 self.assertRaises(RuntimeError, isinstance, I(), C())
69 self.assertRaises(RuntimeError, isinstance, I(), C())
81 self.assertRaises(TypeError, isinstance, I(), C())
92 self.assertRaises(RuntimeError, isinstance, c, bool)
96 self.assertRaises(RuntimeError, isinstance, c, D)
191 self.assertEqual(True, isinstance(Super(), Super))
192 self.assertEqual(False, isinstance(Super(), Child))
193 self.assertEqual(False, isinstance(Super(), AbstractSuper))
194 self.assertEqual(False, isinstance(Super(), AbstractChild))
[all …]

12345678910>>...116