OSDN Git Service

android-x86/frameworks-native.git
9 months agoInline GetPhysicalDeviceProperties2 into QueryPresentationProperties s-x86
Chris Forbes [Thu, 22 Jul 2021 20:54:04 +0000 (13:54 -0700)]
Inline GetPhysicalDeviceProperties2 into QueryPresentationProperties

In general, we implement the 1.1 instance / physical device API as
preferring to call the native 1.1 function if available; otherwise
falling back to calling the equivalent GPDP2 function. If the
underlying driver supports *neither* then any caller of that function
has already invoked UB by calling it and so falling over is acceptable.

Unfortunately, the loader itself does call vkGetPhysicalDeviceProperties2
in one case, regardless of what the driver may support, in order to
determine whether the platform's swapchain implementation should expose
some features. On a 1.0 driver without the GPDP2 extension, this caused
trouble.

As a slight further wrinkle, vkGetPhysicalDeviceProperties2 "cannot
fail", making propagating a failure back up through the loader annoying.

As a workaround, inline the calls to GetPhysicalDeviceProperties2 and
GetPhysicalDeviceProperties2KHR into QueryPresentationProperties, where
we can handle our one special case of both function pointers being
missing but behavior being defined.

Bug: b/192130684
Change-Id: Iff2bae98b7931bed80fafd895cf57061becabd8d
(cherry picked from commit e056c12782125c3ad5876f3ac7528d9889808675)

9 months agoinputflinger: fix relative mouse movement
Chih-Wei Huang [Fri, 21 Feb 2020 07:52:13 +0000 (15:52 +0800)]
inputflinger: fix relative mouse movement

Since commit 78f97b326 ("Support pointer capture in InputReader") the
logic to determine whether mouse input is relative was changed.
However, commit 447a667 was forward ported from nougat-x86. It doesn't
consider that.

Fixes: 447a667 ("inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer")
Reported-and-tested-by: MrARM Slack <mrarm.slack@gmail.com>
9 months agoUse BRGA as default format for only EFI FB rendering.
Fan, Yugang [Tue, 20 Aug 2019 12:52:43 +0000 (20:52 +0800)]
Use BRGA as default format for only EFI FB rendering.

As efifb only supports BGRA format, we need config up-level
to support this when using software rendering.

Change-Id: I1fb2ba042522faac160440e5b660c01a24db2489
Tracked-On: None
Signed-off-by: Fan Yugang <yugang.fan@intel.com>
9 months agoinputflinger: treat tablet-style inputs as absolute coordinate mouse pointer
Jon Doe [Sun, 23 Dec 2018 14:50:00 +0000 (22:50 +0800)]
inputflinger: treat tablet-style inputs as absolute coordinate mouse pointer

Qemu and VirtualBox use tablet-style inputs. However, it's difficult to
work with the current "invisible finger" or "drag pointer" interface
provided to the virtual absolute coordinate pointing devices.
Instead, this patch classifies them as a regular mouse pointer
(INPUT_DEVICE_CLASS_CURSOR), which is more intuitive to work with.

Change-Id: I15c8fd7bb8e08e9623d093372809b9a01708a85f

9 months agoSurfaceFlinger: support higher resolution
Chih-Wei Huang [Thu, 17 May 2018 09:29:48 +0000 (17:29 +0800)]
SurfaceFlinger: support higher resolution

9 months agolibEGL: select pixel format by EGL_NATIVE_VISUAL_ID
Chih-Wei Huang [Mon, 4 Sep 2017 11:26:33 +0000 (19:26 +0800)]
libEGL: select pixel format by EGL_NATIVE_VISUAL_ID

We need this workaround until Mesa supports HAL_PIXEL_FORMAT_RGBA_8888.

9 months agoRenderEngine: support non-RGBA_8888 format
Chih-Wei Huang [Fri, 28 Jul 2017 11:44:57 +0000 (19:44 +0800)]
RenderEngine: support non-RGBA_8888 format

Some of our GPUs (e.g., radeon) don't support RGBA_8888 well.
To workaround it, just get the EGL config by a simpler query.

This patch should be reverted once all of our GPUs support
RGBA_8888.

9 months agoinstalld: a workaround for 9p filesystem
Chih-Wei Huang [Tue, 27 Jun 2017 06:21:26 +0000 (14:21 +0800)]
installd: a workaround for 9p filesystem

SELinux and getxattr seem not work on 9p filesystem.
Ignore the errors as a workaround.

TEST: be able to boot to Home on QEMU with shared 'data' folder.

9 months agoRun SurfaceFlinger with root privilege
Chih-Wei Huang [Wed, 3 Aug 2016 17:38:50 +0000 (01:38 +0800)]
Run SurfaceFlinger with root privilege

To control virtual consoles, SurfaceFlinger needs the root privilege.

9 months agoEnable 64-bit support in libs/gui/Sensor.cpp
Byron Gardner [Mon, 3 Nov 2014 23:54:28 +0000 (15:54 -0800)]
Enable 64-bit support in libs/gui/Sensor.cpp

Change-Id: Iaaa112bd821a6a0e3234461df8f7b6acc47b254e
Orig-Change-Id: I04c22e6f2c6f4271ca451b775c8d7f86e4c97c38
Tracked-On: https://jira01.devtools.intel.com/browse/IMINAN-9998
Category: aosp improvement
Domain: SENSORS.VIRT-Common
Origin: internal
Upstream-Candidate: yes
Signed-off-by: Byron Gardner <byron.gardner@intel.com>
Reviewed-on: https://android.intel.com:443/296325

9 months agoInputReader: add 5-point calibration
Chih-Wei Huang [Sat, 1 Nov 2014 17:21:12 +0000 (01:21 +0800)]
InputReader: add 5-point calibration

Updated for Android 5.0.

Change-Id: Id3b3ce2869a3cf1ed66a0c071500def3bfa4a771

9 months agoauto determine the density if not provided in surfaceflinger
Chih-Wei Huang [Sun, 26 Oct 2014 07:39:53 +0000 (15:39 +0800)]
auto determine the density if not provided in surfaceflinger

We hope to support tablet UI for different resolutions.
So adjust the density according to the resolution.

9 months agoSurfaceFlinger: enable console management
Chih-Wei Huang [Sun, 26 Oct 2014 07:38:15 +0000 (15:38 +0800)]
SurfaceFlinger: enable console management

The console management was removed since ICS. But it's useful for debugging.
Re-implement it based on the original class ConsoleManagerThread of class
DisplayHardwareBase.

Change-Id: Iad3564502761a9f03f4cddbe0c1bfc4b2648d02a

9 months agoSet PS2 Keyboard controller as not a ketboard type
juntingwang [Fri, 1 Mar 2013 08:02:56 +0000 (16:02 +0800)]
Set PS2 Keyboard controller as not a ketboard type

The Eventhub detects the platforms built-in PS/2 keyboard controller
as a physical keyboard. So the system will not display the software
keyboard by default. Modify it device type in Keyboard-less tablets,
so that ActivityManager will not ignore the PS/2 controller.

Issue: AXIA-1875

Change-Id: Ia5b7592e82aaf1970066bab5e9ca5f46ac83ab1c
Signed-off-by: juntingwang <Junting.Wang@windriver.com>
9 months agoAdd option to disable touchscreen pressure sensitivity from idc files
Edward Peek [Tue, 3 Apr 2012 18:17:00 +0000 (06:17 +1200)]
Add option to disable touchscreen pressure sensitivity from idc files

9 months agoSupport old single-touch touchscreens with BTN_LEFT
DanielK [Tue, 20 Mar 2012 06:28:43 +0000 (14:28 +0800)]
Support old single-touch touchscreens with BTN_LEFT

2 years agoSnap for 8084085 from f8ce875c134b1e6ce08171c2cb4b4f3232a90b08 to sc-v2-release
Android Build Coastguard Worker [Sat, 15 Jan 2022 22:06:43 +0000 (22:06 +0000)]
Snap for 8084085 from f8ce875c134b1e6ce08171c2cb4b4f3232a90b08 to sc-v2-release

Change-Id: I29b9af3378136b2f60ca883b2265d0874569c7fc

2 years agoAllow gpuservice to read tracefs entries
Kalesh Singh [Tue, 7 Dec 2021 00:45:59 +0000 (16:45 -0800)]
Allow gpuservice to read tracefs entries

Gpu service needs tracefs access to attach the BPF program
to the gpu_mem_total tracepoint for GPU memory tracking.

Bug: 208892266
Bug: 209513178
Bug: 214061655
Test: adb shell dumpsys gpu --gpumem
Change-Id: I10fd54544bee940313f3987247c1841101a9d03a
Merged-In: I10fd54544bee940313f3987247c1841101a9d03a

2 years agoSnap for 8076550 from 73e5d94f4b5de774690e0b55cd766f4baae4e121 to sc-v2-release
Android Build Coastguard Worker [Fri, 14 Jan 2022 00:07:36 +0000 (00:07 +0000)]
Snap for 8076550 from 73e5d94f4b5de774690e0b55cd766f4baae4e121 to sc-v2-release

Change-Id: I15c0abde8bad83180a3971ec685378bacdf09c09

2 years ago[automerger skipped] Skip creating external textures that exceeds size limit am:...
Garfield Tan [Wed, 12 Jan 2022 22:10:18 +0000 (22:10 +0000)]
[automerger skipped] Skip creating external textures that exceeds size limit am: ec7e4d9a5c -s ours am: 9c097670cd -s ours

am skip reason: Merged-In I52d253ed5a10f0e4ade372048721913405ed668a with SHA-1 2914a57d75 is already in history

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

Change-Id: I3976b73eb9ba72294a5a4113264fed51e3c6903d

2 years ago[automerger skipped] Skip creating external textures that exceeds size limit am:...
Garfield Tan [Wed, 12 Jan 2022 22:03:25 +0000 (22:03 +0000)]
[automerger skipped] Skip creating external textures that exceeds size limit am: ec7e4d9a5c -s ours

am skip reason: Merged-In I52d253ed5a10f0e4ade372048721913405ed668a with SHA-1 2914a57d75 is already in history

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

Change-Id: I9218d997dcf98117b0f241de6dea69be74095f8d

2 years ago[automerger skipped] Skip creating external textures that exceeds size limit am:...
Garfield Tan [Wed, 12 Jan 2022 22:03:24 +0000 (22:03 +0000)]
[automerger skipped] Skip creating external textures that exceeds size limit am: 2914a57d75 -s ours

am skip reason: Merged-In I52d253ed5a10f0e4ade372048721913405ed668a with SHA-1 9c9c191345 is already in history

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

Change-Id: Ic690dbeb34cbc62c4d38d8348587f13a6fcb7efc

2 years agoSkip creating external textures that exceeds size limit
Garfield Tan [Mon, 19 Jul 2021 19:02:16 +0000 (12:02 -0700)]
Skip creating external textures that exceeds size limit

Skia always accept an Android buffer and wraps it around with a texture
even if its size exceeds the limit GL exposes. Therefore let's skip
creating the texture in SurfaceFlinger and outputs an error log to
logcat.

I chose to do it in SurfaceFlinger rather than RenderEngine is because
the external texture mapping is designed to be asynchronous, so it'd be
better to keep that way. The limit is also exposed out of RenderEngine
so SurfaceFlinger can check it before creating external textures as
well.

Bug: 190399306
Bug: 204316511
Test: The test mentioned in the bug fails instead of crashing
SurfaceFlinger.
Test: atest SurfaceFlinger_test
Test: atest libsurfaceflinger_unittest

Change-Id: I52d253ed5a10f0e4ade372048721913405ed668a
(cherry picked from commit 9c9c19134593655c36fe70aaa45a91ad4f75e36f)
Merged-In: I52d253ed5a10f0e4ade372048721913405ed668a

2 years agoSkip creating external textures that exceeds size limit
Garfield Tan [Mon, 19 Jul 2021 19:02:16 +0000 (12:02 -0700)]
Skip creating external textures that exceeds size limit

Skia always accept an Android buffer and wraps it around with a texture
even if its size exceeds the limit GL exposes. Therefore let's skip
creating the texture in SurfaceFlinger and outputs an error log to
logcat.

I chose to do it in SurfaceFlinger rather than RenderEngine is because
the external texture mapping is designed to be asynchronous, so it'd be
better to keep that way. The limit is also exposed out of RenderEngine
so SurfaceFlinger can check it before creating external textures as
well.

Bug: 190399306
Bug: 204316511
Test: The test mentioned in the bug fails instead of crashing
SurfaceFlinger.
Test: atest SurfaceFlinger_test
Test: atest libsurfaceflinger_unittest

Change-Id: I52d253ed5a10f0e4ade372048721913405ed668a
(cherry picked from commit 9c9c19134593655c36fe70aaa45a91ad4f75e36f)
Merged-In: I52d253ed5a10f0e4ade372048721913405ed668a

2 years agoSnap for 8068644 from ee4a87b8617b91e5c3006efa74b4a25377b2a07f to sc-v2-release
Android Build Coastguard Worker [Wed, 12 Jan 2022 00:07:37 +0000 (00:07 +0000)]
Snap for 8068644 from ee4a87b8617b91e5c3006efa74b4a25377b2a07f to sc-v2-release

Change-Id: I1eb04573e4067c70aff5c6e6ef470122dbbbadf8

2 years agoSnap for 8060779 from 6f28d23f07e70a91157880b5c9d9423c388de92d to sc-v2-release
Android Build Coastguard Worker [Tue, 11 Jan 2022 00:06:38 +0000 (00:06 +0000)]
Snap for 8060779 from 6f28d23f07e70a91157880b5c9d9423c388de92d to sc-v2-release

Change-Id: I6a6467d5515bfae05384053e816c8fb8d363ffad

2 years agoMerge "DO NOT MERGE SF: Fix releaseBufferEndpoint merge issue" into sc-v2-dev
TreeHugger Robot [Mon, 10 Jan 2022 18:54:39 +0000 (18:54 +0000)]
Merge "DO NOT MERGE SF: Fix releaseBufferEndpoint merge issue" into sc-v2-dev

2 years agoMerge "Fix KeyCharacterMap overlays by reloading base overlay before applying another...
Philip Junker [Mon, 10 Jan 2022 17:04:44 +0000 (17:04 +0000)]
Merge "Fix KeyCharacterMap overlays by reloading base overlay before applying another overlay." into sc-v2-dev

2 years agoSnap for 8055317 from b6f8479039c1462a0f2e041d6376e3e208bbb70f to sc-v2-release
Android Build Coastguard Worker [Sat, 8 Jan 2022 02:06:30 +0000 (02:06 +0000)]
Snap for 8055317 from b6f8479039c1462a0f2e041d6376e3e208bbb70f to sc-v2-release

Change-Id: I7262d559ebece98f97357db12d77af68e6d40e2b

2 years agoDO NOT MERGE SF: Fix releaseBufferEndpoint merge issue
Vishnu Nair [Sat, 8 Jan 2022 00:36:18 +0000 (16:36 -0800)]
DO NOT MERGE SF: Fix releaseBufferEndpoint merge issue

If a transaction contained a cached buffer, and was
parcelled then merged, the releaseBufferEndpoint would
not be merged correctly. This would result in SF not
releasing a buffer and the app eventually ANRing.

DO NOT MERGE because this issue doesn't exist in master

Bug: b/205791752
Test: manually rotate apps to trigger sync
transactions and check the logs to see
we don't release stale buffers. Real tests to
follow

Change-Id: Ibd295be5e06fea00b331610206f1664f651afed3

2 years agokeep a wp<BLASTBufferQueue> in BufferItemConsumer
Ady Abraham [Wed, 15 Dec 2021 19:58:56 +0000 (11:58 -0800)]
keep a wp<BLASTBufferQueue> in BufferItemConsumer

Use a wp<> instead of raw pointer and remove the mutex around it
to prevent potential deadlocks.

Bug: 208121127
Test: stress test by partner
Test: atest BLASTBufferQueueTest
Change-Id: Iffed80410aeffc9b724d5c01ca2ec589c9622990
Merged-In: Iffed80410aeffc9b724d5c01ca2ec589c9622990

2 years agoFix KeyCharacterMap overlays by reloading base overlay before applying another overlay.
Philip Junker [Fri, 10 Dec 2021 17:39:42 +0000 (18:39 +0100)]
Fix KeyCharacterMap overlays by reloading base overlay before applying another overlay.

Add all fields to parcel (mLoadFileName, mLayoutOverlayApplied, mKeysByScanCode, mKeysByUsageCode).
Add all fields to equality operator.
Add tests to libinput_tests.

Bug: 210090260
Test: Manually verified that layout changes correctly.
Test: atest libinput_tests
Change-Id: I1777b87e5c2ce8a0dbd42ad48748ea9e669c9139
(cherry picked from commit 90bc949048f2b91fa841cb8272381af8c301c055)

2 years agoSnap for 8045491 from aca25f60537453114bfe7f0f8587e551438ca7a5 to sc-v2-release
Android Build Coastguard Worker [Thu, 6 Jan 2022 00:16:03 +0000 (00:16 +0000)]
Snap for 8045491 from aca25f60537453114bfe7f0f8587e551438ca7a5 to sc-v2-release

Change-Id: I24dfbab144ef36a2aecaa1e49511ccef931b44e3

2 years agoDO NOT MERGE: BlastBufferQueue: Fake release if not received by complete
Robert Carr [Sat, 1 Jan 2022 00:59:34 +0000 (16:59 -0800)]
DO NOT MERGE: BlastBufferQueue: Fake release if not received by complete

Perfetto telemetry shows a cluster where the transactionComplete
callback is arriving but the release buffer callback is not arriving.
This leads to blocking and ANRs. We try to work around this by
generating a fake release buffer callback for previous buffers when we
receive a TransactionCompleteCallback. How can we know this is safe? The
criteria to safely release buffers are as follows:
Condition 1. SurfaceFlinger does not plan to use the buffer
Condition 2. Have the acquire fence (or a later signalling fence)if
dropped, have the HWC release fence if presented.
Now lets break down cases where the transaction complete callback
arrives before the release buffer callback. All release buffer callbacks
fall in to two categories:
Category 1. In band with the complete callback. In which case the client
library in SurfaceComposerClient always sends release callbacks
first.
Category 2. Out of band, e.g. from setBuffer or merge when dropping buffers

In category 2 there are two scenarios:
Scenario 1: Release callback was never going to arrive (bug)
Scenario 2. Release callback descheduled, e.g.
a. Transaction is filled with buffer and held in VRI/WM/SysUI
b. A second transaction with buffer is merged in, the release
buffer callback is emitted but not scheduled (async binder)
c. The merged transaction is applied
d. SurfaceFlinger processes a frame and emits the transaction
complete callback
e. The transaction complete callback is scheduled before the
release callback is ever scheduled (since the 1 way binders are
from different processes).
In both scenarios, we can satisfy Conditions 1 and 2, because the HWC
present fence is a later signalling fence than the acquire fence which
the out of band callback will pass. While we may block extra on this
fence. We will be safe by condition 2. Receiving the transaction
complete callback should indicate condition 1 is satisfied.

In category 1 there should only be a single scenario, the release buffer
callback for frame N-1 is emitted immediately before the transaction
callback for frame N, and so if it hasn't come at that time (and isn't
out of band/scheduled e.g. category 2) then it will never come. We can
further break this down in to two scenarios:
1. stat.previousReleaseFence is set correctly. This is the
expected case. In this case, this is the same fence we would
receive from the release buffer callback, and so we can satisfy
condition 1 and 2 and safely release.
2. stat.previousReleaseFence is not set correctly. There is no
known reason for this to happen, but there is also no known
reason why we would receive a complete callback without the
corresponding release, and so we have to explore the option as
a potential risk/behavior change from the change.
Hypothetically in category 1 case 2 we could experience some tearing.
In category 1 we are currently experiencing ANR, and so the tradeoff
is a risk of tearing vs a certainty of ANR. To tear the following would
have to happen:
1. Enter the case where we previously ANRed
2. Enter the subcase where the release fence is not set
correctly
3. Be scheduled very fast on the client side, in practicality
HWC present has already returned and the fence should be firing
very soon
4. The previous frame not be GL comp, in which case we were
already done with the buffer and don't need the fence anyway.
Conditions 2 and 3 should already make the occurence of tearing much
lower than the occurence of ANRs. Furthermore 100% of observed ANRs
were during GL comp (rotation animation) and so the telemetry indicates
the risk of introducing tearing is very low.

To review, we have shown that we can break down the side effects from the change in
to two buckets (category 1, and category 2). In category 2, the possible negative side
effect is to use too late of a fence. However this is still safe, and should
be exceedingly rare. In category 1 we have shown that there are two scenarios,
and in one of these scenarios we can experience tearing. We have furthermore argued
that the risk of tearing should be exceedingly low even in this scenario,
while the risk of ANR in this scenario was nearly 100%.

This issue is not appearing in git_master branches and so the DO_NOT_MERGE tag.

Bug: 197269223
Bug: 212846697
Test: Existing tests pass
Change-Id: I757ed132ac076aa811df816e04a68f57b38e47e7

2 years agoSnap for 8010657 from 22b6d239c14a65af4b60d15ade8517e768c5f2b3 to sc-v2-release
Android Build Coastguard Worker [Fri, 17 Dec 2021 00:07:22 +0000 (00:07 +0000)]
Snap for 8010657 from 22b6d239c14a65af4b60d15ade8517e768c5f2b3 to sc-v2-release

Change-Id: Ic95604381e986daff59e924c39c5c3014326d9a2

2 years agoBBQ: Capture initial destframe change from BBQ
Vishnu Nair [Tue, 7 Dec 2021 00:45:48 +0000 (16:45 -0800)]
BBQ: Capture initial destframe change from BBQ

Allow the caller to pass in a transaction that can
capture the initial destination frame changes. This
allows the caller to apply other destination frame
changes via BBQ#update in order.

Bug: 195443440
Test: atest BLASTBufferQueueTest
Test: repro steps from bug

Change-Id: Ibf53a0efdebb87291d081e48633c373a98d347b1
Merged-In: Ibf53a0efdebb87291d081e48633c373a98d347b1

2 years agoSnap for 7977275 from 40fbb638197f089ea4ba6a51eca1ec3124156d34 to sc-v2-release
Android Build Coastguard Worker [Wed, 8 Dec 2021 00:07:10 +0000 (00:07 +0000)]
Snap for 7977275 from 40fbb638197f089ea4ba6a51eca1ec3124156d34 to sc-v2-release

Change-Id: I484fe7893c8dbeaf7a6e6f5cb67667fc2423631a

2 years agoManually calculate stats for app owning external storage
Shikha Malhotra [Thu, 25 Nov 2021 10:52:50 +0000 (10:52 +0000)]
Manually calculate stats for app owning external storage

The stats are calculated using quota APIs for all the apps.
This is going wrong for the app owning external storage, as it includes
the external storage files also. The reason for that is the uid for the
external storage files and the app owning the external storage is the
same. Calculating the size manually avoids the problem.

Bug: 195804288
Test: atest StorageHostTest
Test: atest installd_service_test.cpp
Change-Id: I183c6997375b94dc02562bede03e3a15036efb6e
Ignore-AOSP-First: already submitted in AOSP
Merged-In: I183c6997375b94dc02562bede03e3a15036efb6e

2 years agoSnap for 7960322 from e9323b30ab14bad2a06a5cc67c326462cd11856b to sc-v2-release
Android Build Coastguard Worker [Thu, 2 Dec 2021 00:07:39 +0000 (00:07 +0000)]
Snap for 7960322 from e9323b30ab14bad2a06a5cc67c326462cd11856b to sc-v2-release

Change-Id: I7c489a9ed259f452b94ec09e18d02f555d6f7de2

2 years agoBLASTBufferQueue: Cap shadow queue size during sync
Robert Carr [Tue, 30 Nov 2021 22:47:02 +0000 (14:47 -0800)]
BLASTBufferQueue: Cap shadow queue size during sync

While waiting for the transaction commit callback on a previous
sync transaction BLASTBufferQueue will halt buffer processing to
ensure later frames do not arrive at SurfaceFlinger first. These
buffers wait in the shadow queue (tracked by mNumFrameAvailable)
to be acquired later. If we end up in a situation where all the
buffers are either in a sync transaction or in the shadow
queue then dequeue buffer will begin to block. This isn't
ideal, as dequeue buffer blocking can cause UI thread to block, aka
UI thread can block on RenderThread. However completing the
sync transaction (from a previous frame) can also depend on UI
thread, aka RenderThread can now block on UI thread (since
we need the transaction to apply in order to thaw the
shadow queue). In this CL we try and avoid that situation by
only keeping 1 frame in the shadow queue while waiting for the
sync to complete. If a second frame comes in we will acquire
and release the first before acquiring the second.

Bug: 200285149
Change-Id: I5072765e7b94820b3e66c557f5a96172ccef8172
Merged-In: I5072765e7b94820b3e66c557f5a96172ccef8172

2 years agoSnap for 7956453 from c54964d30cfac4c14c16477e8fea84783c24b55d to sc-v2-release
Android Build Coastguard Worker [Wed, 1 Dec 2021 00:07:38 +0000 (00:07 +0000)]
Snap for 7956453 from c54964d30cfac4c14c16477e8fea84783c24b55d to sc-v2-release

Change-Id: Ib2f2737161f95efd49ee43941d581c60c6428876

2 years agoMerge "Allow touch split enabled when no window touched" into sc-v2-dev
Arthur Hung [Tue, 30 Nov 2021 02:08:30 +0000 (02:08 +0000)]
Merge "Allow touch split enabled when no window touched" into sc-v2-dev

2 years agoMerge "Let touch region empty if the input bounds is empty" into sc-v2-dev
Arthur Hung [Tue, 30 Nov 2021 02:07:16 +0000 (02:07 +0000)]
Merge "Let touch region empty if the input bounds is empty" into sc-v2-dev

2 years agoSnap for 7952937 from f2cf7639a80206c43c83cf6076998b45f4feb24b to sc-v2-release
Android Build Coastguard Worker [Tue, 30 Nov 2021 00:07:13 +0000 (00:07 +0000)]
Snap for 7952937 from f2cf7639a80206c43c83cf6076998b45f4feb24b to sc-v2-release

Change-Id: Iea8c6feaff3595322af47d8fbda5f2160afbb297

2 years agoMerge "SF: Fix duplicate callbacks from mirrored layers" into sc-v2-dev
Vishnu Nair [Mon, 29 Nov 2021 19:47:44 +0000 (19:47 +0000)]
Merge "SF: Fix duplicate callbacks from mirrored layers" into sc-v2-dev

2 years agoMerge "Added getLastAcquiredFrameNum" into sc-v2-dev
Rob Carr [Mon, 29 Nov 2021 18:43:00 +0000 (18:43 +0000)]
Merge "Added getLastAcquiredFrameNum" into sc-v2-dev

2 years agoSF: Fix duplicate callbacks from mirrored layers
Vishnu Nair [Fri, 26 Nov 2021 17:24:11 +0000 (09:24 -0800)]
SF: Fix duplicate callbacks from mirrored layers

When cloning layers, we would also clone the layer's
callback handles which resulted in SF emitting duplicate
callbacks.

Test: presubmit
Test: launcher does not ANR when switching wallpapers with screen recording enabled
Bug: 205922358

Change-Id: Ic0435164f27d9bca7f80fc57d9021a9f544c936f

2 years agoAllow touch split enabled when no window touched
Arthur Hung [Tue, 16 Nov 2021 02:45:54 +0000 (02:45 +0000)]
Allow touch split enabled when no window touched

If no window can be touched by first touch down, it would still deliver
the event to the gesture monitor. So before gesture monitor pilfer the
touch, if a new window supports split touch, it can't recevied the new
point down event cause device looks unresponsive.

Test: atest inputflinger_test
Bug: 201647070
Change-Id: Ib0734ef7082bf673afb11eef9ec7bdb0b3f103ec
(cherry picked from commit fbfa572245e430392f779edbb01b3b18e1b2ed82)
Merged-In: Ib0734ef7082bf673afb11eef9ec7bdb0b3f103ec

2 years agoSnap for 7944517 from 3316c9775acab304c5f790b6fa48a576563b7bcc to sc-v2-release
Android Build Coastguard Worker [Thu, 25 Nov 2021 00:07:18 +0000 (00:07 +0000)]
Snap for 7944517 from 3316c9775acab304c5f790b6fa48a576563b7bcc to sc-v2-release

Change-Id: I02b584cebf502e052eac0ea1c9cfe1f6826633dc

2 years agoAdded getLastAcquiredFrameNum
chaviw [Fri, 20 Aug 2021 17:00:47 +0000 (12:00 -0500)]
Added getLastAcquiredFrameNum

This will allow VRI to ask BBQ what buffer was actually acquired on the
last draw.

Test: blast sync
Bug: 195262673
Bug: 193634619
Change-Id: I492651e8e6d333ef11b682cec939d81057ae197d
Merged-In: I492651e8e6d333ef11b682cec939d81057ae197d

2 years agoMerge "Only add commit callback when using sync transaction" into sc-v2-dev
Chavi Weingarten [Tue, 23 Nov 2021 19:13:58 +0000 (19:13 +0000)]
Merge "Only add commit callback when using sync transaction" into sc-v2-dev

2 years agoOnly add commit callback when using sync transaction
chaviw [Wed, 17 Nov 2021 23:36:50 +0000 (17:36 -0600)]
Only add commit callback when using sync transaction

There's no need to add a commit callback when we're not syncing since
the callback won't actually do anything. Instead only add a commit
callback when a sync transaction has been requested.

Test: BLASTBufferQueueTest
Bug: 205278630
Change-Id: Ib7345f2581b6e4ce8923531aebcd457c14d86027
Merged-In: Ib7345f2581b6e4ce8923531aebcd457c14d86027

2 years agoLet touch region empty if the input bounds is empty
Arthur Hung [Fri, 19 Nov 2021 15:11:51 +0000 (15:11 +0000)]
Let touch region empty if the input bounds is empty

If the input bounds is empty, we should let the touch region empty so
it could prevent receiving touch without valid bounds.

Bug: 204747595
Test: atest InputSurfacesTest
Change-Id: Iee59c437a084ca9db6936af7a4852190169518d9

2 years agoSnap for 7932843 from 11595687cb64ef66b390deaf9aca9f891423afd5 to sc-v2-release
Android Build Coastguard Worker [Sat, 20 Nov 2021 02:07:02 +0000 (02:07 +0000)]
Snap for 7932843 from 11595687cb64ef66b390deaf9aca9f891423afd5 to sc-v2-release

Change-Id: Ida57218cded173b095272949572e9c82edb5ecea

2 years agoMerge "Merge color property in a transaction" into sc-v2-dev
Chavi Weingarten [Thu, 18 Nov 2021 21:01:34 +0000 (21:01 +0000)]
Merge "Merge color property in a transaction" into sc-v2-dev

2 years agoMerge color property in a transaction
chaviw [Thu, 18 Nov 2021 16:37:33 +0000 (10:37 -0600)]
Merge color property in a transaction

The LayerState.merge code didn't have colors getting merged

Test: Builds
Fixes: 206341593
Change-Id: Ic2721242c772099802f635f8019cb3b7a24d6c90

2 years agoSnap for 7921329 from 2731fe5378813950162c69d91ae865d8e54f1cdb to sc-v2-release
Android Build Coastguard Worker [Wed, 17 Nov 2021 00:06:27 +0000 (00:06 +0000)]
Snap for 7921329 from 2731fe5378813950162c69d91ae865d8e54f1cdb to sc-v2-release

Change-Id: I0872570e96bbc2bd81420f9d2795cfc5cf013ea3

2 years agoMerge "SF: reset idle state when RefreshRateConfigs changes" into sc-v2-dev
TreeHugger Robot [Tue, 16 Nov 2021 17:57:19 +0000 (17:57 +0000)]
Merge "SF: reset idle state when RefreshRateConfigs changes" into sc-v2-dev

2 years agoSF: reset idle state when RefreshRateConfigs changes
Ady Abraham [Thu, 11 Nov 2021 03:46:09 +0000 (19:46 -0800)]
SF: reset idle state when RefreshRateConfigs changes

RefreshRateConfigs calls back into Scheduler for updating the idle timer.
When RefreshRateConfigs changes as a result of the active display changed,
we need to stop the idle timer on the old RefreshRateConfigs and reset
Scheduler's state.

Bug: 205664808
Test: manual using below steps
1. Boot device on unfold state
2. Fold device
3. Unfold device
4. Launch Chrome from taskbar

Change-Id: I554fe2b2447c0ad662f06329ff74e0b9b3e999b3

2 years agoReconnect to all hidl sensors HALs
Arthur Ishiguro [Sat, 13 Nov 2021 00:16:49 +0000 (00:16 +0000)]
Reconnect to all hidl sensors HALs

Fixes: 206162862
Test: Restart sensors HAL and verify resume
Change-Id: Iba93246a30565783a0634a9a0cd966a7ccf841d3

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