OSDN Git Service

android-x86/frameworks-native.git
2 years agoSnap for 7911557 from ec44a3c41ba2555ca1ca80c672a22361ce72a967 to sc-v2-release
Android Build Coastguard Worker [Sat, 13 Nov 2021 02:06:45 +0000 (02:06 +0000)]
Snap for 7911557 from ec44a3c41ba2555ca1ca80c672a22361ce72a967 to sc-v2-release

Change-Id: If0c2f887c7c65960dd19c622ea37cad716e44d98

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Thu, 11 Nov 2021 19:59:36 +0000 (19:59 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 1140211821 -s ours am: 26cd8a07cf -s ours am: 41a8b01966 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: Id48d349bc696cc7fcfd9441f168ad2eacea6a081

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Thu, 11 Nov 2021 19:59:22 +0000 (19:59 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 58c22be797 -s ours am: fe2d5a037e -s ours am: 85ed00c88a -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 6e689ffe3f is already in history

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

Change-Id: I48356a61dd15c9c57a7b4288b59275d08947b634

2 years ago[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc...
Winson Chung [Thu, 11 Nov 2021 19:58:51 +0000 (19:58 +0000)]
[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: 90b88a978e -s ours am: cb15467837 -s ours am: dae1a991ec -s ours

am skip reason: Merged-In I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa with SHA-1 41f48c7b10 is already in history

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

Change-Id: I8fbf490d4aa9c0091a4b9755e3d4f8470bbabe06

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Thu, 11 Nov 2021 19:58:51 +0000 (19:58 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: 8c3de17e5d -s ours am: 03179cb3c9 -s ours am: 9761aa718c -s ours

am skip reason: subject contains skip directive

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

Change-Id: Iaffe2cf1b931b6ba4cfd04218dce179b822ab349

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Thu, 11 Nov 2021 19:58:50 +0000 (19:58 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: cac2aa7517 -s ours am: 10b892cda2 -s ours am: d3962fdc82 -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 7605fb4273 is already in history

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

Change-Id: I45c767eb9cce3b9f94fb88a7b48c231e3a501a20

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Thu, 11 Nov 2021 19:58:49 +0000 (19:58 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 020dd044a6 -s ours am: 5d53e37fe0 -s ours am: 6baa59fcbf -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 39bc6117dd is already in history

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

Change-Id: I1d1a87381dff68329f1d768f4a7274f1510a6201

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Thu, 11 Nov 2021 19:41:32 +0000 (19:41 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 1140211821 -s ours am: 26cd8a07cf -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: I5ceb7a6cf7fb4eec6bd1f3df3a2560cdf96eaae6

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Thu, 11 Nov 2021 19:41:07 +0000 (19:41 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 58c22be797 -s ours am: fe2d5a037e -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 6e689ffe3f is already in history

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

Change-Id: I97da34f4e5ff4a4a36cefcbfae46c894448d4247

2 years ago[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc...
Winson Chung [Thu, 11 Nov 2021 19:40:54 +0000 (19:40 +0000)]
[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: 90b88a978e -s ours am: cb15467837 -s ours

am skip reason: Merged-In I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa with SHA-1 41f48c7b10 is already in history

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

Change-Id: I3c9bba42b2f9b989b0cc2d2b91b3a3e938918752

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Thu, 11 Nov 2021 19:40:53 +0000 (19:40 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: 8c3de17e5d -s ours am: 03179cb3c9 -s ours

am skip reason: subject contains skip directive

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

Change-Id: Iee441e740817d95a7033c96d6134c6a3beec554b

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Thu, 11 Nov 2021 19:40:52 +0000 (19:40 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: cac2aa7517 -s ours am: 10b892cda2 -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 7605fb4273 is already in history

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

Change-Id: Ie083bcf7b9c50a6f43c5937896cf19c47a5ca6b2

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Thu, 11 Nov 2021 19:40:51 +0000 (19:40 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 020dd044a6 -s ours am: 5d53e37fe0 -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 39bc6117dd is already in history

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

Change-Id: I7fd0f5006851287307c7e1059ad5e2893c5c19dc

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Thu, 11 Nov 2021 19:24:04 +0000 (19:24 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 1140211821 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: I99b3e2cf96520e8d2e7ee37314e37c20ea6af53e

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Thu, 11 Nov 2021 19:22:47 +0000 (19:22 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 58c22be797 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 6e689ffe3f is already in history

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

Change-Id: I41bd81a055cfb319c650f15672b55d2b678037eb

2 years ago[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc...
Winson Chung [Thu, 11 Nov 2021 19:21:53 +0000 (19:21 +0000)]
[automerger skipped] Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: 90b88a978e -s ours

am skip reason: Merged-In I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa with SHA-1 41f48c7b10 is already in history

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

Change-Id: I078c2d9eecb9e153824cd7ea381d2245c29bbd4d

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Thu, 11 Nov 2021 19:21:52 +0000 (19:21 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: 8c3de17e5d -s ours

am skip reason: subject contains skip directive

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

Change-Id: I1fffbc8a266f26abfdda0d7965e8001ea24b6808

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Thu, 11 Nov 2021 19:21:50 +0000 (19:21 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: cac2aa7517 -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 7605fb4273 is already in history

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

Change-Id: Iddcca623eda377c55b3f2106b5122be428936f1f

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Thu, 11 Nov 2021 19:21:47 +0000 (19:21 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 020dd044a6 -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 39bc6117dd is already in history

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

Change-Id: Iac9f5d211d7ab954ab94d8824917b621044f3d54

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Thu, 11 Nov 2021 19:00:18 +0000 (19:00 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: I8b68787e525e7e96214fd5865d529aa1fbda8ec1

2 years agoMerge "Check if the window is partially obscured for slippery enters" into rvc-dev...
TreeHugger Robot [Thu, 11 Nov 2021 18:58:55 +0000 (18:58 +0000)]
Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf

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

Change-Id: I64d40d85f97fcc59f9061f73044dead69a58fdaa

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3
Winson Chung [Tue, 9 Nov 2021 23:18:53 +0000 (23:18 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3

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

Bug: 196389741
Change-Id: I96eb392e3ace659305cccb2773ab715f6cc67eea
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa

2 years agoSnap for 7901872 from 4baf05042d78bf558120b10c807d124afb3f88f5 to sc-v2-release
Android Build Coastguard Worker [Thu, 11 Nov 2021 00:07:02 +0000 (00:07 +0000)]
Snap for 7901872 from 4baf05042d78bf558120b10c807d124afb3f88f5 to sc-v2-release

Change-Id: Id87837990addacd13c942e5c4b3022fe6cddef10

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Wed, 10 Nov 2021 04:07:40 +0000 (04:07 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 8c83865531 -s ours am: 4986d714bf -s ours am: 67efbd2880 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: Iff4bd828b9e97162721b59a8cedb4cea693b35ef

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Wed, 10 Nov 2021 03:51:02 +0000 (03:51 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 8c83865531 -s ours am: 4986d714bf -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: I00e050a7cc2d62aebb628cb2daa19596c41d6171

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Wed, 10 Nov 2021 03:31:46 +0000 (03:31 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours am: 8c83865531 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: Ie6d4c961e9f95da4f0acbe6cd4665e1fc757f0b7

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Wed, 10 Nov 2021 03:19:04 +0000 (03:19 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours am: eb59e4756d -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: Ic4e82083fcc577c808292d6ae76c5d4e072e9c89

2 years ago[automerger skipped] Check if the window is partially obscured for slippery enters...
Siarhei Vishniakou [Wed, 10 Nov 2021 03:06:07 +0000 (03:06 +0000)]
[automerger skipped] Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b am: e26b6061f8 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 d8c6ef2138 is already in history

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

Change-Id: I3fa807e2a5e61dfad45b5e27e3116e9e64338c8b

2 years agoCheck if the window is partially obscured for slippery enters am: 6e689ffe3f am:...
Siarhei Vishniakou [Wed, 10 Nov 2021 02:55:28 +0000 (02:55 +0000)]
Check if the window is partially obscured for slippery enters am: 6e689ffe3f am: 224d576c0b

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

Change-Id: I49fb56b83a8799ac6a380b269bca06adc5289aba

2 years agoCheck if the window is partially obscured for slippery enters am: 6e689ffe3f
Siarhei Vishniakou [Wed, 10 Nov 2021 02:44:01 +0000 (02:44 +0000)]
Check if the window is partially obscured for slippery enters am: 6e689ffe3f

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

Change-Id: I6645db77a493d55aacc8f645db625ea5f89a8d36

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Wed, 10 Nov 2021 01:26:42 +0000 (01:26 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 1158690bb7 -s ours am: 56b929e3e7 -s ours am: 17ec686b0c -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 870ececa8d is already in history

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

Change-Id: If140b949b86057c71f482a04ace76f70e1cebe6a

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Wed, 10 Nov 2021 01:06:24 +0000 (01:06 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 1158690bb7 -s ours am: 56b929e3e7 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 870ececa8d is already in history

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

Change-Id: Iff92d8b7d7cae9f6d4c4527f2d65f89742fef26b

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am...
Winson Chung [Wed, 10 Nov 2021 00:44:07 +0000 (00:44 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: e93bd77429 am: f13c62852e am: 7c2f24b284

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

Change-Id: I28025893f506121b09cd83d0fec20ad77d423c18

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Wed, 10 Nov 2021 00:44:06 +0000 (00:44 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: cf8e45638d -s ours am: 6b44d942a9 -s ours am: 4d6cce1f13 -s ours

am skip reason: subject contains skip directive

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

Change-Id: I1d7202453bc6a95b29be0658935a37e291b258c6

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Wed, 10 Nov 2021 00:44:06 +0000 (00:44 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: 4df1658eda -s ours am: ede8f4d536 -s ours am: c4b83bacd6 -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 a30f7c9974 is already in history

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

Change-Id: I85e1f2d7c00ad4bbf9bdb0b5e8d271697de1d118

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Wed, 10 Nov 2021 00:44:05 +0000 (00:44 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 8bec11e493 -s ours am: 139309f468 -s ours am: aeb77c0bee -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 fcdff3e735 is already in history

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

Change-Id: If1fa8889d6d3de49830dd28eff61b270ec4e3c5c

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Wed, 10 Nov 2021 00:43:41 +0000 (00:43 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: 41db1b0e7c -s ours am: c4fe8c2478 -s ours am: 5c32ca5dfc -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 d668098e47 is already in history

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

Change-Id: I89938a9f28647c2436e7e397c45841c04fcec4a0

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Wed, 10 Nov 2021 00:43:14 +0000 (00:43 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: d471beffd1 -s ours am: 57380b88ba -s ours am: fb6c7fc94f -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 7c8497e012 is already in history

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

Change-Id: Ic99a1fd0117a376cbd1be87ec622807819027a5d

2 years ago[automerger skipped] Merge "Check if the window is partially obscured for slippery...
TreeHugger Robot [Wed, 10 Nov 2021 00:41:53 +0000 (00:41 +0000)]
[automerger skipped] Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf am: 1158690bb7 -s ours

am skip reason: Merged-In I93d9681479f41244ffed4b1f88cceb69be71adf2 with SHA-1 870ececa8d is already in history

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

Change-Id: I58801fbec843c7c1e09fa9f0a51eed9c8225c839

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am...
Winson Chung [Wed, 10 Nov 2021 00:19:22 +0000 (00:19 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: e93bd77429 am: f13c62852e

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

Change-Id: Iff1f45324e088239c71593777e4d521ea6f4937a

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Wed, 10 Nov 2021 00:19:22 +0000 (00:19 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: cf8e45638d -s ours am: 6b44d942a9 -s ours

am skip reason: subject contains skip directive

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

Change-Id: I01a1a627578e8c95f6ffe8da07cc04a04129a46e

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Wed, 10 Nov 2021 00:19:21 +0000 (00:19 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: 4df1658eda -s ours am: ede8f4d536 -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 a30f7c9974 is already in history

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

Change-Id: I6f9bb604284a68e4feeefca0e384b2f6f600d850

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Wed, 10 Nov 2021 00:19:20 +0000 (00:19 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 8bec11e493 -s ours am: 139309f468 -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 fcdff3e735 is already in history

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

Change-Id: I1b2cf100831a8535b497ae4fa685231ba9876b1b

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Wed, 10 Nov 2021 00:18:58 +0000 (00:18 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: 41db1b0e7c -s ours am: c4fe8c2478 -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 d668098e47 is already in history

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

Change-Id: I904d09f651f803ac1839cbab27b9a91936e8e133

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Wed, 10 Nov 2021 00:18:41 +0000 (00:18 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: d471beffd1 -s ours am: 57380b88ba -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 7c8497e012 is already in history

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

Change-Id: I8fd02cbeeae4a7e90fce6f3f718ad641bc4ce875

2 years agoMerge "Check if the window is partially obscured for slippery enters" into rvc-dev...
TreeHugger Robot [Wed, 10 Nov 2021 00:18:34 +0000 (00:18 +0000)]
Merge "Check if the window is partially obscured for slippery enters" into rvc-dev am: b27497c4bf

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

Change-Id: I597107cf0a85b6dbc73dcc4092d3c077d678e661

2 years agoMerge "Check if the window is partially obscured for slippery enters" into rvc-dev
TreeHugger Robot [Tue, 9 Nov 2021 23:53:32 +0000 (23:53 +0000)]
Merge "Check if the window is partially obscured for slippery enters" into rvc-dev

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am...
Winson Chung [Tue, 9 Nov 2021 23:42:36 +0000 (23:42 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3 am: e93bd77429

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

Change-Id: I48c83881683865b1b9d1de1d4a63531a84112cf6

2 years ago[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false...
Robin Lee [Tue, 9 Nov 2021 23:42:34 +0000 (23:42 +0000)]
[automerger skipped] DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10 am: cf8e45638d -s ours

am skip reason: subject contains skip directive

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

Change-Id: I5359f45577d476b0fe0d14367b046bee00e64f7e

2 years ago[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF...
Winson Chung [Tue, 9 Nov 2021 23:42:31 +0000 (23:42 +0000)]
[automerger skipped] Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273 am: 4df1658eda -s ours

am skip reason: Merged-In Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8 with SHA-1 a30f7c9974 is already in history

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

Change-Id: Ifa92f0a463c513896f4ffa417a65002d89847be8

2 years ago[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission...
Chris Ye [Tue, 9 Nov 2021 23:42:30 +0000 (23:42 +0000)]
[automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd am: 8bec11e493 -s ours

am skip reason: Merged-In I58cf9f38c496e0ae8b2193dca45c0805e831bc9e with SHA-1 fcdff3e735 is already in history

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

Change-Id: I19e8bd2cdbacdd8f15c400e047f744927934b52e

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Tue, 9 Nov 2021 23:41:50 +0000 (23:41 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: 41db1b0e7c -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 d668098e47 is already in history

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

Change-Id: I4eb1f071d3e5556e0a34a3b64c7e7b11f6a391bc

2 years ago[automerger skipped] avoid extra release of unowned objects in Parcel error path...
Steven Moreland [Tue, 9 Nov 2021 23:40:51 +0000 (23:40 +0000)]
[automerger skipped] avoid extra release of unowned objects in Parcel error path am: d668098e47 am: d471beffd1 -s ours

am skip reason: Merged-In I34411675687cb3d18bffa082984ebdf308e1c1a6 with SHA-1 7c8497e012 is already in history

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

Change-Id: I3c25c7887fefde636fc6b2e29c2baca0ef85d52d

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3
Winson Chung [Tue, 9 Nov 2021 23:21:01 +0000 (23:21 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 294e7b87e3

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

Change-Id: I82ff44bf8945c25f93934ce0d66a9d6df79c39c0

2 years agoDO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am:...
Robin Lee [Tue, 9 Nov 2021 23:21:00 +0000 (23:21 +0000)]
DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10

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

Change-Id: I0912c6d109ad74b0525cc5505a77177ed1f96e4a

2 years agoAdd mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273
Winson Chung [Tue, 9 Nov 2021 23:20:59 +0000 (23:20 +0000)]
Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273

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

Change-Id: I4058c131ac922d0a13482465c08dab0f94d3cab1

2 years agoChange InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6...
Chris Ye [Tue, 9 Nov 2021 23:20:58 +0000 (23:20 +0000)]
Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd

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

Change-Id: I16c075529730d5d7aab08fa0779dac436aa956e4

2 years agoDO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am:...
Robin Lee [Tue, 9 Nov 2021 23:18:52 +0000 (23:18 +0000)]
DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor am: 41f48c7b10

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

Change-Id: I7ddafc10faa4f00eebe4505327f312f1035a11d7

2 years agoAdd mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273
Winson Chung [Tue, 9 Nov 2021 23:18:51 +0000 (23:18 +0000)]
Add mechanism for a task's windows to be trusted overlays (SF) am: 7605fb4273

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

Change-Id: I23c2b8453f21a1d05b533a95bc82601d013a7319

2 years agoChange InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6...
Chris Ye [Tue, 9 Nov 2021 23:18:50 +0000 (23:18 +0000)]
Change InputWindowInfo::isTrustedOverlay() to be permission and flag based. am: 39bc6117dd

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

Change-Id: I4bcdda3e303a6842d5cdfd3227b298e4e5c6429e

2 years agoavoid extra release of unowned objects in Parcel error path am: d668098e47
Steven Moreland [Tue, 9 Nov 2021 23:18:19 +0000 (23:18 +0000)]
avoid extra release of unowned objects in Parcel error path am: d668098e47

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

Change-Id: I339bd999acca04d1a5252a1d3237200a1bbf0088

2 years agoavoid extra release of unowned objects in Parcel error path am: d668098e47
Steven Moreland [Tue, 9 Nov 2021 23:15:53 +0000 (23:15 +0000)]
avoid extra release of unowned objects in Parcel error path am: d668098e47

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

Change-Id: Ieee2d8a542b2ebe0f73c179dc7912bf02255892c

2 years agoMerge changes from topic "trusted_overlay_backport" into rvc-dev
Winson Chung [Tue, 9 Nov 2021 23:03:14 +0000 (23:03 +0000)]
Merge changes from topic "trusted_overlay_backport" into rvc-dev

* changes:
  DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor
  Add mechanism for a task's windows to be trusted overlays (SF)
  Change InputWindowInfo::isTrustedOverlay() to be permission and flag based.

2 years agoavoid extra release of unowned objects in Parcel error path am: 7c8497e012 am: 0d3d30f369
Steven Moreland [Tue, 9 Nov 2021 22:37:48 +0000 (22:37 +0000)]
avoid extra release of unowned objects in Parcel error path am: 7c8497e012 am: 0d3d30f369

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

Change-Id: I43bc55cd7ff9f645d0ab6fe84f18aea272a9b213

2 years agoCheck if the window is partially obscured for slippery enters
Siarhei Vishniakou [Wed, 9 Dec 2020 18:07:46 +0000 (08:07 -1000)]
Check if the window is partially obscured for slippery enters

Currently, we only check whether a window is partially obscured during
the initial tap down. However, there is another use case: slippery
enter.

During a slippery enter, the touch down is generated into the
slipped-into window, and touch cancel is generated for the slipped-from
window. The window receiving the slippery enter does not need to have
any flags.

Until we figure out whether we can restrict the usage of this flag to
system components, add this check as an intermediate fix.

Bug: 157929241
Test: atest FlagSlipperyTest
Test: atest inputflinger_tests
Change-Id: I93d9681479f41244ffed4b1f88cceb69be71adf2
Merged-In: I93d9681479f41244ffed4b1f88cceb69be71adf2

2 years agoavoid extra release of unowned objects in Parcel error path am: 7c8497e012
Steven Moreland [Tue, 9 Nov 2021 22:15:21 +0000 (22:15 +0000)]
avoid extra release of unowned objects in Parcel error path am: 7c8497e012

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

Change-Id: Ifcbf7e9fbfd7807fde9b8dc5fd79317a7a45c65f

2 years agoSnap for 7889170 from 01d3a2aff2ab38babbf80930954c8457daf22939 to sc-v2-release
Android Build Coastguard Worker [Sat, 6 Nov 2021 01:06:54 +0000 (01:06 +0000)]
Snap for 7889170 from 01d3a2aff2ab38babbf80930954c8457daf22939 to sc-v2-release

Change-Id: I1398f655b90fa6f98013dc0888d501134e43f7dd

2 years agoDO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor
Robin Lee [Fri, 10 Sep 2021 12:03:42 +0000 (12:03 +0000)]
DO NOT MERGE Initialize DrawingState::trustedOverlay to false in constructor

To avoid it being initialised to true randomly.

Bug: 199483370
Bug: 196389741
Change-Id: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa
Merged-In: I75be2b1d305e22f8a71532b9f5b8ea6c469baaaa

2 years agoAdd mechanism for a task's windows to be trusted overlays (SF)
Winson Chung [Tue, 29 Jun 2021 22:42:56 +0000 (15:42 -0700)]
Add mechanism for a task's windows to be trusted overlays (SF)

- Add a layer state to indicate that this layer and its children
  in the hierarchy are trusted. This can only be set by callers
  holding ACCESS_SURFACE_FLINGER, and will be used for the PIP
  task layer to indicate that activities in PIP are trusted (as
  they are controlled only by the user and SystemUI)

Bug: 191529039
Bug: 196389741
Test: TBD

Change-Id: Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8
Merged-In: Id92ccb087bd0d8dbaeeef3ba50b67fe015e53db8

2 years agoChange InputWindowInfo::isTrustedOverlay() to be permission and flag based.
Chris Ye [Sun, 10 May 2020 22:16:04 +0000 (15:16 -0700)]
Change InputWindowInfo::isTrustedOverlay() to be permission and flag based.

Add private flag to WindowManager.LayoutParams. If the flag is set,
check if caller has INTERNAL_SYSTEM_WINDOW permission.

Bug: 155781676
Bug: 196389741
Test: atest WindowManagerServiceTests
Change-Id: I58cf9f38c496e0ae8b2193dca45c0805e831bc9e
Merged-In: I58cf9f38c496e0ae8b2193dca45c0805e831bc9e

2 years agoMerge "Change log to match with function it's coming from" into sc-v2-dev
Rob Carr [Fri, 5 Nov 2021 17:01:07 +0000 (17:01 +0000)]
Merge "Change log to match with function it's coming from" into sc-v2-dev

2 years agoSnap for 7883892 from fe34457d2e4644d47d1d8047894c7819d5cd34a5 to sc-v2-release
Android Build Coastguard Worker [Thu, 4 Nov 2021 23:09:25 +0000 (23:09 +0000)]
Snap for 7883892 from fe34457d2e4644d47d1d8047894c7819d5cd34a5 to sc-v2-release

Change-Id: Iecfad67ccd919ddd94a6f5bf25bf96d9a12b143f

2 years agoCheck if the window is partially obscured for slippery enters
Siarhei Vishniakou [Wed, 9 Dec 2020 18:07:46 +0000 (08:07 -1000)]
Check if the window is partially obscured for slippery enters

Currently, we only check whether a window is partially obscured during
the initial tap down. However, there is another use case: slippery
enter.

During a slippery enter, the touch down is generated into the
slipped-into window, and touch cancel is generated for the slipped-from
window. The window receiving the slippery enter does not need to have
any flags.

Until we figure out whether we can restrict the usage of this flag to
system components, add this check as an intermediate fix.

Bug: 157929241
Test: atest FlagSlipperyTest
Test: atest inputflinger_tests
Change-Id: I93d9681479f41244ffed4b1f88cceb69be71adf2
Merged-In: I93d9681479f41244ffed4b1f88cceb69be71adf2
(cherry picked from commit 870ececa8d5dfb293e671c716f98ccddae24147f)

2 years agoSnap for 7880955 from ebff6bd2a8c563376365cd362496fa61e6263096 to sc-v2-release
Android Build Coastguard Worker [Wed, 3 Nov 2021 23:07:12 +0000 (23:07 +0000)]
Snap for 7880955 from ebff6bd2a8c563376365cd362496fa61e6263096 to sc-v2-release

Change-Id: Icb15527837cd7d5dbe76fbcdb4aaf2ffcd6aa73f

2 years agoUse bufferItem's fence when calling release
chaviw [Thu, 14 Oct 2021 16:57:22 +0000 (11:57 -0500)]
Use bufferItem's fence when calling release

When we acquire and release immediately, we want to use the bufferItem's
release fence instead of NO_FENCE.

Also add an error log if there's a failure in acquireBuffer, which
really should never happen.

Test: BLASTBufferQueueTest
Bug: 200285149
Change-Id: I5e869b0f66f37b15b9317985b30f539dbfea831c
(cherry picked from commit 6ebdf5f0f7ca5354a1a9a0e6419275c7b873849d)

2 years agoChange log to match with function it's coming from
chaviw [Mon, 1 Nov 2021 14:50:57 +0000 (09:50 -0500)]
Change log to match with function it's coming from

Added the function name in the error log when SurfaceControl can't be
found in the callbacks.

Test: Log
Bug: 200285149
Change-Id: I6c721a699c25c8659f5aa5e703de134c8c0a31b7
(cherry picked from commit 768bfa07e598608f135140f1001bf09c7de35b1e)

2 years agoMerge "DO NOT MERGE: Move blast sync handling to BBQ" into sc-v2-dev
Rob Carr [Wed, 3 Nov 2021 21:51:50 +0000 (21:51 +0000)]
Merge "DO NOT MERGE: Move blast sync handling to BBQ" into sc-v2-dev

2 years agoMerge "Allow offscreen mirrored layers to be captured." into sc-v2-dev
Chavi Weingarten [Wed, 3 Nov 2021 18:25:13 +0000 (18:25 +0000)]
Merge "Allow offscreen mirrored layers to be captured." into sc-v2-dev

2 years agoDO NOT MERGE: Move blast sync handling to BBQ
chaviw [Wed, 6 Oct 2021 16:53:40 +0000 (11:53 -0500)]
DO NOT MERGE: Move blast sync handling to BBQ

Add logic in BBQ so it can handle waiting the transaction callback vs a
sync transaction request. The following behavior will occur

1. If a nextTransaction (sync) was set, we will wait until the
transaction callback for that frame before continuing to acquire
new frames. Once the transaction callback for the sync transaction is
invoked, BBQ will flush the shadow queue. It will try to process
as many frames as it can that were queued up during the time BBQ was
blocked from processing.

2. If BBQ is waiting on a sync transaction callback and then another
sync transaction is requested afterwards, BBQ will allow it to acquire
a buffer instead of just adding to the shadow queue. It will acquire
the new frame in the new sync transaction and allow the caller that
requested the sync to apply it. At this point, it's up to the callers
to ensure they apply the two sync transactions in order to ensure
frames are applied in order.

3. Similar to 2, but if there are queue requests in between the two
sync requests that aren't trying to be synced. When the second sync
frame is getting acquired, BBQ will acquire and release any frames
that were requested in between. This is so we don't skip or
have to wait in the first sync transaction callback.

Test: BLASTBufferQueueTest
Bug: 200285149
Change-Id: I8da8de1a3fe2a44ca2199ff92cfd4b60c7f01183
(cherry picked from commit d7deef7278f934a1750738b600c11c1771ae7ac6)

2 years agoMerge "CompositionEngine: Update blur state correctly" into sc-v2-dev
Vishnu Nair [Wed, 3 Nov 2021 16:06:41 +0000 (16:06 +0000)]
Merge "CompositionEngine: Update blur state correctly" into sc-v2-dev

2 years agoCompositionEngine: Update blur state correctly
Vishnu Nair [Tue, 2 Nov 2021 22:12:08 +0000 (15:12 -0700)]
CompositionEngine: Update blur state correctly

Previously when blur state (blur radius or blur region) was
updated, we would recompute visible regions. This is not
necessary and triggers expensive visible region checks that
may contribute to sf missing the frame deadline.

Fix this by only triggering a visible region change if we
start or stop drawing blur. In addition, when visible region
does not change, update the blur parameters so Composition
Engine picks up the most up-to-date blur parameters.

Test: atest libcompositionengine_test
Fixes: 202589767

Change-Id: I442f190d92d6b911bb6bd9b4a440e0dcdbd7fb2e

2 years agoavoid extra release of unowned objects in Parcel error path
Steven Moreland [Tue, 2 Nov 2021 01:17:23 +0000 (18:17 -0700)]
avoid extra release of unowned objects in Parcel error path

Another bug due to a huge amount of complexity in the Parcel
implementation.

Bug: 203847542
Test: added testcase fails on device w/o Parcel.cpp fix, and it passes
  on a device with the fix
Merged-In: I34411675687cb3d18bffa082984ebdf308e1c1a6
Change-Id: I34411675687cb3d18bffa082984ebdf308e1c1a6
(cherry picked from commit 04390376b043bf6a15ff2943a9ed63d9d8173842)

2 years agoavoid extra release of unowned objects in Parcel error path
Steven Moreland [Tue, 2 Nov 2021 01:17:23 +0000 (18:17 -0700)]
avoid extra release of unowned objects in Parcel error path

Another bug due to a huge amount of complexity in the Parcel
implementation.

Bug: 203847542
Test: added testcase fails on device w/o Parcel.cpp fix, and it passes
  on a device with the fix
Merged-In: I34411675687cb3d18bffa082984ebdf308e1c1a6
Change-Id: I34411675687cb3d18bffa082984ebdf308e1c1a6
(cherry picked from commit 04390376b043bf6a15ff2943a9ed63d9d8173842)

2 years agoAllow offscreen mirrored layers to be captured.
chaviw [Wed, 27 Oct 2021 16:11:24 +0000 (11:11 -0500)]
Allow offscreen mirrored layers to be captured.

If an offscreen layer is valid and has content, we should be able to
take a screen capture of it.

If we're mirroring content, but it's not on screen, we need
to ensure updateMirrorInfo is called to get the updated hierarchy. This
will allow the mirror content to get properly screenshot

Test: screencapture offscreen
Test: MirrorLayerTest
Test: ScreenCaptureTest
Change-Id: I31f806eb616e2d6f800da6328c9878a3e47d6a14
Merged-In: I31f806eb616e2d6f800da6328c9878a3e47d6a14
Bug: 188222480

2 years agoSnap for 7867461 from 4d9c4e1413b5f84a4f24a43c6039cd40ce2add49 to sc-v2-release
Android Build Coastguard Worker [Sat, 30 Oct 2021 01:09:31 +0000 (01:09 +0000)]
Snap for 7867461 from 4d9c4e1413b5f84a4f24a43c6039cd40ce2add49 to sc-v2-release

Change-Id: Ic44155a4d92931bd6a8849ca0f47dc6a2b00bcb5

2 years agoIncrease core count in atrace.rc
Dmytro Chystiakov [Thu, 21 Oct 2021 21:57:27 +0000 (14:57 -0700)]
Increase core count in atrace.rc

Increase core count in atrace.rc to support future devices with
more cores

Bug: b/203651019
Test: Build
Change-Id: I4c7b0ba6a4883cc21f45428368b60759c54ef985
Merged-In: I4c7b0ba6a4883cc21f45428368b60759c54ef985
(cherry picked from commit 2895eeb632400c708ae0a01596ff2eda9c3f6de2)

2 years agoSnap for 7859607 from 4bb5ae9fa81fbc818556c2642b61ed0f95046f4b to sc-v2-release
Android Build Coastguard Worker [Wed, 27 Oct 2021 23:07:13 +0000 (23:07 +0000)]
Snap for 7859607 from 4bb5ae9fa81fbc818556c2642b61ed0f95046f4b to sc-v2-release

Change-Id: I750f40a73af04cb5250e0241c79e281a426b8fbc

2 years agoMotionEvent: Avoid clipping tranformed orientation angle values
Prabir Pradhan [Tue, 19 Oct 2021 18:24:45 +0000 (11:24 -0700)]
MotionEvent: Avoid clipping tranformed orientation angle values

A recent refactor (ag/14556109) exposed an issue in the existing
orientation angle transformation logic where the output was clipped
incorrectly. There is no need to clip the ouput of atan2f because its
output is in the range [-pi, pi], which conforms to the MotionEvent's
orientation API.

Test: manual with stylus and test app
Bug: 202534592
Merged-In: I55df7470049922d0f579c2c1921dcacd0757ece1
Change-Id: I55df7470049922d0f579c2c1921dcacd0757ece1

2 years agoSnap for 7829119 from e6adce5936314c85b739c3a0297fe601100e6284 to sc-v2-release
Android Build Coastguard Worker [Sat, 16 Oct 2021 01:06:42 +0000 (01:06 +0000)]
Snap for 7829119 from e6adce5936314c85b739c3a0297fe601100e6284 to sc-v2-release

Change-Id: Ib4b6b2c1a5969d6018164d1705819e140da5bee5

2 years agoMerge changes I25b3f807,Iaa13a92d into sc-v2-dev
Ady Abraham [Fri, 15 Oct 2021 18:15:40 +0000 (18:15 +0000)]
Merge changes I25b3f807,Iaa13a92d into sc-v2-dev

* changes:
  SF: acquire/release screen for active display only
  SF: add HWVsync state to dumpsys

2 years agoMerge changes Ib7a08010,Idd72b82e into sc-qpr1-dev am: 0cb6215dd6
Chris Kuiper [Thu, 14 Oct 2021 23:39:23 +0000 (23:39 +0000)]
Merge changes Ib7a08010,Idd72b82e into sc-qpr1-dev am: 0cb6215dd6

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

Change-Id: I4ebed08aced85bc804a6dda3e30446e49bdb0699

2 years agoMerge "binderRpcTest: disable" into sc-qpr1-dev am: e0b134b18d
TreeHugger Robot [Thu, 14 Oct 2021 23:39:19 +0000 (23:39 +0000)]
Merge "binderRpcTest: disable" into sc-qpr1-dev am: e0b134b18d

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

Change-Id: Ie4d211c30a1e578ee8b6e72d5742596fb51b4d66

2 years agoMerge changes Ib7a08010,Idd72b82e into sc-qpr1-dev
Chris Kuiper [Thu, 14 Oct 2021 23:29:58 +0000 (23:29 +0000)]
Merge changes Ib7a08010,Idd72b82e into sc-qpr1-dev

* changes:
  sensorservice: Track Proximity state change when app goes idle.
  sensorservice: Refactor tracking logic for the Proximity sensor.

2 years agoMerge "binderRpcTest: disable" into sc-qpr1-dev
TreeHugger Robot [Thu, 14 Oct 2021 23:17:51 +0000 (23:17 +0000)]
Merge "binderRpcTest: disable" into sc-qpr1-dev

2 years agosensorservice: Track Proximity state change when app goes idle.
Chris Kuiper [Tue, 12 Oct 2021 23:36:43 +0000 (16:36 -0700)]
sensorservice: Track Proximity state change when app goes idle.

This tracks the Proximity state change when an app subscribed to the
Proximity sensor goes idle and its connection is paused.

Bug: b/202328704
Tests: See b/202328704#comment9 for tests done.
Change-Id: Ib7a08010d903406b67940de56a49e9efb200ad68

2 years agosensorservice: Refactor tracking logic for the Proximity sensor.
Chris Kuiper [Tue, 12 Oct 2021 23:30:01 +0000 (16:30 -0700)]
sensorservice: Refactor tracking logic for the Proximity sensor.

This simplifies the code that tracks if the proximity sensor is
active by removing all counting of clients and simply checking the
sensor's isSensorActive() method and reporting changes to it.

Bug: b/202328704
Tests: See b/202328704#comment9 for tests done.
Change-Id: Idd72b82ed0fd5ee089e795ab4b233241350979c2

2 years agoSF: acquire/release screen for active display only
Ady Abraham [Thu, 14 Oct 2021 00:04:27 +0000 (17:04 -0700)]
SF: acquire/release screen for active display only

SurfaceFlinger assumes that there is at most a single internal display
powered on at a given time, and mark it as the active display. However,
in order to be robust against rare race conditions where displays might
be on together for a short period of time, we add a check to make sure
that we tell the scheduler that the screen was acquired/released only
for the active display.

Bug: 201605862
Test: SF unit tests
Change-Id: I25b3f807d9f5d93ae88ac8a6026cee76cb69f493

2 years agoSF: add HWVsync state to dumpsys
Ady Abraham [Wed, 13 Oct 2021 23:59:49 +0000 (16:59 -0700)]
SF: add HWVsync state to dumpsys

Log debugging information about whether HWVsync callbacks
where enabled with HWC.

Bug: 201605862
Test: adb logcat -s SurfaceFlinger
Change-Id: Iaa13a92d37fcfea1328a6e91b17372c3737ffff6

2 years agoSnap for 7806961 from b18455930e470aa8ec72470d2dfddd51b0a61b95 to sc-v2-release
Android Build Coastguard Worker [Sat, 9 Oct 2021 01:06:28 +0000 (01:06 +0000)]
Snap for 7806961 from b18455930e470aa8ec72470d2dfddd51b0a61b95 to sc-v2-release

Change-Id: I217ea9a968cffa80f5bd1b39c8df203a0e9a26e1

2 years agoSurfaceFlinger: Don't render rounded corners without a valid crop
Vishnu Nair [Thu, 7 Oct 2021 19:17:57 +0000 (12:17 -0700)]
SurfaceFlinger: Don't render rounded corners without a valid crop

A behaviour difference introduced by I6975332392756d3d96fed1d6f81245a9c7bf0a19
This will cause layers to not render if there is a corner radius
left behind.

Test: SurfaceFlinger_test
Test: repro steps in bug
Bug: 200781179
Change-Id: Ie2548fc37bb7676c10be69130d04f93e7323e79b