Commit Graph

4112 Commits

Author SHA1 Message Date
TreeHugger Robot
ddab7079a8 Merge "Remove lots of code duplication in tests" 2019-02-22 15:01:29 +00:00
Olivier Gaillard
17ba73a8ea Remove lots of code duplication in tests
Test: atest statsd_test
Change-Id: Ib7d2415abf45de2810fda7fc54cd126e2f526e6b
2019-02-22 12:06:05 +00:00
Olivier Gaillard
3739df05fb Merge "Mark bucket as invalid when the condition was unknown at the start of the bucket." 2019-02-22 09:47:22 +00:00
Makoto Onuki
7a81c02723 Merge "Add ADB command to wait for system server crash" 2019-02-21 23:40:18 +00:00
Olivier Gaillard
0a36f57903 Mark bucket as invalid when the condition was unknown at the start of
the bucket.

- since the condition was unknown, the bucket contains partial data.
- we need to do the same for other metrics

Bug: 124100912
Test: atest statsd_test
Change-Id: If803e28667c1e8a74d5b809bcab2eb54d1961f46
2019-02-21 18:48:35 +00:00
Olivier Gaillard
7489d6af3e Merge "Tracks the total number of buckets." 2019-02-21 18:39:09 +00:00
TreeHugger Robot
8bfcea1ac5 Merge "Add bubble logging for permission dialog shown." 2019-02-21 16:30:43 +00:00
Olivier Gaillard
f248c0d4d7 Tracks the total number of buckets.
To be able to normalize the other counters, e.g. % of invalid buckets.

Test: atest statsd_test
Change-Id: I7bef93f3acfa133baf3618ce0ffee919d23a1ad3
2019-02-21 15:58:49 +00:00
TreeHugger Robot
dd55e47885 Merge "Formatting atoms." 2019-02-21 01:22:36 +00:00
Olivier Gaillard
fa537a1157 Merge "Introduces an option to set a dump latency requirement." 2019-02-20 23:02:57 +00:00
joshmccloskey
99f390124f Formatting atoms.
Test: manual
Bug: 119898637
Change-Id: Id48030001c84e69fbdd92fa68b5a6881d3dc7e22
2019-02-20 14:45:08 -08:00
TreeHugger Robot
c28fa88024 Merge "Add rtmitchell to idmap2 OWNERS" 2019-02-20 22:31:40 +00:00
TreeHugger Robot
9091d826bb Merge "Suppress cert-dcl50-cpp tidy warnings." 2019-02-20 22:31:06 +00:00
Ryan Mitchell
110323fed0 Add rtmitchell to idmap2 OWNERS
Change-Id: I8e0b873ef8739aadbb4f3bd6a7c3f4aa1aee58ea
2019-02-20 10:31:08 -08:00
Makoto Onuki
b4469f9e58 Add ADB command to wait for system server crash
"adb shell svc system-server wait-for-crash" will block until the process dies.

Bug: 124022170
Test: Manual
- Run "adb shell svc system-server wait-for-crash" on multiple terminals
- Make sure open FDs aren't increasing by checking /proc/`pid system_server`/fd
- adb shell killall system_server
- All the "adb shell svc system-server wait-for-crash" should finish.

Change-Id: I203d001cd296d506ebf9f5a70b97e05e5769961a
2019-02-20 10:20:31 -08:00
Olivier Gaillard
6c75ecdcef Introduces an option to set a dump latency requirement.
We are currently dumping invalid data for pulled metrics. Pulled metrics
require a new pull when flushing a bucket. We should either do another
pull or invalidate the previous bucket.

There are cases where we cannot afford to do another pull, e.g. statsd
being killed. If we do not have enough time, we'll just invalidte the
bucket to make sure we have correct data.

Bug: 123866830
Test: atest statsd_test
Change-Id: I090127cace3b7265032ebb2c9bddae976c883771
2019-02-20 17:59:50 +00:00
Andrei-Valentin Onea
d3af535583 Merge "Add atom for logging hidden API usage" 2019-02-20 11:57:26 +00:00
Winson Chiu
fcc5d5e322 Merge "idmap2: add signature policy" 2019-02-19 22:02:07 +00:00
Andrei Onea
4ad6d0c3dd Add atom for logging hidden API usage
Test: m
Bug: 119217680
Bug: 124667657
Change-Id: Ia1894cfdb6b64f6bfda62ca725ef7bc902e091f7
2019-02-19 10:56:48 +00:00
Santos Cordon
c34d735f43 Merge "Add force suspend API to PowerManager." 2019-02-18 10:23:04 +00:00
Ben Murdoch
f706696969 Merge "Update AppCompacted WW atom to include device ZRAM usage." 2019-02-18 09:13:23 +00:00
TreeHugger Robot
1dc37e9601 Merge "Add touch classification metrics atom." 2019-02-17 14:56:31 +00:00
Winson
b410020881 idmap2: add signature policy
Handles the new signature policy for overlayable resources.

Bug: 119402606

Test: idmap2_tests target

Change-Id: I7961e04a879c40c240ed9097bb510addb8b56680
2019-02-15 17:29:48 -08:00
Chih-Hung Hsieh
a20e8a357c Suppress cert-dcl50-cpp tidy warnings.
Bug: 122832439
Test: make with WITH_TIDY=1 DEFAULT_GLOBAL_TIDY_CHECKS=-*,cert-dcl50-cpp
Change-Id: I034ec8c6e6338b38ee4b413e3edac223a01d8764
2019-02-15 23:38:54 +00:00
Steven Wu
a62cb6a337 Add bubble logging for permission dialog shown.
Bug: 123543171
Test: manual
Change-Id: I561939930e9d54579579b818bc25d06597b2d48c
2019-02-15 17:20:50 -05:00
Carmen Agimof
b5fd2e7277 Merge "Pull sdcard mounted atom." 2019-02-15 21:09:02 +00:00
TreeHugger Robot
826e270caa Merge "Add more alert details to incidentd header." 2019-02-15 19:53:22 +00:00
Carmen Agimof
35f7f6f3ed Pull sdcard mounted atom.
Change-Id: I334fef334b67e94ee040026880ffbec2803b9982
Bug: 123688171
Test: Manually tested using statsd_testdrive script
2019-02-15 17:53:36 +00:00
Santos Cordon
12f92eb6cf Add force suspend API to PowerManager.
Add a hidden system API (protected by DEVICE_POWER) that forces suspend,
ignoring any existing wakelock.  Add a shell cmd to trigger the API
to run.

Bug: 111991113
Test: 'adb shell svc power forcesuspend'
Change-Id: I5a258e1b7c8b1391fe1baf3930dd9d9af47235c9
2019-02-15 17:23:18 +00:00
Alison Cichowlas
e8fe358ac0 Merge "Revert "Add bubbles UI logging for permission dialog shown."" 2019-02-15 16:18:37 +00:00
Alison Cichowlas
0b38ec44f4 Revert "Add bubbles UI logging for permission dialog shown."
This reverts commit bd2901a730.

Reason for revert: Breaks tests

Change-Id: I63e2e0d4872ab9b1c948f0e7df270fb1f69135da
Exempt-From-Owner-Approval: Clean rollback of CL that breaks tests
2019-02-15 16:17:06 +00:00
Neil Fuller
823511e481 Merge "Add an atom for TimeZoneDataVersion" 2019-02-15 16:01:19 +00:00
TreeHugger Robot
6dc698074f Merge "Add bubbles UI logging for permission dialog shown." 2019-02-15 06:36:07 +00:00
TreeHugger Robot
4a42914abc Merge "Preload zip before waiting for surface flinger" 2019-02-15 03:19:29 +00:00
Philip Quinn
0eded6206a Add touch classification metrics atom.
Bug: 111480215
Bug: 123663806
Test: make

Change-Id: Id344c7e7ae843218651490063c1feba8f357823d
2019-02-14 17:39:13 -08:00
Huihong Luo
50a2f36f73 Preload zip before waiting for surface flinger
This saves about 200 msec by preloading media zip file before waiting
for surface flinger becomes ready.

Android Auto results:
BootAnimation: BootAnimationPreloadTiming start time: 8261ms
BootAnimation: BootAnimationPreloadStopTiming start time: 8508ms

Bug: 62056504

Test: adb logcat -s BootAnimation
Change-Id: Iaedf774983a66c2838452c45a04b3a1f4c728f17
2019-02-14 13:37:34 -08:00
Tej Singh
b6628d9ff8 Merge "Unit tests for active config change broadcast" 2019-02-14 20:24:06 +00:00
Neil Fuller
db14b487b0 Add an atom for TimeZoneDataVersion
The atom records the tzdb version in use on the device
as reported by the public SDK ICU APIs.

Test: build / boot
Bug: 119010737
Change-Id: Ifa2bed2eabf192da7adbc29b064cbb41f85f9ba7
2019-02-14 17:14:20 +00:00
Olivier Gaillard
b52bf9dc30 Merge "Tracks unknown condition states." 2019-02-14 11:57:31 +00:00
Olivier Gaillard
bbf03b8834 Merge "Metric id should be serialized as int64 (part 2)" 2019-02-14 09:34:47 +00:00
Chenjie Yu
97dbb206de TrainInfo persist onto disk
+ TrainInfo puller

Bug: 122807604
Test: will add gts
Change-Id: Iac9576ba0edc235dc117950f92bc7d7a8ad75ca8
2019-02-13 17:42:35 -08:00
Yao Chen
4ce07298e0 Add more alert details to incidentd header.
+ Add metric_id, dimension, metric_value in the incident report header
  to make it easier to identify an anomaly.
+ In case there is a uid in the dimension, put the its package info in the header too

Test: statsd_test && tested locally with a config

Change-Id: I762a1a4b0563fb3104e0d32b616b4a2367485e48
2019-02-13 17:21:42 -08:00
Tej Singh
d823aebd2f Unit tests for active config change broadcast
Modifies statsd unit tests to also assert the active configs changed
broadcast is called at the right time with the right configs. One case
has one config with multiple activation signals, while the other has
multiple configs that are activated at the same time with one signal.

Test: this is the test
Change-Id: I6e1cd19a8a0a8dbf9745152d4ad4980854be0cbd
2019-02-13 16:43:49 -08:00
Chenjie Yu
deba83c094 Merge "fix multiple activation across boot" 2019-02-14 00:14:33 +00:00
Chenjie Yu
afe83a6720 Merge "add api to log BinaryPushStateChanged atom" 2019-02-14 00:14:07 +00:00
Chenjie Yu
4841d26405 fix multiple activation across boot
If a metric is activated and gets activated again after boot, it should
not change its current state.

Bug: 124327892
Bug: 123038368
Test: manual
Change-Id: I50a57223384faa5736c6e7ee562f4db74326a7ad
2019-02-13 22:23:47 +00:00
Chenjie Yu
6b1667c8b1 add api to log BinaryPushStateChanged atom
This api is to log BinaryPushStateChanged.
Experiment id is added as a binary blob that is not expected to be
accessed on device side.
This cl is mainly for API.
Will add follow up cls for persisting train info on disk and make puller
for it.
Will address sepolicy in follow up cls.

Bug: 119633962
Bug: 119685453
Test: will add gts
Change-Id: I68b4246cf7e8079155e16121ca37a312b35a5328
2019-02-13 10:47:27 -08:00
Olivier Gaillard
f48fb0425d Metric id should be serialized as int64 (part 2)
Test: atest statsd_test
Change-Id: Ia8a224709aabc3c372b6ecd18fa32fdc4837ee24
2019-02-13 16:24:03 +00:00
Olivier Gaillard
3e0c72484d Merge "Metric id should be serialized as int64" 2019-02-13 13:21:25 +00:00
Olivier Gaillard
4cfa37b915 Metric id should be serialized as int64
Test: atest statsd_test
Change-Id: I0edeb8ef728252e9ee8eedf49b4672cf2d11762a
2019-02-13 11:03:57 +00:00