Commit Graph

654180 Commits

Author SHA1 Message Date
Bill Yi
1b16b4e2fb Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I56cdbac567545b01afcd620fcb986f59327faffd
2021-08-12 14:57:39 +00:00
Bill Yi
8542a9b919 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I20ee1ee43943f08620e1245d5aef9a75cf2b49aa
2021-08-12 14:54:12 +00:00
Beverly Tai
7fdca6bce9 Merge "On devices with udfps supported, show auth ripple" into sc-qpr1-dev am: d4806ce9b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15526941

Change-Id: Iba60559cbd9eda00ff9c65d68b581ecc3fe9327c
2021-08-12 14:33:26 +00:00
Fabian Kozynski
dc059a5f73 Add chevron to Screen cast tile
Adds the chevron when it's not casting and we expect to open a dialog

Test: manual
Test: atest CastTileTest
Fixes: 191154648
Change-Id: Ib3e70d3c8dbc797fd85a6781743270ed4abc7e63
Merged-In: Ib3e70d3c8dbc797fd85a6781743270ed4abc7e63
(cherry picked from commit 9dd955bd0c)
2021-08-12 14:22:04 +00:00
Beverly Tai
d4806ce9b4 Merge "On devices with udfps supported, show auth ripple" into sc-qpr1-dev 2021-08-12 14:15:19 +00:00
Matt Pietal
795147073b KeyguardViewMediatorTest - Flaky test fix
Keep new test changes isolated to the new test to avoid disruption
to the existing tests

Fixes: 196295234
Test: atest KeyguardViewMediatorTest

Change-Id: Ia7706ce8b3923c1bf4fccd3f15edf97c60893472
(cherry picked from commit d4f5bde12f)
2021-08-12 13:24:34 +00:00
Ming-Shin Lu
5167131c79 Improve shouldRestoreImeVisibility perf
shouldRestoreImeVisibility(token) used to check if the task window
token should restore IME visibliity by checking the tasksnapshot.

Previously by default it calls mAtmService.getTaskSnapshot() to load
tasksnapshot from the disk if the does not exist, which caused
additional bitmap allocation to see if the tasksnapshot is not active.

Since we only check the IME surface from the tasksnapshot when
the task is still running. Also, after the next booted, tapping
the tasksnapshot from the overview will be refreshed with
splashscreen that we don't trying to restore IME visiblity
for that case.

Use WMS#getTaskSnapshot with specifying restoreFromDisk parameter as
false to get the active tasksnapshot from memory.

Fix: 195347355
Test: Enable systrace on device from developer option,
      launch an App with showing IME, swiping up to the overview
      and then tapping the original task again, expect no
      additional EGLContext created in the systrace.
Change-Id: I0abb5d6d77fdb200c737e7582923ced9ee98ad05
2021-08-12 12:47:28 +00:00
Riddle Hsu
db45d16579 Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()" am: 99e5c70ff0 am: 7f2cb4c0a5 am: 5f95d3af26
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793211

Change-Id: Ica8d0534ebc629da71cb219b74e9428f4ea7d6bb
2021-08-12 11:56:02 +00:00
Bill Yi
bc26126724 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 5338485ad1
Blank merge reason: commit message contains skip directive

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

Change-Id: Ie32c05d57abe821c4b6dca8d23f2691b62f7a61f
2021-08-12 11:52:24 +00:00
Bill Yi
5338485ad1 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I5fe68c823c4bca642c4ab82900fd242834a1f413
2021-08-12 11:51:55 +00:00
Riddle Hsu
5f95d3af26 Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()" am: 99e5c70ff0 am: 7f2cb4c0a5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793211

Change-Id: I00ebb6e21e6ad6f641fe52249b27cd59b77f9da6
2021-08-12 11:41:28 +00:00
Bill Yi
5e41ab2531 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Idec26abfd22fd28c553202a79b303b3a87a1312b
2021-08-12 11:26:05 +00:00
Bill Yi
06ab67deba Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If792f4153405671db72e1d2ab42dd7af9e771603
2021-08-12 10:52:19 +00:00
Riddle Hsu
7f2cb4c0a5 Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()" am: 99e5c70ff0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1793211

Change-Id: I27e6901083d1f16c2b2bcccb77627c81592d4ceb
2021-08-12 10:03:21 +00:00
Riddle Hsu
99e5c70ff0 Merge "Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()" 2021-08-12 09:50:46 +00:00
Bill Lin
27da5b04d4 Don't create one-handed-background-panel after rotation
From code flow, when onConfigurationChanged() by rotating
OneHandedBackgroundPanelOrganizer#showBackgroundPanelLayer()
will be invoked and then create one-handed-background-panel
even though OHM is not activated.
Besides, this could introduce overhead on SF.

Test: manual rotate and dumpsys check HWC layers
Test: atest WMShellUnitTests
Bug: 196306312
Change-Id: Ia766078d5c76b08ab5b24e0ce965ad1d085e4686
2021-08-12 17:29:27 +08:00
Jooyung Han
553c027bbf AIDL: use typed Map
AIDL supports typed maps, so use it instead of untyped one.

Bug: 192615532
Test: m, TH presubmit
Change-Id: I0fedf05872cbe2025e04ca07ce6c90bc9067b331
2021-08-12 08:38:10 +00:00
Jooyung Han
fb8ebe9f44 Suppress AIDL warnings: untyped-collection
For now AIDL doesn't support Map<String,Integer>, there's no way to fix
it with typed map.

Bug: 192615532
Test: m
Change-Id: Id0011372a0997b4ab9aa700a7c4f8746bff29189
2021-08-12 17:30:32 +09:00
TreeHugger Robot
d61221d8be Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: a5117ca3b4 am: e421c1c291
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15515230

Change-Id: Iefc3ec41ef66e6785f347a00bf680e7015ab7446
2021-08-12 07:47:06 +00:00
TreeHugger Robot
aafb54e3db Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: a5117ca3b4 am: 3103f612ba
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15515230

Change-Id: I88725fa1f50a5c27f49d7a2bc9fae8937e809de0
2021-08-12 07:46:28 +00:00
Ray Essick
1168d9d014 Rename android.media.MediaTranscodeManager -> MediaTranscodingManager
renamed to avoid conflict with existing copy in the R framework.jar.
The framework.jar copy was removed during S development

Bug: 195608856
Test: build
Test: cts-tradefed run cts -m CtsMediaTranscodingTestCases
Change-Id: I40ab066cd61be8d278f21cc788016f2edd6bb86e
2021-08-12 07:42:56 +00:00
TreeHugger Robot
e421c1c291 Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: a5117ca3b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15515230

Change-Id: I6a443691e1984196b615be1ba94bf5656aa7859a
2021-08-12 07:31:34 +00:00
TreeHugger Robot
3103f612ba Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev am: a5117ca3b4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15515230

Change-Id: I5ab6f3bc16bf41047d27bb0051b2aa5ff8ca688a
2021-08-12 07:30:57 +00:00
TreeHugger Robot
a5117ca3b4 Merge "Allow negative value for CorrelationVector#samplingStartM" into sc-dev 2021-08-12 07:17:47 +00:00
Ashok Mutyala
895d981852 Avoid the scenario where Contexts list filled with null value in ShowAnrDialogs()
Problem: Framework Reboot i.e., NullPointer Exception in android.ui Thread
E AndroidRuntime: FATAL EXCEPTION IN SYSTEM PROCESS: android.ui
E AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method
'java.lang.Object android.content.Context.getSystemService(java.lang.String)' on a null object reference

E AndroidRuntime: **at android.app.Dialog.<init>(Dialog.java:199)
E AndroidRuntime: **at android.app.AlertDialog.<init>(AlertDialog.java:204)
E AndroidRuntime: **at android.app.AlertDialog.<init>(AlertDialog.java:200)
E AndroidRuntime: **at com.android.server.am.BaseErrorDialog.<init>(BaseErrorDialog.java:39)
E AndroidRuntime: **at com.android.server.am.AppNotRespondingDialog.<init>(AppNotRespondingDialog.java:53)
E AndroidRuntime: **at com.android.server.am.ErrorDialogController.showAnrDialogs(ErrorDialogController.java:183)
E AndroidRuntime: **at com.android.server.am.AppErrors.handleShowAnrUi(AppErrors.java:1077)

Analysis:
As Context Object is passed from showAnrDialogs method and will be retrieved from getDisplayContextWithErrorDialogs
And list of context objects will be filled by querying from RootWindowContainer.getDisplayUiContext and this method is
Annotated with Nullable. So, the possibility could be null value filled in the context object List.

Bug: 196189977
Test: Stability Test

Change-Id: Ib944fc5ffc8bcca999c75f99d462d441e555fcda
2021-08-12 04:31:18 +00:00
Nate Jiang
f6dbea381a Remove modules-utils-build_system from filegroup
Remove modules-utils-build_system from static lib of service-wifi.jar,
because it is already in static lib of framework-wifi.jar
Cherry-picked from https://android-review.googlesource.com/1792931

Bug: 195965491
Test: build apex
Merged-In: Ica496e67dd8b7c83aa93a512d06ad1a05d1c9c8d
Change-Id: Ib2fc438eb01787a0910c29601b579c17d06130de
2021-08-12 02:59:56 +00:00
Nate Jiang
dc93fb20fd Merge "Remove modules-utils-build_system from filegroup" am: a4d60ac1ee am: f46dc85e5a am: 4304d409e4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1792931

Change-Id: Icd17cdb9fc2cbc87cd20f54ce47c9dda16521319
2021-08-12 02:41:14 +00:00
Nate Jiang
4304d409e4 Merge "Remove modules-utils-build_system from filegroup" am: a4d60ac1ee am: f46dc85e5a
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1792931

Change-Id: Ib8693132319dc21d0a78f98e1dc74f2b6bca1790
2021-08-12 02:25:56 +00:00
Nate Jiang
f46dc85e5a Merge "Remove modules-utils-build_system from filegroup" am: a4d60ac1ee
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1792931

Change-Id: If693bdf1ee36e6997373bb70fd390b32d7329a7e
2021-08-12 02:11:28 +00:00
Nate Jiang
a4d60ac1ee Merge "Remove modules-utils-build_system from filegroup" 2021-08-12 01:56:33 +00:00
Suren Baghdasaryan
7bae7d81cf [automerger skipped] Merge "Adding native flag namespace for lmkd." am: 1fdacf6376 am: eb10acc1cb -s ours am: 5c822bf4ea -s ours
am skip reason: Merged-In I1f13d6bbb4a9a7fd8825d7e5acde416750271df4 with SHA-1 93c48c704a is already in history

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

Change-Id: If0ef305455e8bdcea799e5c901d8ecb786af4513
2021-08-11 23:41:28 +00:00
Suren Baghdasaryan
5c822bf4ea [automerger skipped] Merge "Adding native flag namespace for lmkd." am: 1fdacf6376 am: eb10acc1cb -s ours
am skip reason: Merged-In I1f13d6bbb4a9a7fd8825d7e5acde416750271df4 with SHA-1 93c48c704a is already in history

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

Change-Id: I661f5fb6b1f3f6ce4322fab8fa84a7ab364c65b1
2021-08-11 23:28:31 +00:00
Suren Baghdasaryan
eb10acc1cb Merge "Adding native flag namespace for lmkd." am: 1fdacf6376
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1786787

Change-Id: I8d661ad5868a7df5df08e67574bcd1eda9092772
2021-08-11 23:13:07 +00:00
Suren Baghdasaryan
1fdacf6376 Merge "Adding native flag namespace for lmkd." 2021-08-11 22:56:11 +00:00
Automerger Merge Worker
89d78c2594 Merge "Merge "Update wallpaper offset when changing target from null" into sc-dev am: ccdb324274 am: a1d274c92a" into sc-qpr1-dev-plus-aosp 2021-08-11 22:22:36 +00:00
Rob Carr
ac869af650 Merge "Update wallpaper offset when changing target from null" into sc-dev am: ccdb324274 am: ba8979c6d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15521640

Change-Id: Ifa9b2f37ec4478880d13052b4444746d85c03bd4
2021-08-11 22:22:25 +00:00
Rob Carr
21f843b36c Merge "Update wallpaper offset when changing target from null" into sc-dev am: ccdb324274 am: a1d274c92a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15521640

Change-Id: Ic5e7c93a8e1384a0d7cb5889ae670396c3c8bac6
2021-08-11 22:22:18 +00:00
Evan Severson
4fa06df1b8 Fix boot loop when upgrading sensor privacy file
Also add new testcase for sensor privacy service boot.

Test: atest SensorPrivacyServiceMockingTest CtsSensorPrivacyTestCases
      Manually test booting with old file version
Fixes: 195913883
Change-Id: I9d8791e5f27c881afd9e23f94fb5fb9dc891fda4
2021-08-11 15:19:41 -07:00
Rob Carr
a1d274c92a Merge "Update wallpaper offset when changing target from null" into sc-dev am: ccdb324274
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15521640

Change-Id: I03c15fde7cdea22df72bf5e50355b85cf99ae5d0
2021-08-11 22:12:25 +00:00
Rob Carr
ba8979c6d7 Merge "Update wallpaper offset when changing target from null" into sc-dev am: ccdb324274
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15521640

Change-Id: Iedcc5f3ca75f9ffd022c14076ed05c06c874d3b4
2021-08-11 22:11:18 +00:00
Makoto Onuki
c3139a186b Merge "Clarify how FGS restriction won't apply STICKY FGS restarts" into sc-dev am: 0c1dc2fc76 am: 911ed7c949
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484572

Change-Id: I9f89144825a8dd7d393f89bc353444abbda18284
2021-08-11 22:01:25 +00:00
Makoto Onuki
b2d01a74d4 Merge "Clarify how FGS restriction won't apply STICKY FGS restarts" into sc-dev am: 0c1dc2fc76 am: a33d48c48e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484572

Change-Id: I24640f8d488122f9cdce14f48b8dd6ac098d8346
2021-08-11 22:00:42 +00:00
Rob Carr
ccdb324274 Merge "Update wallpaper offset when changing target from null" into sc-dev 2021-08-11 21:58:32 +00:00
Makoto Onuki
911ed7c949 Merge "Clarify how FGS restriction won't apply STICKY FGS restarts" into sc-dev am: 0c1dc2fc76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484572

Change-Id: Icfed6ee829345c8797fe724901f31ff25a297ec4
2021-08-11 21:36:12 +00:00
Makoto Onuki
a33d48c48e Merge "Clarify how FGS restriction won't apply STICKY FGS restarts" into sc-dev am: 0c1dc2fc76
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15484572

Change-Id: Ic11bfc07ac3ad19222bcc48dc7e54f46a1af6fe6
2021-08-11 21:35:25 +00:00
Jeff Sharkey
e2e6e67bf7 Preserve certain "Nearby devices" implicit grants.
We're willing to preserve an implicit "Nearby devices" permission
grant if this app was already able to interact with nearby devices
via background location access.

If the app doesn't have background location access, then the implicit
"Nearby devices" grant will be revoked as normal.  If the "Nearby
devices" permission had already been revoked through some other
means, it will remain revoked.

Bug: 195931693
Test: atest CtsPermission2TestCases CtsPermission3TestCases
Change-Id: I7d8df91954525da6473f70cb1759d9507e6a5606
2021-08-11 15:22:46 -06:00
Makoto Onuki
0c1dc2fc76 Merge "Clarify how FGS restriction won't apply STICKY FGS restarts" into sc-dev 2021-08-11 21:17:20 +00:00
Jayant Chowdhary
1f3071d540 camera2: Documentation updates for ultra high resolution sensors.
Bug: 195987968

1) Document mininum pixel array size restriction for ultra high resolution sensors.
2) Add docs explaining mandatory stream combinations for ultra high resolution sensors.

Change-Id: Ic630259a57906c475210465588eda1a5cc3f68ec
Signed-off-by: Jayant Chowdhary <jchowdhary@google.com>
2021-08-11 20:12:41 +00:00
Mark Renouf
71bc80de7b requestScrollCapture: provide package name on exception
Bug: 195013652
Test: manual
Change-Id: Icdd5a0ac1af599c31cda343231af3cb313d201c1
2021-08-11 19:52:11 +00:00
TreeHugger Robot
8f1cf56b89 Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2021-08-11 19:47:05 +00:00