Commit Graph

481234 Commits

Author SHA1 Message Date
Issei Suzuki
4b5ed59098 Fix bubble shows empty content after rotating the device.
When the device is rotated while a Bubble is expanded, the following
things happen after the device rotation.
1. an activity of the Bubble is started, and app transition
   TRANSIT_SHOW_SINGLE_TASK_DISPLAY is prepared.
2. the server waits until the Bubble activity draws contents on its
   surface, i.e. an app transition is executed.
3. the server trigger ITaskStackListner#onSingleTaskDisplayDrawn
4. SysUI makes a Surface of the Bubble activity opaque.

Depending on the status of Bubble activity, another app transition can
be prepared before the first step above, which is sticky so prevents
taking the following steps.

This change allows to override an app transition which has already been
prepared, so an app transition TRANSIT_SHOW_SINGLE_TASK_DISPLAY is
always executed; thus callback is triggered.

Bug: 158675422
Test: manual, open a Bubble and rotate device several times.
Change-Id: I24fb649c1301e5f5a2443f3eaed166049b5f6108
2020-07-06 11:48:55 +02:00
Wei Sheng Shih
76cfda57e5 Merge "Fix the regression that closing transition disappeared." into rvc-dev 2020-07-06 01:53:34 +00:00
Wei Sheng Shih
a3a29967b1 Merge "Remove redundant checks that stop updating systemUI when entering dream" into rvc-dev 2020-07-06 01:52:10 +00:00
TreeHugger Robot
45387676fc Merge "Allow doze dream package to start a DreamActivity" into rvc-dev 2020-07-05 21:08:05 +00:00
TreeHugger Robot
f8c9fc05fc [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev am: 97455bb190 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I4face375b982412d10ca22e242604093049d5d40
2020-07-05 20:50:47 +00:00
TreeHugger Robot
9348f97202 [automerger skipped] Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev am: dc862269a7 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I07875c26528d3e563b36f2492727effedd27e229
2020-07-05 20:50:20 +00:00
Bill Yi
4c3e8bbff9 [automerger skipped] Import translations. DO NOT MERGE am: 4aa476c0eb -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0aed9467253b84bd9e69ccda813d0d6727687bae
2020-07-05 20:49:53 +00:00
TreeHugger Robot
97455bb190 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2020-07-05 20:41:25 +00:00
TreeHugger Robot
dc862269a7 Merge "Import translations. DO NOT MERGE" into qt-qpr1-dev 2020-07-05 20:37:49 +00:00
Bill Yi
7bf506121a Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Iccc9ec816b494ed0590c3f319b14a60c14ed0821
2020-07-05 11:23:42 -07:00
Bill Yi
4aa476c0eb Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ia2ec10f0eed148d0269f38118f5ef4e7b810164e
2020-07-05 10:12:17 -07:00
Bill Yi
24e0477387 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ic8944f3cdbaa0a5b01c7d4c33037372c370a25f3
2020-07-05 09:00:02 -07:00
TreeHugger Robot
27bdd0c39b Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-07-05 05:37:33 +00:00
Bill Yi
4a4ccc3946 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Iba44ac048fd6bf527ab20b8a037d4af84213777f
2020-07-04 09:23:24 -07:00
Bill Yi
52853711c6 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ib1619e9a7013c7564dd9431f15d9cc49720eb6e9
2020-07-03 14:51:11 -07:00
Louis Chang
9e8c7bd645 Merge "Do not count AOD showing changes as keyguard's" into rvc-dev 2020-07-03 14:44:43 +00:00
TreeHugger Robot
641c8844ba Merge "Fix Keyboard stays on while startSeamlessRotation" into rvc-dev 2020-07-03 11:51:16 +00:00
Galia Peycheva
bdacdde5b9 Allow doze dream package to start a DreamActivity
After we made the DreamService use an activity, we introduced checks
that only the current active dream component can start a dream activity.
This meant that if the doze dream is in a different package, it would
get suspended.

This CL fixes that by whitelisting also the doze dream package.

Bug: 160109097
Test: m && flash && put two different dream as doze and active dream &&
      check that the doze starts
Test: atest DreamManagerServiceTests
Change-Id: I553dd1d44f3303d18278482b4a4e88a5564a94d3
2020-07-03 11:47:36 +02:00
Louis Chang
fc0cdd8526 Do not count AOD showing changes as keyguard's
AOD status changed after keyguard was set as going away, which
reset mKeyguardGoingAway back to false and put activities to sleep.

Bug: 158640144
Test: Unlock keyguard during AOD2
Change-Id: I9335045668f90d477d19dada0185447bfa3cb2a7
2020-07-03 15:38:45 +08:00
TreeHugger Robot
fb87c72c66 Merge "Unable to show correct device icon in Output Switcher" into rvc-dev 2020-07-03 04:08:28 +00:00
TreeHugger Robot
d70c7dda50 Merge "Fix Bundle#getParcelableArray call" into rvc-dev 2020-07-03 02:22:57 +00:00
Ming-Shin Lu
35ff45dab4 Fix Keyboard stays on while startSeamlessRotation
InsetsSourceProvider#startSemlessRotation will be called and cancel
on-going insets animation to revoke the insets control.

The idea is preventing the frame of insets animation will be drawn while the
rotation is not yet stable, and re-apply the revoked control again once
the rotation finished.

However, since the IME insets control / control target / leash has been cleared
after animation cancelled, there is no way to update the revoked IME
control target again, and also cannot have a direct signal to request visible
for client side after finished rotation, that will casue IME surface
stays on and client can't control the IME inets visiblity.

As the issue case which seamless rotation happens during launch fixed portrait
rotation app from launcher in landscape mode, since seamless rotation
animation doesn't well support the target window which controlled IME insets
is animating, we should skip seamless rotation for this case.

Fix: 158924696
Test: manual as below steps:
 1. Enable "Allow Home screen rotation" from Launcher -> Home Settings
    and "Auto-rotate" from quick settings.
 2. Open Snapchat in portrait > open a conversation > open keyboard.
 3. Tap Home button > rotate device from portrait to landscape.
 4. Tap Snapchat icon in landscape > the keyboard is automatically displayed
 5. Tap the back key in the lower left corner of the device.
 6. Expect keyboard should hide after the back key pressed.

Change-Id: I7d4685a0b85ec3db9b7e1c266030817da3dde812
2020-07-03 02:22:37 +08:00
Anton Hansson
f1f700094c Merge "Make module stubs publicly visible" into rvc-dev 2020-07-02 17:24:01 +00:00
Anton Hansson
d346b43c1f Make module stubs publicly visible
Previously they were limited to frameworks/base so that they could be
combined into the "main" android stubs. However, limiting their
visibility is inflexible and unnecessary, and due to limitations in the
build system also makes it impossible to create rules for prebuilts of
these module stubs that set `prefer: false`.

This CL makes it possible to disable the prebuilts, which multiple
downstream branches would like to do.

Bug: 159902351
Test: m nothing (with prefer: false on prebuilts)
Change-Id: Id0eee4bf4e78f5dfddf6ad569e49719fefde658e
2020-07-02 16:41:45 +01:00
TreeHugger Robot
3d61c82b41 Merge "[DO NOT MERGE]Revert "Flip ENABLE_DYNAMIC_PERMISSIONS, attempt #6."" into rvc-dev 2020-07-02 15:29:17 +00:00
Sahana Rao
a2127eb446 [DO NOT MERGE]Revert "Flip ENABLE_DYNAMIC_PERMISSIONS, attempt #6."
This reverts commit 5dad7cd45e.

Reason for revert: b/159995598
Bug: 159995598, 115619667
Change-Id: I6df037161dc36da7f8b33292529bbc37058f819c
2020-07-02 15:28:46 +00:00
TreeHugger Robot
0ef33bcb35 Merge "Revert new logic around FLAG_ALT_FOCUSABLE_IM" into rvc-dev 2020-07-02 13:28:33 +00:00
Tiger Huang
5d717b85a1 Merge "Apply the requested insets sources if possible" into rvc-dev 2020-07-02 11:12:12 +00:00
Shafik Nassar
d7e1e4681e Merge "Always kill app when M_E_S is denied" into rvc-dev 2020-07-02 09:49:06 +00:00
Adrian Roos
69947c0671 Revert new logic around FLAG_ALT_FOCUSABLE_IM
This broke several apps because it means certain NON_FOCUSABLE windows
are now layered wrong w.r.t the IME, and also no longer get IME insets.

Originally, this was introduced because the IME target was used to
compute which window gets control, but this is now computed based on
the window actually connecting to the IME as reported per IMMS.

Reverts I941571c97145d77b0a59d030cf2a8c8318f3b59f.

Bug: 143898978
Bug: 140641950
Bug: 145812508
Bug: 141738570
Bug: 144619551
Fixes: 159438771
Test: atest WindowStateTests
      atest FocusHandlingTest
      atest WindowManager_LayoutParamsTest
      Also manually using steps:
      1. Launch gmail compose activity
      2. start typing in receipient field
      3. verify that even thoug the suggestions popup
         window w/ FLAG_NOT_FOCUSABLE becomes the
         IME target, control and insets still work.
Change-Id: If451276b1a8c485ec88965d8d30ec8fd3836620f
2020-07-02 11:14:10 +02:00
Tim Peng
626e4c54a2 Unable to show correct device icon in Output Switcher
-Media framework does not report "TYPE_GROUP" when selecting a group
of Chromecast devices or the StaticGroup
-MediaRouter2Info::getType() does not provide correct types for group
and video
-Add "getDrawableResIdByFeature()" to get correct type icon
-Use MediaRouter2Info::getFeatures() to get device type
-Designer updates the video icon

Bug: 160113560
Test: make -j50 RunSettingsLibRoboTests
Change-Id: I1c8e9c2729013b9ee49b664e40c04550f315a516
2020-07-02 06:45:38 +00:00
wilsonshih
3c1c2c04e2 Fix the regression that closing transition disappeared.
For hierarchical animation, there are missing some handling
around mNeedsZBoost, when closing an activity the transition did
not applied.

1. Move some codes around mNeedsZBoost from ActivityRecord to
WindowContainer so Task can also benefit from it.
2. TaskDisplayArea#assignChildLayers should combined needsZBoost
so this attribute can apply on root task.
3. If next top activity will move to top in #finishIfPossible
and the finishing activity is on top, provide it a higher layer
to remain on top. Otherwise user will see flicker because the
transition need to be applied until next activity resumed.

Bug: 159200318
Test: atest ActivityRecordTests TaskDisplayAreaTests
AppWindowTokenAnimationTests TransitionSelectionTests

Change-Id: I85ec3307b31444e09179abca30298af2ce538834
2020-07-02 14:29:40 +08:00
TreeHugger Robot
31fdc74154 Merge "Exclude MediaSession2 from the media button session" into rvc-dev 2020-07-02 06:10:10 +00:00
wilsonshih
48445a9154 Remove redundant checks that stop updating systemUI when entering dream
Previous in order to get better transition from lock screen to Dream, we skip the updateSystemUiVisibility by checking keyguard and occluded
states. But since the Dream become activity, there will be an opening app transition for DreamActivity, the original check condition should be able to removed now.
Ref: 4c1e3183ba
Ref: 380ecb81db

Bug: 159790735
Test: atest DisplayPolicyTests
Change-Id: I057e9b2f866c1deaaf41f50f75edc00f6849ea86
2020-07-02 04:48:58 +00:00
TreeHugger Robot
7feac4ed47 Merge "Fix flaky media key event related CTS tests" into rvc-dev 2020-07-02 01:57:04 +00:00
Jaewan Kim
5a6696991f Fix flaky media key event related CTS tests
Media key events had been incorrectly dispatched to the
MediaSession2, which is closed from the app side, but
MediaSessionService didn't get the notification for it.

It may happen if MediaController2 from the MediaSession2 was
connecting and also MediaSession2 was closing. This fix ensures
that closing session is always propagated to the controller in
onConnect().

Test: Run following tests 10 times (previously flaky ~50%)
   $ atest CtsMediaTestCases:android.media.cts.MediaSessionTest
Bug: 159865360
Change-Id: If16f8c665214614961f28f9406225af19fdad1a8
2020-07-02 10:32:00 +09:00
TreeHugger Robot
c0fcd758c4 Merge "Add FEATURE_REMOTE_GROUP_PLAYBACK" into rvc-dev 2020-07-02 00:47:56 +00:00
TreeHugger Robot
db6e11150c Merge "media: clarify keys used for CodecCapabilities.isFormatSupported" into rvc-dev 2020-07-01 23:46:29 +00:00
Charles Chen
8deb612a14 Merge "Revert "Revert "Enable IMS and its config context to obtain UI component""" into rvc-dev 2020-07-01 23:21:51 +00:00
TreeHugger Robot
93920d3b10 Merge "Fixed an issue where the media would reappear animated" into rvc-dev 2020-07-01 22:59:53 +00:00
Lajos Molnar
e167804b42 media: clarify keys used for CodecCapabilities.isFormatSupported
Bug: 159281744
Change-Id: Id93dd2529e468b76bdd01e2a8ebe14b8435a54d7
2020-07-01 14:56:30 -07:00
TreeHugger Robot
a5f7670b4c Merge "Log keyguard transitions after biometrics" into rvc-dev 2020-07-01 21:32:38 +00:00
TreeHugger Robot
525f775606 Merge "Align QS clock to status bar" into rvc-dev 2020-07-01 21:07:21 +00:00
Suprabh Shukla
118790bb0e Merge "Fix cleanup when an app with SUSPEND_APPS is deleted" into rvc-dev 2020-07-01 20:41:04 +00:00
Lucas Dupin
078a5de17f Log keyguard transitions after biometrics
Bug: 157630051
Test: logcat
Change-Id: I942336c0b5aff78582b0cf0dde71847fec0c73ad
2020-07-01 11:26:20 -07:00
Beth Thibodeau
3c336c4b64 Merge "Add device info for filtered players" into rvc-dev 2020-07-01 18:21:47 +00:00
Alan Stokes
717f3d8401 Merge "Don't allow shell to spoof initiating package name." into rvc-dev 2020-07-01 18:11:54 +00:00
Tiger Huang
97c1b4a34b Apply the requested insets sources if possible
If the client doesn't change the insets, we use the dispatched source.
In this way, the task snapshot can have the same insets as the client.

Fix: 152931762
Test: atest TaskSnapshotControllerTest
Change-Id: Ib0315ce0a8ab32e1c653eeed725fecccb54b3aa8
2020-07-02 01:44:39 +08:00
TreeHugger Robot
bb6c1e09ad Merge "Deliver hideInsets when target is removed" into rvc-dev 2020-07-01 16:48:19 +00:00
Shafik Nassar
b1951ee22d Merge "Add atom for general external storage access stats" into rvc-dev 2020-07-01 16:24:18 +00:00