Home
last modified time | relevance | path

Searched refs:proto (Results 1 – 25 of 2506) sorted by relevance

12345678910>>...101

/external/tensorflow/tensorflow/tools/proto_text/
Dgen_proto_text_functions_lib_test.cc43 EXPECT_EQ(proto.DebugString(), ProtoDebugString(proto)); \
44 EXPECT_EQ(proto.ShortDebugString(), ProtoShortDebugString(proto)); \
45 EXPECT_EQ(proto.DebugString(), \
46 RoundtripParseProtoOrDie(proto, true).DebugString()); \
47 EXPECT_EQ(proto.DebugString(), \
48 RoundtripParseProtoOrDie(proto, false).DebugString());
53 EXPECT_FALSE(ProtoParseFromString(str, &proto)); \
54 EXPECT_FALSE(protobuf::TextFormat::ParseFromString(str, &proto))
60 EXPECT_TRUE(ProtoParseFromString(str, &proto)); \
61 string proto_text_str = ProtoShortDebugString(proto); \
[all …]
/external/perfetto/src/tracing/core/
Dtrace_stats.cc56 void TraceStats::FromProto(const perfetto::protos::TraceStats& proto) { in FromProto() argument
58 for (const auto& field : proto.buffer_stats()) { in FromProto()
64 sizeof(producers_connected_) == sizeof(proto.producers_connected()), in FromProto()
67 static_cast<decltype(producers_connected_)>(proto.producers_connected()); in FromProto()
69 static_assert(sizeof(producers_seen_) == sizeof(proto.producers_seen()), in FromProto()
72 static_cast<decltype(producers_seen_)>(proto.producers_seen()); in FromProto()
75 sizeof(proto.data_sources_registered()), in FromProto()
78 proto.data_sources_registered()); in FromProto()
80 static_assert(sizeof(data_sources_seen_) == sizeof(proto.data_sources_seen()), in FromProto()
83 static_cast<decltype(data_sources_seen_)>(proto.data_sources_seen()); in FromProto()
[all …]
Dtrace_config.cc71 void TraceConfig::FromProto(const perfetto::protos::TraceConfig& proto) { in FromProto() argument
73 for (const auto& field : proto.buffers()) { in FromProto()
79 for (const auto& field : proto.data_sources()) { in FromProto()
84 builtin_data_sources_.FromProto(proto.builtin_data_sources()); in FromProto()
86 static_assert(sizeof(duration_ms_) == sizeof(proto.duration_ms()), in FromProto()
88 duration_ms_ = static_cast<decltype(duration_ms_)>(proto.duration_ms()); in FromProto()
91 sizeof(proto.enable_extra_guardrails()), in FromProto()
94 proto.enable_extra_guardrails()); in FromProto()
96 static_assert(sizeof(lockdown_mode_) == sizeof(proto.lockdown_mode()), in FromProto()
98 lockdown_mode_ = static_cast<decltype(lockdown_mode_)>(proto.lockdown_mode()); in FromProto()
[all …]
Dtest_config.cc52 void TestConfig::FromProto(const perfetto::protos::TestConfig& proto) { in FromProto() argument
53 static_assert(sizeof(message_count_) == sizeof(proto.message_count()), in FromProto()
55 message_count_ = static_cast<decltype(message_count_)>(proto.message_count()); in FromProto()
58 sizeof(proto.max_messages_per_second()), in FromProto()
61 proto.max_messages_per_second()); in FromProto()
63 static_assert(sizeof(seed_) == sizeof(proto.seed()), "size mismatch"); in FromProto()
64 seed_ = static_cast<decltype(seed_)>(proto.seed()); in FromProto()
66 static_assert(sizeof(message_size_) == sizeof(proto.message_size()), in FromProto()
68 message_size_ = static_cast<decltype(message_size_)>(proto.message_size()); in FromProto()
71 sizeof(send_batch_on_register_) == sizeof(proto.send_batch_on_register()), in FromProto()
[all …]
Ddata_source_config.cc74 const perfetto::protos::DataSourceConfig& proto) { in FromProto() argument
75 static_assert(sizeof(name_) == sizeof(proto.name()), "size mismatch"); in FromProto()
76 name_ = static_cast<decltype(name_)>(proto.name()); in FromProto()
78 static_assert(sizeof(target_buffer_) == sizeof(proto.target_buffer()), in FromProto()
80 target_buffer_ = static_cast<decltype(target_buffer_)>(proto.target_buffer()); in FromProto()
82 static_assert(sizeof(trace_duration_ms_) == sizeof(proto.trace_duration_ms()), in FromProto()
85 static_cast<decltype(trace_duration_ms_)>(proto.trace_duration_ms()); in FromProto()
88 sizeof(proto.enable_extra_guardrails()), in FromProto()
91 proto.enable_extra_guardrails()); in FromProto()
94 sizeof(tracing_session_id_) == sizeof(proto.tracing_session_id()), in FromProto()
[all …]
Dcommit_data_request.cc52 const perfetto::protos::CommitDataRequest& proto) { in FromProto() argument
54 for (const auto& field : proto.chunks_to_move()) { in FromProto()
60 for (const auto& field : proto.chunks_to_patch()) { in FromProto()
65 static_assert(sizeof(flush_request_id_) == sizeof(proto.flush_request_id()), in FromProto()
68 static_cast<decltype(flush_request_id_)>(proto.flush_request_id()); in FromProto()
69 unknown_fields_ = proto.unknown_fields(); in FromProto()
73 perfetto::protos::CommitDataRequest* proto) const { in ToProto()
74 proto->Clear(); in ToProto()
77 auto* entry = proto->add_chunks_to_move(); in ToProto()
82 auto* entry = proto->add_chunks_to_patch(); in ToProto()
[all …]
Dheapprofd_config.cc55 const perfetto::protos::HeapprofdConfig& proto) { in FromProto() argument
57 sizeof(proto.sampling_interval_bytes()), in FromProto()
60 proto.sampling_interval_bytes()); in FromProto()
63 for (const auto& field : proto.process_cmdline()) { in FromProto()
66 sizeof(process_cmdline_.back()) == sizeof(proto.process_cmdline(0)), in FromProto()
73 for (const auto& field : proto.pid()) { in FromProto()
75 static_assert(sizeof(pid_.back()) == sizeof(proto.pid(0)), "size mismatch"); in FromProto()
79 static_assert(sizeof(all_) == sizeof(proto.all()), "size mismatch"); in FromProto()
80 all_ = static_cast<decltype(all_)>(proto.all()); in FromProto()
83 for (const auto& field : proto.skip_symbol_prefix()) { in FromProto()
[all …]
Dinode_file_config.cc54 const perfetto::protos::InodeFileConfig& proto) { in FromProto() argument
55 static_assert(sizeof(scan_interval_ms_) == sizeof(proto.scan_interval_ms()), in FromProto()
58 static_cast<decltype(scan_interval_ms_)>(proto.scan_interval_ms()); in FromProto()
60 static_assert(sizeof(scan_delay_ms_) == sizeof(proto.scan_delay_ms()), in FromProto()
62 scan_delay_ms_ = static_cast<decltype(scan_delay_ms_)>(proto.scan_delay_ms()); in FromProto()
64 static_assert(sizeof(scan_batch_size_) == sizeof(proto.scan_batch_size()), in FromProto()
67 static_cast<decltype(scan_batch_size_)>(proto.scan_batch_size()); in FromProto()
69 static_assert(sizeof(do_not_scan_) == sizeof(proto.do_not_scan()), in FromProto()
71 do_not_scan_ = static_cast<decltype(do_not_scan_)>(proto.do_not_scan()); in FromProto()
74 for (const auto& field : proto.scan_mount_points()) { in FromProto()
[all …]
Dsys_stats_config.cc54 void SysStatsConfig::FromProto(const perfetto::protos::SysStatsConfig& proto) { in FromProto() argument
55 static_assert(sizeof(meminfo_period_ms_) == sizeof(proto.meminfo_period_ms()), in FromProto()
58 static_cast<decltype(meminfo_period_ms_)>(proto.meminfo_period_ms()); in FromProto()
61 for (const auto& field : proto.meminfo_counters()) { in FromProto()
64 sizeof(meminfo_counters_.back()) == sizeof(proto.meminfo_counters(0)), in FromProto()
70 static_assert(sizeof(vmstat_period_ms_) == sizeof(proto.vmstat_period_ms()), in FromProto()
73 static_cast<decltype(vmstat_period_ms_)>(proto.vmstat_period_ms()); in FromProto()
76 for (const auto& field : proto.vmstat_counters()) { in FromProto()
79 sizeof(vmstat_counters_.back()) == sizeof(proto.vmstat_counters(0)), in FromProto()
85 static_assert(sizeof(stat_period_ms_) == sizeof(proto.stat_period_ms()), in FromProto()
[all …]
Dprocess_stats_config.cc55 const perfetto::protos::ProcessStatsConfig& proto) { in FromProto() argument
57 for (const auto& field : proto.quirks()) { in FromProto()
59 static_assert(sizeof(quirks_.back()) == sizeof(proto.quirks(0)), in FromProto()
65 sizeof(proto.scan_all_processes_on_start()), in FromProto()
69 proto.scan_all_processes_on_start()); in FromProto()
72 sizeof(record_thread_names_) == sizeof(proto.record_thread_names()), in FromProto()
75 static_cast<decltype(record_thread_names_)>(proto.record_thread_names()); in FromProto()
78 sizeof(proc_stats_poll_ms_) == sizeof(proto.proc_stats_poll_ms()), in FromProto()
81 static_cast<decltype(proc_stats_poll_ms_)>(proto.proc_stats_poll_ms()); in FromProto()
84 sizeof(proto.proc_stats_cache_ttl_ms()), in FromProto()
[all …]
Dftrace_config.cc52 void FtraceConfig::FromProto(const perfetto::protos::FtraceConfig& proto) { in FromProto() argument
54 for (const auto& field : proto.ftrace_events()) { in FromProto()
57 sizeof(ftrace_events_.back()) == sizeof(proto.ftrace_events(0)), in FromProto()
64 for (const auto& field : proto.atrace_categories()) { in FromProto()
67 sizeof(atrace_categories_.back()) == sizeof(proto.atrace_categories(0)), in FromProto()
74 for (const auto& field : proto.atrace_apps()) { in FromProto()
76 static_assert(sizeof(atrace_apps_.back()) == sizeof(proto.atrace_apps(0)), in FromProto()
82 static_assert(sizeof(buffer_size_kb_) == sizeof(proto.buffer_size_kb()), in FromProto()
85 static_cast<decltype(buffer_size_kb_)>(proto.buffer_size_kb()); in FromProto()
87 static_assert(sizeof(drain_period_ms_) == sizeof(proto.drain_period_ms()), in FromProto()
[all …]
/external/tensorflow/tensorflow/contrib/makefile/
Dtf_proto_files.txt1 tensorflow/contrib/boosted_trees/proto/learner.proto
2 tensorflow/contrib/boosted_trees/proto/quantiles.proto
3 tensorflow/contrib/boosted_trees/proto/split_info.proto
4 tensorflow/contrib/boosted_trees/proto/tree_config.proto
5 tensorflow/core/example/example.proto
6 tensorflow/core/example/feature.proto
7 tensorflow/core/framework/allocation_description.proto
8 tensorflow/core/framework/api_def.proto
9 tensorflow/core/framework/attr_value.proto
10 tensorflow/core/framework/cost_graph.proto
[all …]
/external/curl/tests/
Dserverhelp.pm77 my $proto;
83 $proto = $1;
89 $proto = $1;
96 return($proto, $ipvnum, $idnum);
104 my ($proto, $ipver, $idnum) = @_;
106 $proto = uc($proto) if($proto);
107 die "unsupported protocol: '$proto'" unless($proto &&
108 …($proto =~ /^(((FTP|HTTP|HTTP\/2|IMAP|POP3|SMTP|HTTP-PIPE)S?)|(TFTP|SFTP|SOCKS|SSH|RTSP|GOPHER|HTT…
120 return "${proto}${idnum}${ipver}";
128 my ($proto, $ipver, $idnum) = @_;
[all …]
/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py120 proto = unittest_pb2.TestAllTypes(
126 self.assertEqual(24, proto.optional_int32)
127 self.assertEqual(54.321, proto.optional_double)
128 self.assertEqual('optional_string', proto.optional_string)
129 self.assertFalse(proto.HasField("optional_float"))
133 proto = unittest_pb2.TestAllTypes(
140 self.assertEqual([1, 2, 3, 4], list(proto.repeated_int32))
141 self.assertEqual([1.23, 54.321], list(proto.repeated_double))
142 self.assertEqual([True, False, False], list(proto.repeated_bool))
143 self.assertEqual(["optional_string"], list(proto.repeated_string))
[all …]
/external/grpc-grpc/examples/node/static_codegen/route_guide/
Droute_guide_pb.js28 proto.routeguide.Point = function(opt_data) {
31 goog.inherits(proto.routeguide.Point, jspb.Message);
33 proto.routeguide.Point.displayName = 'proto.routeguide.Point';
48 proto.routeguide.Point.prototype.toObject = function(opt_includeInstance) {
49 return proto.routeguide.Point.toObject(opt_includeInstance, this);
61 proto.routeguide.Point.toObject = function(includeInstance, msg) {
80 proto.routeguide.Point.deserializeBinary = function(bytes) {
82 var msg = new proto.routeguide.Point;
83 return proto.routeguide.Point.deserializeBinaryFromReader(msg, reader);
94 proto.routeguide.Point.deserializeBinaryFromReader = function(msg, reader) {
[all …]
/external/protobuf/js/
Dmessage_test.js84 var empty1 = new proto.jspb.test.Empty([]);
85 var empty2 = new proto.jspb.test.Empty([]);
91 var response = new proto.jspb.test.EnumContainer([]);
92 response.setOuterEnum(proto.jspb.test.OuterEnum.FOO);
93 assertEquals(proto.jspb.test.OuterEnum.FOO, response.getOuterEnum());
97 var data = new proto.jspb.test.DefaultValues([]);
105 var foo = new proto.jspb.test.Complex(data1);
106 var bar = new proto.jspb.test.Complex(data2);
138 var foo = new proto.jspb.test.Complex([
141 var bar = new proto.jspb.test.Complex([
[all …]
/external/tensorflow/tensorflow/compiler/xla/
Ddebug_options_parsers_test.cc41 HloReducePrecisionOptions proto; in TEST() local
43 EXPECT_TRUE(parse_xla_reduce_precision_option(&proto, test_string)); in TEST()
44 EXPECT_EQ(proto.location(), HloReducePrecisionOptions::OP_OUTPUTS); in TEST()
45 EXPECT_EQ(proto.exponent_bits(), 5); in TEST()
46 EXPECT_EQ(proto.mantissa_bits(), 10); in TEST()
47 EXPECT_EQ(proto.opcodes_to_suffix_size(), 2); in TEST()
48 EXPECT_EQ(static_cast<HloOpcode>(proto.opcodes_to_suffix(0)), in TEST()
50 EXPECT_EQ(static_cast<HloOpcode>(proto.opcodes_to_suffix(1)), in TEST()
52 EXPECT_EQ(proto.opname_substrings_to_suffix_size(), 0); in TEST()
56 HloReducePrecisionOptions proto; in TEST() local
[all …]
/external/tensorflow/tensorflow/core/profiler/internal/
Dtfprof_node_show.cc57 const GraphNodeProto& ShowNode::proto() const { return proto_; } in proto() function in tensorflow::tfprof::ShowNode
61 mutable_proto()->set_total_run_count(proto().total_run_count() + in AggregateTotalStats()
64 proto().total_definition_count() + node_pb->total_definition_count()); in AggregateTotalStats()
65 mutable_proto()->set_total_exec_micros(proto().total_exec_micros() + in AggregateTotalStats()
68 proto().total_accelerator_exec_micros() + in AggregateTotalStats()
70 mutable_proto()->set_total_cpu_exec_micros(proto().total_cpu_exec_micros() + in AggregateTotalStats()
73 mutable_proto()->set_total_requested_bytes(proto().total_requested_bytes() + in AggregateTotalStats()
75 mutable_proto()->set_total_peak_bytes(proto().total_peak_bytes() + in AggregateTotalStats()
77 mutable_proto()->set_total_residual_bytes(proto().total_residual_bytes() + in AggregateTotalStats()
79 mutable_proto()->set_total_output_bytes(proto().total_output_bytes() + in AggregateTotalStats()
[all …]
/external/autotest/client/common_lib/cros/
Dsmbprovider.py13 def _proto_to_blob(proto): argument
14 return dbus.ByteArray(proto.SerializeToString())
107 proto = MountOptionsProto()
108 proto.path = mount_path
109 proto.workgroup = workgroup
110 proto.username = username
111 proto.mount_config.enable_ntlm = True
114 return self._smbproviderd.Mount(_proto_to_blob(proto),
133 proto = UnmountOptionsProto()
134 proto.mount_id = mount_id
[all …]
/external/perfetto/protos/perfetto/trace/ftrace/
Dall_protos.gni18 "ftrace_event.proto",
19 "ftrace_event_bundle.proto",
20 "ftrace_stats.proto",
21 "test_bundle_wrapper.proto",
22 "generic.proto",
23 "binder.proto",
24 "block.proto",
25 "cgroup.proto",
26 "clk.proto",
27 "compaction.proto",
[all …]
/external/protobuf/js/binary/
Dproto_test.js120 msg.setOptionalGroup(new proto.jspb.test.TestAllTypes.OptionalGroup());
122 var submsg = new proto.jspb.test.ForeignMessage();
125 msg.setOptionalForeignEnum(proto.jspb.test.ForeignEnum.FOREIGN_FOO);
144 msg.setRepeatedGroupList([new proto.jspb.test.TestAllTypes.RepeatedGroup()]);
146 submsg = new proto.jspb.test.ForeignMessage();
149 msg.setRepeatedForeignEnumList([proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
221 proto.jspb.test.ForeignEnum.FOREIGN_FOO);
226 proto.jspb.test.TestAllTypes.OneofFieldCase.ONEOF_STRING);
253 [proto.jspb.test.ForeignEnum.FOREIGN_FOO]);
282 msg.getExtension(proto.jspb.test.extendOptionalInt32));
[all …]
/external/tensorflow/tensorflow/contrib/tensor_forest/kernels/v4/
DBUILD21 "//tensorflow/contrib/decision_trees/proto:generic_tree_model_cc",
22 "//tensorflow/contrib/tensor_forest/proto:fertile_stats_proto_cc",
25 "//tensorflow/contrib/decision_trees/proto:generic_tree_model_cc_headers_only",
26 "//tensorflow/contrib/tensor_forest/proto:fertile_stats_proto_cc_headers_only",
56 "//tensorflow/contrib/decision_trees/proto:generic_tree_model_cc",
57 "//tensorflow/contrib/tensor_forest/proto:fertile_stats_proto_cc",
58 "//tensorflow/contrib/tensor_forest/proto:tensor_forest_params_proto_cc",
61 "//tensorflow/contrib/decision_trees/proto:generic_tree_model_cc_headers_only",
62 "//tensorflow/contrib/tensor_forest/proto:fertile_stats_proto_cc_headers_only",
63 "//tensorflow/contrib/tensor_forest/proto:tensor_forest_params_proto_cc_headers_only",
[all …]
/external/perfetto/protos/
DBUILD17 load("//tools/build_defs/proto/cpp:cc_proto_library.bzl", "cc_proto_library")
30 "perfetto/common/android_log_constants.proto",
31 "perfetto/common/commit_data_request.proto",
32 "perfetto/common/descriptor.proto",
33 "perfetto/common/observable_events.proto",
34 "perfetto/common/sys_stats_counters.proto",
35 "perfetto/common/trace_stats.proto",
60 "perfetto/common/android_log_constants.proto",
61 "perfetto/common/commit_data_request.proto",
62 "perfetto/common/descriptor.proto",
[all …]
/external/golang-protobuf/proto/
Dextensions_test.go55 if err := proto.SetExtension(msg, pb.E_Ext_More, ext1); err != nil {
58 exts, err := proto.GetExtensions(msg, []*proto.ExtensionDesc{
77 proto.SetRawExtension(msg, pb.E_Ext_More.Field, []byte{})
78 _, err := proto.GetExtension(msg, pb.E_Ext_More)
85 msg := &pb.MyMessage{Count: proto.Int32(0)}
86 extdesc1 := &proto.ExtensionDesc{
93 ext1 := proto.Bool(true)
94 if err := proto.SetExtension(msg, extdesc1, ext1); err != nil {
97 extdesc2 := &proto.ExtensionDesc{
105 if err := proto.SetExtension(msg, extdesc2, ext2); err != nil {
[all …]
/external/protobuf/java/core/src/main/java/com/google/protobuf/
DDescriptors.java79 return proto; in toProto()
85 return proto.getName(); in getName()
97 return proto.getName(); in getFullName()
105 public String getPackage() { return proto.getPackage(); } in getPackage()
108 public FileOptions getOptions() { return proto.getOptions(); } in getOptions()
154 if (Syntax.PROTO3.name.equals(proto.getSyntax())) { in getSyntax()
266 public static FileDescriptor buildFrom(final FileDescriptorProto proto, in buildFrom() argument
269 return buildFrom(proto, dependencies, false); in buildFrom()
288 final FileDescriptorProto proto, final FileDescriptor[] dependencies, in buildFrom() argument
303 proto, dependencies, pool, allowUnknownDependencies); in buildFrom()
[all …]

12345678910>>...101