Commit Graph

655474 Commits

Author SHA1 Message Date
TreeHugger Robot
0354fa34aa Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-10 05:34:05 +00:00
Joanne Chung
094b2085be Merge "Fix not show translation if call startTranslation after pauseTranslation" into sc-qpr1-dev am: e82a38a8ee
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16001112

Change-Id: Iaad1e9005b2442bd88a6f767fd774fea94bb26d9
2021-10-09 02:42:24 +00:00
Bill Yi
6572495b1e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: If64090e638c3cbbd46b737a3705d245108c2c89a
2021-10-09 02:29:58 +00:00
Joanne Chung
e82a38a8ee Merge "Fix not show translation if call startTranslation after pauseTranslation" into sc-qpr1-dev 2021-10-09 02:26:10 +00:00
Vishnu Nair
d54349db7c Merge "WM: Track focus changes in AccessibilityController" into sc-v2-dev 2021-10-08 21:15:05 +00:00
Nader Jawad
58745e540e Merge "Update RenderEffectCache capability query" into sc-v2-dev 2021-10-08 20:27:12 +00:00
Eino-Ville Talvala
fed7243e56 Merge "Camera: Fix wrong wasImageCaptured flag" into sc-qpr1-dev am: 0f6c1c9d24
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16009383

Change-Id: I086f7400f1a7faba2eacb6e05c61a927ef768ce9
2021-10-08 20:26:18 +00:00
Eino-Ville Talvala
0f6c1c9d24 Merge "Camera: Fix wrong wasImageCaptured flag" into sc-qpr1-dev 2021-10-08 20:10:28 +00:00
TreeHugger Robot
86d2205d1d Merge "Camera: Avoid possible deadlock when closing advanced extension session" into sc-qpr1-dev am: 00c890cda7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15976219

Change-Id: I7ed63423fb9d1c6a58d52bb6a62d6716c6f5db84
2021-10-08 20:05:08 +00:00
TreeHugger Robot
00c890cda7 Merge "Camera: Avoid possible deadlock when closing advanced extension session" into sc-qpr1-dev 2021-10-08 19:49:12 +00:00
Emilian Peev
dd55b3dee5 Camera: Avoid possible deadlock when closing advanced extension session
The advanced extension session request processor must not hold the
'mInterfaceLock' when calling the camera device implementation as it
could result in a deadlock with the camera device close that can
run at the same time and try to acquire the same locks in reverse order.
The request processor will only read from 'mCameraConfigMap' which is
initialized only once during session setup and will not change during
the session lifetime.
A sample stack trace will look like this:
Service thread:
1) android.hardware.camera2.impl.CameraCaptureSessionImpl.stopRepeating
2) android.hardware.camera2.impl.CameraAdvancedExtensionSessionImpl$RequestProcessor.stopRepeating

Client thread:
1) android.hardware.camera2.impl.CameraAdvancedExtensionSessionImpl.release
2) android.hardware.camera2.impl.CameraDeviceImpl.close


Bug: 202074988
Test: Manual using application,
Camera CTS

Change-Id: If992667a7d7e54be5bea1fcc4b1d71ec1b895ca0
2021-10-08 19:48:12 +00:00
Evan Rosky
4097e44f2a Merge "Port IME tasksnapshot over to shell transitions" into sc-v2-dev 2021-10-08 18:37:53 +00:00
Vishnu Nair
179b1e22ca WM: Track focus changes in AccessibilityController
Forward focus changes from input and tracks them
in AccessibilityController. This will help track embedded window
focus changes as well and rely on input as the source of truth
for focus. Accessibility service will start querying the controller
for focus changes.

Bug: b/188792659
Test: presubmit
Test: test talkback
Change-Id: I21a6f1a7353844d2b0f59f32e802ed1f0a3d66ff
Merged-In: I21a6f1a7353844d2b0f59f32e802ed1f0a3d66ff
2021-10-08 11:36:50 -07:00
Kevin Chyn
7a8f7189e2 Merge changes I59089884,I0ec61e11 into sc-v2-dev
* changes:
  Update BiometricPrompt UI for large displays
  Revert "Update BiometricPrompt UI for large displays"
2021-10-08 18:17:53 +00:00
TreeHugger Robot
06d206da75 Merge "Revert changes to StationaryThrottlingLocationProvider" into sc-qpr1-dev am: 7cb452002e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16008807

Change-Id: I78d66dbfb98d0bd8f5db7df46185cfe48a83279b
2021-10-08 16:45:31 +00:00
TreeHugger Robot
5c574e39e8 Merge "Remove old screenshots notification channel cleanup code." into sc-v2-dev 2021-10-08 16:43:24 +00:00
TreeHugger Robot
7cb452002e Merge "Revert changes to StationaryThrottlingLocationProvider" into sc-qpr1-dev 2021-10-08 16:26:41 +00:00
Shuzhen Wang
8af9bbaeed Camera: Fix wrong wasImageCaptured flag
CaptureFailure is created with a "dropped" parameter. But what's passed
in is mayHaveBuffers, which is opposite of "dropped".

Test: Camera CTS, GoogleCamera
Bug: 201967385
Change-Id: I42eb2daa78f116502cb1c5943015ea3f4af3f1e3
2021-10-08 16:26:14 +00:00
Caitlin Cassidy
a9129a5f9d Merge "[Ongoing Call] Show semi-transparent background behind status bar in immersive mode." into sc-v2-dev 2021-10-08 15:54:13 +00:00
Beverly Tai
03a0c20f39 Merge "Prox's DelayableExecutor needs to be on the main thread" into sc-v2-dev 2021-10-08 15:29:48 +00:00
Nick Chameyev
ff265fecb9 Merge "Rename shouldUseDefaultDisplayStateChangeTransition attribute" into sc-v2-dev 2021-10-08 12:16:40 +00:00
Chris Li
7cf13cf4d8 Merge "Cleanup animation layer" into sc-v2-dev 2021-10-08 11:56:57 +00:00
Michał Brzeziński
1574259ef2 Merge "Disable opening expanded QS from the lockscreen on large screen devices" into sc-v2-dev 2021-10-08 10:38:26 +00:00
Nick Chameyev
0cc4156bbc Merge "Add split screen unfold animation" into sc-v2-dev 2021-10-08 10:09:57 +00:00
TreeHugger Robot
39615056a3 Merge "New user switcher dialog" into sc-v2-dev 2021-10-08 10:05:37 +00:00
Nataniel Borges
2461e951b9 Merge changes from topic "sync-flicker-sc-v2-dev" into sc-v2-dev
* changes:
  [DO NOT MERGE] Dump windowing mode in Winscope traces
  [DO NOT MERGE] Dump SurfaceControl's layerId to proto
  [DO NOT MERGE] Dump WindowContainer SurfaceControls to proto
  [DO NOT MERGE] Expose SurfaceControl's native mLayerId property to Java
  [DO NOT MERGE] Sync flicker from master to sc-v2
2021-10-08 08:51:10 +00:00
Louis Chang
0234494d32 Merge "Continue the pausing process after automatically entering pip" into sc-v2-dev 2021-10-08 07:12:22 +00:00
Mady Mellor
f1e8bc69c0 Merge "Fix an issue that caused an NPE" into sc-v2-dev 2021-10-08 06:15:17 +00:00
Dan Sandler
145728f1e8 Remove old screenshots notification channel cleanup code.
This saves hundreds of ms of binder calls when SystemUI
starts up (to INotificationManager.getNotificationChannel
and INotificationManager.deleteNotificationChannel).

Fixes: 201541113
Test: (boot device)
Test: (test secondary users, user switching)
Test: atest SystemUITests
Change-Id: Ie1d011581c49878911e8ddb46121fa95c24339ba
2021-10-07 22:58:55 -04:00
TreeHugger Robot
71f8cf24e2 Merge changes from topic "multiDisplayPowerProfile" into sc-v2-dev
* changes:
  Update PowerProfile to support multidisplay devices
  Collect data from multiple DISPLAY EnergyConsumers
2021-10-08 02:28:51 +00:00
TreeHugger Robot
93e22893e8 Merge "Fix layout been truncated after activated split screen" into sc-v2-dev 2021-10-08 01:58:27 +00:00
Mady Mellor
5981b9fa27 Fix an issue that caused an NPE
If the overflow is empty when the last bubble
is dismissed we collapse the stack. If it's not empty
we show the overflow contents.

We were overflowing bubbles AFTER making the choice
to select the overflow or collapse the stack which
causes problems.

Test: atest BubbleDataTest
Test: manual - have 1 bubble and an empty overflow
             - navigate to the overflow, dismiss the bubble
             => no crash
Bug: 202320538
Change-Id: Ic838c5c61bcd714d8de94672d3c4ed753d4f6fa6
2021-10-07 18:19:28 -07:00
Nader Jawad
086645d88a Update RenderEffectCache capability query
Updated logic to determine if RenderEffectCache
is supported to very both the vendor name as well
as the corresponding driver version.

Bug: 193145089
Test: Added test to EglManagerTests + RenderEffectCapabilityQueryTests
Change-Id: Ia0fd66c40790b94566f495d2c4128c4988d406b6
2021-10-08 00:00:45 +00:00
TreeHugger Robot
78359a1dc7 Merge "Prevent multiple outstanding permission queries per client" into sc-qpr1-dev am: 373ed0127e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15993917

Change-Id: Ia9f06fd0025044cc1136f00d76891b7fa81272a6
2021-10-07 23:54:32 +00:00
TreeHugger Robot
373ed0127e Merge "Prevent multiple outstanding permission queries per client" into sc-qpr1-dev 2021-10-07 23:39:29 +00:00
Kevin Chyn
ee350b6541 Update BiometricPrompt UI for large displays
Piggy backs on existing SystemUI Util method that determines when
split notification shade, lockscreen, etc should be shown.

Bug: 201811580
Test: manual
Change-Id: I59089884992018e183d15c47e07967b91d27f935
2021-10-07 16:11:15 -07:00
Emilian Peev
01d8df412d Merge "Camera: Keep sensor orientation consistent with device fold state" into sc-v2-dev 2021-10-07 22:53:24 +00:00
Jorge Gil
ecdb3cdbd2 Merge "Add null check on ActivityOptions before using it" into sc-v2-dev 2021-10-07 21:16:40 +00:00
Evan Rosky
9a5b9ad6f4 Port IME tasksnapshot over to shell transitions
Grab a tasksnapshet before transition animation so that the
IME is still on the going-away activity.

However, in the transient case, the going-away task is kept
live, so we don't actually take snapshot until commit visibility

Bug: 183993924
Test: atest KeyboardVisibilityControlTest#testRestoreImeVisibility
      atest TransitionTests
Change-Id: I3dd7bd65e5ec127a786db297760a0823c383d5df
2021-10-07 13:53:04 -07:00
Kevin Chyn
7f56994447 Revert "Update BiometricPrompt UI for large displays"
This reverts commit f30f327d5b.

Reason for revert: Regression on existing devices

Change-Id: I0ec61e1113c50257ab52f93be1efc5a9ef0b7b4c
2021-10-07 13:04:49 -07:00
Beverly
dbf49cf0c0 Prox's DelayableExecutor needs to be on the main thread
Since all prox events that trigger need to be triggered
on the main thread.

Test: manual
Fixes: 202398858
Change-Id: Id32733c4d1fa4229085796bae2192bd68df6591d
2021-10-07 19:55:31 +00:00
Anthony Stange
a44514e961 Prevent multiple outstanding permission queries per client
Under stress tests, it's possible for several messages to be sent before
CHRE has time to respond to the permission query which can cause several
permission queries to be sent and CHRE to be overwhelmed.

Fixes: 202201157
Test: Flash device and run stress test
Change-Id: I16871a116216cd288f0eba0e6c5572f5afa6b959
2021-10-07 19:24:05 +00:00
Yuncheol Heo
8cda531599 Merge "RESTRICT AUTOMERGE: Give the priv permission CONTROL_CAR_APP_LAUNCH to KitchenSync and CarLauncher." into sc-v2-dev 2021-10-07 19:05:58 +00:00
Soonil Nagarkar
67884d6edd Revert changes to StationaryThrottlingLocationProvider
For unknown reasons these changes are causing a memory usage increase
affecting Go devices. This reverts commit
6eecc3ce91.

Bug: 201306859
Test: presubmits
Change-Id: Ifd820ead3099c61abf7403442219f3d1172b8505
2021-10-07 19:01:30 +00:00
Emilian Peev
2bf82bbfef Camera: Keep sensor orientation consistent with device fold state
Allow foldable devices to advertise the mapping between device fold
state and sensor orientation.
Additionally return the current  sensor orientation
based on the specific device fold state.

Bug: 201005727
Test: Manual using AOSP Camera2 application,
Camera CTS

Change-Id: Idc76903da22567d29cc55d991b41df7e19490aa3
2021-10-07 11:29:21 -07:00
Kevin Chyn
80b2606f14 Merge "Update BiometricPrompt UI for large displays" into sc-v2-dev 2021-10-07 17:58:42 +00:00
Andy Hung
f79e42539f Merge "AudioTrack: Fix track creation of 9.1.4 and 9.1.6 streams" into sc-v2-dev 2021-10-07 17:55:49 +00:00
TreeHugger Robot
356b103c6f Merge "Do not set profile owner on guest users on headless system user." into sc-v2-dev 2021-10-07 17:15:23 +00:00
Evan Rosky
7a23b1517d Merge "Unrotate going-away apps during a launch-into-orientation transition" into sc-v2-dev 2021-10-07 17:08:20 +00:00
Fiona Campbell
7ecf186f6e Merge "Stop RBC affecting brightness so drastically" into sc-qpr1-dev am: 6be9887cb9
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15905907

Change-Id: Iccf79eb575812caae855581e2ee4918137e8e8b5
2021-10-07 16:46:22 +00:00