summaryrefslogtreecommitdiff
path: root/tools/streaming_proto/string_utils.cpp
AgeCommit message (Collapse)Author
2017-11-10Implement Cpu Info SectionYi Jin
Support carriage return in Read class, and add a new way to parse lines which is not able to split purly by delimiters Bug: 65642861 Test: unit test and on device test Change-Id: Ib82dd4e458bb7d2fa33462b23fbe11b828325916
2017-10-11Create protoc-gen-cppstream tool to auto-generate cpp proto field Ids.Yi Jin
It is very similiar to protoc-gen-javastream, which generates field Ids used by ProtoOutputStream.cpp to dump protobuf data. Bug: 65641021 Test: compile the streaming_proto: $ mmm -j frameworks/base/tools/streaming_proto/ and run: $ PATH=$PATH:out/host/linux-x86/bin/protoc-gen-cppstream aprotoc --cppstream_out=tmp/ frameworks/base/core/proto/android/service/procstats.proto frameworks/base/core/proto/android/util/common.proto Change-Id: I68becc80b5166455455c5df28cd698601b4a1c1d
2016-10-12Add android.util.proto package as an @TestApi.Joe Onorato
The classes there add a way for the platform to write out protocol buffers that doesn't require lots of small objects, generate code, and extra copying. Includes the plugin for protoc to generate the constants. Test: proto cts tests Change-Id: I6385c198cecda9ac6fa533151609e3ace341af01