Commit Graph

655522 Commits

Author SHA1 Message Date
Caitlin Cassidy
fbbaffca33 [Ongoing Call] Only listen for the swipe gesture while in immersive
mode.

Test: manual: Do a swipe up on the status bar while not in immersive,
then open a landscape immersive app and verify the status bar still
shows (i.e. it wasn't dismissed by the previous swipe)
Test: new unit tests
Bug: 195839150

Change-Id: I1913c25c29b635979b0cb89d815b2d2c6cc40530
2021-10-14 14:26:11 +00:00
Caitlin Cassidy
b289d81fa8 [Ongoing Call] Use a LogBuffer for the SwipeStatusBarAwayGestureHandler.
Test: manually dumping log
Bug: 195839150
Change-Id: I5b4f13f7aa4544199c1c740d8a326a10cc73c2a4
2021-10-14 14:26:10 +00:00
Caitlin Cassidy
de3c5c0808 [Ongoing Call] Add an option to disable tapping the chip while in
immersive mode.

Bug: 195839150
Test: Manual
Test: atset OngoingCallControllerTest
Change-Id: I84ccce47bb3f23c208063e6537154d405d3fc900
2021-10-12 14:23:14 +00:00
Taran Singh
53a1d2e0e0 Merge "Remove binder tracing from IMS" into sc-v2-dev 2021-10-11 20:33:53 +00:00
Caitlin Cassidy
acf2a8d3d9 Merge "[Ongoing Call] Hide the status bar in immersive mode if the user has swiped it away." into sc-v2-dev 2021-10-11 20:32:00 +00:00
Beverly Tai
b0e7bac136 Merge "Ensure unlock icon animates" into sc-v2-dev 2021-10-11 20:05:14 +00:00
TreeHugger Robot
a06b166601 Merge "[Status Bar Refactor] Move PanelBar#updateScrimFraction into ScrimController." into sc-v2-dev 2021-10-11 19:55:46 +00:00
Taran Singh
70021e0f8a Remove binder tracing from IMS
Binder tracing can be very expensive. In dogfood builds its triggered
time to time and it should only be called manually when needed.

Fix: 202721321
Test: atest CtsInputMethodtestCases
      tested with winscope trace.

Change-Id: I0a4ee1b90e56ed1b20e44b5a0b42c17d565d05dd
2021-10-11 19:14:40 +00:00
Caitlin Cassidy
91ffa06bb2 [Status Bar Refactor] Move PanelBar#updateScrimFraction into
ScrimController.

No need for PanelBar to calculate scrim values and notify
ScrimController of them, when ScrimController can just calculate them
directly.

Test: Manually verifying scrim fraction is still updated correctly via
logs
Bug: 200063118

Change-Id: I37df95015002825adf7217c4144950e85485af84
Merged-In: I37df95015002825adf7217c4144950e85485af84
2021-10-11 18:32:27 +00:00
Matt Pietal
3dcea69858 Merge "More keyguard docs" into sc-v2-dev 2021-10-11 18:23:23 +00:00
Caitlin Cassidy
de8b2434bb [Ongoing Call] Hide the status bar in immersive mode if the user has
swiped it away.

Test: Manual (see video in b/195839150#comment6)
Test: TODO unit tests if general structure is approved
Bug: 195839150
Change-Id: Iee58416973becf9d66db6f50c7512cf65722766b
2021-10-11 17:50:07 +00:00
Winson Chung
716a74a819 Merge "Apply the last recents animation transform on single-activity PIP tasks" into sc-qpr1-dev am: 731c558ec1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16019499

Change-Id: I79df8b973ae2336861556be8d85728a568d0ac17
2021-10-11 17:48:30 +00:00
Winson Chung
731c558ec1 Merge "Apply the last recents animation transform on single-activity PIP tasks" into sc-qpr1-dev 2021-10-11 17:31:18 +00:00
Matt Pietal
1c9e5a9952 More keyguard docs
Starting to set the template for docs, with much more coming.

Test: read the docs
Bug: 195430376
Change-Id: Ie0403bba608520d2be6a5b5d4555c6e8a3deb1ed
2021-10-11 12:46:06 -04:00
Selim Cinek
e81d0394f7 Merge "Fixed the performance of unlocking when dozing" into sc-v2-dev 2021-10-11 16:22:35 +00:00
Beverly
4ba84cbd01 Ensure unlock icon animates
- always update lock icon visibility if the state changes
(ie: fp running state or userUnlockedWithBiomtric)
- show the lock icon if mUserUnlockedWithBiometric is true so
that mShowLockIcon or mShowUnlockedIcon are converse (aside from
fingeprint listening state)

Test: manual, atest LockIconViewControllerTest
Fixes: 201264245
Change-Id: I5d4e2f7566bf724923f2f24808e96aa0d789ff07
2021-10-11 11:49:25 -04:00
TreeHugger Robot
f68d0b927f Merge "Make sure the color background is only cleared once" into sc-v2-dev 2021-10-11 15:36:07 +00:00
Jean-Michel Trivi
ee5419c367 Merge "AudioService: initialize sensors if head tracking supported" into sc-v2-dev 2021-10-11 15:24:37 +00:00
Beth Thibodeau
c91778d2e5 Merge "Add content description for seekbar" into sc-v2-dev 2021-10-11 15:20:40 +00:00
Alex Florescu
635fef18d6 Merge "Configure 720dp split shade similar to 600dp" into sc-v2-dev 2021-10-11 12:55:18 +00:00
Nataniel Borges
2a5d5da90c Merge "[DO NOT MERGE] Compatibilize flicker from master to sc-v2-dev" into sc-v2-dev 2021-10-11 11:47:10 +00:00
Nataniel Borges
2af16463ee [DO NOT MERGE] Compatibilize flicker from master to sc-v2-dev
This is necessary to fix  "Unable to save trace file /sdcard/flicker/startRotationServiceTest_layers_trace.winscope" in the library self tests

Bug: 202288112
Bug: 202366188
Bug: 188993244
Test: atest FlickerTests WMShellFlickerTests
Change-Id: I9d6d6025be8b659d2f062771cfbd2f6c0982c2be
2021-10-11 10:47:19 +00:00
Jordan Demeulenaere
d8b856ceae Merge "Fix SysUI crash when locking while showing the Media Output Group dialog" into sc-v2-dev 2021-10-11 09:39:17 +00:00
Jordan Demeulenaere
6076998bce Merge "Use Falsing Manager for media player taps" into sc-v2-dev 2021-10-11 09:39:09 +00:00
TreeHugger Robot
2aa3d92490 Merge "Fix non-protected broadcast NO_ACTION" into sc-v2-dev 2021-10-11 03:41:01 +00:00
Beverly Tai
bb72307118 Merge "Update face lockout co-ex message" into sc-v2-dev 2021-10-10 23:32:17 +00:00
Chris Li
c8ce41fa89 Merge "Fix unfreeze on unstarted freezer" into sc-v2-dev 2021-10-10 11:43:43 +00:00
Chris Li
df04e22915 Merge "Treat two TaskFragment leashes as one for TASK_FRAGMENT_OPEN/CLOSE" into sc-v2-dev 2021-10-10 11:14:28 +00:00
TreeHugger Robot
43ba88d749 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 3b55d6d9fd -s ours
am skip reason: subject contains skip directive

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

Change-Id: I983e2deec2bdb63ef8743c1c74ba77f7ce76d5b5
2021-10-10 05:55:39 +00:00
TreeHugger Robot
909efbeef5 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 77ff793f66 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I846381c5fd410e99ed92448b08358711dab538c1
2021-10-10 05:54:50 +00:00
TreeHugger Robot
2e3d322593 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-10 05:37:53 +00:00
TreeHugger Robot
3b55d6d9fd Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-10 05:37:38 +00:00
TreeHugger Robot
77ff793f66 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-10 05:34:26 +00:00
TreeHugger Robot
0354fa34aa Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-10 05:34:05 +00:00
Bill Yi
fd357953dc Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ida32e69a1a2dd102d6f60bfb5e13790cdf0bcca9
2021-10-09 06:16:19 +00:00
Bill Yi
8c4d915e01 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I88cafe31874b0dc86c8b912a00f8b4028fbd0deb
2021-10-09 06:13:57 +00:00
Chris Li
5b00d1426d Fix unfreeze on unstarted freezer
Before, when trigger change transition and screen freeze before the
previous transition is finished, it will cancel the animation and call
to unfreeze. However, it will then unfreeze the new snapshot instead of
the old one, which cause a client crash because of missing leash.

The fix contains two changes:
1. Let SurfaceAnimator to take the snapshot from the freezer as it does
   for animation leash.
2. When an animation leash needs to be removed, check if it is the
   current animation leash (parent of the window surface) before
   reparenting the window surface back to the parent window surface.

Bug: 201622511
Bug: 196173550
Test: atest WmTests:WindowContainerTests
      #testStartChangeTransitionWhenPreviousIsNotFinished
Test: click demo app launch spit before the previous one is finished
Change-Id: I58fb05a971b49981d168d00c9fb42014b4d3cd4d
2021-10-09 14:06:59 +08: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
Bill Yi
e615b75ab8 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibdf0e8b92b536f9848d3fcd7595929e652211692
2021-10-09 02:27:31 +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
Winson Chung
54d481deda Apply the last recents animation transform on single-activity PIP tasks
- When swiping up to enter PIP w/ auto-enter, SysUI applies a transform
  on the leash which is seamlessly applied to the task (to prevent jumps
  when the leash is removed).  This was intended to be applied in both
  single and multiple activity PIP cases, but if that doesn't happen,
  then when the transform is later cleared, it will inadvertently reset
  the task's crop and matrix.

Bug: 201127015
Test: atest PinnedStackTests
Test: Open YT, enter PIP, turn screen off, turn screen back on
Change-Id: I0d6d46c7c52f7a43058902b50a26131f626ae92d
2021-10-08 23:26:03 +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