Commit Graph

5534 Commits

Author SHA1 Message Date
Automerger Merge Worker
b88f3f5dea Merge "Add boot session stable sampling to AppFeaturesOps puller." into rvc-dev am: 3eae86528a am: 816b51066d
Change-Id: I9d312a937f4c121d7503db39ec41a83409485cc9
2020-03-10 14:06:07 +00:00
Stanislav Zholnin
3eae86528a Merge "Add boot session stable sampling to AppFeaturesOps puller." into rvc-dev 2020-03-10 13:30:02 +00:00
Automerger Merge Worker
a2a11a289c Merge "Fix TODOs made during migration to libbinder_ndk" into rvc-dev am: 70d266df9b am: 794debebe7
Change-Id: Ic5fbc6575d7cddc7dd5d510bcb98c077742c58a9
2020-03-09 20:33:59 +00:00
Ruchir Rastogi
70d266df9b Merge "Fix TODOs made during migration to libbinder_ndk" into rvc-dev 2020-03-09 17:54:19 +00:00
Automerger Merge Worker
39cd9ee2eb Merge "Clean up toStatsDimensionsValueParcel" into rvc-dev am: f555086191
Change-Id: I01c793c9ab7bcfbab574cbb5a258c9f197f2cfac
2020-03-09 02:36:43 +00:00
Ruchir Rastogi
1497e8fdca Fix TODOs made during migration to libbinder_ndk
Test: atest GtsStatsdHostTestCases
Bug: 149254662
Change-Id: I50a1998e693f9a0c447cd655f8efa11afa28803b
2020-03-08 18:47:40 -07:00
Ruchir Rastogi
3db6204b99 Clean up toStatsDimensionsValueParcel
This refactoring slipped through the cracks when this function was first
written. Uploading the refactoring again now. There is no change in
functionality.

Test: atest GtsStatsdHostTestCases
Bug: 150805585
Change-Id: If6144eb5e545680f91c10674beb68d5242ee968f
2020-03-08 17:39:32 -07:00
Automerger Merge Worker
eff89f9fcf Merge "Address Puller API Feedback" into rvc-dev am: 8651b62518
Change-Id: I087e7602e67ae04c52907c11796bddfe0ff3a486
2020-03-06 18:49:25 +00:00
Tej Singh
8651b62518 Merge "Address Puller API Feedback" into rvc-dev 2020-03-06 18:43:31 +00:00
Automerger Merge Worker
1464f905a8 Merge "Update notification display buckets." into rvc-dev am: fff2d76ccb
Change-Id: Ibfea47565ee55708536c4a9449238b5ace0583db
2020-03-06 15:50:23 +00:00
TreeHugger Robot
fff2d76ccb Merge "Update notification display buckets." into rvc-dev 2020-03-06 15:33:50 +00:00
Stanislav Zholnin
59199131cf Add boot session stable sampling to AppFeaturesOps puller.
Refactoring of existing pullers.
Random seed added which should be stable for single boot session
Sampling rate is approximated to adjust for number of
packages and features used on individual device over last day.

Bug: 143519689

Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 10075
Test: make statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 10060
Change-Id: I43c940636f9eeb22fa7cd74c2ec5848ed641ee0f
2020-03-06 14:23:54 +00:00
Automerger Merge Worker
4032713a5b Merge "Remove libstatslog from libstatsmetadata" into rvc-dev am: d7944d6573
Change-Id: If7501c97164b9d867f430c8b93bec672dcbcf053
2020-03-06 10:25:21 +00:00
Automerger Merge Worker
88f527d2d6 Merge "Support multiple module annotations per atom" into rvc-dev am: 513453c253
Change-Id: Idc8958ebe0cf4c1c170a217778fece4319bf7cbf
2020-03-06 10:25:02 +00:00
Automerger Merge Worker
239f419c53 Merge "Remove libstatssocket from statsd_test" into rvc-dev am: f8222617c7
Change-Id: I72fa6ffe8241bd0c21175873ee6e294f27b54bd0
2020-03-06 10:13:33 +00:00
Automerger Merge Worker
82b280d940 Merge "Add an option to zip incident report" into rvc-dev am: ec6198e99d
Change-Id: Idd6b5fc3d9ab2d47e8ad9e9d02e2d01bd36fcd2a
2020-03-06 10:08:52 +00:00
Muhammad Qureshi
d7944d6573 Merge "Remove libstatslog from libstatsmetadata" into rvc-dev 2020-03-06 08:04:46 +00:00
Muhammad Qureshi
513453c253 Merge "Support multiple module annotations per atom" into rvc-dev 2020-03-06 08:04:09 +00:00
Muhammad Qureshi
9e0f728fe4 Remove libstatslog from libstatsmetadata
Instead of relying on the constants in libstatslog, hardcode them in
atoms_info to get rid of the dependency on libstatslog

New generated atoms_info.cpp:
https://paste.googleplex.com/5779947622760448

Bug: 150417465
Test: m libstatsmetadata
Change-Id: I954c963f1883f889053b63d308c648548de71e56
2020-03-05 17:20:58 -08:00
Tej Singh
72a70a8a3c Address Puller API Feedback
1. Rename registerPullAtomCallback to setPullAtomCallback
2. Rename unregisterPullAtomCallback to clearPullAtomCallback
3. Add getters to PullAtomMetadata
4. Change Ns to Millis (when I tried to make it Nanos, I received a
built time error saying to prefer millis unless we need the precision.
We do not need the precision, so I changed it).
5. Fix out of order params.

I did not change usePooledBuffer to setPooledBuffer because I think use
is more appropriate for our use case.

Test: make
Test: atest PullAtomMetadataTest
Test: atest GtsStatsdHostTestCases
Bug: 149475498

Change-Id: Ib07aa57a6e02c77917fe0e65a3d4a77c00ce8565
2020-03-05 16:43:02 -08:00
TreeHugger Robot
f8222617c7 Merge "Remove libstatssocket from statsd_test" into rvc-dev 2020-03-06 00:21:10 +00:00
TreeHugger Robot
ec6198e99d Merge "Add an option to zip incident report" into rvc-dev 2020-03-05 22:59:49 +00:00
Muhammad Qureshi
f8460f70d0 Support multiple module annotations per atom
Bug: 150864291
Test: m stats-log-api-gen-test &&
out/host/linux-x86/nativetest/stats-log-api-gen-test/stats-log-api-gen-test

Change-Id: Ibf8869078c6f1eae13e687f0196d6ed91ec35c64
2020-03-05 14:52:05 -08:00
Tej Singh
b3915ea363 Remove libstatssocket from statsd_test
Statsd test links both libstatssocket and libstatssocket_private. It
shouldn't need to link both, but needs the private lib to be able to
access hidden APIs like getBuffer. So, remove it from statsd_test.

Test: atest statsd_test
Bug: 150435148
Change-Id: I46e71209489c8b1924800680f26e87ef7f4b8598
2020-03-05 14:37:25 -08:00
Mike Ma
b6f7c47252 Add an option to zip incident report
Incident reports are getting bigger as we add more sections. Add an
option (-z, default off) to zip incident report.

Bug: 150160547
Test: atest incidentd_test
Test: adb shell incident -z -p EXPLICIT | gunzip | ./out/soong/host/linux-x86/bin/aprotoc --decode=android.os.IncidentProto --proto_path=./ --proto_path=external/protobuf/src frameworks/base/core/proto/android/os/incident.proto
Change-Id: I7c8ff1d91df842c200462ee29f15feae68e62739
2020-03-05 12:42:50 -08:00
Automerger Merge Worker
2dc6307e68 Merge "Fix a race conditon in incident." into rvc-dev am: 7b35bb384e
Change-Id: Ifc25e6d878549cf372bc4b998fb55ad449f7571e
2020-03-05 10:25:54 +00:00
Boleyn Su
1c8ed242b5 Fix a race conditon in incident.
`incident` may exit too early, which leads to data lost. This commit
fixes it.

Bug: 144821874
Test: atest com.android.server.cts.IncidentdTest
Change-Id: Ib73118cb690a8247049b5685ed0b227dad63f752
2020-03-04 23:03:40 -08:00
Automerger Merge Worker
2f586d9c9f Merge "Allow bugprone-* warnings until they are all fixed." am: 7f58bef392 am: 129beaf75e
Change-Id: I80db8c6c9c08b588db5c6276fdc3f54185fc9321
2020-03-04 22:59:05 +00:00
Automerger Merge Worker
129beaf75e Merge "Allow bugprone-* warnings until they are all fixed." am: 7f58bef392
Change-Id: I968ed527ce1c55d51be71852867c4e1c94912974
2020-03-04 22:43:02 +00:00
Chih-hung Hsieh
7f58bef392 Merge "Allow bugprone-* warnings until they are all fixed." 2020-03-04 22:18:27 +00:00
Chih-Hung Hsieh
db84f188ee Allow bugprone-* warnings until they are all fixed.
Test: WITH_TIDY=1 make checkbuild
Change-Id: I93e9526d66ab9ac88672ccd77eb409603482ea47
2020-03-03 20:09:15 -08:00
Will Brockman
e375384472 Update notification display buckets.
Staying in sync with NotificationSectionsManager.PriorityBucket.

Bug: 146488473
Test: statsd_testdrive 245
Change-Id: I161062593c75b34d7f2260fc6a7301c73b2f8a8d
2020-03-03 16:29:34 -05:00
Automerger Merge Worker
ccd911bc81 Merge "Extend atoms with Virtual A/B merge metrics" am: f072c7c354
Change-Id: Ic14c32002b5475383e7500a333fa90b96e0203b8
2020-03-03 21:21:58 +00:00
Treehugger Robot
f072c7c354 Merge "Extend atoms with Virtual A/B merge metrics" 2020-03-03 21:06:10 +00:00
Alessio Balsini
1550470660 Extend atoms with Virtual A/B merge metrics
With the Virtual A/B feature, when the device successfully boots after
an OTA update, a dm-snapshot merge operation is performed, which
consolidates the updated images to the base devices.
This merge operation depends on the OTA size and may affect the device
performance until completed.
The new virtual_ab_update_reported push metric tracks the merge
operation duration (if not interrupted), the final merge status and
possible number of reboots that occurred during the merge.

Bug: 138817833
Bug: 148138124
Test: build + OTA application + local metric test with statsd_testdrive
Change-Id: Iabd1dc48ad0d737f6ed14caa247fd4952c65a258
Signed-off-by: Alessio Balsini <balsini@google.com>
Merged-In: Iabd1dc48ad0d737f6ed14caa247fd4952c65a258
2020-03-03 12:13:10 -08:00
Automerger Merge Worker
20f125ea59 Merge "incident_helper: Fix incorrect deletion" into rvc-dev am: 887d51d2e3
Change-Id: Icc8a19530debc2b39165d6882aa07cbd4b65df5c
2020-03-02 21:55:50 +00:00
Greg Kaiser
642a7d1746 incident_helper: Fix incorrect deletion
We match our deletion of memory with how it was allocated.

Test: TreeHugger
Bug: 150145113
Change-Id: I765e726cd6dbde550fb22f643140f1faba217dfb
2020-03-02 20:49:08 +00:00
Automerger Merge Worker
172b5785db Merge "Fix LogEventQueue_tests" into rvc-dev am: 06d2fe8d83
Change-Id: I8dbbee1657a2dd5c99d9a39d1fc278a358e0c534
2020-02-28 18:32:47 +00:00
Ruchir Rastogi
06d2fe8d83 Merge "Fix LogEventQueue_tests" into rvc-dev 2020-02-28 18:20:07 +00:00
Automerger Merge Worker
dabfaf94f0 Merge "Statsd: modules for notifications atoms." into rvc-dev am: 8e41d8ce3c
Change-Id: Ida78514f74fe345e138cc6250e876e2d42e6826e
2020-02-28 14:43:29 +00:00
Will Brockman
8e41d8ce3c Merge "Statsd: modules for notifications atoms." into rvc-dev 2020-02-28 14:26:59 +00:00
Automerger Merge Worker
f4db5f292c Merge "Make libstatssocket shared" into rvc-dev am: 36a845dee4
Change-Id: I7a8610a353a49af9069bd276f595c2ca2c492c4f
2020-02-28 09:14:58 +00:00
TreeHugger Robot
36a845dee4 Merge "Make libstatssocket shared" into rvc-dev 2020-02-28 08:56:00 +00:00
Automerger Merge Worker
ce18dd17c4 Merge "Create standby bucket changed atom." into rvc-dev am: 169a29772c
Change-Id: I03abfdc1eea952fe4909eaba59ce5b677cac4357
2020-02-28 02:43:55 +00:00
TreeHugger Robot
169a29772c Merge "Create standby bucket changed atom." into rvc-dev 2020-02-28 02:40:46 +00:00
Ruchir Rastogi
2250fa1593 Fix LogEventQueue_tests
These tests were broken by ag/10444161, which deleted a test-only
LogEvent constructor (the tests still built though because there was
another constructor that accepted the same parameter types but with much
different semantics).

Also fixes a bug in TestSlicedCondition that was introduced by one of
the later patchsets in ag/10444161.

Test: bit statsd_test:*
Bug: 149590301
Change-Id: If7de80922680c63505a4b30a1dcefdc47be13219
2020-02-27 17:00:52 -08:00
Automerger Merge Worker
80013174b0 Merge "Use new socket schema within TestSlicedCondition" into rvc-dev am: 9f9ca14bb5
Change-Id: I8a74134458b2812d32c3b44567f82c675ff953c7
2020-02-27 23:15:09 +00:00
TreeHugger Robot
9f9ca14bb5 Merge "Use new socket schema within TestSlicedCondition" into rvc-dev 2020-02-27 22:55:25 +00:00
Kweku Adams
1275213242 Create standby bucket changed atom.
We'll use the data from the atom events to further optimize our quotas.

Bug: 135417506
Bug: 143495340
Bug: 149869487
Test: Use statsd_testdrive to test WakeupAlarmOccurred and
AppStandbyBucketChanged are both logged properly

Change-Id: Id05304175dea804d83f6056bf4da2e049496d87d
2020-02-27 13:33:56 -08:00
Will Brockman
7fb7944c4d Statsd: modules for notifications atoms.
Also move NotificationChannelModified to logging hash of channel id,
to match the changes to NotificationReported.

Change-Id: Ic55f54bf59904aaa21653c8d9dc0ce9c706f9735

Bug: 146488473
Test: mp droid and check FrameworkStatsLog.java and SysUiStatsLog.java
Change-Id: If444e541ae06cdfcb9631dddcb8b923ef6ff6a4a
2020-02-27 16:26:37 -05:00