OSDN Git Service

Java code for mainline modules to log to statsd.
authorTej Singh <singhtejinder@google.com>
Thu, 18 Apr 2019 03:31:52 +0000 (11:31 +0800)
committerChiachang Wang <chiachangwang@google.com>
Thu, 18 Apr 2019 03:45:14 +0000 (03:45 +0000)
commit37b9742b58c6448c76a41860689f9e6621787b63
treed9017e0f1a695e40e96e678b15234ff258ee10f5
parente987ba6ccd24af2e0308e7dfa0535167aaae7a01
Java code for mainline modules to log to statsd.

Adds support for generating app code to allow java mainline modules to
call the StatsLog.writeRaw public API. Supports primitives, enums,
attribution chains, MODE_BYTES. Does not support key value pairs,
worksource methods (because worksource uses hidden apis in the
worksource object).

Test: manually tested atom logging from DocumentsUI
Test: existing autogenerated code is not modified
Test: cts will follow
Bug: 126134616

Change-Id: Ia321cf2d9952e3875ed0c7a28db1f4113711513f
Merged-In: I97ac1890fda2262e343acafbbb8822e1de5f6515
tools/stats_log_api_gen/Collation.cpp
tools/stats_log_api_gen/Collation.h
tools/stats_log_api_gen/main.cpp