Commit Graph

1265 Commits

Author SHA1 Message Date
Chris Wren
9316569062 pulled atom for Do Not Disturb configuration
Bug: 154254547
Test: atest ZenModeHelperTest ZenModeConfigTest ZenPoicyTest
Change-Id: Ibfcf0f8034b049b1ec790d243e8cb06d71224063
2020-06-09 20:17:10 -04:00
Jing Ji
d29532e699 Merge "Use the UID as the package name in procstat assoc proto dump" into rvc-dev 2020-06-05 23:16:36 +00:00
Jing Ji
1cd1f607e9 Use the UID as the package name in procstat assoc proto dump
And try to compress the process name if possible

Bug: 155980964
Test: Manual
Change-Id: I689724e7c271ba8d85608c3f484250e13c1a1c92
2020-06-04 15:44:26 -07:00
Ahmed ElArabawy
7ccfc086e4 Merge "Wifi: Add definitions for 6GHz" into rvc-dev 2020-06-03 21:09:46 +00:00
TreeHugger Robot
b03b7ea992 Merge "add fields to mediametrics codec performance" into rvc-dev 2020-06-03 03:07:29 +00:00
Ahmed ElArabawy
82e45e391b Wifi: Add definitions for 6GHz
This commit adds some definitions for 6GHz

Bug: 139354972
Test: atest android.net.wifi
Change-Id: I2e3378a65cbf96c4249cb3c123712b8b20798dbe
2020-06-01 09:15:05 -07:00
Sarah Chin
8300a64490 Merge "Add Setting for NR screen off indications" into rvc-dev 2020-05-26 21:56:42 +00:00
Robert Luo
82c49a95cd Merge "Add data collection and metrics for Media Output Switcher - 1/n" into rvc-dev 2020-05-21 14:56:53 +00:00
Goven Liu
b74db23313 Revert "[Wi-Fi] Add proto fields for Openroaming network."
This reverts commit d64e9452e4.

Reason for revert:
Those two metrics are added for Openroaming service, but they can not be used finally, so remove them.

Bug: 146669261
Test: No, just remove proto fields.
Change-Id: I601927c443b13a5d2d52e60ad4c910204156a102
2020-05-21 05:51:09 +00:00
Robert Luo
2f52f04fdd Add data collection and metrics for Media Output Switcher - 1/n
Fixes: 147792668
Test: ./out/host/linux-x86/bin/statsd_testdrive Atom_ID
Change-Id: Ia2cff1d9150811e60a9d04025d090c28eec6980c
2020-05-20 22:01:17 +08:00
Anmol Gupta
3a5b38756b Add proto2 files for client-side IME classes
This CL adds proto2 files which declare the structure of IME related
client states dumps. These files are compiled into individual classes
which contain a fieldId for every field to be saved in the
proto dump file.

Bug: 154348613
Test: make and flash to see compiled classes
Change-Id: Ie11fae6be4abeaf00871c382fda43b033c321721
2020-05-15 17:27:31 -07:00
Sarah Chin
6c28373913 Add Setting for NR screen off indications
Test: build
Bug: 154241884
Change-Id: Ifa485230f6d27eaa7a665a396e3eac33e00feadb
2020-05-14 15:45:16 -07:00
Zhen Sun
fcaca1bc15 Update TvSettingsUIInteracted atom
This CL removes the string field from the TvSettingsUIInteracted atom to
eliminate the risk of logging sensitive information by accident. This
change should be safe as no such log has been uploaded to Google server
yet.

Besides the change to the atom, this CL also made some corresponding
change to the enum file so fill in the information that was collected
using a string.
(This CL is a mirror of cl/310419842 to Android repo.)

Metrics council review bug: 151768952
Bug: 150979527
Test: the Android tree still builds normally

Change-Id: I8a9d8c95ec06eaa2cbe097efe652e18d0e7baeac
2020-05-14 00:21:21 +00:00
Ray Essick
e469bfa023 add fields to mediametrics codec performance
record codec lifetime
record (video) codec bitrate/bitrate_mode information

Bug: 139143194
Test: instagram record/playback
Change-Id: I3a36fb8a26a17bd7cbabe83a27304787ddb845db
2020-05-10 21:04:19 -07:00
Varun Shah
7ce78c23df Persist Locus Id Event to UsageStatsProto.
Currently, we are only using UsageStatsProto for backup and restore
purposes but to ensure it is in sync with UsageStatsProtoV2, adding the
recently added LOCUS_ID event. This enables us to easily fall back to
the earlier proto version if there are issues with V2. This also allows
us to backup all events data if we decide to do that in the future
before updating the B&R restore logic to use V2.

Bug: 155935953
Test: atest UsageStatsDatabaseTest
Change-Id: I792f20a0b44d13f1ed17c4dbebe5555044afa165
2020-05-07 21:34:09 -07:00
Marco Ballesio
ce9b47859d Merge changes from topic "developer option for app freezer" into rvc-dev
* changes:
  Resources and strings for freezer settings
  Settings option to enable/disable the app freezer
  ActivityManager API to check availability of app freezer
2020-05-06 16:35:44 +00:00
Marco Ballesio
74f0159425 Settings option to enable/disable the app freezer
The new setting option allows for a local configuration to override the
Device Config flag. Device Config and experiments will be honored by
default.

Bug: 155465196
Change-Id: I978a7b6bd75d9daab3fafed58b7f3c6417e0adab
Test: the option is correctly read and written by the companion CLs
2020-05-05 15:22:56 -07:00
Jing Ji
060d68630d Support to pull aggregated procstats associations
Bug: 145203981
Test: b/152397079#comment12
Test: atest CtsStatsdHostTestCases
Change-Id: If5b9723a41a9d2eefc2cb132b3a3bf16f57872e9
2020-05-04 14:33:06 -07:00
Kelvin Kwan
26e2c92945 Merge "Add metrics for DocsUI events" into rvc-dev 2020-04-30 08:26:28 +00:00
govenliu
d64e9452e4 [Wi-Fi] Add proto fields for Openroaming network.
Add two new proto fields for Openroaming network use.

In settings -> Network and Internet -> Wi-Fi, user may click on an Openroaming Wi-Fi AP for Wi-Fi service, so need to add two metrics to record this behavior:
1. OPENROAMING_TAP: records when user tap on the Openroaming Wi-Fi.
2. OPENROAMING_TAP_ON_WIFI_CONNECTION: records when user alreay connected to any wi-Fi network but still tap on the Openroaming Wi-Fi to change to Openroaming.

Bug: 146669261
Test: No, just add proto fields.
Change-Id: If203761052646e3a9df6e9a76fd5268c3db965fd
2020-04-29 11:11:15 +08:00
Kelvin Kwan
8e986e7c2c Add metrics for DocsUI events
Bug: 152609549
Test: manual
Change-Id: If62eed6b9e3bbe9e40e6793c81041a30986bb8db
2020-04-27 11:13:51 +01:00
Jing Ji
b344e0ac95 Merge "Fix test failure in testProcessStateByPulling" into rvc-dev 2020-04-24 23:05:08 +00:00
Jing Ji
468e6c3909 Fix test failure in testProcessStateByPulling
Added a new flag "--statsd" to dumpsys procstats, it'll dump
the identical protobuf data as the one being sent to statsd;
these data is aggregated/reduced.  The tradtional "--proto"
is still supported in case the full data is needed.

Align the ProcStats's proto message definition with the statsd.

Fixed various other issues with ProcStats's dumping.

Bug: 148542701
Test: atest ProcStatsValidationTests
Change-Id: I5a22603bfbc97bfac93179289df839710364677d
2020-04-24 05:01:22 -07:00
TreeHugger Robot
249139f58f Merge "Add delay between quota check alarms." into rvc-dev 2020-04-24 01:21:53 +00:00
Fabian Kozynski
eab14fca5d Merge "[DO NOT MERGE] Add setting for power menu in lock screen privacy" into rvc-dev 2020-04-23 19:38:05 +00:00
Frank Li
c47d9622bb Merge "Correct the 1st item name of enum LinuxErrno as SYS_NO_ERROR in DNS Resolver atom." into rvc-dev 2020-04-23 11:05:16 +00:00
TreeHugger Robot
ec2c313a22 Merge "Add two enums for TvSettings App settings" into rvc-dev 2020-04-23 07:54:02 +00:00
Jason Hsu
30792c75fb Merge "Add atoms for accessibility shortcut" into rvc-dev 2020-04-23 03:30:52 +00:00
Frank Li
08c2d67bf5 Correct the 1st item name of enum LinuxErrno as SYS_NO_ERROR in DNS Resolver atom.
Bug: 150194702
Test: Manual test with statsd_testdrive
Merged-In: If2abc419a92f1c53654fe7b2b11a15928bf7ba21
Change-Id: I42755a6bcc8bf86469f4d5a4608b32bedd9c89b5
(cherry picked from commit da3e1f17cd)
2020-04-23 02:15:16 +00:00
Zhen Sun
aef6dfcf4b Add two enums for TvSettings App settings
Bug: 150979527
Test: Manual
Change-Id: I09d7ce634d6016e943aac0a0749648d6382d7680
(cherry picked from commit 3f6eab2fa4a9ba26f5b0a208fe6659c2ab24393d)
2020-04-22 23:26:35 +00:00
jasonwshsu
81173e3211 Add atoms for accessibility shortcut
* AccessibilityShortcutReported: Logs when accessibility shortcut clicked.
* AccessibilityServiceReported: Logs when accessibility service status changed.

Metrics council review bug: 153342192
Bug: 151285965
Test: build pass

Change-Id: Idf853c5dab190404380c3564f40bfb7677fe1473
2020-04-22 22:44:05 +08:00
Fabian Kozynski
2095c43a25 [DO NOT MERGE] Add setting for power menu in lock screen privacy
Adds a new Setting for the user to show or hide power menu content
(cards & passes, controls) when the device is locked (secured). A value
of 0 (default) means hide content and a value of 1 means show.

The setting updates from the notification in the following way:
* If Secure.LOCK_SCREEN_SHOW_NOTIFICATIONS is 1 AND
Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS is 1, the new setting is
set to 1 (the user has allowed sensitive content).
* If at least one of those settings is 0, the new setting is set to 0
(the user has not allowed sensitive content).
* If the settings are not set, the new setting is not set.

Test: build
Test: manual with adb
Bug: 152212779
Change-Id: If6d9436f633bc45330956372ea7f8a40ed22ed52
2020-04-22 13:16:15 +00:00
Kweku Adams
7e4fc4dcf0 Add delay between quota check alarms.
Since we don't need to mark existing jobs as in quota immediately when
the quota status changes, adding a min delay between quota check alarms
will prevent the system from possibly spinning on checking quotas.

Bug: 154444435
Test: atest CtsJobSchedulerTestCases
Test: atest QuotaControllerTest
Change-Id: I5b5efe9c973090c0f413812afc7479f012768c44
2020-04-21 13:46:08 -07:00
Peter_Liang
fe389c46fc Uniform the settings enum proto for accessibility tutorial.
Replace 'DIALOG_TOGGLE_SCREEN_ACCESSIBILITY_BUTTON' and 'DIALOG_TOGGLE_SCREEN_GESTURE_NAVIGATION' with DIALOG_ACCESSIBILITY_TUTORIAL.

Bug: 148989018
Test: manual test
Change-Id: I3892279b76a34bf0b4483fc786c88fbb878242f4
2020-04-20 15:59:05 +08:00
TreeHugger Robot
f9a1e1cb78 Merge "Update privacy filter for incident report protos." into rvc-dev 2020-04-17 15:10:21 +00:00
Richard Gaywood
9efa35f8cb Add aggregation method to dumputils
Will be used for aggregating process states together for stats tracking
and output.

Change-Id: I5833a53f2e5e788d0475e10129658d12d9cf2b88
Bug: 148542701
Merged-In: I5833a53f2e5e788d0475e10129658d12d9cf2b88
Test: build, flash, unit tests (newly added code is not invoked yet)
(cherry picked from commit b832e98879)
2020-04-16 06:18:04 +00:00
Evan Rosky
2556dbf3ed Merge "Clean-up displayed-bounds" into rvc-dev 2020-04-16 00:23:01 +00:00
Wenjie Zhou
27030cd14e Update privacy filter for incident report protos.
Bug: 153380903
Test: manual build
Change-Id: Iff1910d619983910c1e57e9ac335053415f6fa1a
2020-04-15 16:46:32 -07:00
Evan Rosky
6ecd67c0fa Clean-up displayed-bounds
Nothing uses this anymore and it is always empty, so clean-up
the code around it so we don't continue to complicate things
with other bounds.

Bug: 151862790
Test: builds/tests pass
Change-Id: Ib7b9247cc0b125ed019680342be7fc5ffb6245de
2020-04-15 14:05:00 -07:00
TreeHugger Robot
f812bccfbd Merge "Treat car mode as the user interacting with the device." into rvc-dev 2020-04-14 23:47:49 +00:00
Kweku Adams
128656b50e Treat car mode as the user interacting with the device.
Car mode may be activated without the user plugging the device into the
car. In this scenario, the user is "interacting" with the device via the
car and so JobScheduler should treat the device as in active use and not
activate JS idle jobs.

Bug: 147846851
Test: atest CtsJobSchedulerTestCases
Change-Id: Ied22ba86b79dac5c5d3db8e646fd5504a9e25645
2020-04-13 08:07:17 -07:00
Fabian Kozynski
a35a860c36 Merge "Added Settings intents" into rvc-dev 2020-04-09 17:58:44 +00:00
TreeHugger Robot
767e63f5f5 Merge "Add metric constants for cross profile settings page" into rvc-dev 2020-04-09 10:52:11 +00:00
Fabian Kozynski
b5fe4900ea Added Settings intents
And settings enums

Test: manual
Bug: 152212779

Change-Id: I6f3d145c482364c4796d69ba5d1c4bd3736094d7
2020-04-06 13:05:35 -04:00
Automerger Merge Worker
3fd2ea58f7 Define rcode=12~15 (UNASSIGNED) in rcode enum type
RCODE   Name
11      NS_R_MAX
12      NS_R_UNASSIGNED12
13      NS_R_UNASSIGNED13
14      NS_R_UNASSIGNED14
15      NS_R_UNASSIGNED15
16      NS_R_BADVERS

According the stats data of Dns Resolver module,
Some DNS Servers might return undefined code to devices.
Without the enum definition, that would be noise for our dashboard

Bug: 150194702
Test: Manual test with statsd_testdrive
Merged-In: I178164f37b70d0ce86dfb7e37e01b663abbf82f2
Change-Id: I2c2f3307487b85f360fe8733667595617e3716d0
(cherry picked from commit 4ec941aa07)
2020-04-06 12:06:06 +00:00
Frank Li
1e3dffd334 Add new NetworkType for WIFI+CELLULAR+VPN transport
Define NT_WIFI_CELLULAR_VPN in enum NetworkType.
=>Indicates this network uses a WIFI+CELLULAR+VPN transport.

Bug: 143732914
Test: Manual test with statsd_testdrive
Merged-In: I1d43633705b69bf0111386630b2eebf394cb9366
Change-Id: I4575b912db7457e0e0c1dea4d1af07389a4cf394
(cherry picked from commit b1997b78ce)
2020-04-06 11:47:40 +00:00
Automerger Merge Worker
1c8b991615 ADD new enum NetworkType to identify multiple transport type
Add new NetworkType for multiple transport
1. CELLULAR + VPN = NT_CELLULAR_VPN
2. WIFI + VPN = NT_WIFI_VPN
3. BLUETOOTH + VPN = NT_BLUETOOTH_VPN
4. Ethernet + VPN = NT_ETHERNET_VPN

Bug: 143732914
Test: atest
Merged-In: I0d106ca1631265b872386b59d542b206614f38ef
Change-Id: I85d7aa69bc4a1f4a6de3f68cec1fcc3b8848e5c5
(cherry picked from commit 467962e928)
2020-04-06 10:47:25 +00:00
kholoud mohamed
b56f02da8d Add metric constants for cross profile settings page
Bug: 149774826
Test: N/A
Change-Id: Icb0642d531184ba04a4046b7fe96a54f94d60eb8
2020-04-03 11:21:14 +00:00
hughchen
93cbb37d19 Add FUELGAUGE_ADVANCED_BATTERY_OPTION
Bug: 149669413
Test: build pass
Change-Id: Id65bba9a8b96c697ad56a01472648f132efa0e58
Merged-In: Id65bba9a8b96c697ad56a01472648f132efa0e58
2020-04-02 10:41:29 +08:00
Zhen Sun
e31edc21a1 Merge "Add atom of TvSettings and its enum" into rvc-dev 2020-03-31 23:24:21 +00:00