Commit Graph

640958 Commits

Author SHA1 Message Date
TreeHugger Robot
4ed5061813 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 37ab4272b1 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14238445

Change-Id: I450744b078b8b2c5e105ad6df006ad02794023e4
2021-04-19 22:00:19 +00:00
Hall Liu
f4562b5cee Remove fixed grant of READ_PHONE_STATE and cleanup
No longer grant READ_PHONE_STATE as a fixed permission to all apps
holding READ_PRIVILEGED_PHONE_STATE. Also clean up the previous grants
by un-fixing the permission if the app requests it in the manifest, and
removing it altogether if the app only requests READ_PRIV.

Bug: 183537857
Test: manual -- prepare two system apps, one with READ_PRIV and
READ_PHONE and one with only READ_PRIV, then go through the upgrade flow
with this CL.

Change-Id: Id1fac0f9f4391857f46c7109eadafd60420b279d
2021-04-19 15:00:01 -07:00
TreeHugger Robot
3d809ce233 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 8ecc839b1b -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14237953

Change-Id: I6f7342eb9020801851e1a4834d75a7fb7483813e
2021-04-19 21:59:59 +00:00
TreeHugger Robot
e1b86e81b5 Merge "Relax getCurrentLocation() age constraints" into sc-dev 2021-04-19 21:52:08 +00:00
Ying Xu
985c7eaf4d Revert "Ignore the WiFi network callbacks if they are not default"
This reverts commit 302f6cf17f.

Reason for revert:

As explained in https://buganizer.corp.google.com/issues/185431894#comment22, the WiFi network and the VPN over that WiFi network are considered different networks, which will cause the WiFi network update to be ignored by the SysUI

Bug: 185431894
Test: unit tests

Change-Id: I715960ba925be9cd469065c1220b879b4cca882b
2021-04-19 14:49:34 -07:00
TreeHugger Robot
217d718e45 Merge "Import translations. DO NOT MERGE ANYWHERE" into mainline-prod 2021-04-19 21:45:31 +00:00
TreeHugger Robot
37ab4272b1 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-19 21:34:59 +00:00
Lucas Dupin
469e1b4942 Merge "Make sparkle color and alpha customizable" into sc-dev 2021-04-19 21:32:28 +00:00
Lucas Dupin
9548384364 Make sparkle color and alpha customizable
This CL introduces a new attr: effectColor.
The attribute can be used on ripple tags to customize the color and
alpha of the ripple decoration.

It's also possible to change the effect color via code by invoking
RippleDrawable#setEffectColor.

Fixes: 185602477
Test: atest RippleDrawableTest
Change-Id: I9b50f330729a67ef4b529283a92c83c28387fa0b
2021-04-19 21:32:12 +00:00
TreeHugger Robot
8ecc839b1b Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-04-19 21:29:39 +00:00
Kevin Han
7e56f8dad4 Fix broken hibernation test
ag/14203210 made isAppHibernationEnabled use a cached value rather than
query device config every time. This happened to break a test that
relied on mocking the DeviceConfig value. We update the static value
directly to ensure the feature is enabled in the test.

Bug: 185730191
Test: atest PackageManagerServiceHibernationTests
Change-Id: Icf7d5bedba69cc5af7df2d38bf5088cb08b5cfb6
2021-04-19 14:26:11 -07:00
Amit Mahajan
23ac92cb39 Re-expose TrafficDescriptor.Builder for testing.
Based on API council feedback.

Test: atest TrafficDescriptorTest
Bug: 185782182
Change-Id: Idb467d37728b062fa29f6bd284bd3144522d701e
2021-04-19 21:24:10 +00:00
Tony Mak
b004404a72 Merge "Add some TestAPIs for replacing some @hide API usages in ExtServices's test" into sc-dev 2021-04-19 21:07:41 +00:00
Sarah Chin
740a91854e [automerger skipped] Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" am: 958f9efba5 am: 3c6d7d7dc6 -s ours
am skip reason: skip tag Change-Id Icb4e2c619dacaea9e74cedea31865ec1eb689dce with SHA-1 172f15e5e1 is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1663446

Change-Id: I7e0989454ef514ca787bfe4e1ce8908bc5e6a92f
2021-04-19 21:06:39 +00:00
Daniel Chapin
1aa87efd66 Merge "Revert "Add icon for "Extra dim" used in accessibility shortcut"" into sc-dev 2021-04-19 20:49:26 +00:00
Hall Liu
db950993f2 Add docs clarifying permissions of setSystemAppState
Fixes: 184568177
Test: NA, docs only
Change-Id: Ie5c9b8b4ba5ff4b5d206b7c64b3d29c0fc5bbffa
2021-04-19 13:48:09 -07:00
Roshan Pius
0662c37218 Shell: Allow usage of UwbManager ranging API
This permission is needed for uwb CTS ranging specific tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to range to uwb devices.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test the raning
UwbManager API which is protected by UWB_RANGING + UWB_PRIVILEGED.

Bug: 183747097
Test: Compiles
Change-Id: I23fc60a111fd7d868e3982d71ffa354ea9957bfb
2021-04-19 13:45:13 -07:00
Sarah Chin
3c6d7d7dc6 Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" am: 958f9efba5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1663446

Change-Id: I7bd37f0acb7f939b9fc0311ac0365be3e8587823
2021-04-19 20:43:48 +00:00
Bill Yi
a46d58ef05 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1c3194486f0969e00bb81ee3eef653f6d7c28341
2021-04-19 20:35:40 +00:00
Sarah Chin
958f9efba5 Merge "Update carrier privilege check in enforceSubscriptionPlanAccess" 2021-04-19 20:29:09 +00:00
Ying Xu
90b0777195 Revert "Hide the call strength icons from the statusbar"
This reverts commit 6edb46b4c0.

Reason for revert: 
https://buganizer.corp.google.com/issues/185802587

Change-Id: I9c59a83fa19233b3a444bf4e425f562aed949efc
2021-04-19 20:23:05 +00:00
Bill Yi
ecc931504f Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8e1ede0c279a8843854d791a4a80f69e22faf758
2021-04-19 20:20:34 +00:00
Amy Zhang
5c6694aa25 Merge "Fix TunerService/TunerClient implementation issues" into sc-dev 2021-04-19 20:18:30 +00:00
TreeHugger Robot
9ad39e2bf5 Merge "Set CDMA roaming/subscription mode throws ISE if not CDMA" into sc-dev 2021-04-19 20:17:34 +00:00
Bill Yi
a005177c00 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I9bf10f49eed441b8a19a4108eff291de128b11ac
2021-04-19 20:17:01 +00:00
Benedict Wong
78f9acd7e7 Switch to using NetworkScore instead of legacy integer
This change switches the VcnNetworkAgent from using the legacy score
integer, and switches to using the new NetworkScore, using the legacy
integer as a internal representation.

Bug: 185204197
Test: FrameworksVcnTests
Merged-In: Ib0690243f176a2f074358fcc8430f1fd7c3d0d3c
Change-Id: Ib0690243f176a2f074358fcc8430f1fd7c3d0d3c
(cherry picked from commit ffc912dace)
2021-04-19 13:13:05 -07:00
Benedict Wong
39659bf29a Remove use of network scores, and provider IDs in VcnNetworkProvider
This change updates the VcnNetworkProvider and associated
requestListeners to no longer use the network score and provider IDs, in
order to match the new NetworkProvider APIs.

Bug: 185204197
Test: atest FrameworksVcnTests
Merged-In: I0cabce702cfd8457fd1a152af07a847b87d67028
Change-Id: I0cabce702cfd8457fd1a152af07a847b87d67028
(cherry picked from commit fff0f8ba33)
2021-04-19 13:13:04 -07:00
Benedict Wong
7bdcb188b2 Improve dump detail
This change improves the formatting and detail provided by the VCN dump

Bug: 8675309
Test: atest FrameworksVcnTests
Merged-In: I8f13a0d8fe54e9bf8948e9576e9705024fe79611
Change-Id: I8f13a0d8fe54e9bf8948e9576e9705024fe79611
(cherry picked from commit 1ce20d65e0)
2021-04-19 13:13:04 -07:00
Benedict Wong
061c84ba27 Disable INTERNET/DUN when mobile data toggled off
This change disables INTERNET and DUN capabilities once the mobile data
toggle is turned off. Additionally, when the toggle is flipped, any
existing networks advertising either of those two capabilities will be
restarted in order to remove the capabilities.

Bug: 184864726
Test: atest FrameworksVcnTests
Merged-In: I81efeaa4b129443b08a597ff45e0037ddefeb414
Change-Id: I81efeaa4b129443b08a597ff45e0037ddefeb414
(cherry picked from commit fcacb06752)
2021-04-19 13:12:43 -07:00
Chiachang Wang
580fda2670 Remove hidden connectivity method access in FrameworksVcnTests
Due to connectivity modularization work, hidden connectivity
methods and members are not accessible outside the module.
Remove the corresponding usage.

The test case in VcnNetworkProviderTest are not able to create
NetworkRequests with request id assigned. The loop to create
different request is removed. After that, the test does not
provide more test coverage than other tests. Thus, Remove the
test case directly.

Bug: 182859030
Test: atest FrameworksVcnTests
Merged-In: I488f62089d1dbe93c232f892885d944bef896df6
Change-Id: I488f62089d1dbe93c232f892885d944bef896df6
(cherry picked from commit 18f3a26efa)
2021-04-19 13:12:43 -07:00
Bill Yi
08bb9cc5dc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ib06b106cff8e89ee86322f96b90165bb956de1ef
2021-04-19 20:10:58 +00:00
Fabian Kozynski
4b671da69f Change divider between framework and TileServices
The divider in QSCustomizer is now a 32dp spacer

Test: manual
Fixes: 185376308
Change-Id: I191083c2a199b8c45cf683e9574ef5330ab89525
2021-04-19 16:06:32 -04:00
Bill Yi
24960962c9 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I1be1867633aae3b5c57e0cb4378010671cc1314c
2021-04-19 20:04:19 +00:00
Leon Scroggins III
bf309e63d4 Turn on rounded corners on PIP with a flag
Bug: 163076219
Test: manual

Use the flag "debug.sf.enable_hole_punch_pip" (also used by
I56e2a6debce6ede4bebfcbd32bffa01c20461542 to activate using a hole punch
to render the rounded corners) to turn on rounded corners even if
config_pipEnableRoundCorner is set to false.

This will allow testing the feature until we can turn it on.

Change-Id: I2719f8ac151895874ab22e4cd7e64c9e1dc9eac8
2021-04-19 16:01:23 -04:00
Changyeon Jo
33c1862f9b Merge "Add CarEvsService permissions" into sc-dev 2021-04-19 20:00:15 +00:00
Adam Bookatz
cf45006b68 PMS caches DPM
Repeatedly fetching DPM is a significant source of slowness,
so we cache it.

Test: treehugger and `atest CtsSuspendAppsTestCases`
Bug: 177255383
Change-Id: Ic9999827d5500d0c18a9160719c1a6d0d85e0136
2021-04-19 19:36:40 +00:00
Jing Ji
3d7210ee88 Merge "Update Kotlin sample code for CountDownTimer and Parcelable" am: 598675abef am: a61b23b89e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673235

Change-Id: Ia82738a244e73ea431280afa3bd5896b68ad6f28
2021-04-19 19:34:11 +00:00
Treehugger Robot
98afac3370 Merge "Hide RCS PUBLISH mapping due to complicated structure" am: f7cde977db am: ce819de5b1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675739

Change-Id: I397d86b1d403451cf0de301ac246b0af3a9f3eba
2021-04-19 19:33:50 +00:00
Fabian Kozynski
e03e4c9e84 Add some padding between QS and shelf
Also fix margins of QSDetail

Test: manual, with and without media
Bug: 185390072
Change-Id: Ia4367e933319a55c2f62d4ec8b9d6b4532977816
2021-04-19 15:33:40 -04:00
Treehugger Robot
0f2e5f50de Merge "Clarify SipDelegateImsConfiguration getVersion Documentation" am: ca53d40161 am: f03f48dae6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675738

Change-Id: I73f393eeb5d3c38eae792ab1909d4d4d2cdae356
2021-04-19 19:33:00 +00:00
Jing Ji
a61b23b89e Merge "Update Kotlin sample code for CountDownTimer and Parcelable" am: 598675abef
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1673235

Change-Id: Ia6c7d8965190b905b393d0d51fcaac2f651ef8fb
2021-04-19 19:28:23 +00:00
Treehugger Robot
ce819de5b1 Merge "Hide RCS PUBLISH mapping due to complicated structure" am: f7cde977db
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675739

Change-Id: I7303f9c6d69e3aa6a515273b36bcec8f50289027
2021-04-19 19:25:32 +00:00
Jing Ji
598675abef Merge "Update Kotlin sample code for CountDownTimer and Parcelable" 2021-04-19 19:23:06 +00:00
Yi Jiang
8d7bd3610a Merge "Renames RotationResolutionRequest#getPackageName()" into sc-dev 2021-04-19 19:22:03 +00:00
Treehugger Robot
f03f48dae6 Merge "Clarify SipDelegateImsConfiguration getVersion Documentation" am: ca53d40161
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675738

Change-Id: I9a4462d90bcfc6bc202e72120cfc56693139bbf9
2021-04-19 19:20:57 +00:00
Yan Yan
8dbc89396d Merge "Use #setNetwork and #getNetwork for IkeSessionParams" am: 3022c5437c am: cc0c3a5f62 am: faf572b9ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1675285

Change-Id: I94d750ce60a8caaeb221875cfa8ef3f570863ab9
2021-04-19 19:18:22 +00:00
Aurimas Liutikas
460b46ba77 [automerger skipped] Merge "Cleanup nativeHeapZeroInit and memtagMode implementation." am: 6dd6c5a603 am: 8b19886f9b am: 9c0a2e0633 -s ours
am skip reason: skip tag Change-Id Iad46a1da9bc040baf4c438afbc5fd8cd128e99f1 with SHA-1 0aa606cc5a is already in history

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1660342

Change-Id: Iba40ab1518a16d94e26d3e5115bff58224bb038c
2021-04-19 19:17:47 +00:00
Sally Yuen
1c3ac31a23 Merge "Add UiAutomation shell permission tests to Shell presubmit tests" am: afbb23d1d3 am: 6f15edb618 am: 90c6d1bde6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1677306

Change-Id: I03e2e8ac8d2342b1a7c39183135a800baafc586b
2021-04-19 19:16:28 +00:00
TreeHugger Robot
a3acd7fbd3 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: e2ebb4a3c9 -s ours am: 7904fcbb9a -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14235587

Change-Id: Idb93b593ab299e499cc20f3c46c7979a2556841b
2021-04-19 19:15:36 +00:00
TreeHugger Robot
7bf7e310e6 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 8c70b355ca -s ours am: 0b7f9e3b33 -s ours
am skip reason: subject contains skip directive

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/14235827

Change-Id: I722fa4870b503dabc7873c4f3f415fc428f6b9da
2021-04-19 19:15:24 +00:00