Commit Graph

481216 Commits

Author SHA1 Message Date
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
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
TreeHugger Robot
31fdc74154 Merge "Exclude MediaSession2 from the media button session" into rvc-dev 2020-07-02 06:10:10 +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
Mady Mellor
0e3d9d31a2 Merge "Make sure PendingIntent cancel listener is unregistered" into rvc-dev 2020-07-01 16:09:29 +00:00
Beth Thibodeau
b421a49c01 Add device info for filtered players
Following up on ag/12037671 - MediaDataFilter uses getData when the user
changes, to get a list of all their previous media controls, so we need to put
the device data back too

Test: atest MediaDataCombineLatestTest
Test: manual, switch users and see output chip has device info
Bug: 12037671
Change-Id: I28e2d15919978e84e3205d2ddccb5024e4010247
2020-07-01 11:50:08 -04:00
Josh Tsuji
831ac87a9b Merge "Avoid another concurrent modification exception in ShortcutHelper." into rvc-dev 2020-07-01 15:09:30 +00:00
Patrick Baumann
93b7187b08 Merge "Add installerSource to packageSetting earlier" into rvc-dev 2020-07-01 14:53:10 +00:00
TreeHugger Robot
64ab1a4fb2 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-07-01 14:32:14 +00:00
TreeHugger Robot
c73cddc46e Merge "Fix "Allow/Deny" popup window no respond when enable pointer location" into rvc-dev 2020-07-01 14:13:55 +00:00
TreeHugger Robot
616f0731c5 Merge "Register package broadcast receivers for all users." into rvc-dev 2020-07-01 12:55:36 +00:00
TreeHugger Robot
6127ca43d6 Merge "Fix tethering jarjar rule for LocalLog" into rvc-dev 2020-07-01 07:41:39 +00:00
Jaewan Kim
9661a45db0 Exclude MediaSession2 from the media button session
This prevents unexpected Session2Token change notification when
the MediaSession2 token is selected as media button session.

Bug: 160136629
Test: Run CTS
Change-Id: I68650564fbbdaf3f3e85d41f3989cc8b08c36322
2020-07-01 15:43:42 +09:00
Kyunglyul Hyun
e44b5a2641 Add FEATURE_REMOTE_GROUP_PLAYBACK
Can be used to distinguish a group route from single device routes

Bug: 160113560
Test: N/A
Change-Id: Id65aded4ce396bbfaec7040fc2227b769f8c5794
2020-07-01 14:07:39 +08:00
Charles Chen
e938c572b7 Merge "Try to fix IndexOutBoundsException in Task#removeChild" into rvc-dev 2020-07-01 06:00:27 +00:00
arthurhung
10b6c531e2 Fix "Allow/Deny" popup window no respond when enable pointer location
Currently, all buffered layers are included in input occlusion
calculations, the overlay window which can't receive input event
should also need to explicitly opt out by setting window type.

Bug: 158717144
Test: enable pointer location, launch app which would popup grant
permission dialog
Test: atest WindowInputTests

Change-Id: Ic5cc5495d38fe88ee2bee46625bf7d4d4a00a044
2020-07-01 13:36:57 +08:00
Beth Thibodeau
c781b2e4b0 Merge "Filter media controls by user" into rvc-dev 2020-07-01 04:05:38 +00:00
markchien
8b8e72a00d Fix tethering jarjar rule for LocalLog
LocalLog is in android.util* instead of android.net*.
No crash happened because the methods used by tethering are
@UnsupportedAppUsage.

Bug: 160113128
Test: atest TetheringTests
Change-Id: I5f070b96f96aaabf7ec8da52a3d3444ed940fb56
2020-07-01 03:40:50 +00:00
Bill Yi
757c02c0dd Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I34c1b0f23d6d0d4814b01978cdd70213419c8347
2020-06-30 18:33:15 -07:00
Josh Tsuji
fe71adaa65 Merge "Ignore additional pointers in dispatchTouchEvent." into rvc-dev 2020-07-01 01:30:28 +00:00
Louis Chang
92d8d6c384 Merge "Move the pinned task to front when dismissed split-screen" into rvc-dev 2020-07-01 01:08:38 +00:00
Lucas Dupin
118966e45c Merge "Avoid reentrant callback when setting up listeners" into rvc-dev 2020-07-01 01:02:14 +00:00