Commit Graph

164 Commits

Author SHA1 Message Date
Neil Fuller
b2973f8213 Add MetricsTimeZoneSuggestion for metrics use
This tracks an internal change.

Bug: 172934905
Test: build / boot / treehugger
Change-Id: I94ab695250cc7d0db294628f9578f3ffa77b998d
2021-03-11 14:34:33 +00:00
Neil Fuller
c3c171cbe5 OWNERS change / new .proto file
Splitting out GeolocationTimeZoneSuggestionProto to
time_zone_detector.proto.

Test: build only
Bug: 172934905
Change-Id: Ib7798955ae7ab3a486aa33d2bed85f4bbd8511e1
2021-03-11 14:28:59 +00:00
Neil Fuller
1f5202afe0 Addition of OWNERS / initial .proto file
Addition of OWNERS entry and the file it pertains to.

Test: build only
Bug: 172934905
Change-Id: I986957f7ead522fa8e13fbf7cbd514691d476858
2021-01-07 15:52:12 +00:00
Jeffrey Huang
17df403e9e Move enums file to new directory
Bug: 167962588
Test: m -j
Change-Id: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216
Merged-In: I29b21fdc98c6c795902d23f21ef3dfd11d3f3216
2020-11-25 16:14:08 -08:00
sqian
74207ec1fb Introduce new App Ops permission for 3rd-party InCallService
This permission is intended to be used internally as a system App Ops permission, and let CompanionDeviceManager or RoleManager to grant with
users. If it is granted by user, the corresponding companion app has the ability to query the details of the ongoing calls, and also manage its life cycle.

Bug: 169595473
Test: atest ThirdPartyInCallServiceAppOpsPermissionTest
Change-Id: Ie0f790aab2edcd52cfdbded2630347b9f8dd4d49
Merged-In: Ie0f790aab2edcd52cfdbded2630347b9f8dd4d49
(cherry picked from commit 334ab546e4)
2020-11-09 21:00:55 +00:00
Shuo Qian
e3edd0a3c3 Try to add AppOps Keys into Proto to unblock my project
My code https://googleplex-android-review.git.corp.google.com/q/topic:%223rd-incall%22+(status:open%20OR%20status:merged),
 which is adding a proto enum for a new AppOps, is causing presubmit
 failure (https://android-build.googleplex.com/builds/tests/view?invocationId=I62800006309385464&redirect=http%3A%2F%2Fsponge2%2F8a607de5-e0c3-4349-b3c4-0ee397685e18&testResultId=TR55614315792892488).
I cannot check in my code because of this failure.

To solve this failure, one of the next step is:
adding AppOps 100-102 there

Test: Treehugger
Bug: 169595473
Change-Id: Ibd0f85575c9bc3d7aca9d5b011f1e5f0cbf960c1
Merged-In: Ibd0f85575c9bc3d7aca9d5b011f1e5f0cbf960c1
(cherry picked from commit 503ee6ad3b)
2020-10-29 22:15:08 +00:00
Beth Thibodeau
c1bc307bce [DO NOT MERGE] Support toggling resumption in Settings
Moved setting so we can use Tunable:
adb shell settings put secure qs_media_resumption 1

If setting is changed, removes all existing resume players

Bug: 154039093
Test: manual
Test: atest SettingsProviderTest
Test: atest com.android.systemui.media

Change-Id: Iad056fbad4520cfe762d9e9f5ed62d38ea1117b1
2020-06-18 23:58:11 +00:00
Nikita Ioffe
ac095e5a1d Start OP_NO_ISOLATED_STORAGE on am instrument --no-isolated-storage
This provides a signal for MediaProvider to whitelist access for full
external storage access.

Here is an overview of how the flow looks like:

1. When app is started within instrumentation with --no-isolated-storage
flag, ActivityManagerService will grant OP_NO_ISOLATED_STORAGE to that
package.
2. MediaProvider will note the OP_NO_ISOLATED_STORAGE app op as fallback
in case app doesn't have MANAGE_EXTERNAL_STORAGE permissions.
3. When instrumentation finishes, ActivityManagerService will change
mode of OP_NO_ISOLATED_STORAGE app op to MODE_ERRORED.

Test: atest ExternalStorageHostTest
Bug: 149894531
Change-Id: I51cd87e5e887b887fd8ac7a1a7ffff208266ffa8
2020-06-11 19:51:54 +01: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
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
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
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
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
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
Fabian Kozynski
b5fe4900ea Added Settings intents
And settings enums

Test: manual
Bug: 152212779

Change-Id: I6f3d145c482364c4796d69ba5d1c4bd3736094d7
2020-04-06 13:05:35 -04: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
0bec8d43a1 Add atom of TvSettings and its enum
The enums correspond to pages and entries of TvSettings. Some enums that
are related to unreleased features are not included in this CL but will
be added when this CL is cherrypicked into upstream non-public
TV-specific branches.

The atom definition is reviewed and approved by Metrics council.

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

Change-Id: I4258312c19aa4f2f0cd178bc5b5dc53e52c6c737
Merged-In: I4258312c19aa4f2f0cd178bc5b5dc53e52c6c737
2020-03-30 23:39:19 +00:00
Ricardo Correa
cc25d392fe Merge "Revert "Include an AppOp to allow dialer role app to record and play audio into calls"" into rvc-dev 2020-03-26 22:23:54 +00:00
Ricardo Correa
acdc827501 Revert "Include an AppOp to allow dialer role app to record and play audio into calls"
This reverts commit e96b5668b3.

Reason for revert: Feature has been postponed
Bug: 151761909

Change-Id: I7db5fb79d52b3da33b84bb07d1f612be760299c2
2020-03-26 11:57:01 -07:00
Beverly
61664e969b Additional settings page for apps bypassing dnd
Test: manual
Bug: 151845457
Change-Id: I83247f09748fca41498065e670a142a6a8b43377
2020-03-24 14:53:52 -04:00
TreeHugger Robot
bb34bb5d37 Merge "Add People DND Settings pages" into rvc-dev 2020-03-24 05:56:27 +00:00
Beverly
6287021ce9 Add People DND Settings pages
Test: manual
Bug: 151845457
Change-Id: I2937a44c5ea0517fd71e0c8d6317aff48aeea769
2020-03-20 11:39:49 -04:00
Lee Chou
7427d1ef16 Merge "Add action for logging confirm esim deletion feature" into rvc-dev 2020-03-19 07:44:19 +00:00
Jing Ji
56006fd5bc Add support to provide app its own ANR stack trace
...If it was killed due to ANR.

Also add support to set a cookie which could be
included into the app kill reason.

Bug: 148413462
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I79d9955d8f5c5f42074f0e1567119b41fc486d50
2020-03-18 10:30:43 -07:00
Lee Chou
9771ec819a Add action for logging confirm esim deletion feature
Bug: 138861284
Test: make SettingsGoogle and manual
Change-Id: I5607f7f5c821ed9cde97650eebd50ca5e1e1fd37
2020-03-18 22:29:55 +08:00
Stanislav Zholnin
48811ee600 Add logging operation ids.
Add operation ids which are used only for logging. They will
allow to reduce bandwidth required for logging. Mapping between
operation string ids (OPSTR_, public API) and Logging ids
is enforced by statsd CTS test.

Bug:143519689
Test: android.cts.statsd.atom.UidAtomTests#testAppOps
Test: android.cts.statsd.atom.UidAtomTests#testForegroundServiceAccessAppOp
Exempt-From-Owner-Approval: discussed  with moltmann@ in chat.

Change-Id: I2f85d6889e946219557d26b28334d4bacde06b12
Merged-In: I2f85d6889e946219557d26b28334d4bacde06b12
2020-03-15 14:29:32 +00:00
Zhen Zhang
682043f6cc Add action enums for changing Wi-Fi hotspot config
Added two action enums for logging in R:
- change wifi hotspot name
- change wifi hotspot password

Bug: 151113705
Test: Does not break build
Change-Id: I11485fae460f4db359293c53d7c17c3e2711e226
2020-03-11 17:46:00 +00:00
Jing Ji
d3aff3aef1 Update the categories of app kill reaons
Prepare for the metrics, added additional subreasons.

Bug: 148087795
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: Id4218f9af44c43824a9f530d48bbf8cd88c32a06
Merged-In: Id4218f9af44c43824a9f530d48bbf8cd88c32a06
2020-02-27 21:32:46 -08:00
Kweku Adams
338ce0b7ca Mark RESTRICTED bucket stop reasons.
Try to mark when a job is being stopped because it's in the RESTRICTED
bucket. Even though the job's requested constraints may become
unsatisfied around the same time as dynamic constraints, this just
assumes that any unsatisfied dynamic constraints are the reason the job
is being stopped.

Bug: 149873527
Test: Android builds
Change-Id: I7ad8b9930805e02e0dc8ff7b050b4f0590ebe831
2020-02-25 14:50:03 -08:00
Joshua Duong
1d45ee6491 [adbwifi] Add settings event for opening adb device details.
Bug: 111434128
Bug: 63719597

Test: make
Change-Id: I8927e3f106b9cdaebe95ec56c675704baa1d1542
2020-02-18 07:12:55 -08:00
timhypeng
f84aaea547 Add media output group panel index
Bug: 146813761
Test: build pass
Change-Id: I01271053b2abb19b700ab450111eb27cf0147ada
2020-02-18 10:28:33 +08:00
Julia Reynolds
b4b35202f4 Add enum for conversation screen
Test: make
Bug: 149583455
Change-Id: I14ae457bc4d301db48b48c86ac62f64ecd0c752f
2020-02-17 19:34:01 -05:00
Joshua Duong
5e931c7e2e [adbwifi] Add Settings metrics for adb wireless.
Bug: 111434128, 119492574

Test: make
Change-Id: Ib18cefda42fd778f5868ba63007b0b18e83e2c4d
2020-02-09 21:59:10 -08:00
Julia Reynolds
d05b0a7f66 Merge "Add support for Conversation settings" 2020-02-08 11:48:17 +00:00
Robert Luo
84e645c3a8 Merge "Add new actions for Battery feature data collection" 2020-02-08 01:59:45 +00:00
Jing Ji
c0324f3a1f Merge "Update ApplicationExitInfo per API Review" 2020-02-07 21:22:58 +00:00
Julia Reynolds
882f206956 Add support for Conversation settings
Test: atest
Bug: 137397357
Change-Id: I68df21cc94d4964b417cad7aaad05526e1b4f967
2020-02-07 09:06:12 -05:00
robertluo
741df5b7be Add new actions for Battery feature data collection
Bug: 149071565
Test: manual
Change-Id: I33f01c5981a24aa56b45864a846f5360e90b593b
2020-02-07 15:56:01 +08:00
Jing Ji
a590e8e72b Update ApplicationExitInfo per API Review
Bug: 148980719
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I2982105f200fbe65c6b6bedfc23ed7b158298745
2020-02-06 07:54:18 -08:00
kholoud mohamed
ff8a517140 Add customized cross profiles settings header
BUG: 136249261
BUG: 140728653
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesDetailsTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesPreferenceControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=InteractAcrossProfilesSettingsTest
Change-Id: I06196859fa0f42f5d380c22e385b645f6bb6b03f
2020-02-06 12:28:19 +00:00
robertluo
3f78b045a1 Merge Tap & Pay settings entries with NFC
Bug: 142231537
Test: make -j42 RunSettingsRoboTests

Change-Id: I45987f538f444f898d50379d45546b04086d44d1
2020-02-05 11:55:34 +08:00
Yiwen Chen
3861acc801 Add an enum for vibrate for calls settings.
Test: built and tested on device.
Change-Id: I1fa42eab067d19a38d69b8492f341a3ddbcc5de5
2020-01-27 11:25:32 -08:00
Kweku Adams
3e26863dac Merge "Place additional constraints on restricted jobs." 2020-01-22 21:38:34 +00:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
TreeHugger Robot
04ce5313b4 Merge "Add a page id for open supported links" 2020-01-20 10:06:30 +00:00
Jing Ji
8055a3a446 Add support to get historical app process exit reason
Apps can call ActivityManager.getHistoricalProcessExitInfos() to
get the historical process exit reason now.

Also add the below command to support dumping of the information
$ adb shell dumpsys activity exit-info [package name]

Bug: 136036078
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I634f247e42a7e8e4535eedd76cf84089abdf1129
2020-01-17 20:47:53 -08:00
Kweku Adams
ae9d6beba5 Place additional constraints on restricted jobs.
Update JobScheduler to place additional constraints on jobs in the
RESTRICTED bucket:
These jobs can only run when the device is idle, charging, battery is
not low, and on an unmetered network (for connectivity jobs). They do
get one parole session per day where they don't need these additional
constraints met.

Bug: 145551233
Test: atest CtsJobSchedulerTestCases
Change-Id: Ic96841141ed7800295b0b1a54c697a30afc3cd70
2020-01-16 18:58:32 -08:00
Sunny Shao
0cc67e3836 Add a page id for open supported links
Fixes: 143185713
Test: compilation

Change-Id: I8270b01810e20a8035e0f039f2d6df599957c8fb
2020-01-15 18:52:37 +08:00