Commit Graph

3253 Commits

Author SHA1 Message Date
android-build-team Robot
596b65217e Merge "Adding batterystats history to proto dump." 2018-05-08 02:38:23 +00:00
Yang Lu
88daf748ac Merge "Fixes statsd returning too much data at once." into pi-dev am: cdb093e080
am: 0e4b1c1bee

Change-Id: Ia470a56187612d4607737410f1abfc8ffac17581
2018-05-07 18:51:22 -07:00
Kweku Adams
3d16091dd2 Adding batterystats history to proto dump.
It will only print out a dump for userdebug or eng builds.

This is the same change as the pi-dev one (http://ag/3909863), but due
to changes in master, that change has a merge conflict, so I have to
create a separate CL for master.

Bug: 77727638
Test: it builds
Change-Id: Ib74d4c664f23a61e6fc33f700ba6a3c6fad32c74
2018-05-07 17:57:42 -07:00
Howard Ro
76e3dbf0bd Merge "Re-enable the logging of APP_BREADCRUMB_REPORTED atom" into pi-dev am: 7ca1b03ece
am: e68a729b08

Change-Id: Ie15622ace2952c7ab30047b7935a1d03bfa31a1c
2018-05-07 17:12:11 -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
Mickey Keeley
5f83e6370b Merge "BootParameters: Support new API." 2018-05-07 22:49:59 +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
Mickey Keeley
1ffcc5eed1 BootParameters: Support new API.
Support new parameters based on new API.

Bug: 78525209
Test: Builds and unit tests pass on oc-mr1-iot-dev. Able to push json
to 'next_boot.json' and verify it is moved to 'last_boot.json.' Builds
on master with target sdk_google_iot_x86.

Change-Id: I01d34b7695176e80468b5ddc7ccff50168093017
2018-05-07 09:47:47 -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)
df487d3b6b Merge "Convert to Soong" am: b466949e32 am: e4ed25ce8b
am: 6149739971

Change-Id: I1f0f2276e21ab46a7f0fed2f9e287b5f21b070cc
2018-05-05 09:58:46 -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
46ab2531f3 Merge "Add cmd to let statsd print all logs it received for debugging." into pi-dev am: a62ae51ba9
am: 60bb3fe68d

Change-Id: If312f25ecbb27385b9b6ecc4a3e73ee7e90522bc
2018-05-04 13:55:30 -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
b096a34428 Merge "Reset statsd and correctly record the dump reason when system server restarts/crashes." into pi-dev am: ec41a069fd
am: c1d985cf8b

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

Change-Id: I59e2723e423748e24a5985d7db8377ce0588aef0
2018-05-03 20:07:48 -07: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
Yangster-mac
892f3d3229 Reset statsd and correctly record the dump reason when system
server restarts/crashes.

Test: statsd test
BUG: b/79161505
Change-Id: I0646c764964f6eafde91f9ae0179a1c837af320d
2018-05-03 17:05:24 -07:00
Yangster-mac
754e29edd7 Turns DEBUG to false in statsd.
Test: statsd test
BUG: b/79161505
Change-Id: Ic6eee527d625b10aa86b2beb4b4c4fc05b051c7d
2018-05-03 21:19:39 +00:00
Yao Chen
876889cb76 Add cmd to let statsd print all logs it received for debugging.
It only works on eng build. And all code is behind a build flag, so the
code will be stripped out in production builds.

Bug: 78239479
Test: manual
Change-Id: I20ee51822d18e6c77ca324a5327712cbed09593e
2018-05-03 10:53:27 -07:00
Mickey Keeley
4d30c269bb Merge "BootParameters: Use new JSON reader" 2018-05-03 16:55:13 +00:00
android-build-team Robot
c4e8cde88d Merge "Preventing zombie process creation." into pi-dev am: ca6f36532d
am: 193c893b01

Change-Id: Id32203ab069343410a02c03956a7c6135f8a1b33
2018-05-02 18:05:11 -07:00
Yi Jin
68a16c4277 Merge "Add a section flag to bypass failure if a specific path can't be found." into pi-dev
am: e09cde0cd9

Change-Id: I01c5a7a2c1ead02f5af0514cf9bf9b83f1682316
2018-05-02 15:10:58 -07:00
Mickey Keeley
dfaa9c5e5c BootParameters: Use new JSON reader
* Update JSON blob that BootParameters reads from.
* Change JSON reader to allow custom keys.

Bug: 78524407
Test: Builds. Unit tests pass. End to end flow with RebootActivity
passes values as expected.

Change-Id: I2966f560de4aaf045125946c7fbe1becd47354be
2018-05-02 14:56:52 -07:00
Yi Jin
e09cde0cd9 Merge "Add a section flag to bypass failure if a specific path can't be found." into pi-dev 2018-05-02 21:36:23 +00:00
Yang Lu
890db383f9 Merge "Lock the pulling alarm handler." into pi-dev am: 493bb2b119
am: 2eccd835de

Change-Id: I4c488e49c74021459b4a86ba9d596bed2e2007c1
2018-05-02 14:31:12 -07:00
android-build-team Robot
193c893b01 Merge "Preventing zombie process creation." into pi-dev
am: ca6f36532d

Change-Id: Ie0c1ea1d658f719262f3e7473046a732915d7284
2018-05-02 14:17:18 -07:00
android-build-team Robot
ca6f36532d Merge "Preventing zombie process creation." into pi-dev 2018-05-02 20:58:14 +00:00
Yang Lu
2eccd835de Merge "Lock the pulling alarm handler." into pi-dev
am: 493bb2b119

Change-Id: I91bc58bf99a1834821f88aeee3f1ce99da9861e5
2018-05-02 11:43:26 -07:00
Yang Lu
493bb2b119 Merge "Lock the pulling alarm handler." into pi-dev 2018-05-02 18:25:18 +00:00
Yi Jin
7fe3dee3ae Add a section flag to bypass failure if a specific path can't be found.
This is a temporary solution to bypass failure of reading cpu info or 
battery type in P if the path doesn't exist on some devices. See bug for
details. However in Q, incidentd should implement reading from the
common Linux kernel interfaces.

Bug: 78028767
Bug: 78239764
Test: atest incidentd_test
Change-Id: I08ffcb21709efe5478d2ac46121deb5795af1024
Merged-In: I08ffcb21709efe5478d2ac46121deb5795af1024
2018-05-02 01:31:08 +00:00
Yi Jin
d9956a06fd Merge "Add a section flag to bypass failure if a specific path can't be found." 2018-05-02 01:30:13 +00:00
android-build-team Robot
b5371d441f Merge "Reduce statsd log data size." into pi-dev am: b85e5616df
am: f308d98f79

Change-Id: I2ac1c09c4473eb31ed163395272b6ccfaba51917
2018-05-01 18:05:39 -07:00
android-build-team Robot
f308d98f79 Merge "Reduce statsd log data size." into pi-dev
am: b85e5616df

Change-Id: Id60db7bd29b103194904b8bdf5fc1b788cf7efc2
2018-05-01 17:56:08 -07:00
android-build-team Robot
b85e5616df Merge "Reduce statsd log data size." into pi-dev 2018-05-02 00:45:51 +00:00
Yi Jin
3f3603587c Add a section flag to bypass failure if a specific path can't be found.
This is a temporary solution to bypass failure of reading cpu info or
battery type in P if the path doesn't exist on some devices. See bug for
details. However in Q, incidentd should implement reading from the
common Linux kernel interfaces.

Bug: 78028767
Bug: 78239764
Test: atest incidentd_test
Change-Id: I08ffcb21709efe5478d2ac46121deb5795af1024
2018-05-01 16:25:52 -07:00
android-build-team Robot
c1b66305a6 Merge "Increase the bytes per config threshold to avoid too frequent uploading." into pi-dev am: e442db3e40
am: 80c93aed29

Change-Id: I9580a5cdccda24c7e5d7c586e783be90703c3de0
2018-05-01 14:39:36 -07:00
android-build-team Robot
80c93aed29 Merge "Increase the bytes per config threshold to avoid too frequent uploading." into pi-dev
am: e442db3e40

Change-Id: I4d3c0d72f5269ccd0f3e3ed6c38c06cd3de7021c
2018-05-01 14:24:48 -07:00
android-build-team Robot
e442db3e40 Merge "Increase the bytes per config threshold to avoid too frequent uploading." into pi-dev 2018-05-01 21:02:32 +00:00
android-build-team Robot
f370ee41fc Merge "Clear the past buckets for no-report metrics" into pi-dev am: c0775117c4
am: 6e7821ec66

Change-Id: Ief582aa48afcfb0c6fe5b683bfa5b4ffa20ac80a
2018-04-30 17:42:46 -07:00
android-build-team Robot
6e7821ec66 Merge "Clear the past buckets for no-report metrics" into pi-dev
am: c0775117c4

Change-Id: I6ba6ff0c5acf845c8838224c0fea2ea62de112f0
2018-04-30 17:27:10 -07:00
Mickey Keeley
953f1093cd Add BootParameters tests.
Bug: 78577334
Test: Builds on master (aosp_x86-userdebug),
unit tests pass on oc-mr1 (on iot target).

Change-Id: I3584a285f1be914cc3e940469d7dea142d4a4231
2018-04-27 10:44:42 -07:00
Yangster-mac
9def8e3995 Reduce statsd log data size.
1. Hash the strings in metric dimensions.
2. Optimize the timestamp encoding in bucket.
   Use bucket num for full bucket and millis for
   partial bucket.
3. Encode the dimension path per metric and avoid
   deduping it across dimensons.

Test: statsd test
Change-Id: I18f69654de85edb21a9c835c73edead756295e05
BUG: b/77813755
2018-04-26 04:30:18 -07:00