3304 Commits

Author SHA1 Message Date
Chenjie Yu
315211c74b Merge "Configurable data error action in value metric" into pi-dev
am: 5ca38cafe8

Change-Id: Ic4ce7443e381e42e6b33f93021c6344d18abb9c2
2018-05-14 15:57:30 -07:00
Chenjie Yu
47234644ca Configurable data error action in value metric
Right now in value metric, if a later pull produces a smaller number
than the previous one, we use absolute value of the current value.
This is not correct for some atoms as listed in the CL, which should
just take 0.
For some other atoms, this is unexpected error and should just dump
stale data.

Test: manual test
Bug: 79265262
Change-Id: I59fbfd96cbb57be22cd8d21cb57a7c60ca6856ee
2018-05-14 13:50:25 -07:00
Yangster-mac
2d41c7d382 Merge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev
am: 67cee97754

Change-Id: I74ad62e53fc245f8c77741db3235543846f70832
2018-05-11 20:15:13 -07:00
TreeHugger Robot
67cee97754 Merge "Guardrail the max gauge atoms per dimension in one bucket." into pi-dev 2018-05-12 03:03:01 +00:00
David Chen
efe26104b3 Merge "Fixes statsd reports missing strings and SCS." into pi-dev
am: 50a5e71bf3

Change-Id: Icc690ce0a82d07ad46fb95e1a369a037cc9ff9e3
2018-05-11 19:52:59 -07:00
Yangster-mac
50b0c9a608 Guardrail the max gauge atoms per dimension in one bucket.
Test: statsd
BUG: b/78603347
Change-Id: Ide77cc8ff0cde6cf6cc9e56034727ed27dd7be88
2018-05-11 17:15:44 -07:00
David Chen
56ae0d9a48 Fixes statsd reports missing strings and SCS.
Reports written to disk don't contain the strings used, which will
make this report unusable if there are strings that don't show up
again. We should always include the strings, so this option is
removed entirely.

Also, we hard-coded the wrong number of fields when pulling
ModemActivityInfo. There are actually 10 fields, not 6.

Bug: 79601503
Test: Tested unit-tests pass on marlin-eng.
Change-Id: I6834b096ced77418a9cc2ddd79b08d1c9c447fae
2018-05-11 17:04:56 -07:00
Jaewan Kim
399a7e999c Merge "MediaSessionService: Provide caller information for media key events" into pi-dev
am: 183a63474f

Change-Id: I6ad5053137c2ae7d123940c7f5239060d70ce68f
2018-05-09 22:02:41 -07:00
Jaewan Kim
183a63474f Merge "MediaSessionService: Provide caller information for media key events" into pi-dev 2018-05-10 04:48:35 +00:00
Yangster-mac
018765f4ca Merge "Fix the gauge metric data size estimation." into pi-dev
am: 3b592910c5

Change-Id: Ie8977d334e3345dd273f7f7fb587e5cd0edd77d8
2018-05-09 19:53:03 -07:00
Yang Lu
85d7b2a060 Merge "Add a sampling method to pull gauge when condition changes to true." into pi-dev
am: c2f44a19b2

Change-Id: Ie85fb0789c2330e563242345876ade0e916754fe
2018-05-09 19:49:36 -07:00
TreeHugger Robot
3b592910c5 Merge "Fix the gauge metric data size estimation." into pi-dev 2018-05-10 02:43:20 +00:00
Yang Lu
c2f44a19b2 Merge "Add a sampling method to pull gauge when condition changes to true." into pi-dev 2018-05-10 02:37:49 +00:00
yro
ef16759cdd Merge "Skip writing metrics to disk if it's entirely composed of no_report_metric" into pi-dev
am: 3f57b16deb

Change-Id: Ie5dce0d1678408986360815ec3190c32ee88fbe1
2018-05-09 19:13:51 -07:00
TreeHugger Robot
3f57b16deb Merge "Skip writing metrics to disk if it's entirely composed of no_report_metric" into pi-dev 2018-05-10 02:02:37 +00:00
Yangster-mac
5ba80b011f Merge "Fix the flaky gauge/value e2e test due to cached events." into pi-dev
am: a159842161

Change-Id: I3942b5c691b31054ca63b3bbd7fc89ec269c9e28
2018-05-09 18:15:58 -07:00
TreeHugger Robot
a159842161 Merge "Fix the flaky gauge/value e2e test due to cached events." into pi-dev 2018-05-10 01:02:10 +00:00
Yangster-mac
b2532daf4d Fix the gauge metric data size estimation.
Test: statsd test
BUG: b/77906846
Change-Id: Ie5ab54771acadde1e825289fe5ec491cc2225458
2018-05-09 23:14:26 +00:00
yro
028091cb15 Skip writing metrics to disk if it's entirely composed of
no_report_metric

Test: unit test, cts
Bug: 79488249
Change-Id: I3e13a6271cc36665a43d0f09d8663e5996224477
2018-05-09 16:03:27 -07:00
Yangster
ec3c7a3e58 Add a sampling method to pull gauge when condition changes to true.
Test: statsd test

BUG: b/79490890
Change-Id: I82ed6681151f8a217e74bd0d855f817b4fa0619c
2018-05-09 16:02:35 -07:00
android-build-team Robot
e46d7975b8 Merge "Fix partial bucket unit tests." into pi-dev
am: c3d0798455

Change-Id: I44f0aa78defe58a6c04411d76d97631fb808305c
2018-05-09 11:40:04 -07:00
android-build-team Robot
c3d0798455 Merge "Fix partial bucket unit tests." into pi-dev 2018-05-09 18:07:24 +00:00
Chenjie Yu
b0828d55e5 Merge "fix cts error on x86 simulator" into pi-dev
am: 9743fae2d9

Change-Id: I13f5120724b6983661bd29f93112c66c4bce0f3d
2018-05-08 18:07:57 -07:00
Chenjie Yu
9743fae2d9 Merge "fix cts error on x86 simulator" into pi-dev 2018-05-09 00:53:09 +00:00
android-build-team Robot
30b2280bbe Merge "Fix statsd returning uidmap with empty reports." into pi-dev
am: 0d3a6dee7f

Change-Id: I3ab384316614255710a51ff84e43d1fe4dc076c8
2018-05-08 17:38:02 -07:00
android-build-team Robot
0d3a6dee7f Merge "Fix statsd returning uidmap with empty reports." into pi-dev 2018-05-09 00:25:31 +00:00
android-build-team Robot
6a748eee30 Merge "Should not use the absolute value when the value does not change." into pi-dev
am: 64307ea578

Change-Id: I8d4c27f386e4e952d2d32f627ea3818d8f50334e
2018-05-08 16:46:37 -07:00
Yangster-mac
58e609e339 Fix the flaky gauge/value e2e test due to cached events.
Test: statsd test
BUG: b/79265262
Change-Id: I4d67f1c2edb6215a3cea23f8c7b2e8d5099c4aac
2018-05-08 16:19:48 -07:00
Chenjie Yu
3b3adcd8b6 fix cts error on x86 simulator
Bug: 78242568
Fix: 78242568

Test: cts test
Change-Id: I235991c7c5b7c5a0d660ebaaff1356cc69fd1854
2018-05-08 15:40:01 -07:00
Yangster
613a7e2a7d Should not use the absolute value when the value does not change.
Test: statsd test

BUG: b/79265262
Change-Id: Ic654e1a07a505ec0e073a41fb41bcd38a29b125e
2018-05-08 15:12:30 -07:00
android-build-team Robot
ccb89f9263 Merge "Adding batterystats history to proto dump." into pi-dev
am: 291b944d89

Change-Id: Ie1766ac31bc048eeba13d540c446372ef56c2da6
2018-05-08 08:11:22 -07:00
android-build-team Robot
291b944d89 Merge "Adding batterystats history to proto dump." into pi-dev 2018-05-08 14:58:09 +00:00
Jaewan Kim
77748b623c MediaSessionService: Provide caller information for media key events
Current limitation is that we cannot distinguish between key events
from Window#injectInputEvent() and key presses from physical devices.

Bug: 79185725
Test: Manually verified with the test app, and Cts
Change-Id: I1c3da4a963238512eec8b57fbc2d825c7436b140
2018-05-08 15:53:00 +09:00
David Chen
9e6dbbdadf Fix statsd returning uidmap with empty reports.
We notice devices uploading a bunch of bytes for the uidmap even if
the device is running an empty config, so there are no actual metrics
to report. This hardcodes some logic to skip the inclusion of the
uidmap if there are exactly 0 metrics.

Bug: 79381210
Test: Tested unit-tests on marlin-eng
Change-Id: I96348235341a7faf15ff57d4d1eccac635a3a999
2018-05-07 18:07:19 -07:00
Kweku Adams
71a9531806 Adding batterystats history to proto dump.
It will only print out a dump for userdebug or eng builds.

Bug: 77727638
Test: flash device and check output of incident proto and
'dumpsys batterystats -c --history'

Merged-In: Ib74d4c664f23a61e6fc33f700ba6a3c6fad32c74
Change-Id: Ia0c993d1281cc350d93f9c13f5540b349a4bfb84
2018-05-07 17:53:57 -07:00
Yang Lu
0e4b1c1bee Merge "Fixes statsd returning too much data at once." into pi-dev
am: cdb093e080

Change-Id: I64e129a2061c561ddb017067e095ed0e2e9d471b
2018-05-07 17:00:26 -07:00
Yang Lu
cdb093e080 Merge "Fixes statsd returning too much data at once." into pi-dev 2018-05-07 23:49:54 +00:00
Howard Ro
e68a729b08 Merge "Re-enable the logging of APP_BREADCRUMB_REPORTED atom" into pi-dev
am: 7ca1b03ece

Change-Id: If52d4b0f2b648e118e9cf10705b4eb2068153b75
2018-05-07 14:56:40 -07:00
Yao Chen
cc884dfc94 Fix partial bucket unit tests.
Bug: 79347749
Test: statsd_test
Change-Id: I69eee7172d6fe4ce895530f089193eb08653e269
2018-05-07 10:34:31 -07:00
yro
be6d7f90e8 Re-enable the logging of APP_BREADCRUMB_REPORTED atom
Bug: 78613419
Test: manual, cts, unit tests
Change-Id: I279158c8031eda3ee648053ae6a0d13fde7f1176
2018-05-06 22:25:05 -07:00
android-build-prod (mdb)
6149739971 Merge "Convert to Soong" am: b466949e32
am: e4ed25ce8b

Change-Id: I8a36b21a97daf698ef7eabd3a840dd06f988f075
2018-05-05 09:48:02 -07:00
android-build-prod (mdb)
e4ed25ce8b Merge "Convert to Soong"
am: b466949e32

Change-Id: I3572e751c4f5da7e57fed17a39c481c51d4c758b
2018-05-05 08:50:28 -07:00
Dan Willemsen
0dec58456f Convert to Soong
See build/soong/README.md for more information.

Test: cd frameworks/base/cmds/backup mma
Change-Id: I88a45ae568f80228c70f3e4a4a1facaff9520587
2018-05-04 23:17:00 -07:00
David Chen
48944901f7 Fixes statsd returning too much data at once.
We observe a single ConfigMetricsReportList can be greater than the
safe size for the binder transaction buffer since we only check the
size of the current metrics in progress, but we also return the
previous reports stored on disk.

This change will attempt to send another ConfigMetricsReportList
as soon as possible if there's already a report on disk.

Also fixes a bug when trying to trigger data fetch before the client
has registered the corresponding dataFetchOperation.

Bug: 79201869
Test: Tested manually on marlin-eng
Change-Id: I2d3677162804a27e7a7a95d482d80c46bd994a67
2018-05-04 17:09:16 -07:00
Yao Chen
60bb3fe68d Merge "Add cmd to let statsd print all logs it received for debugging." into pi-dev
am: a62ae51ba9

Change-Id: I73cee7eb8bf174b7ee39ce0b94334e93ba48d5b2
2018-05-04 13:40:23 -07:00
Yao Chen
a62ae51ba9 Merge "Add cmd to let statsd print all logs it received for debugging." into pi-dev 2018-05-04 20:21:18 +00:00
android-build-team Robot
c1d985cf8b Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev
am: ec41a069fd

Change-Id: If18ec5d227a70e070a1a66d9a229de04d986d27f
2018-05-03 20:03:53 -07:00
android-build-team Robot
77e1d3fc95 Merge "Turns DEBUG to false in statsd." into pi-dev
am: 1e9761df82

Change-Id: I4f1f138ce9f1e2526c8ba44d0b6d8b6be7a2b63c
2018-05-03 19:58:24 -07:00
android-build-team Robot
ec41a069fd Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev 2018-05-04 02:43:03 +00:00
android-build-team Robot
1e9761df82 Merge "Turns DEBUG to false in statsd." into pi-dev 2018-05-04 02:41:44 +00:00