Commit Graph

480917 Commits

Author SHA1 Message Date
TreeHugger Robot
fdcdfb9563 Merge "Import translations. DO NOT MERGE" into rvc-dev 2020-06-25 21:42:09 +00:00
TreeHugger Robot
08e440cab2 Merge "Request keyguard dismissal from suspend dialog" into rvc-dev 2020-06-25 21:33:56 +00:00
TreeHugger Robot
9af8e3f155 Merge "Dismiss dream with launchTaskBehind" into rvc-dev 2020-06-25 21:22:06 +00:00
TreeHugger Robot
b01bd6a560 Merge "Fix MediaCarousel in RTL" into rvc-dev 2020-06-25 20:29:42 +00:00
Bill Yi
b76090efea Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: I69a20733208e13328abd74bc284441107ed5e9b6
2020-06-25 20:08:11 +00:00
TreeHugger Robot
6d4caab68d Merge "Additional null-checks for animations in case child views are removed at an inopportune time." into rvc-dev 2020-06-25 20:07:56 +00:00
Beth Thibodeau
dc03b8597a Merge "Make view intent immutable" into qt-qpr1-dev am: 04e75a288b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11886038

Change-Id: Ib86e36254c81702a7888c5e3b0b85ebfd3db4c07
2020-06-25 19:57:43 +00:00
TreeHugger Robot
c6cfe7edfe Merge "Fix issue where PIP jumps after being tapped after being dragged through the dismiss target." into rvc-dev 2020-06-25 19:55:11 +00:00
TreeHugger Robot
e22637f3c4 Merge "Fix status bar flickering" into rvc-dev 2020-06-25 19:45:40 +00:00
Beth Thibodeau
04e75a288b Merge "Make view intent immutable" into qt-qpr1-dev 2020-06-25 19:42:34 +00:00
Miranda Kephart
a4d17d9a79 Merge "Send PendingIntent for screenshot smart actions" into rvc-dev 2020-06-25 19:39:15 +00:00
TreeHugger Robot
e4e478ed92 Merge "Make view intent immutable" into qt-dev am: 0edf8f0f1f am: bdd914e99e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11885736

Change-Id: I98367e4c3e8f2df3a8c95b5eef7aff4e2fd53cb7
2020-06-25 19:25:37 +00:00
Rhed Jao
38e36756f8 Tests no screenshot is copied when user consent timed out am: 9516a007c5 am: 04827943d7
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11940429

Change-Id: I9949cd537a2baabc5718e25a45d8917fc8e5d36b
2020-06-25 19:25:08 +00:00
Sudheer Shanka
70f5e3e88b Merge "Ensure expired leases are ignored and deleted." into rvc-dev 2020-06-25 19:16:03 +00:00
TreeHugger Robot
bdd914e99e Merge "Make view intent immutable" into qt-dev am: 0edf8f0f1f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11885736

Change-Id: I597ec260619c47aa9cb263a5757a81c82adc6b20
2020-06-25 19:13:38 +00:00
Rhed Jao
04827943d7 Tests no screenshot is copied when user consent timed out am: 9516a007c5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11940429

Change-Id: I9fda7b8a5b4ef0bbee7ee1b128d9d80b81944803
2020-06-25 19:13:28 +00:00
Chavi Weingarten
d9adbffc4e Merge "Remove mEnterAnimationPending check for accessibility" into rvc-dev 2020-06-25 19:13:16 +00:00
TreeHugger Robot
160c66492a Merge "Add rotary support to the nofitication shade." into rvc-dev 2020-06-25 19:12:27 +00:00
Jeff DeCew
962262d56c Fix MediaCarousel in RTL
Fixes: 158025546
Test: manual - launch 2 media players & try every combination of interaction
Change-Id: I14cc152c46b99f712010e8cf7afe57dad2c5ba85
2020-06-25 15:09:51 -04:00
TreeHugger Robot
0edf8f0f1f Merge "Make view intent immutable" into qt-dev 2020-06-25 19:08:21 +00:00
TreeHugger Robot
14eea93f57 Merge "Rank ChooserTargets using appTarget#rank instead of shortcut#rank. AppTarget#rank contains the score passed from AppPredictionService." into rvc-dev 2020-06-25 18:45:55 +00:00
TreeHugger Robot
3fdab33548 Merge "Transfer IME target right away if old target was home" into rvc-dev 2020-06-25 18:22:25 +00:00
TreeHugger Robot
d65287ec7b Merge "Expand dumpsys coverage to all known factors in empty expanded view issues." into rvc-dev 2020-06-25 18:17:06 +00:00
TreeHugger Robot
602d97360d Merge "Screen record user switching fixes" into rvc-dev 2020-06-25 18:09:17 +00:00
Howard Ro
1caf7459e3 Merge "Fix package name for LibStatsPullTests" into rvc-dev 2020-06-25 18:04:38 +00:00
Lucas Dupin
37f06ef4a1 Fix status bar flickering
After refactoring NPV, BiometricUnlockController started to receive
authentication callbacks before NotificationPanelViewController.
This means that wakeAndUnlock will start earlier, and the order that
onBiometricAuthenticated and onBiometricRunningStateChanged is not
guaranteed anymore.

This CL checks if we're unlocking with biometrics before showing the
status bar, in order to keep it hidden when dismissing the keyguard,
regardless of callback invocation order.

Test: unlock with face
Test: wait for face timeout
Test: unlock with password
Test: unlock with face after SB is visible
Fixes: 159445348
Change-Id: I43f78f4ab4d0e89e27fcfe5ba527a6c3ff18b0ae
2020-06-25 10:30:37 -07:00
Josh Tsuji
40d313a046 Fix issue where PIP jumps after being tapped after being dragged through the dismiss target.
onBoundsAnimationEnd does not set the permanent bounds if mSpringingToTouch=true, since that indicates that PIP caught up with the touch location - and the touch location is a temporary position. We eventually set the permanent bounds after flingToSnapTarget's animation ends.

However, if PIP was flung to a snap target while mSpringingToTouch=true, those permanent bounds were never set. Starting a drag gesture would have set the permanent bounds, which is why this is only visible if you tap immediately after doing all this.

Bug: 159909223
Test: tap pip after dragging it through dismiss without moving it again
Change-Id: I67a9c19bf8dafab4cee646539d9f5a4575a14ffd
2020-06-25 13:13:07 -04:00
TreeHugger Robot
2a60031116 Merge "Fix issue in InsetsState.set" into rvc-dev 2020-06-25 16:39:42 +00:00
TreeHugger Robot
3c34454ae9 Merge "Also listen to ACTION_MANAGED_PROFILE_AVAILABLE in sharesheet ResolverActivity." into rvc-dev 2020-06-25 16:29:26 +00:00
Sudheer Shanka
997750d9ee Ensure expired leases are ignored and deleted.
Also, fix the lease validity check.

Fixes: 159873312
Test: atest --test-mapping apex/blobstore
Change-Id: I174794c6db9e155d08fae884c247d189e077289b
2020-06-25 09:28:22 -07:00
chaviw
4bf251ca4e Remove mEnterAnimationPending check for accessibility
Accessibility was relying on WS.mEnterAnimationPending to determine if a
window was ready on screen. However, that variable no longer represents
what it used to and it doesn't actually mean the app is animating. The
variable is only set when a relayout is requested and then unset when
show is called. Accessibility is already checking isOnScreen and
isVisibleLw so that should cover the cases to check if the window is
ready.

mEnterAnimationPending is not always set properly and causes issues with
accessibility, which is the only place currently using it.

Fixes: 152537982
Test: Magnification for Accessibility works
Change-Id: Ib0f37b3cc6d744fd84f466a65e6ce006e07e116e
2020-06-25 16:23:57 +00:00
TreeHugger Robot
ae135c8108 Merge "Inroduce UNIFORM_OPS sampling." into rvc-dev 2020-06-25 15:58:20 +00:00
Josh Tsuji
7da996a5df Expand dumpsys coverage to all known factors in empty expanded view issues.
This adds the following to the stack state:
expandedContainerVis:    0
expandedContainerAlpha:  1.0
expandedContainerMatrix: Matrix{[1.0, 0.0, 0.0][0.0, 1.0, 0.0][0.0, 0.0, 1.0]}

As well as a new 'expanded bubble state':
Expanded bubble state:
  expandedBubbleKey: 0|com.facebook.orca|10000|ONE_TO_ONE:903330182:1183835847|10375
  expandedViewVis:    0
  expandedViewAlpha:  1.0
  expandedViewTaskId: 27543
  activityViewVis:    0
  activityViewAlpha:  1.0

Test: dumpsys
Bug: 159861400
Change-Id: I964803b77ad5a0b3780c219ac919d6bd4316c53f
2020-06-25 11:56:35 -04:00
Beth Thibodeau
231ac9bced Screen record user switching fixes
Allow opening the dialog in all users
Stop recording when the user changes
Post notifications in the correct user

Still some issues with tile state and status bar but those require more
work to coordinate across users, so may not make it into R
(related bug: b/158004991)

Fixes: 147921212
Bug: 148955577
Test: manual
Test: atest ScreenRecordTileTest
Test: atest com.android.systemui.screenrecord
Change-Id: Idf10931c5ddf3079b903708824fae11135169c1b
2020-06-25 11:40:22 -04:00
Miranda Kephart
381e5b4d66 Send PendingIntent for screenshot smart actions
Currently we extract the intent and send that directly, which means
it is sent with SysUI's permissions (which is a security
vulnerability). This change switches to sending the PendingIntent
(with the creator's permissions) instead.

Bug: 159822190
Fix: 159822190
Test: manual (ensured that the smart actions still work)
Change-Id: Ia567272382021d4324974fb7d8c2c01b7e556846
2020-06-25 11:24:37 -04:00
TreeHugger Robot
4afa50f276 Merge "Sleep in between calls to NoMan service in test" into rvc-dev 2020-06-25 15:00:39 +00:00
TreeHugger Robot
2ba2ce1282 Merge "Make MODIFY_QUIET_MODE a development permission." into rvc-dev 2020-06-25 14:40:48 +00:00
Josh Tsuji
b20343ffe0 Merge "Force top UI if we're expanded, per Jorim's suggestion." into rvc-dev 2020-06-25 14:38:23 +00:00
Daniel Sandler
fc86cfb5bd Merge "Fixed bug: Not everyone has home controls yet, or pets." into rvc-dev 2020-06-25 14:34:52 +00:00
Jonathan Scott
cab7ed2b2e Also listen to ACTION_MANAGED_PROFILE_AVAILABLE in sharesheet
ResolverActivity.

Test: Manual, using `adb shell su 1000 service call user 72 s16 android
i32 1 i32 10 i32 0 i32 0 && adb shell su 1000 service call user 72 s16
android i32 0 i32 10 i32 0 i32 0` to quickly toggle work profile while
on share sheet. Confirm that the work profile is visible again.
Fixes: 159646289

Change-Id: I29e5600b6d416e1bb6150629c9d94d20b344e4a9
2020-06-25 15:08:03 +01:00
Stanislav Zholnin
cb726cbdd2 Inroduce UNIFORM_OPS sampling.
Introduce strategy which uniformly samples OPs, without biasing in
favour of specific ops.
Use this strategy half of the time.

Test: atest RuntimeMessageCollectionTest && statsd_testdrive 10069
Bug: 143519689
Change-Id: I481d3a9ef9c66f04577b57432cecdf2c02055e58
2020-06-25 13:28:10 +00:00
Jorim Jaggi
b2410eb4f9 Fix issue in InsetsState.set
Test: InsetsStateTest
Fixes: 159610005
Change-Id: I7e64c4f7d93caae13b43f595a7ec8af901316399
2020-06-25 12:34:03 +00:00
Song Hu
16cfc840ce Rank ChooserTargets using appTarget#rank instead of shortcut#rank. AppTarget#rank contains the score passed from AppPredictionService.
Bug: 159889652
Test: atest CtsSharesheetTestCases:android.sharesheet.cts.CtsSharesheetDeviceTest
Change-Id: I311233283db55d7da37c4d1332b60fc7ca6e3ce6
2020-06-25 04:31:12 -07:00
Jorim Jaggi
b3f5a7a9fe Merge "Revert "Revert "Revert "Only promote remote animator to top sched group during animation"""" into rvc-dev 2020-06-25 11:31:03 +00:00
TreeHugger Robot
827c121e78 Merge "Use another thread for MediaSessionRecord" into rvc-dev 2020-06-25 10:36:58 +00:00
TreeHugger Robot
10f788d8e2 Merge "Fix invalid bubble predicate once and for all" into rvc-dev 2020-06-25 08:25:04 +00:00
Sungsoo Lim
3a6c1ff3a4 Use another thread for MediaSessionRecord
Bug: 158628703
Test: atest CtsMediaTestCases:android.media.cts.MediaSessionTest
      atest CtsMediaTestCases:android.media.cts.MediaSessionManagerTest
Change-Id: I9874416d3c39758d559b32e8fa892053cabc73cc
2020-06-25 16:57:02 +09:00
TreeHugger Robot
9c71148852 Merge "Fix the visibility of SurfaceView in InlineContentView." into rvc-dev 2020-06-25 05:15:24 +00:00
Evan Laird
131d38bdea Sleep in between calls to NoMan service in test
NotificationManagerService has a non-mockable relationship to
System.currentTimeMillis and this test assumes that calls into the
service will not happen in the same millisecond. The fix here is to
sleep for 1ms in between calls to ensure that the clock advances.

Test: atest --rerun-until-failure 100 NotificationManagerServiceTest
Bug: 155331470
Change-Id: Ica6b26a3d72295b0be52c6b1579dde30447ddeaf
2020-06-25 04:29:53 +00:00
Darryl Johnson
1f7c4db513 Merge "Respect the orientation of a home activity in the process of launching when split-screen enabled." into rvc-dev 2020-06-25 04:07:59 +00:00