Commit Graph

6767 Commits

Author SHA1 Message Date
TreeHugger Robot
9106cc18e2 Merge "Config update for allowed log sources" 2020-11-05 02:45:49 +00:00
TreeHugger Robot
12915194fb Merge "Add carwatchdog atoms for apps' stats on killing." 2020-11-04 21:32:08 +00:00
Makoto Onuki
2247c3c6d4 Merge "Add sync manager documentation on app-standby exemption" 2020-11-04 21:30:19 +00:00
Julia Reynolds
0ef853937d Merge "Add some missing conversation log fields" 2020-11-04 13:14:47 +00:00
TreeHugger Robot
35615f9bc3 Merge "Instrument CUJ for HUN and App launch from notification" 2020-11-04 06:00:04 +00:00
Tej Singh
34eac18349 Config update for allowed log sources
Completely resets the allowed log sources from scratch.

Also:
- renamed initLogSourceWhitelist to initAllowedLogSources.
- refactored tests to have cleaner asserts on data structures

Test: atest statsd_test
Bug: 162323471
Change-Id: Ie717da732eea82c764b5b1f272080a4d97a7a8eb
2020-11-03 13:24:12 -08:00
TreeHugger Robot
1aa05b5b0f Merge "Update SurfaceFlinger atoms to include shared timeline counters" 2020-11-02 23:28:29 +00:00
TreeHugger Robot
4c5831a696 Merge changes Ia2fb33e9,Id3afa04b
* changes:
  Update Alarms/Subscriptions
  Partial config update for alerts/subscriptions
2020-11-02 23:00:07 +00:00
Tej Singh
8b46bc11b4 Update Alarms/Subscriptions
This is the same as initializing because alarms have no state to carry
over. We can just replace them all without losing anything.

Test: atest statsd_test
Bug: 162323547
Change-Id: Ia2fb33e9ac79476babce57e2e0fb1ca49091e260
2020-11-02 12:32:42 -08:00
Julia Reynolds
1785b2efb6 Add some missing conversation log fields
Test: cts, manual
Fixes: 157240045
Change-Id: I5c77649596612115c8db99d7e32221b07bf1bda6
2020-11-02 09:41:08 -05:00
Tej Singh
d07d0ff02f Partial config update for alerts/subscriptions
Preserves alerts if the definition didn't change and the underlying
metric didnt change.

All alerts need to be readded to the metric b/c metrics will always
clear the alerts on config updates. In the existing code, the metric
producer created the AnomalyTracker (since duration metrics need
DurationAnomalyTrackers). Preserved alerts already have an
AnomalyTracker. Therefore, we need a second overload of
addAnomalyTracker within MetricProducer to add existing ones. Note that
we don't need to worry about the type of AnomlayTracker, since if the
alert is preserved, both the AnomalyTracker and metric must not have
changed, so they will both be the correct type.

Subscriptions are also redone - alerts will clear their subscriptions,
and all subscriptions will be readded.

For duration metric, we now need to propagate adding anomaly trackers to
the DurationTrackers since it's now possible to add anomaly trackers
after the durationTrackers have been created.

Test: atest statsd_test
Bug: 162323547
Change-Id: Id3afa04b252f3a3523114407a389be25b9171a97
2020-11-02 02:01:00 -08:00
Lakshman Annadorai
9a15572240 Add carwatchdog atoms for apps' stats on killing.
- CarWatchdog will capture applications' stats using
KilledAppStatsReported on application killing.

Bug: 158131194
Test: Tested locally and verified the atoms are reported with
statsd_testdrive.

Change-Id: I8cf40a340350add9fadccaa887ece73227875b24
2020-10-30 13:43:28 -07:00
Ahan Wu
1360612760 Instrument CUJ for HUN and App launch from notification
Use InteractionJankMonitor to instrument CUJs, including:
- HUN appear / disappear
- Notification add / remove
- App launch from notification

Bug: 169220845
Bug: 169740111
Test: Manually
Change-Id: I88002f086b49cac15613e754985ab9a8be6bbd52
2020-10-30 15:53:53 +00:00
Makoto Onuki
705e7865e7 Add sync manager documentation on app-standby exemption
Also fix the command line flag help for "adb shell requestsync".

Bug: n/a
Test: n/a, doc only change
Change-Id: I53ad0cae99d30050d1cd8bab349096605865b9fc
2020-10-28 18:45:22 +00:00
TreeHugger Robot
e7ffa5eeae Merge "Add an atom to log TextClassifier API latency and result" 2020-10-28 12:23:49 +00:00
Michele Berionne
1b50c35d7b Merge "Separate proto message definitions for pushed and pulled atoms" 2020-10-28 00:16:34 +00:00
Michele Berionne
909247979c Separate proto message definitions for pushed and pulled atoms
Bug: 171258091
Test: make
Change-Id: Id057241052f27e259e5c17b2133e095ea3613f49
2020-10-27 19:02:39 +00:00
Tony Mak
7a22ac4576 Add an atom to log TextClassifier API latency and result
Bug: 169042373

Test: m TextClassifierService

Change-Id: If37cfefbc0e0714acc698ecb3bbd54a51b052e28
2020-10-27 18:25:55 +00:00
Nikita Iashchenko
98656eef99 Add TLS handshake metrics atom proto
This CL adds a new Westworld pushed metric which counts the number of:

 1. Successful/failed handshakes
 2. Chosen protocol after handshake
 3. Chosen cipher suite after handshake
 4. Duration of the handshake, in milliseconds

Bug: 160345816
Test: m statsd_testdrive && ./out/host/linux-x86/bin/statsd_testdrive 317
Change-Id: I142a792c34dced6b0e27b867ed3a1d95249a5f7f
2020-10-27 08:34:52 +00:00
TreeHugger Robot
49818960d1 Merge "Add MediaMetrics support to MediaParser" 2020-10-27 00:52:05 +00:00
Alec Mouri
f9df760c26 Update SurfaceFlinger atoms to include shared timeline counters
Bug: 171309796
Test: builds, boots
Test: statsd_testdrive

Change-Id: I1acf7d21185fef043f7dee8b5af7ab50a8559a63
2020-10-26 12:27:08 -07:00
TreeHugger Robot
ab7e3d3e33 Merge "Track replaced metrics during config update" 2020-10-26 19:25:30 +00:00
TreeHugger Robot
6a7082ad63 Merge "Add PNN in the metrics for carrier ID mismatch." 2020-10-26 19:18:59 +00:00
TreeHugger Robot
6a6ce5e698 Merge "Perform update for value metric" 2020-10-26 18:55:27 +00:00
Tej Singh
56fbe68041 Track replaced metrics during config update
This is needed so that we can replace alerts that depend on replaced
metrics.

Test: atest statsd_test
Bug: 162323547
Change-Id: I44a721675b6aa3cc7f28565da14ff23275cdb98f
2020-10-23 17:46:58 -07:00
Tej Singh
890f24a60a Perform update for value metric
Like other metrics, preserved metrics have indices and maps updated.
New/replaced metrics get recreated as if it was a brand new metric.

Test: atest statsd_test
Bug: 162321957
Change-Id: Ia3896d47d861f7193bf81fc7c7bb10db3103fc40
2020-10-23 17:46:58 -07:00
Santiago Seifert
173193000e Add MediaMetrics support to MediaParser
Includes:
- Java changes to collect the metrics.
- JNI changes to plumb metrics to the MediaMetrics service.
- Westworld proto changes for data transmission.

Bug: 158742256
Test: atest CtsMediaParserTestCases
Test: atest CtsMediaParserHostTestCases
Test: Manually using dumpsys.
Change-Id: If51ee018da3056231910cd9c18f1b938a5c0e343
2020-10-23 19:58:11 +01:00
Wesley.CW Wang
a968ac3b6c Add metrics for WallpaperPicker launch source
Bug: 154781896
Test: make statsd_testdrive; statsd_testdrive 179
Change-Id: I37aec888cc3208ec6d6e518d4a82682682213335
2020-10-23 08:00:16 +00:00
TreeHugger Robot
283d7b9c82 Merge "Determine value metric update status" 2020-10-22 21:26:15 +00:00
Michele Berionne
2aa765c002 Add PNN in the metrics for carrier ID mismatch.
Bug: 169273187
Test: manual
Change-Id: I5e7d88939a88e7eaa4e68220e81d21fad865ff01
2020-10-21 06:58:18 +00:00
Chi Zhang
f5c72d3695 Merge "Add telephony service state atom to statsd." 2020-10-20 20:33:18 +00:00
TreeHugger Robot
d366a177a7 Merge "Add a target for statsd nano proto definitions." 2020-10-20 01:42:23 +00:00
Tej Singh
8fa18790bf Determine value metric update status
Test: atest statsd_test
Bug: 162321957
Change-Id: Ifa6c77e605f45f1494d6d27f2cac45632378b004
2020-10-19 18:27:43 -07:00
Rahul Ravikumar
e3e46e0a2c Add a target for statsd nano proto definitions.
Test: N/A
Change-Id: Ib4481fd010660510168d1f660a1fb2efde056f12
2020-10-19 16:35:13 -07:00
Chi Zhang
67c788dd44 Add telephony service state atom to statsd.
Bug: 161573530
Test: build and statsd_testdrive
Change-Id: I28cb83e62b2ad0ade03bc41787b52be6120075e5
2020-10-19 16:22:37 -07:00
Tej Singh
cfa32e13ef Perform update for duration metric
Creates a new metric if the metric is new/needs replacement.
Preserves the metrics that can be preserved. Ensures that indices are
updated, including within duration trackers.

Does not handle if a condition is true for a new metric based on an
existing condition.

Test: atest statsd_test
Bug: 162323124
Change-Id: Ibe0baf54678c1c6efde5aeba6a4b9b7fa2634c55
2020-10-19 15:51:05 -07:00
Treehugger Robot
1673d15519 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722 am: 72864d2930 am: 968582e45f am: cb2ebfc692 am: c59b81c978
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461087

Change-Id: Ib58c1acbb9629a6654eb8e1666872974f0c75944
2020-10-19 19:35:19 +00:00
Treehugger Robot
c59b81c978 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722 am: 72864d2930 am: 968582e45f am: cb2ebfc692
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1461087

Change-Id: I3a0abc3172b06e201535876bf01d37ed357853af
2020-10-19 19:21:50 +00:00
Zoran Jovanovic
5b23d15d37 OMS: Add config_signature policy handling am: 0f942f99ca am: 98f8388042 am: 1dd9fa3689
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453997

Change-Id: I6eb6791bc9ab2e8ee8b50404e5d2e9bb9eb77e9e
2020-10-19 19:21:41 +00:00
Zoran Jovanovic
98f8388042 OMS: Add config_signature policy handling am: 0f942f99ca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1453997

Change-Id: I779b6c73a37b0ccd42afa1b899a2b6e4a3c17f92
2020-10-19 18:28:24 +00:00
Treehugger Robot
72864d2930 Merge changes I1d3e5e66,I86b869af,Iab4d3902,I645ee722
* changes:
  Fix <overlay-config-signature> comments
  Fix non-inclusive OMS test language
  Remove malloc/free for inline overlay values
  OMS: Add config_signature policy handling
2020-10-19 17:57:33 +00:00
Nazanin
b8a04f6bd4 Add support for Data calls metrics
Bug: 167453031
Test: manual testing
Change-Id: Id9e4f1e3e71bc7bdc298323403f9b03a6285be84
2020-10-16 14:28:41 -07:00
Michele Berionne
3235b498c9 Merge "Add metrics for carrier ID matching" 2020-10-16 01:07:21 +00:00
Ryan Mitchell
70e02d4285 Fix <overlay-config-signature> comments
Fix comments that refer to <overlay-config-signature> as
<config-signature>.

Bug: none
Test: build
Change-Id: I1d3e5e66ec3da993082f3441997b0d243d61520b
2020-10-14 14:53:01 -07:00
Ryan Mitchell
bf1f45b071 Remove malloc/free for inline overlay values
Remove malloc/free of android::ResTable_entry for inline overlay
values.

Add `target_entry_inline` to the idmap format to encode inline overlay
values separate from direct mapping of target resource to overlay
resource. This reduces the number of bytes needed to represent a direct
mapping of target resource to overlay resource from 9 bytes to 8 bytes
per entry.

Fixed all idmap alignment issues that required the framework to use
"#pragma pack(push, 1)" when loading idmaps.

Bug: 170341022
Test: idmap2_tests and libandroidfw_tests
Change-Id: Iab4d3902508f02773464724913e0ee966e3689e4
2020-10-14 14:52:52 -07:00
Zoran Jovanovic
0f942f99ca OMS: Add config_signature policy handling
Alongside SIGNATURE and ACTOR_SIGNATURE policies, add CONFIG_SIGNATURE
policy to overlayable that overlay fulfills if it is signed with the
same certificate as the reference package whose package name is
declared in 'config-signature' tag of SystemConfig and is vetted by
OMS that it's a system pre-installed package.

BUG: 158726924
TEST: regular aapt2, idmap2, OMS tests

Merged-In: I645ee72271496008742886274be0d63a2985201b
Change-Id: I645ee72271496008742886274be0d63a2985201b
2020-10-14 14:52:46 -07:00
TreeHugger Robot
c03a038a56 Merge "Add ART optimization dimension to reportFullyDrawn" 2020-10-14 06:30:17 +00:00
Michele Berionne
8823298c44 Add metrics for carrier ID matching
Bug: 169273187
Test: Manual testing
Change-Id: I4abeddffd6cfd09586a2742cd3556df06ca07dba
2020-10-14 06:06:12 +00:00
TreeHugger Robot
37f1f0e95f Merge "Determine update status for duration metric" 2020-10-14 00:22:47 +00:00
Tej Singh
213c07e38f Determine update status for duration metric
Test: atest statsd_test
Bug: 162323124
Change-Id: I9cb396898b26d795db94a8b3c734da49073eab78
2020-10-13 23:48:55 +00:00