Winson Chung
c1b9c1787c
Merge "Workaround for crash from invalid snapshot"
2020-06-18 16:32:50 +00:00
Ady Abraham
5068b95c40
Merge "WM: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags" into rvc-dev am: 278f00319f am: 66bab75ea1 am: e212052243 am: 2a57fdcd37
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11852824
Change-Id: I8c15fa26c30c3eabd39e73eba45ec50211bee740
2020-06-18 05:44:09 +00:00
Ady Abraham
e212052243
Merge "WM: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags" into rvc-dev am: 278f00319f am: 66bab75ea1
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11852824
Change-Id: I19c91a7b9d2229f1fd95d58182cd1060d75cf060
2020-06-18 05:11:37 +00:00
Winson Chung
428c17f443
Workaround for crash from invalid snapshot
...
- wrapHardwareBuffer will throw an illegal argument exception when
the buffer doesn't have this flag, but it's not clear how this
happens yet because all the buffers should be from surface flinger
snapshots...
Bug: 157562905
Test: Manual
Change-Id: I48be367d8aafb3e17f11a73a73432617a247c0dd
2020-06-18 03:25:12 +00:00
Vishnu Nair
2ed39d82db
WM: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags
...
eEarlyWakeup flag is used as a hint to SurfaceFlinger to adjust its
offsets so it can wakeup earlier and have sufficient time to compose
more complex scenes.
This flag has been replaced with explicit start and stop flags which
ensure the SurfaceFlinger offsets remain consistent during animation.
Bug: 158127834
Test: go/wm-smoke
Test: systrace to verify new tracepoint and offset behavior
Change-Id: Ib9c35c01a6bf02f88ec7cb1778e01909bd2f9055
2020-06-17 23:10:30 +00:00
TreeHugger Robot
f831a19897
Merge "Adding blur supported check to shared lib" into rvc-dev am: 7775314ff8 am: 38c9217417 am: 7afe8b7368 am: 933a38112c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11844114
Change-Id: I37379701ee0f6fde7a25cd49ad1e0998a45caff1
2020-06-12 18:43:11 +00:00
TreeHugger Robot
38c9217417
Merge "Adding blur supported check to shared lib" into rvc-dev am: 7775314ff8
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11844114
Change-Id: I25a754c1507a879f498544361e78f64cea453375
2020-06-12 18:07:47 +00:00
TreeHugger Robot
61853300a2
Merge "Add expand notification panel API to ISystemUIProxy"
2020-06-12 06:43:52 +00:00
Winson Chung
f9ef08d7ff
Adding blur supported check to shared lib
...
Bug: 157946272
Test: Manual
Change-Id: I4b8b63e9096d27a06896058b41c8e2cec271dd0d
2020-06-11 23:10:34 -07:00
Tony Huang
652ad3d4b7
Merge "Align PiP animation and touch on vsync-sf" into rvc-dev am: 79f93b02f2 am: 63a470fcd9 am: a29e8cb1a1 am: 0c93bff3c5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11653259
Change-Id: Ic55f24c04296022501fa4c8397a20cacea7d6a83
2020-06-11 05:22:04 +00:00
Tony Huang
63a470fcd9
Merge "Align PiP animation and touch on vsync-sf" into rvc-dev am: 79f93b02f2
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11653259
Change-Id: I80ab1b281a7d4439357fcf72b2c1e41844b14ba1
2020-06-11 04:46:34 +00:00
Tony Huang
4b8795d560
Align PiP animation and touch on vsync-sf
...
Align animation and touch on vsync-sf to reduce jank
Bug: 157470918
Test: Enter PiP and move it
Test: atest PipAnimationControllerTest
Change-Id: I75506bb87a5e5b9a4d2f94c0a92e0a3fa25e060f
2020-06-10 11:53:34 +08:00
Jerry Chang
8a15834923
Add expand notification panel API to ISystemUIProxy
...
Bug: 154080211
Test: make and install
Test: manual disable one handed mode and swipe down to trigger
Test: verified the gesture works even outside of home page
Change-Id: I503224685d229bf45a998afdb1db836342f48b58
2020-06-09 21:12:23 +08:00
Automerger Merge Worker
cc84f81eee
Merge "Merge "Pass displayId to onActivityRotation()" into rvc-dev am: 2983b70983 am: 7309578767 am: e0ddf1d34f" into rvc-qpr-dev-plus-aosp am: f709fd9fc3
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745487
Change-Id: I7107612fed72444fb71562e241fd8b6a08014dae
2020-06-05 19:58:15 +00:00
Vinit Nayak
7309578767
Merge "Pass displayId to onActivityRotation()" into rvc-dev am: 2983b70983
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11745487
Change-Id: I0405b1730a4591b0626b5f36ff833c88d00ac142
2020-06-05 19:10:33 +00:00
Vinit Nayak
bedb9f33c2
Pass displayId to onActivityRotation()
...
Bug: 154580671
Change-Id: I220e1e9ac1a381c6ebadc3849a393225d1f53e3e
2020-06-04 17:15:32 -07:00
Vinit Nayak
cf040d067f
Merge "Add new callback for when activity rotates" into rvc-dev am: 38dbc97939 am: b0d73832e3 am: 8e8e0347d1 am: 6ac75ea8b5
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11396809
Change-Id: Ie1e341220ed6c0a1a9e37c4e41fa4c64b2efeb2b
2020-06-04 05:39:52 +00:00
Vinit Nayak
b0d73832e3
Merge "Add new callback for when activity rotates" into rvc-dev am: 38dbc97939
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11396809
Change-Id: I16d2689f35a21899955b9913e34c373d2a2954b6
2020-06-04 04:33:03 +00:00
Zak Cohen
7e1ceb2f60
resolve merge conflicts of 2e8946bbc0 to master
...
Change-Id: I0f4b0420299781ac1ddd962749018ea418ef22eb
2020-06-04 04:23:10 +00:00
Vinit Nayak
38dbc97939
Merge "Add new callback for when activity rotates" into rvc-dev
2020-06-04 04:21:10 +00:00
Zak Cohen
d3e144c0ea
Merge "Screenshot - pass bitmap as bundled hardware buffer from Launcher" into rvc-dev am: 4fdd3c8e34 am: 9db7e97167
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11711139
Change-Id: I0178a9ca9550a644bc10b33d674ad31d31b7d6ac
2020-06-04 03:42:06 +00:00
Zak Cohen
2af5cb6b1c
Merge "Screenshot - pass bitmap as bundled hardware buffer from Launcher" into rvc-dev am: 4fdd3c8e34
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11711139
Change-Id: I367032d906c1df667c05fc10fcbbed02dcadeff9
2020-06-04 03:23:08 +00:00
Zak Cohen
4cfb590a28
Screenshot - pass bitmap as bundled hardware buffer from Launcher
...
When passing a screenshot from Launcher to Sysui it should be passed
as a hardware buffer inside a bundle to avoid copying the underlying pixels.
Change also adds userid and component when a screenshot is passed.
Bug: 157380566
Bug: 156757117
Test: local
Change-Id: I531f1d1a41d179a257fe7202b68a6d1a78cc0f79
2020-06-03 16:09:57 -07:00
Sunny Goyal
935dd029de
Merge "Using inline definition of FrameDrawingCallback instead of lambda as it fails on some devices" into rvc-dev am: a38a553c16 am: b5e88fa694 am: a139078e46 am: 9b78a20510
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707942
Change-Id: If46e2e8a5e40795a98e68cb24305db3be3d6cb7d
2020-06-03 20:58:56 +00:00
Sunny Goyal
b5e88fa694
Merge "Using inline definition of FrameDrawingCallback instead of lambda as it fails on some devices" into rvc-dev am: a38a553c16
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11707942
Change-Id: I179eea27f4ab2003faf32227972747734067acae
2020-06-03 20:23:10 +00:00
Sunny Goyal
a38a553c16
Merge "Using inline definition of FrameDrawingCallback instead of lambda as it fails on some devices" into rvc-dev
2020-06-03 20:21:28 +00:00
Zak Cohen
22955d9e47
Merge "Adds BitmapUtil for dealing with hardware buffer wrapped bitmaps." into rvc-dev am: 00cba9da56 am: 51aa6d7786 am: 0c707aaa9f am: 7582ec3fd0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11669685
Change-Id: I0261dcdfe7ec065f34cd9e6c91c128a1e6ddd141
2020-06-03 18:19:54 +00:00
Vinit Nayak
66bf45ffa8
Add new callback for when activity rotates
...
Launcher needs to distinguish display changes
that result naturally vs apps that launch
in a fixed portrait/landscape rotation during
the quickstep gesture.This callback helps anticipate
if a subseqent onDisplayChanged() will
have resulted from a natural rotation or not.
Bug: 154580671
Change-Id: I59ee7985a9f367e8fc5826c08476c1a25d1426b0
2020-06-03 10:55:42 -07:00
Zak Cohen
51aa6d7786
Merge "Adds BitmapUtil for dealing with hardware buffer wrapped bitmaps." into rvc-dev am: 00cba9da56
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11669685
Change-Id: I2986d4b9209095a7276f7a5c757c39ab7a1afb0b
2020-06-03 17:44:38 +00:00
Zak Cohen
cdd1a3dc6c
Adds BitmapUtil for dealing with hardware buffer wrapped bitmaps.
...
Test: local
Bug: 156757117
Change-Id: Ic44a93ca33e538471245b22701584ec925939293
2020-06-02 16:28:52 -07:00
Sunny Goyal
d0642f706f
Using inline definition of FrameDrawingCallback instead of lambda as it fails on some devices
...
Bug: 148194313
Test: None, just a guess that it will fix the issue
Change-Id: Ifec1d27992752bded82a0091e29daff9e8d25d46
2020-06-02 12:41:21 -07:00
arthurhung
57558eca80
Fix gesture input monitor dispose
...
The gesture input monitor is to detect system gesture when user swipe on
the navigation bar or the edge, that should be unregistered after
the process (ex. launcher) is killed.
This could solve two problems:
1. InputChannel.dispose function didn't clear the native InputChannel
reference until the 'finalize' function called, clear it in dispose.
2. We use a Bundle object to communicate systemui and launcher, but the
PARCELABLE_WRITE_RETURN_VALUE flag can't be applied when write the
parcelable value, change InputMonitorCompat to implement Parceable and
apply flag when return via binder call.
Bug: 142581626
Test: kill launcher process, dumpsys input
Change-Id: Iaff774e96c58f00a26b7bedb809a0fb951862786
2020-06-01 17:28:21 +08:00
TreeHugger Robot
212f8f6078
Merge "Add one-handed mode gesture interface for quick step (7-1/N)"
2020-05-29 13:32:56 +00:00
Bill Lin
c77d9d3d7b
Align rvc-dev QuickStepContract order
...
ag/11495551 introduce the bit # located at 15
public static final int SYSUI_STATE_GLOBAL_ACTIONS_SHOWING = 1 << 15
Due to one handed feature do not merged in rvc-dev
We should align the order on master branch
Test: make
Bug: 155499313
Change-Id: I6bad6faf3b1cf1d3105a23c121375cceafa91ed0
2020-05-28 13:00:42 +08:00
Govinda Wasserman
6cb0c663b5
Merge "Adds Assistant invocation time stamp to ActivityManagerWraper" into rvc-dev am: f90980db10 am: bef96f45fc am: 8b21219e64 am: 97b3ad1a7f
...
Change-Id: I2cf62aa89c375d9f28ac43678b560571b8ff28ad
2020-05-21 20:47:12 +00:00
Govinda Wasserman
bef96f45fc
Merge "Adds Assistant invocation time stamp to ActivityManagerWraper" into rvc-dev am: f90980db10
...
Change-Id: I3bb293c21fb80802437886dd3d1e5b3534ac3738
2020-05-21 19:25:37 +00:00
Govinda Wasserman
bd09c172ea
Adds Assistant invocation time stamp to ActivityManagerWraper
...
Test: Tested locally
BUG: 153963643
FIX: 153963643
Change-Id: I75809cf64c1bf8db19893e59d1b62dcf5a06c5c7
2020-05-21 11:03:04 -04:00
Bill Lin
a75594aa95
Ensure dump info include SYSUI_STATE_ONE_HANDED_ACTIVE state
...
Test: adb shell bugreport, search "SysUiState state:"
then check if one_handed_active state showing
Bug: 150747909
Change-Id: Ic6cd7e1beeb1b8464a3483bfd8e90d92ab09a30a
2020-05-21 02:13:28 +08:00
TreeHugger Robot
175d5e4045
Merge "Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it" into rvc-dev am: 2fed0a734e am: 98dd0436c7 am: 35f65a447a am: 11c6f11c3f
...
Change-Id: I45caa2f58c027045c4a814618d710661ea2b076d
2020-05-19 21:02:14 +00:00
TreeHugger Robot
98dd0436c7
Merge "Sending split screen stack change to Launcher whenever it changes, instead of Launcher pulling it" into rvc-dev am: 2fed0a734e
...
Change-Id: I5d1a56aa7d6ed336115f9b4b74e9790024368f10
2020-05-19 20:06:34 +00:00
Sunny Goyal
2148254452
Sending split screen stack change to Launcher whenever it changes,
...
instead of Launcher pulling it
Bug: 155816922
Test: Verified with Launcher changes
Change-Id: I45920f8730740c819c63878857c3b5acbe12097a
2020-05-19 18:14:04 +00:00
Winson Chung
68aedd16f4
Merge "Add global actions to sysui state for handling with gesture nav" into rvc-dev am: 4b3634f78b
...
Change-Id: Ic80cc35eb93204f3c53dfa3e5116c22e21a25ae2
2020-05-18 23:40:43 +00:00
Winson Chung
9467454820
Add global actions to sysui state for handling with gesture nav
...
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Merged-In: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
2020-05-18 17:08:05 +00:00
Winson Chung
a3eabd5859
Add global actions to sysui state for handling with gesture nav
...
Change-Id: I2cdea6761e6665c8f863937eff33a8272381b6e9
Bug: 155499313
Test: Swipe back while global actions are showing over the lockscreen
2020-05-16 02:38:28 +00:00
TreeHugger Robot
ec463ead03
Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71 am: 9da5177ac9 am: 1453c98f03 am: 79f1e50e2a
...
Change-Id: Ic6d26f278251a0eec16d026a264f9175fcd74836
2020-05-15 16:02:36 +00:00
TreeHugger Robot
9da5177ac9
Merge "Remove divider view when exiting splitscreen" into rvc-dev am: 3a6ec37a71
...
Change-Id: I8906a47c807cbd58f1945fe2ef32f882fd43c8f2
2020-05-14 02:32:10 +00:00
TreeHugger Robot
030906ef0a
Merge "Improve compatibility of WallpaperCompat" into rvc-d1-dev am: 1d390491ef am: 17c9b650cb am: 6b829e7ba2
...
Change-Id: Ic526eb3638bf4a665f1371addb6f5d7cef3e605a
2020-05-13 07:30:06 +00:00
Santiago Etchebehere
a2f88daae8
Improve compatibility of WallpaperCompat
...
Don't use reference to the resource id as it might change
in the framework. Also catch all exceptions when using
scalePreview.
Bug: 154783188
Test: manual
Change-Id: I10a21d8a302c4b0d3fd9b1d64046ede22bd0d6b8
2020-05-12 21:53:06 -07:00
Vishnu Nair
4880a30fe0
Remove divider view when exiting splitscreen
...
Remove and re add divider view as needed so we do not allocate memory
while split screen is not active. Also release surface reference from
server when we are done with the SurfaceControl so we don't have to rely
on GC to remove the last reference.
Fixes: 150190730
Test: test split screen manually, check for offscreen or onscreen
divider layers in winscope
Change-Id: I1a6a1c1d4346aafeae85aaf61ec4df23722e75ab
2020-05-08 18:10:47 +00:00
Sunny Goyal
8cd244b66f
Merge "Removing some deprecated methods" into rvc-dev am: 56242fa00d am: 5033237450 am: 05025aa68d am: f7b1ed15a5
...
Change-Id: I783999503cd5aabe62e357aa16e14f8586f971cd
2020-05-05 19:44:43 +00:00