6cacbcbf436be744a34f7ea0d4f838ff97757446 |
|
30-Mar-2018 |
Yi Jin <jinyithu@google.com> |
Use modern c++ code style for incidentd. This cl does not contain code logic changes. Bug: 77333635 Test: manual and incidentd_test Change-Id: Iea0a402b1051defd45159ca267e6dd705f9ffa49
/frameworks/base/libs/protoutil/include/android/util/EncodedBuffer.h
|
1a11fa10977ee1e2645d400844ff4d472b8f5f02 |
|
23-Feb-2018 |
Yi Jin <jinyithu@google.com> |
Implement a new section to attach LAST_KMSG to incident report This section simply gzip a large file and stores result in GZippedFileProto This greatly improves the size, before gzip, the last kmsg size ~500KB, after gzip the proto size is ~60KB. Bug: 73354384 Test: atest incidentd_test and manual on device test Change-Id: I9bfc2cf07384487671edbffb5f0bd8495608fea6
/frameworks/base/libs/protoutil/include/android/util/EncodedBuffer.h
|
7f9e63b63269baa41a36fc31acd6fc071309c26c |
|
03-Feb-2018 |
Yi Jin <jinyithu@google.com> |
Add clear method to ProtoOutputStream so it is reusable by just rewinding its internal pointer. Bug: 72319159 Test: atest incidentd_test and atest statsd_test Change-Id: Id046b987a7460d68300e5d4d46ae56aec1eba2d0
/frameworks/base/libs/protoutil/include/android/util/EncodedBuffer.h
|
974a9c28853d24ff94f000ae9f5c816d9538897b |
|
03-Oct-2017 |
Yi Jin <jinyithu@google.com> |
Implement go/streaming-proto native libs, part 2 Implement ProtoOutputStream.h to write protobuf format data. Usage of dumping proto: ProtoOutputStream proto(fd); proto.write(fieldId, value1); // dump a single value // start to dump a message: long long token = proto.start(messageFieldId); proto.write(nestedField1, nestedValue1); ... proto.end(token); fieldId will be generated by protoc-cpp plugin(TBD). It is an encoded uint64_t value, with 0 - 32 bits as its proto number, 33 - 40 bits reserved for field type, int32, bool, string, message, etc. and 41 - 43 bits for single, repeated or packed type. Currently packed field is not supported. Bug: 65641021 Test: N/A, need to wait for protoc-cpp plugin and will test in incident_helper Change-Id: Ic188615b950235aae0edeee4876b78d31feb5619
/frameworks/base/libs/protoutil/include/android/util/EncodedBuffer.h
|
c23fad2f9079f678eae15338f5e57e2a6bf7e391 |
|
16-Sep-2017 |
Yi Jin <jinyithu@google.com> |
Implement c++ native lib for streaming proto, part 1 Extract protobuf class out and creates EncodedBuffer class which holds protobuf data. Next step is to create a ProtoOutputStream and let incident helper adapt the change as well. please see frameworks/base/core/java/android/util/proto Bug: 65641021 Test: unit tested Change-Id: I0dd343b2e62d60f091c8f857fae3452ec8da6b96
/frameworks/base/libs/protoutil/include/android/util/EncodedBuffer.h
|