6736 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
c68c2288ed Merge "Add statsd atoms for tracking motion events of notification shade" 2020-10-13 21:38:28 +00:00
Ahan Wu
1bfb259af2 Add statsd atoms for tracking motion events of notification shade
Add an interaction type enum for tracking expand / collapse of
notification shade through motion events.

Bug: 158756171
Test: Manually
Change-Id: I31e16d3517dcf4f278080a84b74ba45703da133e
2020-10-13 08:24:22 +00:00
Tony Huang
9dc64dbd67 Merge "Change BubbleUIChanged atom module to framework" 2020-10-13 06:30:26 +00:00
Tony Huang
5d3abbd3c8 Change BubbleUIChanged atom module to framework
Because bubbles codes will be moved to wm-shell, move this atom to
framework module for using FrameworkStatsLog to log.

Bug: 161980186
Test: make
Change-Id: I22691eac57a90662d5983101393720d44e50e9ac
2020-10-13 05:57:11 +00:00
Treehugger Robot
e86fba6742 Merge changes Ife0b17c2,If37e5c6c am: d4baac7702 am: b0e98333fe am: 06292bb0e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455631

Change-Id: Id271518469c22d729ee446e8a8226faa03cb2043
2020-10-13 01:59:02 +00:00
Tej Singh
3f3a4b6801 Remove alarm manager dependency from anomalyalarms am: 8b914c0f00 am: 9483816bad am: 903198768a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1455630

Change-Id: I6fe6e1e98ff3dbcd53c34ca1048e94e1e4d3c72e
2020-10-13 01:58:57 +00:00
Michele Berionne
0e3f4155c4 Merge "Add metrics for airplane mode and modem restart" 2020-10-12 16:38:18 +00:00
Tej Singh
39074df903 Remove dead code for AnomalyAlarm
Anomaly alarms now rely on the flow of events into statsd's socket for
firing alarms. Remove the StatsCompanionService code path, which is
unused now.

Test: m
Bug: 161326200
Bug: 152642091
Change-Id: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
Merged-In: Ife0b17c281984fc489ef46039cbf5aa7b1346bdb
2020-10-10 04:33:12 +00:00
TreeHugger Robot
b5d5fedcda Merge "Perform partial update for gauge metric" 2020-10-10 02:52:09 +00:00
Tej Singh
26943095b3 Perform partial update for gauge metric
Creates a new metric producer if either the metric definition or any of
its dependencies changed. Appropriately updates all indices both within
the producer and for MetricsManager if the metric will be preserved.

Test: atest statsd_test
Bug: 162323123
Change-Id: I414668c81dd71073285cc82b8f567d201344c5cd
2020-10-09 17:14:27 -07:00
Jonathan Nguyen
f339931699 Merge "Add enum to BinaryPushStateChanged" 2020-10-09 23:24:25 +00:00
Tej Singh
8b914c0f00 Remove alarm manager dependency from anomalyalarms
Anomaly alarms, which are used for prediction-base duration metric
anomaly detection, currently use alarm manager for setting alarms. This
can result in excessive binder calls to SCS to set/cancel the alarms if
the duration metric that the alarm is based on gets stopped/started in
quick succession.

To resolve this without losing precision, we can instead rely on the
flow of events into the statsd socket for this prediction. The socket
receives events very frequently, so there should be minimal (if any)
loss of precision, and we can remove the binder call entirely.

One concern is that we used to hold a wakelock when the alarm fired
(since alarm manager would hold a wakelock), and we now lose this
ability.

Test: atest statsd_test
Test: atest AnomalyDetectionTests
Bug: 161326200
Bug: 152642091
Change-Id: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
Merged-In: If37e5c6ccd8efa4e822c70a0444fa6b5a31bebca
2020-10-09 16:05:57 -07:00
TreeHugger Robot
1382f628de Merge "Determine update status for gauge metrics" 2020-10-09 03:22:44 +00:00
Jonathan Nguyen
6b4e91ec75 Add enum to BinaryPushStateChanged
Test: m -j
Change-Id: I878561aa3d3a0993e0da052189956a7ee532e192
2020-10-08 18:54:10 -07:00
Michele Berionne
90efbffdaf Add metrics for airplane mode and modem restart
Bug: 168242864
Test: Manual testing
Change-Id: Icc2d7953a9727e8f881179f004ba1f5b9fb8a25c
2020-10-08 20:59:01 +00:00
Michele Berionne
4942c04ae2 Merge "Add support for new outgoing SMS metrics" 2020-10-08 16:03:07 +00:00
Riddle Hsu
ec2e3ee704 Add ART optimization dimension to reportFullyDrawn
Bug: 170310046
Test: adb shell cmd stats print-logs
      adb logcat | grep statsd | grep "(50)"
Change-Id: I1d33ff4639c85d2b1f57f2fef72d883c3eed7f00
2020-10-08 20:09:45 +08:00
TreeHugger Robot
672dbc997c Merge "Fix out of bound error of IncidentService" into rvc-qpr-dev am: f1d26a395f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12560657

Change-Id: I235a1d3fb89567116484bc9383830d390862fb1a
2020-10-08 05:36:35 +00:00
TreeHugger Robot
f1d26a395f Merge "Fix out of bound error of IncidentService" into rvc-qpr-dev 2020-10-08 05:12:35 +00:00
Maryam Karimzadehgan
601b39f94b Add package_name to log for debugging the back gesture model.
Test: manual.
Bug: 150170384
Change-Id: I94efa3ec6af62b485c45f9bf17861722b73ecca3
2020-10-07 16:05:15 +00:00
Tej Singh
ed5a385af2 Determine update status for gauge metrics
Test: statsd_test
Bug: 162323123
Change-Id: I75e2858853719078542d4c80996c766bf5e65e67
2020-10-06 13:20:17 -07:00
TreeHugger Robot
cbccd43ca9 Merge "Perform partial update for count metric" 2020-10-06 00:06:04 +00:00
Tej Singh
ef6cd7f5a3 Perform partial update for count metric
Partial update for count metric.
Added a test for updating multiple metric types

Test: m statsd
Bug: 162322532
Change-Id: Iac1880d8c296334cacd1d5ab9545412efa5ccd4d
2020-10-05 15:10:07 -07:00
Riddle Hsu
613ba2d25e Support latency metrics for recents gesture
Accpet the event time from RecentsAnimation#startRecentsActivity.
Also remove unused method of recents animation in activity manager.

Bug: 169221287
Test: Enable statsd log: "adb shell cmd stats print-logs"
      Touch gesture navigation bar.
      adb logcat | grep statsd | grep "(48)"
      The line may contain 0x100000->4[I] 0x110000->20[I]
      that means 4=by recents and 20=latency 20ms.

Change-Id: Ia188a6a3b0dab9edaa0052df3b18508f8cc895d3
2020-10-05 15:56:01 +08:00
TreeHugger Robot
b8f0790117 Merge "Fix import order in atoms.proto" 2020-10-01 09:30:11 +00:00
Michele Berionne
b6a6c2ead5 Add support for new outgoing SMS metrics
Bug: 160807699
Test: manual testing
Change-Id: I35add3f8ae0b875ac223c1e99a1b44df0b6cf5dc
2020-10-01 04:14:53 +00:00
Yan Han
29faf2af33 Fix import order in atoms.proto
The offending line was added in https://googleplex-android-review.git.corp.google.com/c/platform/frameworks/base/+/12559476/

Bug: 159796477

Test: make
Change-Id: Ie067a097aaccb783ddf24d800ef320d7cc293669
2020-09-30 15:46:55 +00:00
Jeffrey Huang
b4f780bd9d Merge "Increase event queue limit to 4000" 2020-09-30 00:51:50 +00:00
Maryam Karimzadehgan
f3d2859303 Add log entries for the results for the ML model for
the back gesture.

Test: manual
Bug: 150170384
Change-Id: Ic08bdea27fea085bcbb425dbac6682a88d29aa8a
2020-09-29 14:47:43 -07:00
Jeffrey Huang
29edf77b15 Increase event queue limit to 4000
Bug: 169089731
Test: m -j
Change-Id: I9fb8707a5eb190b5749af84e3eb65567b87439bc
2020-09-29 12:48:19 -07:00
Michele Berionne
a8767341c0 Add support for new SMS metrics
Bug: 160807699
Test: manual testing
Change-Id: I2ad81f2728d705912247a0410ca4efce2fd5d3ef
2020-09-29 03:11:57 +00:00