Commit Graph

3284 Commits

Author SHA1 Message Date
Mark Salyzyn
beea2153ab Merge changes I664fb325,I5e289469 am: 701001688f
am: 833a491fab

Change-Id: If9ccdbfe5ee734c9cbd95a0c7bef04e6336d6f48
2018-11-19 13:33:13 -08:00
Treehugger Robot
701001688f Merge changes I664fb325,I5e289469
* changes:
  switch to using android-base/file.h instead of android-base/test_utils.h
  Remove unused reference to android-base/test_utils.h
2018-11-19 20:25:30 +00:00
Dan Willemsen
cd15068a88 Merge "Convert screencap and libjni_pacprocessor to Android.bp" am: 954b9825c6
am: 60d7bb00db

Change-Id: Id0335623d2c031d4676c3f8ff8f09aa6f076c084
2018-11-17 12:27:52 -08:00
Dan Willemsen
a13b003b8b Convert screencap and libjni_pacprocessor to Android.bp
See build/soong/README.md for more information.

Test: m screencap libjni_pacprocessor
Change-Id: I976ec0fad591f30707b484722c972cd89b569163
2018-11-16 15:47:43 -08:00
Mark Salyzyn
d100107806 switch to using android-base/file.h instead of android-base/test_utils.h
Test: compile
Bug: 119313545
Change-Id: I664fb32522d01909c603d7b903475c4e9aea9223
2018-11-14 15:54:32 -08:00
Mark Salyzyn
7751045a3a Remove unused reference to android-base/test_utils.h
Test: compile
Bug: 119313545
Change-Id: I5e289469b40ccf5bf17982197a3cdefad1254f78
2018-11-14 15:53:27 -08:00
Risan
ee32e0d473 Merge "Introducing StubVolume in StorageManager" am: b499af866c
am: eb871cc916

Change-Id: I69240d32659b511aec0e1e029fb6c6f1ab455c9c
2018-11-13 11:57:12 -08:00
Tej Singh
6752e11cdc Merge "Thermal shutdown fix: cool down on writing to disk" into pi-dev
am: 0cc63ef090

Change-Id: Ieb9fe51c3a729413a1aa7f0c044246eb1c7c836c
2018-11-09 14:41:26 -08:00
Tej Singh
42f9e06418 Thermal shutdown fix: cool down on writing to disk
Currently, statsd uses wall clock seconds to write data to disk. This
issue affects both thermal and normal shutdowns, because if two writes
occur in the same second, the more recent write will overwrite the older
write, erasing the actual data that we want.

For thermal shutdowns, we write twice. Once because of termination
signal received, and once because of binder death recipient from
statscompanion service.

For normal clean shutdowns, we write 3 times. In addition to the two
above, we write for the shutdown received signal.

This fix introduces a cool down period of 3 seconds between writing to
disk.

Bug: 112432890
Test: statsd unit tests
Test: statsd cts tests
Test: manually verified normal shutdown had 1 file written to disk
Test: manually verified thermal shutdown had 1 file written to disk
Change-Id: I4cd39de9063935e762ff7d00051ccc915f31e89a
2018-11-09 20:37:42 +00:00
Risan
05c41e6a0a Introducing StubVolume in StorageManager
Bug: 110380403
Test: Tested in ARC++ (with Settings and vold changes in separate CLS)
- able to see the external storage under StorageSettings. Also tested
the sm command to print stubvolumes.

Change-Id: I7517260a40399bd9800424bb394512601f6af617
2018-11-08 21:48:35 +00:00
Wei Wang
c2dcd92c33 Merge "Log the thermal throttling event to enable conditional temperature pulling." into pi-dev
am: e905bdb194

Change-Id: Iaa3d1aa70fcf7d1cb00f79986cfe0d6a6279c834
2018-11-07 15:26:53 -08:00
Wei Wang
e905bdb194 Merge "Log the thermal throttling event to enable conditional temperature pulling." into pi-dev 2018-11-07 22:51:12 +00:00
Jia-yi Chen
560055e29d Merge "Persist data to disk when system shuts down" into pi-dev
am: 29226627d0

Change-Id: I18a5f507f0e50d1212ee40573a3a6a687e5d0052
2018-11-06 16:52:37 -08:00
Colin Cross
e217b6222c Merge changes from topic "revert-protobuf3.5.2" am: a4680e1ebe
am: 3e312d20cd

Change-Id: I096f3b5a5a985ce7926ccb71fa07eda69d078ed3
2018-11-06 11:21:11 -08:00
Colin Cross
bd7c4efbb6 Revert "Convert statsd_test and statsd_benchmark to proto lite" am: 47046b80d2
am: 65200cf70e

Change-Id: I952a9cbcb9bf9d2d479efecc28c5411e31dc9cf6
2018-11-06 11:15:44 -08:00
Colin Cross
c836696a92 Merge changes from topic "protobuf3.5.2" am: 1d899f6be8
am: 11a4d77516

Change-Id: I6ad3772bc16f236c2c5e7ba381593b10292aabde
2018-11-04 18:13:52 -08:00
Colin Cross
85201e02df Convert statsd_test and statsd_benchmark to proto lite am: e7908d7b62
am: 5742f9ffa7

Change-Id: I5ef22cce9bbebe4355915ae3ab158faf14bf2708
2018-11-04 18:08:27 -08:00
Colin Cross
054b0c0e06 Revert "Adapt to google::protobuf::uint64 type change"
This reverts commit fa6bc27df0.

Change-Id: I9f778e6daa9ae0c6080016ab0bd1e6e414ae6061
2018-11-04 17:24:27 -08:00
Colin Cross
47046b80d2 Revert "Convert statsd_test and statsd_benchmark to proto lite"
This reverts commit e7908d7b62.

Change-Id: I585991ab1d5b35930bee6e32b82714aa11fbcb41
2018-11-04 17:24:26 -08:00
Colin Cross
e7908d7b62 Convert statsd_test and statsd_benchmark to proto lite
libplatformprotos for the device is compiled using proto lite, and
statsd_test and statsd_benchmark have protos that reference the
libplatformprotos.  With protobuf 3.5.2 compiling a full proto
against a lite proto doesn't work.  Convert them to lite.  Requires
adding the protobuf internal protos to the sources,
libprotobuf-cpp-lite does not contain the compiled version of
field_options.proto.

Bug: 117607748
Test: m checkbuild
Change-Id: I6a618c4118972c0e5ffb07a361ac6612b9069c5d
2018-11-02 11:35:48 -07:00
Colin Cross
fa6bc27df0 Adapt to google::protobuf::uint64 type change
Protobuf 3.5.2 redefines google::protobuf::uint64 from unsigned long
long to uint64_t, which is sometimes unsigned long and sometimes
unsigned long long.  Use PRIu64 to print it, and add an implementation
of ProtoOutputStream::write for long.

Bug: 117607748
Test: m checkbuild
Change-Id: I48912f58e2f63f4a98c3aefaa4f78cc2c719bb68
2018-11-02 11:35:48 -07:00
Colin Cross
bd26d4363f Convert statsd and incidentd to Android.bp
am: 05c9e5c24a

Change-Id: Ic5b6353777baf66eb77f7fc6b9846fa4adbca186
2018-10-31 14:12:36 -07:00
Colin Cross
05c9e5c24a Convert statsd and incidentd to Android.bp
See build/soong/README.md for more information.

Test: m checkbuild
Merged-In: I8c80878cec46c9299234c6f4c1e0e19efc0a221e
Change-Id: I8c80878cec46c9299234c6f4c1e0e19efc0a221e
2018-10-31 08:01:59 -07:00
Gopinath Elanchezhian
4e57b2c35c Merge "Add statsdprotolite in Android.bp" am: f469bd2f68
am: 748b449887

Change-Id: I94293a1cd5ca457224eccaf98ee1c265a3c3ce06
2018-10-29 11:47:54 -07:00
Gopinath Elanchezhian
f469bd2f68 Merge "Add statsdprotolite in Android.bp" 2018-10-29 17:14:46 +00:00
gopinath
49dd4c02e8 Merge "allow statsd pull based on event trigger." am: bd4ae82f66
am: 161b7028a4

Change-Id: Ibf8b0ac7e6f5f0deffb2e0c687eb9aeef4da9423
2018-10-26 21:39:51 -07:00
gopinath
17593b0395 Add statsdprotolite in Android.bp
Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5c27f3017be043b6809699158a94b32155163535
Merged-In: I857957e816506162496192fe0ad1da4dbdfd4efd
2018-10-26 23:16:39 +00:00
gopinath
9d426e141d allow statsd pull based on event trigger.
Bug: b/118482428

Test: make statsdprotolite
Change-Id: I5a40d5e6a409b65ca1639029d5da83c327ed1798
Merged-In: Ia15b1f209945f022edffb9ec5d673317d55d9e4f
2018-10-26 22:22:51 +00:00
Yangster-mac
80c4474a7b Log the thermal throttling event to enable conditional temperature pulling.
Test: statsd test

BUG: b/112432890

Change-Id: Ic0b175053ec6afe497eb67a31d3e1a7633df4c5b
Merged-in: If132bab9690043a9e3e89187dfb1a9ed8fd0c996
(cherry picked from commit e16189afca)
2018-10-26 20:03:07 +00:00
Chih-hung Hsieh
eb919bc560 Merge "Allow implicit-fallthrough warnings locally." am: dd68cf76de
am: 0db2c27df7

Change-Id: Iad6403f231cd7c125a57ec0913e996224ecc3b24
2018-10-24 14:23:59 -07:00
Yang Lu
658bc0e04f Persist data to disk when system shuts down
This is a cherry-pick from master to pi-dev.

Test: local test

BUG: b/112432890
Change-Id: Ie360f5c8df53d3b5b04f23df43ab8dc14b69ae26
Merged-In: Iaed318671a719cc366d4e6be9f77270147ba6596
2018-10-19 20:45:26 +00:00
Chih-Hung Hsieh
8767a4ede6 Allow implicit-fallthrough warnings locally.
It will be a global error by default.

Test: make checkbuild
Bug: 112564944
Change-Id: Ib23d0cc8b95a3734d5bd28f8c9d967df669cfdf8
Exempt-From-Owner-Approval: do not block on new warnings
2018-10-19 12:13:48 -07:00
Chih-Hung Hsieh
0a6ca66a34 Merge "Fix implicit fallthrough warnings." am: 012692be3f
am: 3515bf0fc9

Change-Id: Ia07a0a00d1ae547bc7af968e6f8a7caeb51f3e6e
2018-10-12 18:05:24 -07:00
Chih-Hung Hsieh
6c5b82f7c5 Fix implicit fallthrough warnings.
Test: make checkbuild
Bug: 112564944
Change-Id: Ia33bf816fb6b179ac0a5a6a20bcb50c11b47431d
2018-10-12 15:05:01 -07:00
Yangster
8f842fae06 Merge "Phone service state change atom." am: 419fc89b52
am: 16e3399902

Change-Id: Ifbff53d3b113c527975b5509289600f734dcca7b
2018-10-10 15:53:35 -07:00
Yangster
4ccebeadc7 Phone service state change atom.
Background: BatteryStatsService tracks the phone scanning time metric. In Q,
we are migrating the dumpsys-based collection to the new infra. This CL is to
instrument the new logging mechanism.

Test: statsd test
FIX: b/116748990

Change-Id: I3cf5e0026bfc6f594c5f7b524f14b3a43b702afb
2018-10-10 19:45:10 +00:00
Igor Murashkin
13ad78e9e7 Merge "statsd: Add AID mappings for iorapd" am: 34bd3dfb39
am: 543c688c3b

Change-Id: I7bbdf54070318e3faa962690bbf214c51682bc37
2018-10-08 13:50:54 -07:00
Treehugger Robot
34bd3dfb39 Merge "statsd: Add AID mappings for iorapd" 2018-10-08 20:12:59 +00:00
Igor Murashkin
12bb16c955 statsd: Add AID mappings for iorapd
Bug: 117295673
Change-Id: Ie0c7a7bf823159492259ac1ec6680b45784afb84
2018-10-05 16:25:21 -07:00
Igor Murashkin
9485d2610f Merge "statsd: Add missing AIDs to UidMap" am: 4593c78168
am: df28b82042

Change-Id: I50631821a385b8c7a8b2889f392e5a1dce994517
2018-10-05 11:44:49 -07:00
Treehugger Robot
4593c78168 Merge "statsd: Add missing AIDs to UidMap" 2018-10-05 16:52:11 +00:00
Igor Murashkin
a1980ae12a statsd: Add missing AIDs to UidMap
Change-Id: I29f52727d344755a0c465105eb3a2c81b2bec700
2018-10-04 14:30:48 -07:00
Kweku Adams
bbaababf95 Merge "Handling potential SIGPIPE signals." am: 935f97ade5
am: 7790552308

Change-Id: I48058c9c2ac1bbf634ef02f68979a54dd0a13826
2018-09-29 01:27:39 -07:00
Kweku Adams
60a98f0cb7 Merge "Increasing TombstoneSection timeout to 2 minutes." am: 0119603e8e
am: c87180623d

Change-Id: I25d2ba1843ac79d1b23be64d3e19771f419e50e0
2018-09-29 01:22:16 -07:00
Treehugger Robot
935f97ade5 Merge "Handling potential SIGPIPE signals." 2018-09-29 07:39:04 +00:00
Treehugger Robot
0119603e8e Merge "Increasing TombstoneSection timeout to 2 minutes." 2018-09-29 07:38:59 +00:00
Bookatz
27e85f974b Merge "Statsd atoms: restrict OEM fields 100000-199999" am: 824f940195
am: 3854309030

Change-Id: I8c7cd1a832d496b469a98a4b9509f17c809cc78a
2018-09-21 00:14:26 -07:00
Treehugger Robot
824f940195 Merge "Statsd atoms: restrict OEM fields 100000-199999" 2018-09-21 03:00:33 +00:00
Kweku Adams
4d4a23306a Handling potential SIGPIPE signals.
There are cases where dumping Java traces times out and then later tries
to write to a closed pipe, causing incidentd to crash. This introduces a
handler for the SIGPIPE signal so it doesn't crash due to a closed pipe.

Bug: 111729299
Test: lower section timeout to 5 seconds and make sure incident service
doesn't crash

Change-Id: I868aba1ae21a50ae76977e0e09e782cf94198473
(cherry picked from commit 5b763c1347)
2018-09-18 18:55:19 -07:00
Bookatz
76aafcfbea Statsd atoms: restrict OEM fields 100000-199999
The current wording seems to suggest allocating an infinite number of
fields, which is not future-proof.

Bug: 72866543
Test: N/A
Change-Id: I88732ea8695521a39f20524348547cfe50cbf776
2018-09-18 10:40:43 -07:00