Commit Graph

1231 Commits

Author SHA1 Message Date
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
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
Frank Li
9528e70f12 Add one metrics field to record the cause of DNS query internal error
The internal Error of DNS query have more than 100 reasons.
Record each internal error reason for us to do further analysis.

Bug: 150335075
Test: Manual test with statsd_testdrive
Merged-In: I2214089ed7b350c2f4d9e86131c0568164192875
Change-Id: I861a9e137e2d0938191e36f1b2d85fe5d42a0520
(cherry picked from commit fc7f390cbf)
2020-03-30 09:41:06 +00:00
Fabian Kozynski
1f8d91de8c Merge "Add Secure Setting for Controls" into rvc-dev 2020-03-27 17:16:48 +00:00
Rhed Jao
dba485be4c Merge "A new setting key to hold targets of the a11y button" into rvc-dev 2020-03-27 06:37:05 +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
Fabian Kozynski
bcaf0efea3 Add Secure Setting for Controls
Also:
* added to backed up settings.
* fixed imports

Test: build
Test: change setting through adb.
Bug: 152212779
Change-Id: Ia6cc7e9fb7f93842cfbf248f3e88c1d964656409
2020-03-25 09:30:13 -04:00
Rhed Jao
10e4b5f0b0 A new setting key to hold targets of the a11y button
Roll back the changes of ACCESSIBILITY_BUTTON_TARGET_COMPONENT to
support previous behavior of the a11y button. Also, create another
setting key to hold shortcut targets of the a11y button which is
assigned by the user from the settings app.

Bug: 152263232
Test: atest SettingsProviderTest
Change-Id: I7a70e8c8495cefe6632efddbb322a323aa1168c7
Merged-in: I7a70e8c8495cefe6632efddbb322a323aa1168c7
2020-03-25 04:10:08 +00: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
Evgenii Stepanov
d43d109af8 Convert enableGwpAsan to @IntDef and rename to gwpAsanMode.
Following API feedback, make
  ApplicationInfo.enableGwpAsan
  ProcessInfo.enableGwpAsan
a @IntDef integers instead of @Nullable booleans.

Rename both, and the manifest attribute, to gwpAsanMode.
Turn the manifest attribute into an enum.
Fix manifest documentation to match the implementation.

Bug: 151262688
Test: CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: Ie33954700e1526f9764a751e474a3f930a65e957
Change-Id: Ie33954700e1526f9764a751e474a3f930a65e957
(cherry picked from commit 7487f249dd)
2020-03-19 16:35:41 +00: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
TreeHugger Robot
d507d09cb5 Merge "Allow perfetto traces to collected from user builds." into rvc-dev 2020-03-18 00:08:38 +00:00
Kweku Adams
9a1b226d53 Remove DurationQuotaTrackerProto message.
DurationQuotaTracker isn't checked in right now, so there's no need to
have the proto definition saved. We can add the proto back when we're
checking in the actual tracker.

Bug: 151625245
Test: Android builds
Change-Id: Ic53aa65d8225634c31716d424b99b34e4fc55c76
(cherry picked from commit 15169feef8)
2020-03-17 19:47:46 +00:00
Wenjie Zhou
7754b4868c Allow perfetto traces to collected from user builds.
Bug: 150954280
Test: manual build
Change-Id: I37f3ba6539c4e21e32d40ec13bd8b815f6fb5c74
2020-03-17 19:28:02 +00:00
TreeHugger Robot
777531511f Merge "Rename get/setProtectedPackages methods" into rvc-dev 2020-03-15 23:05:42 +00: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
Evgenii Stepanov
91482ccc8a Merge "Add "enableGwpAsan" tag to android manifest." into rvc-dev 2020-03-12 21:13:25 +00:00
Zhen Zhang
4d55131769 Merge "Add action enums for changing Wi-Fi hotspot config" into rvc-dev 2020-03-12 19:47:41 +00:00
Evgenii Stepanov
102d3d8669 Add "enableGwpAsan" tag to android manifest.
This tag can be used to enable and disable gwp-asan on applications and
their components. The default setting is disabled, except for the system
applications which are enabled with a small probability (approx. 1% of
processes).

Enabling gwp-asan can be used to crowd test an app.

This change includes a compat feature that overrides the default value
of enableGwpAsan for an app.

Bug: 149991821
Test: atest CtsGwpAsanTestCases
Exempt-From-Owner-Approval: cherrypick
Merged-In: I5eb647c517e5487b1d1eed6b9a43242490f19289
Change-Id: I5b4db666f38af846927f88702cc690f0916cadb1
2020-03-12 17:19:23 +00:00
Chi Zhang
bb9ed92165 Telephony statsd atoms.
Test: build
Bug: 146066107
Bug: 141631489
Bug: 122371089
Bug: 149880090
Bug: 127666858

Change-Id: I124cf2da59ed4c5e92406081aac0df0f347ace74
2020-03-11 15:10:36 -07:00
Srinivas Paladugu
8faac83a3f Rename get/setProtectedPackages methods
Based on API council feedback that current method names are ambiguous,
renaming them with
setUserControlDisabledPackages/getUserControlDisabledPackages.

Bug: 150865604
Test: atest DevicePolicyManagerTest
atest com.android.cts.devicepolicy.DeviceOwnerTest#testSetUserControlDisabledPackages

Change-Id: I74f07ae5f0e9b425a6f2e4aa52d2cb8ac42da68e
2020-03-11 11:21:49 -07: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
Vishnu Nair
ae062e9268 Merge "Support DisplayAreas in protos" into rvc-dev 2020-03-10 14:16:47 +00:00
TreeHugger Robot
bd8e715c01 Merge "Add localBounds in RemoteAnimationTarget" into rvc-dev 2020-03-10 03:14:08 +00:00
Vishnu Nair
dddc9f5051 Support DisplayAreas in protos
Dump WindowContainers and their children without hard coding the hierarchy.

Bug: 149672519
Test: open wm trace in winscope

Merged-In: If5a7bd88728054e50aaacee138d9ae78513e94fe
Change-Id: If5a7bd88728054e50aaacee138d9ae78513e94fe
2020-03-09 15:02:32 -07:00
lumark
2ec1912dfb Add localBounds in RemoteAnimationTarget
With Hierarchical animation, the animation layer will no longer
be a fixed fullscreen layer but animate on the parent container's surface.

In order to run a remote animation, the animation controller needs to
know bounds of the target relative to both its parent and the screen.

The CL includes:
1) RemoteAnimationTarget changes:
    - Add localBounds field for indicating the target bounds which
    the coodiates relatives to its parent.
    - Add screenScreenBounds field to replace souceContainerBounds
      to reflect the target bounds relatives to the screen.
    - Mark position & sourceContainerBounds as deprecated.
2) Modified related places to set correct localBounds information.

Test: build / run, make sure installing the old version of launcher on
      the this new platform change still compatible without crash.
Test: manual as follow steps:
  - Launching app from launcher to split-screen secondary stack
  - Swipe up to overview screen and drag TaskView to see if the TaskView
    surface is shfted, expected is not.
Bug: 148780840
Change-Id: Id9dbf6de193ab73fe94bc24ef6a27edc93380a14
2020-03-09 22:24:17 +08:00
weichinweng
e547073e75 Fix bluetooth can't turn off during network reset (2/3)
Remove disable Bluetooth action from AdapterService and move to
BluetoothManagerService.
Add factory reset reason into Bluetooth enable/disable reason list.

Bug: 110181479
Test: manual
Change-Id: I4bff3c3bb75fbb0d1e13c459c0d9d3fd3b8b3195
2020-03-09 05:09:08 +00:00
Sudheer Shanka
cd629dd39a Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev 2020-03-06 22:39:06 +00:00
Rhed Jao
a4bb7e44da Support long press accessibility button (1/n)
Adds a new setting key to support long press accessibility
button.

Bug: 150587818
Test: atest SettingsProviderTest
Change-Id: I1ca1e01867a937690f7a5e5b27d595cd0a83e395
2020-03-06 06:18:51 +00:00
Jing Ji
7712b3a92a Merge "Update the categories of app kill reaons" into rvc-dev 2020-03-05 21:16:12 +00:00