Commit Graph

656050 Commits

Author SHA1 Message Date
Jonathan Scott
c8e719e4b5 Centralise owners for Enterprise Platform team.
This will allow us to point other directories at these files for OWNERS
and make it easier to update after future team changes.

Test: N/A
Bug: 202714830
Change-Id: Iaaf5b8eb7568be4ebfd1b30abae0b757153f0391
(cherry picked from commit 7443751dd9)
2021-10-28 12:00:08 -07:00
TreeHugger Robot
7e2a96a463 Merge "Fix showing translated text if user switch back to original lauguage quickly." into sc-v2-dev 2021-10-26 05:35:07 +00:00
Wei Sheng Shih
26f39bdc52 Merge "Prevent receive extra callbacks from AnimatorListener." into sc-v2-dev 2021-10-26 05:12:02 +00:00
Ahming Chen
edb518fe0f [automerger skipped] Merge "Fixed the performance of unlocking when dozing" into sc-qpr1-dev am: 3e4737aafa -s ours
am skip reason: Merged-In Iebefca3a1810a498654cad0e461532a5d9f7d0af with SHA-1 4e0c250564 is already in history

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

Change-Id: I3f29ad22cff061e86ec5733e04eef8af262e2e9e
2021-10-26 04:39:45 +00:00
Ahming Chen
3e4737aafa Merge "Fixed the performance of unlocking when dozing" into sc-qpr1-dev 2021-10-26 04:28:38 +00:00
Joanne Chung
64f6b76051 Fix showing translated text if user switch back to original lauguage quickly.
Fixes the bug if the translation service spending more time to deal
with the translation but user switches back to original lauguage
quickly, we will show translated text.

When the response back, if the translation state is finished, we drop
the result. If the state is pause, we update the response but we do
not call onShowTranslation to translated text.

Bug: 200251777
Test: atest CtsTranslationTestCases
Test: manual. Try to send request late and switch back original
language, it keeps original. Then it works fine when switch between
the source and target languages.

Change-Id: I780456f091884c61e5801ead3ff021531fee87b4
2021-10-26 03:54:45 +00:00
Lucas Dupin
8316f682ec Merge "Kotlin 1.5.31 compatibility" into sc-v2-dev 2021-10-26 02:06:39 +00:00
TreeHugger Robot
9ad299f24d Merge "Fix IME flickering when playing Keyguard launching remote animation" into sc-v2-dev 2021-10-26 01:44:58 +00:00
TreeHugger Robot
78403746b7 Merge "Supported minimum aggregated bandwidth and roaming for 5G+" into sc-v2-dev 2021-10-26 00:47:47 +00:00
Wei Sheng Shih
e9ca409903 Merge "Only register listeners if setView was success." into sc-v2-dev 2021-10-26 00:34:57 +00:00
Lucas Dupin
c6f4d4e163 Kotlin 1.5.31 compatibility
Fixes: 204108213
Test: make
Change-Id: If73c50d9b51cf73c271bf38d7c4fce09d23ae51d
2021-10-25 14:14:48 -07:00
Jorge Gil
0566e1ec5b Merge "Dump DisplayModeDirector state without locking mSyncRoot" into sc-v2-dev 2021-10-25 18:33:21 +00:00
TreeHugger Robot
d0a44fb730 Merge "Remove face auth wallpaper" into sc-v2-dev 2021-10-25 16:59:50 +00:00
Lucas Dupin
2e995c254d Merge "[Output Switcher] Follow up change of output switcher for mertial next" into sc-v2-dev 2021-10-25 15:51:11 +00:00
Ming-Shin Lu
dd59d534a3 Fix IME flickering when playing Keyguard launching remote animation
When starting the remote animation, before
RemoteAnimationController#goodToGo, WM will traverse all windows to
perform mApplySurfaceChangesTransaction to prepare showing the window
surface if needed.

Howerver, in issue case, IME surface accidientally being in traverse
window list and shown on the screen even Gpay didn't request show IME.

As IME window now is being in ImeContainer, to apply IME surface change
transaction, in WindowState#forAllWindows -> applyInOrderWithImeWindows
-> applyImeWindowsIfNeeded that has logic to apply for IME window when
the traversing window is non-split-screen IME layering target.

However, this logic didn't cover the case if the last IME input target
that interact with IME is not drawn.

For issue case, the last IME input target is the Message app
and invisible because it has obscured by lockscreen.

So during launching the Gpay activity, even Gpay activity is layering
target, since the last IME input target is not visible, in that case
we should not apply IME surface preperation.

As the result, the fix will be:
- Add a check in WindowState#applyImeWindowsIfNeeded to ignore applying
  callback for IME window if the IME input target is not drawn.

Fix: 201987724
Test: atest RemoteAnimationControllerTests#\
         testLaunchRemoteAnimationWithoutImeBehind
Test: manual steps as below:
    0-1) Set secure unlock method (e.g. pattern)
    0-2) Install "Google Pay" app
    0-3) Add a payment method instruction
    1) Start Message app
    2) Click search window and wait IME window appears
    3) Hit power button to lock the device
    4) Tap screen to show Lockscreen
    5) Tap GPay icon
    6) See animation and expect there is no IME flickering behind

Change-Id: I57357ba85501397fa5926ab4dee116c42df24506
2021-10-25 23:48:20 +08:00
Aaron Huang
1ceeaf0b99 Merge "Have buildTemplateMobileWithRatType take metered parameter" into sc-v2-dev 2021-10-25 15:09:01 +00:00
Aaron Huang
3a1184edf3 Merge "Respect metered filter in matchesMobile*" into sc-v2-dev 2021-10-25 15:08:36 +00:00
TreeHugger Robot
0826811ad3 Merge "Dump mIsSwipeToNotificationEnabled state" into sc-v2-dev 2021-10-25 13:46:05 +00:00
wilsonshih
aeb283f9f6 Prevent receive extra callbacks from AnimatorListener.
There will receive another onAnimationStart/onAnimationEnd callback
when calling ValueAnimator#end if the animation is not running, which
is not necessary if the animation was finished already.

Bug: 195736656
Test: atest SplashscreenTests
Change-Id: Ifbbf2f799e3e69624626b16e08f40b562fe483a8
2021-10-25 20:40:13 +08:00
TreeHugger Robot
cff5e32516 Merge "Check if APK paths are valid right before creating the context." into sc-v2-dev 2021-10-25 12:26:27 +00:00
tomnatan
defbe2ff4a Fix merge issue with ActivityInfo#getMinAspectRatio
Fix: 204041050
Test: Test: N/A
Change-Id: I33a2600efa379cc3a5535b4917a64a5309f01321
2021-10-25 10:02:17 +00:00
Tom Natan
59f0a73009 Merge "Apply min aspect ratio override only for portrait only activities" into sc-v2-dev 2021-10-25 09:16:38 +00:00
Pierre Barbier de Reuille
acfcc90ebd Check if APK paths are valid right before creating the context.
The check has to be done in RemoteViews and in AppWidgetHostView right
before creating the context used to inflate the app widget. Further, the
APK is cached potentially in two places: in the APK with code and the
APK without codes, so both places are updated if present.

Test: manual, see bug for details
Fix: 202369942

Change-Id: I5718f67711a3332a942d3c037eef7f30379549a4
2021-10-25 08:20:10 +00:00
shaoweishen
511597c7a2 [Output Switcher] Follow up change of output switcher for mertial next
1. move disconnected status to subtitle.
2. clean up onBind method.
check bug for before/after screenshot.

Bug: 191890668
Test: atest MediaOutputAdapterTest MediaOutputControllerTest MediaOutputBaseDialogTest MediaOutputDialogTest MediaOutputGroupAdapterTest MediaOutputGroupDialogTest
Change-Id: Icbb714e03376632a8934a08cefc4ffee27b19138
2021-10-25 08:11:15 +00:00
TreeHugger Robot
7fc0216e35 Merge "Add sync-group timeout for transition" into sc-v2-dev 2021-10-25 07:05:25 +00:00
Chalard Jean
6f1aaa7eb1 Merge "Remove forceAllNetworkTypes from test" into sc-v2-dev 2021-10-25 04:50:30 +00:00
Shawn Lin
59f51a9538 Merge "Add APIs to get system bar heights" into sc-v2-dev 2021-10-25 04:07:12 +00:00
TreeHugger Robot
517f6aedc1 Merge "Ensure end action is called if keyguard animation is cancelled" into sc-v2-dev 2021-10-23 02:20:41 +00:00
Riddle Hsu
2179ef0565 Add sync-group timeout for transition
This allows to use different timeout according to transition type.
Also
 - Avoid indeterminate timeout by scheduling for individual windows,
   or a new window joins the sync-group lately.
 - The standalone sync request from applyWithNextDraw won't be mixed
   with the control of sync-group.

Bug: 199836343
Test: atest TransitionTests#testTimeout
Test: setprop persist.debug.shell_transit 1;
      Launch an activity or change display orientation while the
      UI thread of the activity is no response, the transition
      should execute eventually within the timeout e.g. 5s and 2s.
Change-Id: Iafecc01818193504ea3fd393817691e1b5e9f084
2021-10-22 14:36:13 +08:00
TreeHugger Robot
528030641b [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ce29e7fe5c -s ours am: fe4b701900 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ia397168cf411bea5685f1a5d705385658b9bc3ca
2021-10-22 06:30:48 +00:00
TreeHugger Robot
8e7baf33b8 Merge changes from topic "presubmit-am-0550843f1444420ab16f47a7d2ecee97" into sc-qpr1-dev am: 89a07b5a1b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16104776

Change-Id: I7fbef5c974bd7a6154c7025e10efea63fe28b747
2021-10-22 06:30:42 +00:00
TreeHugger Robot
fe4b701900 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ce29e7fe5c -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ice8c8fc608a5e07c492328dc0dd34b4c4e4f630f
2021-10-22 06:30:40 +00:00
Bill Yi
15cb764121 [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 2cda11dd3c am: 3d6fe8b75f -s ours
am skip reason: subject contains skip directive

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

Change-Id: I74b082447eec5b8b4dbf61cae8841c41816a3611
2021-10-22 06:30:40 +00:00
TreeHugger Robot
89a07b5a1b Merge changes from topic "presubmit-am-0550843f1444420ab16f47a7d2ecee97" into sc-qpr1-dev
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 2cda11dd3c
  Import translations. DO NOT MERGE ANYWHERE
2021-10-22 06:14:39 +00:00
TreeHugger Robot
ce29e7fe5c Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-10-22 06:14:39 +00:00
TreeHugger Robot
2d0e3ea3e1 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: f28827d1e7 -s ours am: 30d10334c4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Id69112594dda378f9fb97fdce5c1dda94d1f9b46
2021-10-22 05:49:16 +00:00
TreeHugger Robot
30d10334c4 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: f28827d1e7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I841634db3abc067d513cfef00d29263b1caed869
2021-10-22 05:44:18 +00:00
TreeHugger Robot
d83ef0e074 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 82443994f8 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I08e411430498578728202a1fb6b10fc10879ff74
2021-10-22 05:37:19 +00:00
TreeHugger Robot
ce9ddf5337 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev am: 3307b3eda9 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ibb65edd07f75047d743a6a098a74ee6a0a485444
2021-10-22 05:37:00 +00:00
TreeHugger Robot
82443994f8 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-22 05:36:48 +00:00
TreeHugger Robot
f28827d1e7 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-10-22 05:31:08 +00:00
TreeHugger Robot
3307b3eda9 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-qpr1-dev 2021-10-22 05:23:28 +00:00
TreeHugger Robot
d31a976918 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-22 05:15:52 +00:00
TreeHugger Robot
210985dea4 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-v2-dev 2021-10-22 05:15:49 +00:00
Jerry Chang
6d9959a09c Merge "Fix drop to enter split not working" into sc-v2-dev 2021-10-22 04:50:25 +00:00
Bill Yi
a9bc956979 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ff4ac67089 -s ours am: fbf951b12e -s ours
am skip reason: subject contains skip directive

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

Change-Id: I1f0dda3ce5e33d6c2cbc138455afa58d5db48168
2021-10-22 04:31:32 +00:00
Bill Yi
eca0250202 Merge changes from topic "presubmit-am-902b4a010a85419caf0dc4cf949d2c72" into sc-qpr1-dev am: c056ea0d52
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16099218

Change-Id: I1623c0f0462ff40a969ff397eb6cf35047fc0df6
2021-10-22 04:31:25 +00:00
Bill Yi
df556ed011 [automerger skipped] [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 5cde27cf42 am: 7496de1147 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If70249ca564132e3907c34ffa6484476ea5b2782
2021-10-22 04:31:24 +00:00
Bill Yi
fbf951b12e [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev am: ff4ac67089 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If4eadbdd72934e7bda1b16754dd0f4ca81089719
2021-10-22 04:30:43 +00:00
Bill Yi
ff4ac67089 Merge "Import translations. DO NOT MERGE ANYWHERE" into sc-dev 2021-10-22 04:15:40 +00:00