1594 Commits

Author SHA1 Message Date
Nataniel Borges
4e4babec1a Create owner test files for subpackages
Now failures can be automatically directed to the correct buganizer components and forwarded directly to the correct assignees, instead of being all created into the Winscope for further triage

Test: check owners file
Change-Id: I6876a702b4f46443328aab027f7fee994b2bb819
2022-01-20 10:21:40 +00:00
Treehugger Robot
80a8bec986 Merge "Import translations. DO NOT MERGE ANYWHERE" 2022-01-11 00:50:18 +00:00
Bill Yi
4c1a6f5c0c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I630367ef968c6c243fdfaf74c3454a5b2317c28f
2022-01-10 14:56:26 +00:00
Bill Yi
a3da5ba222 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Ibb329a7d407da9b8dc2bf002d706636c319a881f
2022-01-10 14:54:59 +00:00
Bill Yi
6042a19c72 Merge sc-qpr1 to aosp-master - DO NOT MERGE
Merged-In: I90ca5ccbf686a975f479c2488ff34f82af12946a
Merged-In: I128f5ed6c1bad350ea449bba5da21123de3ea31b
Change-Id: Ib18c8042f735dceeee5e6ab9f1c963cf630913a6
2022-01-06 18:38:32 -08:00
Hongwei Wang
efb0993673 Ignore ui mode change caused by Morris overlay in PiP
When entering PiP from GMM with Morris overlay enabled, there will be a
display change callback caused by ui mode change that tend to shift the
PiP window. For PiP, such ui mode change from app is not quite relevant
and we can simply ignore in PipController.

Bug: 201589034
Video: http://recall/-/aaaaaabFQoRHlzixHdtY/dmI3KCeKPAH118BRqnhgNO
Test: enter PiP from GMM with Morris overlay, see video
Merged-In: I2d72e166fb8de1e503415b5441c03f0685de9573
Change-Id: I2d72e166fb8de1e503415b5441c03f0685de9573
(cherry picked from commit 391f372726af62c6d9ba9b221508003c37e8ff8a)
(cherry picked from commit 166f263128010f6a885efa17a5ebc3aa94d3b3d6)
Merged-In:I2d72e166fb8de1e503415b5441c03f0685de9573
2021-12-02 00:02:16 +00:00
Winson Chung
6b88dadc8b Merge "Add null check for mRootTaskInfo in AppPair dump" am: e39da5a9a7
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1890538

Change-Id: Ifd160aed0f9e192507752d7bffb30195a0164d5f
2021-11-24 05:50:50 +00:00
Xin Li
10d9972786 Merge sc-qpr1-dev-plus-aosp-without-vendor@7810918
Bug: 205056467
Merged-In: I13199bc39e9445929195f3d15579cbffe94e92b0
Change-Id: I35fa3c6c2abf679c51033f1395a08d511ed8739f
2021-11-18 17:00:37 +00:00
Håkan Kvist
678fdc8acd Add null check for mRootTaskInfo in AppPair dump
mRootTaskInfo can be null, so make sure to check it before
accessing in AppPair dump method.

Bug: 206007135
Test: N/A
Change-Id: If012dedd80607af7a1e48512ddd4eaf2bebdc2bf
2021-11-12 16:00:51 +01:00
Nataniel Borges
b81392c9cd Add pablogamito to flicker test owners
Test: check owners file
Change-Id: If8adecda0d23d6d673825695e57813b281c0f6bc
2021-11-09 19:11:37 +01:00
Ming-Shin Lu
f38f1ebb7d RESTRICT AUTOMERGE: Fix snapshot starting window stuck if the task never gain focus am: a4f760bee7 am: 72ea33eb75
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15937022

Change-Id: Ib76cbe68741833fe597a828f167e715043814627
2021-09-30 10:25:54 +00:00
Ming-Shin Lu
849894b3a7 RESTRICT AUTOMERGE: Fix snapshot starting window stuck if the task never gain focus am: a4f760bee7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15937022

Change-Id: I67c974b959f0a5695384bba8ecfa144fde2e101e
2021-09-30 10:15:28 +00:00
Ming-Shin Lu
72ea33eb75 RESTRICT AUTOMERGE: Fix snapshot starting window stuck if the task never gain focus am: a4f760bee7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15937022

Change-Id: I92e206162b407c1cf014bad5878ed5093693cd72
2021-09-30 10:14:29 +00:00
Ming-Shin Lu
a4f760bee7 RESTRICT AUTOMERGE: Fix snapshot starting window stuck if the task never gain focus
The tasksnapshot starting window could stuck on task if the task never
gain focus, this could happen when launch multiple tasks to front, e.g.
split screen, or add snapshot starting window to a pip task.

As using task focus to judge the task snapshot removal may error-prone.
(i.e. unexpected window focus in/lost, non-focusable task window..)

To ensure the tasksnapshot removal works stable in this stage, extanding
MAX_DELAY_REMOVAL_TIME_IME_VISIBLE timeout from 450ms to 600ms
(Includes the worst time perviod from tasksnapshot drawn to the task window
focused around 150ms) would be safer and keeps the behavior of original
fixed Bug 192065018.

Bug: 201264769
Test: atest ActivityRecordTests
Test: manual launch apps from Recents.
Test: enter pip, power on/off, verify starting window is removed.
Test: manual enter split screen, verify starting window is removed.
Merged-In: Ieb5a5e781f5da4228cfc493031b4ad17f2d31a77
Change-Id: Ieb5a5e781f5da4228cfc493031b4ad17f2d31a77
2021-09-29 19:20:36 +08:00
Xin Li
8891d70334 Merge SP1A.210812.016
Merged-In: I8b62b9b9d7ae271bc623764d545db1320b4dc64f
Change-Id: I458ed7f2eb8603f5e89c1d73bc0f0d52b826973e
2021-09-28 19:26:36 +00:00
Ming-Shin Lu
b8ed139313 RESTRICT AUTOMERGE: More improve IME transition during task switch am: 5c23301322
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15888530

Change-Id: Iac595386990d5f42f81318e280865cf0f5b30f0b
2021-09-25 04:19:10 +00:00
TreeHugger Robot
d92e142ac4 Merge "RESTRICT AUTOMERGE: More improve IME transition during task switch" into sc-dev 2021-09-25 04:00:43 +00:00
Bill Yi
8cb6e80e2d Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-09-24 22:31:38 +00:00
TreeHugger Robot
d023757b83 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-09-24 16:47:34 +00:00
TreeHugger Robot
fd33aab7cd Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-09-24 16:47:11 +00:00
Ming-Shin Lu
e730ad6ec7 Merge "Modify TaskSnapshotWindow#scheduleRemove" into sc-qpr1-dev am: d820697e08
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15896148

Change-Id: I3a1830cfffdd939285e603bdea39e7454165e443
2021-09-24 08:54:38 +00:00
Ming-Shin Lu
102c525452 Modify TaskSnapshotWindow#scheduleRemove
As code review in CL[1] from sc-dev, we should preserve the previous
logic to remove home task snapshot immediately, in order to show latest
content as soon as possible for unlocking to home.

Note that this CL is to sync the logic CL[1] in sc-dev for the
downstream branch (qpr1 and v2, and internal master)

[1] I81031f64966b1aeb55cc09f381d4d83ec3460dc9 (sc-dev)

Bug: 192065018
Test: ateset StartingSurfaceDrawerTests#\
        testRemoveTaskSnapshotWithImeSurfaceWhenOnImeDrawn
Test: manual tests by
   1) launching Android Message with focusing an editor
   2) swiping out to home and launch another apps (e.g. chrome)
   3) swiping up to overview, tapping Android Message task
   4) verify if IME is flickering after switched back.
Change-Id: Ic0cb07504acc11707327360051612df9cce565bd
2021-09-24 04:58:07 +00:00
Bill Yi
e09dd328d6 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Icba21a43159bab6abd8be75fd6097826ebfa2596
2021-09-24 01:24:53 +00:00
Bill Yi
b33cc8091c Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I555196d61c9123b77d07d4bed47b08a19a4a7505
2021-09-24 01:23:37 +00:00
Bill Yi
ebefedaa7e Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4e82fda243d0d26c15ea2a8b7bbe9e79cbeffbdd
2021-09-24 01:19:23 +00:00
Bill Yi
063bcacc7a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I037c4ff660c2eed06d4dc09507334300e10fd7b1
2021-09-24 01:18:08 +00:00
Ming-Shin Lu
5c23301322 RESTRICT AUTOMERGE: More improve IME transition during task switch
This CL aims to optimize the previous CL[1] to schedule removing
tasksnapshot after a fixed timeout according the tasksnapshot:
    - With IME snapshot: 350ms
    - Without IME snapshot: 100ms

As the previous approach has some cons espically when the tasksnapshot
has IME shown:
1) It lacks a signal or callback to notify WmShell to dismiss
tasksnapshot when IME is actually drawn on the task and always
dismissed after the timeout.

2) The timing to schedule tasksnapsit removal is when
ActivityRecord#onWindowFirstDrawn, which is much eariler than the
window focused (about 100-150ms), and it may easier to see flickering
when the task is showing IME.

The reason is that IME is drawn after window focused and started input
connection. Also, starts from R, IME insets visiblity
is handled by the app's UI thread, so if the schedule removal timing
been triggered too early and if IME / App takes more time to handle IME
surface layout, then user might aware the app task flickering when
tasksnapshot dismissed, since IME is not yet be drawn and then it
show up again when the next layout finished.

In this CL, we made the following changes to improve the above cons
- Postpone the schedule removing tasksnapshot (with IME) timing to
  after the app task has focused.
- Modify the tasksnapshot removal timeout (with IME)  from 350ms to
  450ms (with renaming to MAX_DELAY_REMOVAL_TIME_IME_VISIBLE),
  in case some edge cases may take longer time to process IME layout.
- add ITaskOrganizer#onImeDrawnOnTask(taskId) to notify the shell
  task organizer to properly remove the tasksnapshot without waiting
  until the max timeout.

[1]: I7865e17b57961e12a0cdcf068e412195123a6ec7

Fix: 192065018
Test: ateset StartingSurfaceDrawerTests#\
        testRemoveTaskSnapshotWithImeSurfaceWhenOnImeDrawn
Test: manual tests by
   1) launching Android Message with focusing an editor
   2) swiping out to home and launch another apps (e.g. chrome)
   3) swiping up to overview, tapping Android Message task
   4) verify if IME is flickering after switched back.
Change-Id: I81031f64966b1aeb55cc09f381d4d83ec3460dc9
(cherry picked from commit 278e944fd5192b578bc9769323bd46105cddd822)
2021-09-23 20:45:27 +08:00
Winson Chung
412d4be7a7 Merge "Ensure wm is fetched on the shell thread" into sc-qpr1-dev am: 938b7d01f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15881354

Change-Id: I9a6550abbfb20a183084a80c2c041e34042148f0
2021-09-22 02:49:35 +00:00
Winson Chung
da6e8a5f77 Ensure wm is fetched on the shell thread
Bug: 199700116
Test: atest PinnedStackTests
Change-Id: I1aa925bc2ee2bd093b82f18432b548f785f232f4
2021-09-21 21:29:15 +00:00
TreeHugger Robot
d2393cc7e4 Merge "Fix OHM H/W key shortcut dosn't work appropriately" into sc-qpr1-dev am: 9a57cd553b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15581982

Change-Id: I14c637fdd36d220711c24a5c4d75097c98a5da3d
2021-09-16 00:49:18 +00:00
TreeHugger Robot
9a57cd553b Merge "Fix OHM H/W key shortcut dosn't work appropriately" into sc-qpr1-dev 2021-09-16 00:40:58 +00:00
Ming-Shin Lu
2bc28752af RESTRICT AUTOMERGE: More improve IME transition during task switch am: 278e944fd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15746913

Change-Id: If6e2b58d76cbcbb1b4721f9bffca157cfccc9cf4
2021-09-15 14:54:59 +00:00
TreeHugger Robot
32efa155f4 Merge "RESTRICT AUTOMERGE: More improve IME transition during task switch" into sc-qpr1-dev 2021-09-15 01:04:13 +00:00
Ming-Shin Lu
278e944fd5 RESTRICT AUTOMERGE: More improve IME transition during task switch
This CL aims to optimize the previous CL[1] to schedule removing
tasksnapshot after a fixed timeout according the tasksnapshot:
    - With IME snapshot: 350ms
    - Without IME snapshot: 100ms

As the previous approach has some cons espically when the tasksnapshot
has IME shown:
1) It lacks a signal or callback to notify WmShell to dismiss
tasksnapshot when IME is actually drawn on the task and always
dismissed after the timeout.

2) The timing to schedule tasksnapsit removal is when
ActivityRecord#onWindowFirstDrawn, which is much eariler than the
window focused (about 100-150ms), and it may easier to see flickering
when the task is showing IME.

The reason is that IME is drawn after window focused and started input
connection. Also, starts from R, IME insets visiblity
is handled by the app's UI thread, so if the schedule removal timing
been triggered too early and if IME / App takes more time to handle IME
surface layout, then user might aware the app task flickering when
tasksnapshot dismissed, since IME is not yet be drawn and then it
show up again when the next layout finished.

In this CL, we made the following changes to improve the above cons
- Postpone the schedule removing tasksnapshot (with IME) timing to
  after the app task has focused.
- Modify the tasksnapshot removal timeout (with IME)  from 350ms to
  450ms (with renaming to MAX_DELAY_REMOVAL_TIME_IME_VISIBLE),
  in case some edge cases may take longer time to process IME layout.
- add ITaskOrganizer#onImeDrawnOnTask(taskId) to notify the shell
  task organizer to properly remove the tasksnapshot without waiting
  until the max timeout.

[1]: I7865e17b57961e12a0cdcf068e412195123a6ec7

Fix: 192065018
Test: ateset StartingSurfaceDrawerTests#\
        testRemoveTaskSnapshotWithImeSurfaceWhenOnImeDrawn
Test: manual tests by
   1) launching Android Message with focusing an editor
   2) swiping out to home and launch another apps (e.g. chrome)
   3) swiping up to overview, tapping Android Message task
   4) verify if IME is flickering after switched back.
Change-Id: I81031f64966b1aeb55cc09f381d4d83ec3460dc9
2021-09-13 18:01:56 +08:00
Bill Yi
999cc105b3 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I4f8eec1615c3f186a2db9bf316c038e4aa111ab1
2021-09-10 22:15:59 +00:00
Bill Yi
97fa83e0ec Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I616e2bd98ad38e2422eea203bf0fcc8bd9305de3
2021-09-10 22:14:33 +00:00
Bill Lin
08898e3dde Fix OHM H/W key shortcut dosn't work appropriately
When one-handed mode disabled
1. Turn on the shortcut of the OHM with hold volume keys
2. Hold the volume keys
Should trigger one-anded mode

Due to S/W & H/W shortcut keys are mapping to different settings
S/W : ACCESSIBILITY_BUTTON_TARGETS
H/W : ACCESSIBILITY_SHORTCUT_TARGET_SERVICE
We should check both status of the them.

Bug: 193411296
Bug: 198739184
Test: atest WMShellUnitTests
Change-Id: I3994ab89fd6163c283969cc3175877e29b44c67a
Merged-Id: I3994ab89fd6163c283969cc3175877e29b44c67a
2021-09-08 16:52:47 +08:00
TreeHugger Robot
abeb3d924a Merge "Fix one more import for ContextThemeWrapper." into sc-qpr1-dev am: 1bc5c4fe62
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15713462

Change-Id: I2bcdd0beb16d12bc21506bba1a7354f82b8a152c
2021-08-31 12:14:19 +00:00
TreeHugger Robot
1bc5c4fe62 Merge "Fix one more import for ContextThemeWrapper." into sc-qpr1-dev 2021-08-31 11:56:52 +00:00
TreeHugger Robot
04cfc450b7 Merge "Fix broken launcher build to use the right import for ContextThemeWrapper." into sc-qpr1-dev am: 2ae305234d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15713463

Change-Id: If550ccfc90fe6d24f116c011765e8eb99a6db6af
2021-08-30 17:02:01 +00:00
Becky Qiu
40be02e521 Fix broken launcher build to use the right import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ia36b77e3274191efa28c87cc0b2604a66906b604
Merged-In: Ia36b77e3274191efa28c87cc0b2604a66906b604
(cherry picked from commit 2ee44db719704b7324fa3ec82c0044dd0be13164)
2021-08-30 06:10:03 +00:00
Winson Chung
58b9ad0d37 Fix one more import for ContextThemeWrapper.
Bug: 195028385
Test: can build now.
Change-Id: Ie14285b614318a99098f4457d7564a25724cde6b
Merged-In: Ie14285b614318a99098f4457d7564a25724cde6b
(cherry picked from commit fff8e219751b1bb369c150139ddbcbec43966732)
2021-08-30 06:09:22 +00:00
Chris Li
3553846969 Merge "Fix race condition on size compat UI" into sc-qpr1-dev am: f9c3101df3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15614097

Change-Id: Icf6c77c284a383748f8bdc0c66bb306b2937d3a3
2021-08-18 23:47:53 +00:00
Chris Li
6104af0e8c Fix race condition on size compat UI
Before, the leash might have been released while the update surface
position runnable was in queue. Now, we make sure the leash is valid
before update position.

Fix: 196942784
Test: manual
Change-Id: I2d052bf46b12a2441dbc0aa1aabf5dfe9be2fa45
2021-08-18 17:40:12 +00:00
Bill Lin
6b31395252 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
(cherry picked from commit 27da5b04d44e76e884f8148684eb36311923c651)
2021-08-17 01:10:13 +00:00
Selim Cinek
46c86140d0 Merge "Don't create one-handed-background-panel after rotation" into sc-dev am: ab89e910bc am: 557189cf28
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15537318

Change-Id: Ic37b7620ab3e3883d0ba150c8e2c40780fc592a7
2021-08-16 12:01:17 +00:00
Selim Cinek
193406410a Merge "Don't create one-handed-background-panel after rotation" into sc-dev am: ab89e910bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15537318

Change-Id: I772cb9e60857aebda21a11083ed2bc2690a1517c
2021-08-16 11:52:16 +00:00
Selim Cinek
557189cf28 Merge "Don't create one-handed-background-panel after rotation" into sc-dev am: ab89e910bc
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15537318

Change-Id: I5f992e78160d4ba8e71264033efdb474d22e2f87
2021-08-16 11:51:22 +00:00
Mady Mellor
05e85158da Merge "[QPR1] Fix dismiss not working in landscape" into sc-qpr1-dev am: e64c264c04
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15521525

Change-Id: I0796b9a061b15b9a989f34282cb5bcaed466d8cd
2021-08-12 15:16:53 +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