summaryrefslogtreecommitdiff
path: root/tools/streaming_proto/stream_proto_utils.cpp
AgeCommit message (Collapse)Author
2017-12-05Use -Werror in frameworks/base/tools/streaming_protoChih-Hung Hsieh
* Remove unused constants. Bug: 66996870 Test: build with WITH_TIDY=1 Change-Id: I43940e8c446bab25b8fa841ec8c17885ab5d88ed
2017-11-01Remove the extra mapping of field types in ProtoOutputStreamYi Jin
It is very unlikely the protobuf changes the value in descriptor.h, and if defines an extra mapping, there are several places to maintain: 1. java-stream, 2. cpp-stream, 3. ProtoOutputStream.java 4. ProtoOutputStream.cpp 5. Privacy.h (GetFieldId) 6. StatsLog to generate field id (type << 32 + field number) Therefore use the current value in descriptor.h seems reasonable unless they change that, very very unlikely, they probably will just add new types, and deprect the existing ones like Group. Test: test output of dumpsys proto Change-Id: I6e150ab427851dd3b5dd55d3b273deeed7a0963c