summaryrefslogtreecommitdiff
path: root/cmds/incidentd
diff options
context:
space:
mode:
authorMike Ma <yanmin@google.com>2020-01-28 22:04:20 -0800
committerMike Ma <yanmin@google.com>2020-02-05 10:10:47 -0800
commita47ad7266c02e6d136e8bf874413e3de26be665b (patch)
tree5580611c29475c5ac350e60a4d8e7bce5246218e /cmds/incidentd
parentbf3e455597b6972ff2a7f80f5aaab16a36f5880b (diff)
Proto message for "dumpsys sensorservice --proto"
Add SensorServiceProto for protobuf dumpsys of sensorservice. Primarily used by incident service to capture an incident report proto. Also add a gensrc rule to generate cpp headers of frameworks proto to be used by native services like sensorservice. Added "static" qualifier to a few generated fields in the header to avoid linker conflict. Command to invoke (any of the following after lunch and env setup): $ adb shell dumpsys sensorservice --proto $ adb shell incident 3053 $ incident_report 3053 Bug: 146086105 Test: Execute the above commands and compare the output against dumpsys sensorservice Change-Id: I282ff37bd3e845464d0693d69fc0d82943cc9855
Diffstat (limited to 'cmds/incidentd')
-rw-r--r--cmds/incidentd/Android.bp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/incidentd/Android.bp b/cmds/incidentd/Android.bp
index 25e0328b4f38..55bfc32ab79f 100644
--- a/cmds/incidentd/Android.bp
+++ b/cmds/incidentd/Android.bp
@@ -43,7 +43,7 @@ cc_binary {
],
local_include_dirs: ["src"],
- generated_headers: ["gen-platform-proto-constants"],
+ generated_headers: ["framework-cppstream-protos"],
proto: {
type: "lite",
@@ -98,7 +98,7 @@ cc_test {
],
local_include_dirs: ["src"],
- generated_headers: ["gen-platform-proto-constants"],
+ generated_headers: ["framework-cppstream-protos"],
srcs: [
"tests/**/*.cpp",