Commit Graph

661429 Commits

Author SHA1 Message Date
Mill Chen
7f4b8b1784 Enable nested scrolling for locale picker
This change is to make the locale picker list enable the nested
scrolling feature. It is necessay to enable this feature to be able to
work with CollapsingToolbarLayout.

Fixes: 207318265
Fixes: 213036789
Test: manual test
1. Verify the locale picker works with Activity
2. Verify the locale picker works with SettingsBaseActivity

Change-Id: Iaf90211da640cd265fc2b23dd34b3149c4406891
(cherry picked from commit fa861a6b5d)
Merged-In:Iaf90211da640cd265fc2b23dd34b3149c4406891
2022-01-20 00:46:32 +00:00
Fabian Kozynski
467b282eae Change window type of Media Projection dialog
With the dialog changes of not closing QS, the dialog type needs to
change to present on top of the shade.

This CL changes it to match that of the dialog launched by CastTile.

Fixes: 209532003
Test: manual
Change-Id: I937678a5d8ee91902c324aa063e48610de7b0f74
(cherry picked from commit c5bd573370)
Merged-In:I937678a5d8ee91902c324aa063e48610de7b0f74
2022-01-20 00:46:29 +00:00
Riddle Hsu
c3eaf66225 Fix leakage of DisplayContent referenced from TransitionController
Unlike AppTransition which is associated DisplayContent, the
TransitionController is a global instance. So it needs to unregister
the listener when the display is removed.

Bug: 214991741
Test: Start/stop screen recording multiple times (create virtual
      display). The heap dump of system server should not contain
      many DisplayContent instances.
Change-Id: I44e2a794981fc114ada0ce98cd2471adf623d856
(cherry picked from commit 491914c17c)
Merged-In:I44e2a794981fc114ada0ce98cd2471adf623d856
2022-01-20 00:46:22 +00:00
Zoey Chen
10925e6bf5 [Provider Model] Fix the overlap when changing the font/display size
Bug: 211540142
Test: manual
Change-Id: I10032a866ee05030070b40076fa946c3e73e0d56
(cherry picked from commit 4b28a9a63c)
Merged-In:I10032a866ee05030070b40076fa946c3e73e0d56
2022-01-20 00:46:14 +00:00
Android Build Coastguard Worker
11ad7ec65e Snap for 8085045 from 99f9addc90 to sc-v2-release
Change-Id: Ie945ea311026fc53a27e97e2184fbe7fb5f3d294
2022-01-16 22:06:40 +00:00
Android Build Coastguard Worker
6801b363d3 Snap for 8084085 from 785ee1a55c to sc-v2-release
Change-Id: If9982c1586e37bf5863c0777d2cbba45a0437b43
2022-01-15 22:06:37 +00:00
TreeHugger Robot
99f9addc90 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 6de4d94aa7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ie935392f531369418091553b1ea380030e077f45
2022-01-15 20:03:39 +00:00
TreeHugger Robot
6de4d94aa7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2022-01-15 19:47:38 +00:00
TreeHugger Robot
ad841bf63c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-15 19:47:36 +00:00
TreeHugger Robot
bf586fee3f Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-15 19:46:27 +00:00
TreeHugger Robot
785ee1a55c Merge "Send Task Fragment Info Update When Task Invisible..." into sc-v2-dev 2022-01-15 06:45:44 +00:00
TreeHugger Robot
ff6577fd10 Merge "Fix IME shrunk by WindowTokenClient mis-detach" into sc-v2-dev 2022-01-15 04:27:54 +00:00
Android Build Coastguard Worker
186b81dc18 Snap for 8082048 from 5c3d8bc297 to sc-v2-release
Change-Id: Iec46456e4afc1278c4d19932c0451e6e804f7ec4
2022-01-15 02:06:39 +00:00
Kalesh Singh
63f3810ee1 Merge "Add system_server to readtracefs group" into sc-v2-dev 2022-01-14 23:24:16 +00:00
Selim Cinek
5c3d8bc297 Merge "Fixed an issue where a user could't go to the locked shade from dozing" into sc-v2-dev 2022-01-14 20:34:58 +00:00
Shivam Agrawal
09e0a6e823 Send Task Fragment Info Update When Task Invisible...
...only when the Task has no more running activities.

Send a TaskFragment info changed callback if the
callback is for the last activities to finish in a
Task so that the TaskFragmentOrganizer can delete
this TaskFragment. Otherwise, the Task may be
removed before it becomes visible again to send this
callback because it no longer has activities. As a
result, the organizer will never get this info changed
event and will not delete the TaskFragment because the
organizer thinks the TaskFragment still has running
activities.

Bug: b/214090984
Test: atest TaskFragmentOrganizerControllerTest
Test: atest ActivityEmbeddingLaunchTests
Change-Id: Idb58975f4bfb6c67ed6cda3dc6b7c33abd960bbd
2022-01-14 15:13:50 -05:00
Bill Yi
24d7e9b4a6 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1daa90f3ed -s ours am: 058f043b9e -s ours
am skip reason: subject contains skip directive

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

Change-Id: I2209a057d8020fcd6c81b03a0516795049ceab22
2022-01-14 18:52:51 +00:00
Kalesh Singh
17a6606ec1 Add system_server to readtracefs group
This allows system_server to search/read tracefs entries. It is needed
for attaching cpu timeinstate bpf programs to tracepoints.

Bug: 208892266
Bug: 209513178
Bug: 214061655
Test: libtimeinstate_test
Change-Id: I4139605eb7c5277887092b3d6a3fb26bf4f8f171
Merged-In: I4139605eb7c5277887092b3d6a3fb26bf4f8f171
2022-01-14 18:50:40 +00:00
Bill Yi
058f043b9e [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1daa90f3ed -s ours
am skip reason: subject contains skip directive

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

Change-Id: I2b5bccdecf6597d1d9bee0c2e3d2edb346d8bd7d
2022-01-14 18:32:51 +00:00
TreeHugger Robot
58f0393c6b Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-14 18:10:31 +00:00
TreeHugger Robot
62b2a06123 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2022-01-14 18:10:11 +00:00
Fabian Kozynski
c09887ba23 Merge "Fix disable flag in QSBH" into sc-v2-dev 2022-01-14 15:18:01 +00:00
Ming-Shin Lu
29de30597b Fix IME shrunk by WindowTokenClient mis-detach
As CL[1] introduced WindowTokenClient for WindowProviderService (aka the
parent class of InputMethodService starts from CL[2]) as a token that
IME context can associate with the windowContainer of
the InputMethod window in server side. Like the activity context,
IME context can adopt configuration/resources update when the IME
window changed by display/window changes.

And, the IME context caller can also create another type of context
with wrapping IME context (i.e. calling createDisplayContext to create
a display context), that makes this context can be mixed the window
token of WindowProviderService since it's the base context.

However, the finalization of the context mixed WindowTokenClient
will detach the token when the attached context type is non-window
context, this action will mis-detach the token when it managed by
WindowProviderService.

So like SoftKeyboard previously using
createDisplayContext in CL[3] to workaround context resources issues,
will in-directly expose this mis-detach token issue as the above.

Beside, the handling of WindowTokenClient#{onConfigurationChange,
onWindowTokenRemoved} does not thread-safe since this is called from
IPC.

As the result, the fix is to ignore the check in ContextImpl#finalize
to not detach the token when it managed by WindowProviderService,
also make sure to post to the main handler when received
onConfigurationChanged/onWindowTokenRemoved in WindowTokenClient.

Note that this fix could help to resolve "The Window Context should
have been attached to a DisplayArea." exception if the token has been
detached as the above case that happens before the next
WindowProviderService#attachToWindowToken invoked.

[1]: I64a1614f32d097785915f6105b1813a929e0fe32
[2]: Ie565e30ed5dd3f2cfe27355a6dded76dc3adc14b
[3]: Ic592a1d2fb2da149220c8b503b522b3e864bcc77

Bug: 213118079
Bug: 211062619
Test: manual as steps:
1) adb install -r EditTextVariations.apk
2) adb install -r SoftKeyboard.apk
3) adb shell ime enable com.example.android.softkeyboard/.SoftKeyboard
4) adb shell ime set com.example.android.softkeyboard/.SoftKeyboard5
5) Enable screen auto-rotation
6) Launch EditTextVariations from launcher's shortcut
7) Tap the first EditText field to show IME
8) Rotate the device to the landscape mode
9) Expect the IME should not be shrunk

Change-Id: I7beb7a122af93e596239a36db62073233cea0726
2022-01-14 12:49:13 +00:00
Selim Cinek
012f6bc711 Fixed an issue where a user could't go to the locked shade from dozing
When waking up, the status bar state was immediately reset, stopping
the transition. We now migrate the behavior from the pulse expansion
to the ls shade transition controller and wait a bit longer.

Fixes: 201341772
Test: click on expand from pulsing
Change-Id: Ie7caa06b45c3fd4c2aec72dfecf82e76e06ff3f2
2022-01-14 12:11:27 +00:00
Bill Yi
67b5112967 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I8d92c3ae12fd8172c74007a8c62a376ddc78dc2d
2022-01-14 08:42:26 +00:00
Bill Yi
1daa90f3ed Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I6f3e8c8db4fa47e49f9fe68dd4d084d866617a61
2022-01-14 08:39:21 +00:00
Maria Yang
d36f3eb795 Merge "Handle setAllowedCarriers() with empty list of carriers" into sc-v2-dev 2022-01-14 05:58:10 +00:00
Bill Yi
4c6b24308a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If056f82f31f969ae333f07c7882a6dc3cf0508b9
2022-01-14 03:37:10 +00:00
Bill Yi
ecd4be6d1a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I71c06ac32e79a7891b9c4709e871654329040100
2022-01-14 02:40:36 +00:00
TreeHugger Robot
446346bc4e Merge "[RESTRICT AUTOMERGE] Dimming on an embedded TaskFragment vs. parent Task" into sc-v2-dev 2022-01-14 02:15:22 +00:00
Bill Yi
c8a4f437c8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Iaf42323ce36547d1209961307cdc93c65a64066e
2022-01-14 02:14:50 +00:00
Bill Yi
621c658c1c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I593d2a780de511f0524853cefdfb5d7bb0e133ae
2022-01-14 02:12:22 +00:00
Benedict Wong
fe84f243b2 Merge "Listen for individual subscription mobile data toggles" into sc-v2-dev 2022-01-14 00:40:34 +00:00
Android Build Coastguard Worker
dd5f21e846 Snap for 8076550 from 9c2972216e to sc-v2-release
Change-Id: Ib0cba67589d4d7f9b21d7c6127497c6b8fc5d836
2022-01-14 00:07:30 +00:00
Mariia Sandrikova
04ce06bb79 Merge changes from topic "revert-16468379-CXJTAENUWN" into sc-v2-dev
* changes:
  DO NOT MERGE Revert "[2/n] Camera Compat UI: Add interfaces for client-server..."
  DO NOT MERGE Revert "[3/n] Camera Compat UI: Add a camera compat control."
  DO NOT MERGE Revert "Log the CameraCompatControlEventReported atom."
2022-01-13 22:41:22 +00:00
Michele Berionne
898e2b53a7 Handle setAllowedCarriers() with empty list of carriers
Bug: 204136145
Test: unit testing
Change-Id: I9779180ff1c3e926f97e010ca6026c5fb950046d
2022-01-13 22:02:39 +00:00
Michael Wachenschwanz
95aa9b3447 Merge "Merge "Move PowerStatsLogger off of the main thread." am: 19041e21ab am: a4b7960b60 am: 7c7930e536 am: a3426965e2" into sc-v2-dev 2022-01-13 22:00:20 +00:00
TreeHugger Robot
c826749c90 Merge "Enforce system privilege for getGlobalProxyAdmin" into sc-v2-dev 2022-01-13 18:41:34 +00:00
Evan Laird
43c6f30d8d Merge "Fix NetworkController no longer tracking userSetup" into sc-v2-dev 2022-01-13 17:54:13 +00:00
Evan Laird
3b775bf7ad Fix NetworkController no longer tracking userSetup
A previous refactor of DeviceProvisionedController removed the semantics
of getting a callback when adding a new listner. This change lets
NetworkController check the initial state after registering for updates,
and removes the doAnswer call from NetworkControllerBaseTest to mimic
this behavior

Also add the field to dumpsys

Test: manual; check `adb shell -n dumpsys activity service com.android.systemui/.SystemUIService | grep -A1 "NetworkController state:"`
Test: atest SystemUITests
Bug: 210512851
Change-Id: I82c8b15ad1b2d43494fa28178715ea0d0721fea7
2022-01-13 17:53:31 +00:00
Pavel Grafov
9c2972216e Merge "Check caller owns admin for per-admin getters." into sc-v2-dev 2022-01-13 15:56:47 +00:00
Josh Tsuji
bbfe4b8fcd Merge "Check if the SIM is secure before dispatching swipe to unlock." into sc-v2-dev 2022-01-13 15:45:29 +00:00
Mariia Sandrikova
7617679a61 DO NOT MERGE Revert "[2/n] Camera Compat UI: Add interfaces for client-server..."
Revert submission 16468379

Reason for revert: Feature development is moving to T.

Reverted Changes:
Id9b9a8930:[3/n] Camera Compat UI: Add a camera compat contro...
Id6be4a954:Enable a camera app compat control on Large screen...
I083aa6718:[2/n] Camera Compat UI: Add interfaces for client-...

Bug: 206602997

Change-Id: I9ad876043fd61f708a8f468fffd1ef371bfa0866
2022-01-13 15:21:38 +00:00
Aurimas Liutikas
aec26c4f68 DO NOT MERGE Revert "[3/n] Camera Compat UI: Add a camera compat control."
Revert submission 16468379

Reason for revert: Feature development is moving to T.

Reverted Changes:
Id9b9a8930:[3/n] Camera Compat UI: Add a camera compat contro...
Id6be4a954:Enable a camera app compat control on Large screen...
I083aa6718:[2/n] Camera Compat UI: Add interfaces for client-...

Bug: 206602997

Change-Id: I318b89b87cd3b05a3f3dcd428e3d80fe81465011
2022-01-13 15:16:51 +00:00
Mariia Sandrikova
103cb7d50c DO NOT MERGE Revert "Log the CameraCompatControlEventReported atom."
This reverts commit 4e5bb88605.

Reason for revert: Feature development is moving to T.

Bug: 206602997
Change-Id: Ia5da62807034a1657d65ac1bd15a2fff940d7160
2022-01-13 14:03:36 +00:00
Lais Andrade
68fe893dd5 Merge "Move PWLE notification vibration pattern to config.xml" into sc-v2-dev 2022-01-13 13:52:55 +00:00
Ayush Sharma
b84b315bce Enforce system privilege for getGlobalProxyAdmin
getGlobalProxyAdmin is a hidden API and called just from Settings.
So enforcing system uid check.

Bug: 206127671
Test: NA
Change-Id: Id4bce828bc69867c9c4d20b991e9e53e8ae385f2
Merged-In: Id4bce828bc69867c9c4d20b991e9e53e8ae385f2
(cherry picked from commit 554e19a375)
2022-01-13 11:47:34 +00:00
Tom Natan
44cd0e4664 Merge "Show Letterbox background without rounded corners for transparent activities" into sc-v2-dev 2022-01-13 10:14:47 +00:00
Benedict Wong
5f57cc8350 Listen for individual subscription mobile data toggles
This change ensures that the VCN listens for changes on a
per-subscription basis. In the DSDS case, the
Settings.Global.MOBILE_DATA toggles is insufficient, as the toggles for
individual subscriptions are changed instead of the global toggle.

Without this patch, the VCN may ignore changes in the user toggles, and
continue providing data service even after user data is disabled.
Similarly, it may fail to bring up a VCN when user data is re-enabled.

Bug: 214247774
Test: atest FrameworksVcnTests
Original-Change: https://android-review.googlesource.com/1947700
Change-Id: I1e84c25f48eab90dca163eda809fc11d5d21bc31
Merged-In: I1e84c25f48eab90dca163eda809fc11d5d21bc31
2022-01-13 07:57:24 +00:00
Louis Chang
66a576b409 [RESTRICT AUTOMERGE] Dimming on an embedded TaskFragment vs. parent Task
Migrate the dimmer to TaskFragment and the dim surface
needs to be offset relative to its parent task.

Bug: 202379687
Test: verify dim in two pane
Change-Id: I95fe47ebc66d419b42c1da8cc8216773c295f1d1
(cherry picked from commit 9b5881335d)
2022-01-13 05:34:17 +00:00