Home
last modified time | relevance | path

Searched refs:serialized (Results 1 – 25 of 240) sorted by relevance

12345678910

/external/mockito/src/test/java/org/mockitousage/basicapi/
DMocksSerializationForAnnotationTest.java65 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_boolean_value_to_serializable() local
68 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_boolean_value_to_serializable()
79 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_allow_mock_and_string_value_to_be_serializable() local
82 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_string_value_to_be_serializable()
93 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_all_mock_and_serializable_value_to_be_serialized() local
96 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_all_mock_and_serializable_value_to_be_serialized()
106 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_call_with_parameters_that_are_serializable() local
109 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_call_with_parameters_that_are_serializable()
119 ByteArrayOutputStream serialized = serializeMock(imethodsMock); in should_serialize_method_calls_using_any_string_matcher() local
122 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_calls_using_any_string_matcher()
[all …]
DMocksSerializationTest.java73 ByteArrayOutputStream serialized = serializeMock(mock); in should_allow_mock_and_boolean_value_to_serializable() local
76 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_boolean_value_to_serializable()
88 ByteArrayOutputStream serialized = serializeMock(mock); in should_allow_mock_and_string_value_to_be_serializable() local
91 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_allow_mock_and_string_value_to_be_serializable()
103 ByteArrayOutputStream serialized = serializeMock(mock); in should_all_mock_and_serializable_value_to_be_serialized() local
106 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_all_mock_and_serializable_value_to_be_serialized()
117 ByteArrayOutputStream serialized = serializeMock(mock); in should_serialize_method_call_with_parameters_that_are_serializable() local
120 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_call_with_parameters_that_are_serializable()
131 ByteArrayOutputStream serialized = serializeMock(mock); in should_serialize_method_calls_using_any_string_matcher() local
134 IMethods readObject = deserializeMock(serialized, IMethods.class); in should_serialize_method_calls_using_any_string_matcher()
[all …]
/external/protobuf/src/google/protobuf/
Dpreserve_unknown_enum_test.cc102 string serialized; in TEST() local
103 orig_message.SerializeToString(&serialized); in TEST()
106 EXPECT_EQ(true, message.ParseFromString(serialized)); in TEST()
109 serialized.clear(); in TEST()
110 message.SerializeToString(&serialized); in TEST()
111 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
120 string serialized = orig_message.SerializeAsString(); in TEST() local
125 EXPECT_EQ(true, message->ParseFromString(serialized)); in TEST()
128 serialized = message->SerializeAsString(); in TEST()
129 EXPECT_EQ(true, orig_message.ParseFromString(serialized)); in TEST()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dparsing_ops_test.py108 serialized = kwargs["serialized"]
109 batch_size = (serialized.eval().size if isinstance(serialized, ops.Tensor)
110 else np.asarray(serialized).size)
220 serialized = [m.SerializeToString() for m in original]
225 "serialized": ops.convert_to_tensor(serialized),
236 serialized = [m.SerializeToString() for m in original]
241 "serialized": ops.convert_to_tensor(serialized),
265 serialized = [m.SerializeToString() for m in original]
285 "serialized": ops.convert_to_tensor(serialized),
313 serialized = [m.SerializeToString() for m in original]
[all …]
Dsparse_serialization_ops_test.py73 serialized = serialize_fn(sp_input, out_type=out_type)
74 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32)
97 serialized = serialize_fn(sp_input, out_type=out_type)
98 serialized = array_ops.stack([serialized, serialized])
100 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32)
133 serialized = array_ops.stack([serialized0, serialized1])
135 sp_deserialized = deserialize_fn(serialized, dtype=dtypes.int32)
163 serialized = serialize_fn(sp_input, out_type=out_type)
164 serialized = array_ops.stack([serialized, serialized])
165 serialized = array_ops.stack([serialized, serialized])
[all …]
/external/tensorflow/tensorflow/core/util/
Dexample_proto_fast_parsing_test.cc38 string SerializedToReadable(string serialized) { in SerializedToReadable() argument
41 for (char c : serialized) in SerializedToReadable()
49 string serialized; in Serialize() local
50 example.SerializeToString(&serialized); in Serialize()
51 return serialized; in Serialize()
56 void TestCorrectness(const string& serialized) { in TestCorrectness() argument
59 EXPECT_TRUE(example.ParseFromString(serialized)); in TestCorrectness()
61 EXPECT_TRUE(TestFastParse(serialized, &fast_example)); in TestCorrectness()
64 LOG(ERROR) << "Bad serialized: " << SerializedToReadable(serialized); in TestCorrectness()
147 string serialized = Serialize(example) + Serialize(context); in TEST() local
[all …]
/external/autotest/client/common_lib/cros/
Dxmlrpc_types.py13 def deserialize(serialized, module=None): argument
29 if TYPE_KEY not in serialized:
32 logging.error('Got serialized object: %r', serialized)
37 klass = getattr(module, serialized[TYPE_KEY])
48 if arg not in serialized:
52 args.append(serialized[arg])
54 serialized.iteritems()))
56 serialized[TYPE_KEY], args, kwargs)
/external/clang/test/ARCMT/
Dcheck-with-serialized-diag.m42 // CHECK: {{.*}}check-with-serialized-diag.m:32:4: error: [rewriter] it is not safe to remove 'reta…
44 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:4: error: [rewriter] it is not safe to remove …
46 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:32:23: error: ARC forbids explicit message send o…
47 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:32:4 {{.*}}check-with-serialized-diag.m:32…
49 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:34:15: error: ARC forbids explicit message send o…
50 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:34:4 {{.*}}check-with-serialized-diag.m:34…
52 // CHECK-NEXT: {{.*}}check-with-serialized-diag.m:35:6: error: ARC forbids explicit message send of…
53 // CHECK-NEXT: Range: {{.*}}check-with-serialized-diag.m:35:4 {{.*}}check-with-serialized-diag.m:35…
/external/tensorflow/tensorflow/python/ops/
Dparsing_ops.py364 def parse_example(serialized, features, name=None, example_names=None): argument
585 serialized, example_names, sparse_keys, sparse_types, dense_keys,
590 def _parse_example_raw(serialized, argument
636 with ops.name_scope(name, "ParseExample", [serialized, names]):
705 serialized=serialized,
725 def parse_single_example(serialized, features, name=None, example_names=None): argument
760 return parse_single_example_v2(serialized, features, name)
767 serialized, example_names, sparse_keys, sparse_types, dense_keys,
772 def _parse_single_example_raw(serialized, argument
802 with ops.name_scope(name, "ParseSingleExample", [serialized, names]):
[all …]
/external/clang/test/Misc/
Dserialized-diags.m18 // This test checks that serialized diagnostics handle notes with no source location.
20 // CHECK: {{.*[/\\]}}serialized-diags.m:8:4: error: use of undeclared identifier '_self'; did you m…
21 // CHECK: Range: {{.*[/\\]}}serialized-diags.m:8:4 {{.*[/\\]}}serialized-diags.m:8:9
23 // CHECK: FIXIT: ({{.*[/\\]}}serialized-diags.m:8:4 - {{.*[/\\]}}serialized-diags.m:8:9): "self"
26 // CHECK: {{.*[/\\]}}serialized-diags.m:1:12: warning: class 'Foo' defined without specifying a bas…
28 // CHECK: +-{{.*[/\\]}}serialized-diags.m:1:15: note: add a super class to fix this problem [] [Sem…
/external/tensorflow/tensorflow/contrib/labeled_tensor/python/ops/
Dio_ops.py82 def parse_example(serialized, features, name=None, example_names=None): argument
103 serialized = core.convert_to_labeled_tensor(serialized)
107 serialized.tensor, unlabeled_features, name, example_names)
111 axes = list(serialized.axes.values()) + features[name].axes
120 def parse_single_example(serialized, features, name=None, example_names=None): argument
139 serialized = core.convert_to_labeled_tensor(serialized)
143 serialized.tensor, unlabeled_features, name, example_names)
Dio_ops_test.py54 self.serialized = core.LabeledTensor(
69 parsed = io_ops.parse_example(self.serialized, self.features)
74 serialized = core.LabeledTensor(
77 io_ops.parse_example(serialized, self.features)
85 parsed = io_ops.parse_single_example(self.serialized[0], self.features)
91 serialized = array_ops.placeholder(dtypes.string, [])
93 io_ops.parse_single_example(serialized, features)
/external/tensorflow/tensorflow/core/platform/
Dprotobuf_util.cc21 const string& serialized) { in ParseProtoUnlimited() argument
22 return ParseProtoUnlimited(proto, serialized.data(), serialized.size()); in ParseProtoUnlimited()
25 bool ParseProtoUnlimited(protobuf::MessageLite* proto, const void* serialized, in ParseProtoUnlimited() argument
28 reinterpret_cast<const uint8*>(serialized), size); in ParseProtoUnlimited()
/external/tensorflow/tensorflow/contrib/tpu/python/tpu/
Dtopology.py33 def __init__(self, serialized=None, mesh_shape=None, device_coordinates=None): argument
58 if serialized:
59 self._serialized = serialized
60 self._parse_topology(serialized)
73 def _parse_topology(self, serialized): argument
76 proto.ParseFromString(serialized)
127 def serialized(self): member in Topology
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_ParseTensor.pbtxt4 name: "serialized"
6 A scalar string containing a serialized TensorProto proto.
18 The type of the serialized tensor. The provided type must match the
19 type of the serialized tensor and no implicit conversion will take place.
22 summary: "Transforms a serialized tensorflow.TensorProto proto into a Tensor."
Dapi_def_ParseExample.pbtxt4 name: "serialized"
6 A vector containing a batch of binary serialized Example protos.
12 A vector containing the names of the serialized protos.
14 corresponding serialized protos. These are purely useful for debugging
17 If non-empty, this vector must be the same length as "serialized".
66 Tensor dense_values[j] will be (|serialized|, D0, D1, ..., DN):
70 (|serialized|, M, D1, .., DN), where M is the maximum number of blocks
/external/mockito/src/test/java/org/mockitoutil/
DSimpleSerializationUtil.java20 …public static <T> T deserializeMock(ByteArrayOutputStream serialized, Class<T> type) throws IOExce… in deserializeMock() argument
22 InputStream unserialize = new ByteArrayInputStream(serialized.toByteArray()); in deserializeMock()
33 ByteArrayOutputStream serialized = new ByteArrayOutputStream(); in serializeMock() local
34 new ObjectOutputStream(serialized).writeObject(mock); in serializeMock()
35 return serialized; in serializeMock()
/external/sfntly/cpp/src/test/
Dserialization_test.cc50 FontPtr serialized = new_font_array[0]; in TestSerialization() local
53 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerialization()
57 const TableMap* serialized_tables = serialized->GetTableMap(); in TestSerialization()
69 TablePtr serialized_table = serialized->GetTable(TTF_KNOWN_TAGS[i]); in TestSerialization()
116 FontPtr serialized = new_font_array[0]; in TestSerializationBitmap() local
119 EXPECT_EQ(original->num_tables(), serialized->num_tables()); in TestSerializationBitmap()
123 const TableMap* serialized_tables = serialized->GetTableMap(); in TestSerializationBitmap()
134 TablePtr serialized_table = serialized->GetTable(BITMAP_KNOWN_TAGS[i]); in TestSerializationBitmap()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DCheckUtf8Test.java60 ByteString serialized = in testParseRequiredStringWithGoodUtf8() local
62 assertEquals(UTF8_BYTE_STRING_TEXT, StringWrapper.parser().parseFrom(serialized).getReq()); in testParseRequiredStringWithGoodUtf8()
93 ByteString serialized = in testParseRequiredStringWithBadUtf8() local
96 StringWrapper.parser().parseFrom(serialized); in testParseRequiredStringWithBadUtf8()
131 ByteString serialized = in testParseRequiredStringWithBadUtf8Size() local
134 StringWrapperSize.parser().parseFrom(serialized); in testParseRequiredStringWithBadUtf8Size()
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue148/
DPrintableUnicodeTest.java39 String serialized = yaml.dump(original); in testSerialization() local
44 for (int i = 0; i < serialized.length(); i++) { in testSerialization()
45 int cp = (int) serialized.charAt(i); in testSerialization()
67 String serialized = "'" + expected + "'"; in testDeserialization() local
71 result = new Yaml().load(serialized).toString(); in testDeserialization()
88 String serialized = String.format("\"\\u%04x\"", c); in testDeserialization2() local
92 result = new Yaml().load(serialized).toString(); in testDeserialization2()
/external/tensorflow/tensorflow/contrib/boosted_trees/python/training/functions/
Dgbdt_batch_test.py200 stamp_token, serialized = model_ops.tree_ensemble_serialize(
203 output.ParseFromString(serialized.eval())
214 stamp_token, serialized = model_ops.tree_ensemble_serialize(
217 output.ParseFromString(serialized.eval())
304 stamp_token, serialized = model_ops.tree_ensemble_serialize(
307 output.ParseFromString(serialized.eval())
318 stamp_token, serialized = model_ops.tree_ensemble_serialize(
321 output.ParseFromString(serialized.eval())
406 stamp_token, serialized = model_ops.tree_ensemble_serialize(
409 output.ParseFromString(serialized.eval())
[all …]
/external/snakeyaml/src/test/java/org/yaml/snakeyaml/issues/issue55/
DYamlFieldAccessCollectionTest.java33 String serialized = yamlDumper.dumpAsMap(original); in testYaml() local
35 assertEquals(Util.getLocalResource("issues/issue55_1.txt"), serialized); in testYaml()
38 Blog rehydrated = blogLoader.loadAs(serialized, Blog.class); in testYaml()
64 String serialized = yaml.dump(original); in testYamlDefaultWithFeildAccess() local
65 assertEquals(Util.getLocalResource("issues/issue55_1_rootTag.txt"), serialized); in testYamlDefaultWithFeildAccess()
66 Blog rehydrated = (Blog) yaml.load(serialized); in testYamlDefaultWithFeildAccess()
/external/tensorflow/tensorflow/contrib/boosted_trees/python/kernel_tests/
Dtraining_ops_test.py165 new_stamp, serialized = session.run(
169 tree_ensemble_config.ParseFromString(serialized)
214 new_stamp, serialized = session.run(
218 tree_ensemble_config.ParseFromString(serialized)
331 new_stamp, serialized = session.run(
335 tree_ensemble_config.ParseFromString(serialized)
484 new_stamp, serialized = session.run(
488 tree_ensemble_config.ParseFromString(serialized)
666 new_stamp, serialized = session.run(
670 tree_ensemble_config.ParseFromString(serialized)
[all …]
/external/tensorflow/tensorflow/core/framework/
Dvariant_test.cc185 VariantTensorData serialized; in TEST() local
186 x.Encode(&serialized); in TEST()
189 y.Decode(serialized); in TEST()
200 serialized.ToProto(&data); in TEST()
256 VariantTensorData serialized; in TEST() local
257 x.Encode(&serialized); in TEST()
261 y.Decode(serialized); in TEST()
273 VariantTensorData serialized; in TEST() local
274 x.Encode(&serialized); in TEST()
277 y.Decode(serialized); in TEST()
/external/clang/test/Modules/
Dserialized-diags.m16 // CHECK: serialized-diags.m:1:9: note: while building module 'HasWarnings' imported from
17 // CHECK: serialized-diags.m:8:9: warning: incompatible pointer types initializing 'double *'
26 // CHECK-WITH-ERRORS: serialized-diags.m:1:9: note: while building module 'HasWarnings'
28 // CHECK-WITH-ERRORS: serialized-diags.m:4:9: note: while building module 'HasErrors'
30 // CHECK-WITH-ERRORS: serialized-diags.m:4:9: fatal: could not build module 'HasErrors'

12345678910