Home
last modified time | relevance | path

Searched refs:proto_utils (Results 1 – 25 of 51) sorted by relevance

123

/external/perfetto/include/perfetto/protozero/
Dfield.h57 inline proto_utils::ProtoWireType type() const { in type()
58 auto res = static_cast<proto_utils::ProtoWireType>(type_); in type()
59 PERFETTO_DCHECK(res == proto_utils::ProtoWireType::kVarInt || in type()
60 res == proto_utils::ProtoWireType::kLengthDelimited || in type()
61 res == proto_utils::ProtoWireType::kFixed32 || in type()
62 res == proto_utils::ProtoWireType::kFixed64); in type()
67 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt); in as_bool()
72 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_uint32()
73 type() == proto_utils::ProtoWireType::kFixed32); in as_uint32()
78 PERFETTO_DCHECK(!valid() || type() == proto_utils::ProtoWireType::kVarInt || in as_int32()
[all …]
Dmessage.h100 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendVarInt()
103 pos = proto_utils::WriteVarInt(proto_utils::MakeTagVarInt(field_id), pos); in AppendVarInt()
105 pos = proto_utils::WriteVarInt(value, pos); in AppendVarInt()
112 AppendVarInt(field_id, proto_utils::ZigZagEncode(value)); in AppendSignedVarInt()
122 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendTinyVarInt()
125 pos = proto_utils::WriteVarInt(proto_utils::MakeTagVarInt(field_id), pos); in AppendTinyVarInt()
136 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendFixed()
139 pos = proto_utils::WriteVarInt(proto_utils::MakeTagFixed<T>(field_id), pos); in AppendFixed()
DBUILD.gn26 "proto_utils.h",
Dproto_utils.h29 namespace proto_utils {
/external/perfetto/src/protozero/
Dmessage.cc76 PERFETTO_DCHECK(size < proto_utils::kMaxMessageLength); in AppendBytes()
78 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendBytes()
80 pos = proto_utils::WriteVarInt(proto_utils::MakeTagLengthDelimited(field_id), in AppendBytes()
82 pos = proto_utils::WriteVarInt(static_cast<uint32_t>(size), pos); in AppendBytes()
97 PERFETTO_DCHECK(size < proto_utils::kMaxMessageLength); in AppendScatteredBytes()
99 uint8_t buffer[proto_utils::kMaxSimpleFieldEncodedSize]; in AppendScatteredBytes()
101 pos = proto_utils::WriteVarInt(proto_utils::MakeTagLengthDelimited(field_id), in AppendScatteredBytes()
103 pos = proto_utils::WriteVarInt(static_cast<uint32_t>(size), pos); in AppendScatteredBytes()
125 PERFETTO_DCHECK(size_ < proto_utils::kMaxMessageLength); in Finalize()
127 proto_utils::WriteRedundantVarInt(size_ - size_already_written_, in Finalize()
[all …]
Dmessage_unittest.cc237 uint8_t root_msg_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
308 uint8_t msg1_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
309 uint8_t msg2_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
310 uint8_t msg3_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
370 memset(size_msg_1, 0, proto_utils::kMessageLengthFieldSize); in TEST_F()
375 memset(size_msg_2, 0, proto_utils::kMessageLengthFieldSize); in TEST_F()
393 uint8_t msg_size[proto_utils::kMessageLengthFieldSize] = {}; in TEST_F()
Dproto_decoder.cc27 using namespace proto_utils;
99 if (PERFETTO_LIKELY(payload_length <= proto_utils::kMaxMessageLength)) { in ParseOneField()
Dproto_utils_unittest.cc26 namespace proto_utils { namespace
/external/perfetto/src/tracing/core/
Dtrace_writer_for_testing.cc84 uint8_t data[protozero::proto_utils::kMaxTagEncodedSize]; in NewTracePacket()
85 uint8_t* data_end = protozero::proto_utils::WriteVarInt( in NewTracePacket()
86 protozero::proto_utils::MakeTagLengthDelimited( in NewTracePacket()
93 stream_.ReserveBytes(protozero::proto_utils::kMessageLengthFieldSize)); in NewTracePacket()
Dtrace_packet.cc51 using protozero::proto_utils::MakeTagLengthDelimited; in GetProtoPreamble()
52 using protozero::proto_utils::WriteVarInt; in GetProtoPreamble()
Dtrace_writer_impl.cc31 using protozero::proto_utils::kMessageLengthFieldSize;
32 using protozero::proto_utils::WriteRedundantVarInt;
/external/tensorflow/tensorflow/core/util/proto/
DBUILD65 name = "proto_utils",
66 srcs = ["proto_utils.cc"],
67 hdrs = ["proto_utils.h"],
82 ":proto_utils",
Dproto_utils_test.cc25 using proto_utils::ParseTextFormatFromString;
26 using proto_utils::StringErrorCollector;
Dproto_utils.h27 namespace proto_utils {
Dproto_utils.cc25 namespace proto_utils { namespace
/external/perfetto/src/traced/probes/ftrace/
Devent_info_constants.h143 protozero::proto_utils::ProtoSchemaType proto_field_type;
173 protozero::proto_utils::ProtoSchemaType proto,
178 protozero::proto_utils::ProtoSchemaType type);
Devent_info_unittest.cc24 using protozero::proto_utils::ProtoSchemaType;
Devent_info_constants.cc20 using protozero::proto_utils::ProtoSchemaType;
/external/tensorflow/tensorflow/core/kernels/
Dgpu_utils.cc119 proto_utils::FromDurationProto(lhs.success().run_time())) < in BestCudnnConvAlgorithm()
122 proto_utils::FromDurationProto(rhs.success().run_time())); in BestCudnnConvAlgorithm()
130 proto_utils::FromDurationProto(lhs.success().run_time())) < in BestCudnnConvAlgorithm()
133 proto_utils::FromDurationProto(rhs.success().run_time())); in BestCudnnConvAlgorithm()
/external/perfetto/src/perfetto_cmd/
Dpacket_writer.cc36 using protozero::proto_utils::kMessageLengthFieldSize;
37 using protozero::proto_utils::MakeTagLengthDelimited;
38 using protozero::proto_utils::WriteRedundantVarInt;
39 using protozero::proto_utils::WriteVarInt;
/external/nos/host/android/hals/keymaster/
DAndroid.bp25 "proto_utils.cpp",
31 "-Wno-implicit-fallthrough", // in proto_utils.cpp:836
/external/perfetto/src/tracing/test/
Dfake_packet.cc26 using protozero::proto_utils::ParseVarInt;
27 using protozero::proto_utils::WriteVarInt;
/external/perfetto/src/trace_processor/
Dftrace_descriptors.h26 using protozero::proto_utils::ProtoSchemaType;
Dproto_trace_tokenizer.cc44 using protozero::proto_utils::MakeTagLengthDelimited;
45 using protozero::proto_utils::MakeTagVarInt;
46 using protozero::proto_utils::ParseVarInt;
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dcudnn_conv_algorithm_picker.cc265 tensorflow::proto_utils::ToDurationProto( in PickBestAlgorithm()
339 tensorflow::proto_utils::FromDurationProto( in PickBestAlgorithm()
343 tensorflow::proto_utils::FromDurationProto( in PickBestAlgorithm()

123