Commit Graph

583 Commits

Author SHA1 Message Date
Tracy Zhou
c0a69f627b Add relative layer to SurfaceParams am: 6ec2f9151b am: c3773b0047 am: 624ab3931f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12131836

Change-Id: I2ddf789bad3ec08a9731838fc04ab1209868e24e
2020-07-11 18:38:39 +00:00
Tracy Zhou
6ec2f9151b Add relative layer to SurfaceParams
Bug: 160361464
Test: the added API is not called
Change-Id: Ie4b90d8747a6183f91c114cf7d32ab7933b3cb28
2020-07-11 00:48:39 -07:00
Winson Chung
b7e27a6598 Merge "Tweaking workaround to use fallback with null buffer" into rvc-dev am: 5be32a1c11
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12100099

Change-Id: Ice79c30eeb522ff47191feb8d4f1f20c57a6d995
2020-07-08 03:03:19 +00:00
Winson Chung
69aebfc9ec Tweaking workaround to use fallback with null buffer
- This case still shouldn't ever happen, but we're still
  getting crashes. It looks like the call to wrapHardwareBuffer
  will always create a hw buffer even if the graphic buffer
  is null, and the internal call to wrap the hw buffer may
  not have the flags if a null buffer is provided.

Bug: 157562905
Test: Haven't been able to reproduce
Change-Id: Ia61809a4dc53317139446d099cfa262c095d2aea
Merged-In: Ia61809a4dc53317139446d099cfa262c095d2aea
2020-07-07 23:55:23 +00:00
Winson Chung
e18aa866fb Tweaking workaround to use fallback with null buffer
- This case still shouldn't ever happen, but we're still
  getting crashes. It looks like the call to wrapHardwareBuffer
  will always create a hw buffer even if the graphic buffer
  is null, and the internal call to wrap the hw buffer may
  not have the flags if a null buffer is provided.

Bug: 157562905
Test: Haven't been able to reproduce
Change-Id: Ia61809a4dc53317139446d099cfa262c095d2aea
2020-07-07 21:38:45 +00:00
Tracy Zhou
0525e73927 Add setRelativeLayer to TransactionCompat am: 972ace00d0 am: e0ba52c77d am: a466a6afa1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12089062

Change-Id: I3d54d0548c46a00af2a37b0e0de47b4d2e4dc793
2020-07-06 22:09:30 +00:00
Tracy Zhou
972ace00d0 Add setRelativeLayer to TransactionCompat
Bug: 160361464
Test: N/A
Change-Id: Ib1931cc52511ad0a27b580ac8431facf34dbb48d
2020-07-06 19:58:01 +00:00
Nikolas Havrikov
24b3591d95 Use ParceledListSlice in a generic manner
Test: built locally

Change-Id: Ib5bc0227f198e7b3c416e8beb423e3541e37f358
2020-06-30 13:36:04 +02:00
Winson Chung
2a28c02401 Merge "Workaround for crash from invalid snapshot" into rvc-dev am: 10250f67f1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11897368

Change-Id: I752ac36e9330e8cbe35db1c6f17a63edf410d4b6
2020-06-18 18:10:30 +00:00
Winson Chung
10250f67f1 Merge "Workaround for crash from invalid snapshot" into rvc-dev 2020-06-18 17:56:24 +00:00
Winson Chung
c8ba260b4d 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
Merged-In: I48be367d8aafb3e17f11a73a73432617a247c0dd
2020-06-18 16:33:24 +00:00
Winson Chung
c1b9c1787c Merge "Workaround for crash from invalid snapshot" 2020-06-18 16:32:50 +00:00
Ady Abraham
5173ddf9f4 Merge "WM: Replace eEarlyWakeup flags with explicit eEarlyWakeup start and end flags" into rvc-dev am: 278f00319f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/11852824

Change-Id: I7e5a8d2b1007bc37a88e72d4552bcf53d2012807
2020-06-18 14:46: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