Ameer Armaly
be8a943e46
[DO NOT MERGE] Use correct touch slop value for two-finger passthrough.
...
Throughout the gesture system we scale the touch slop radius to the number of fingers that are down at any given moment. Therefore the correct value to
trigger two-finger passthrough should be 2 * mTouchSlop.
This should make three-finger taps less problematic.
Bug: 163438921
Bug: 162521649
Test: manual
Change-Id: I4b36b5575bf11ad767d83effd6292dc84eadb27d
Change-Id: I9fb9d58ef679151c9fc595bcb375f6209ea3a5af
Change-Id: Ibcae2a5a3fde37b97859165efabf2b0df13ded9b
2020-10-11 08:04:43 -07:00
ryanlwlin
81570aa5ad
[DO NOT MERGE] Fix sometime couldn't trigger A11y button with 3-finger
...
We inject the down events from where we detect the 3-finger swipe
gesture. It may not trigger the A11y Button if the event is not inside
the system gesture detection area.
We inject the original down location to injection all down events.
Bug: 166187595
Test: manually test
Change-Id: I0c0f84047fc24e40724332d51d7e3dc414bd0186
2020-10-11 08:04:43 -07:00
ryanlwlin
dd8ef30adf
[DO NOT MERGE] Fix hardly to perform 3-finger swipe from the bottom
...
We accidentky checked invalid pointers down position.
In stead of checking all pointers, we check the pointer ids
from the motion event.
Bug: 165576902
Test: manually test
atest TouchExplorerTest
Change-Id: Id530bf4b760351215726b2afd781433b590f57ce
2020-10-11 08:04:43 -07:00
Ameer Armaly
217bb3b1d2
[DO NOT MERGE] Fix edge swipe logic.
...
1) Only start delegating upon first move event, if all three fingers went down on the bottom edge.
2) The previous logic only required one finger to be in the edge boundary. It now requires all fingers to be in the edge boundary.
Bug: 162521649
Test: manual
Change-Id: I829c463c63b384642d129ff3b5ccdb0db816ddcd
2020-10-11 08:04:43 -07:00
Ameer Armaly
a7da0f4f6d
[DO NOT MERGE] Require both fingers to move before starting two-finger passthrough.
...
Bug: 162521649
Test: manual
Change-Id: Ia6b7bf84fd0c7777f21afbd0e0c09bf3f4a10fb2
2020-10-11 08:04:42 -07:00
Ameer Armaly
aa25d2041f
[DO NOT MERGE] Start dragging where the fingers initially went down.
...
This does not apply when transitioning from touch exploration to dragging.
Bug: 162521649
Test: manual
Change-Id: I92022ca0359040a6563e6a48c110face574dc9df
2020-10-11 08:04:42 -07:00
Phil Weaver
1f49d41a6a
[DO NOT MERGE] Address drag unreliability during touch exploration
...
The code was trying to set the location of the drag, but MotionEvent doesn't behave consistently when setting a single location to a multi-touch event.
All that's needed is to select the correct pointer, so removing messing with the location gives more consistent behavior.
Bug: 163105030
Change-Id: I6c315cf0a1e48847cc778ec8c34b382d13ce3555
Test: Manually testing at this point of the passthrough, and relying on treehugger.
2020-10-11 08:04:42 -07:00
Phil Weaver
c39597b634
[DO NOT MERGE] Fix crash with multifinger touch exploration
...
Range check index into motion event x and y before using it.
Bug: 163107812
Test: Relying on treehugger. I can't reproduce the crash, so I'm just adding checks.
Change-Id: I4ac5023ef9b5c101748b870a01a425a1365fb85c
2020-10-11 08:04:42 -07:00
Ameer Armaly
abfaf269a9
[DO NOT MERGE] Enable two-finger passthrough swipes.
...
Bug: 162521649
Test: atest GestureManifoldTest TouchExplorerTest AccessibilityGestureDetectorTest FrameworksServicesTests:TouchExplorerTest
Change-Id: I9e6b691295a0fa006578d7b8ad8468579c66939c
2020-10-11 08:04:42 -07:00
TreeHugger Robot
d00160c0af
Merge "Allow notfication vibrations in DND" into rvc-qpr-dev
2020-10-09 15:18:39 +00:00
Alison Cichowlas
e61d9aa040
Merge "When logging ranking positions, use the number of displayed targets in calculating offset rather than the total number available." into rvc-qpr-dev
2020-10-09 12:37:52 +00:00
Curtis Belmonte
a1d67979b5
Merge "DO NOT MERGE Check fingerprint client against top activity in auth callback" into rvc-qpr-dev
2020-10-09 00:27:08 +00:00
Alison Cichowlas
7f03b9f0cf
When logging ranking positions, use the number of displayed targets
...
in calculating offset rather than the total number available.
Test: ChooserActivityTest; log inspection
Bug: 169344682
Change-Id: I40c841bf0f3e1cf90b0e4998bde1c9e8009c09c5
(cherry picked from commit b17dbd20c3 )
2020-10-08 19:29:50 +00:00
Edwin Wong
753f80a08a
Merge "Use shared libdrmframeworkcommon." into rvc-qpr-dev
2020-10-08 17:32:33 +00:00
Sahana Rao
3b6145587f
Flip ENABLE_DYNAMIC_PERMISSIONS, attempt #7 .
...
Ib0021d3fd34294bb7497c8827e7ee99d4ac64d73 fixes the app compatibility
issue(b/159995598).
Bug: 115619667
Test: atest ExternalStorageHostTest#testGrantUriPermission
Test: atest ExternalStorageHostTest#testGrantUriPermission29
Merged-In: I413ccf8c31de6525a737c8336a904456fdbeb9e1
Change-Id: I413ccf8c31de6525a737c8336a904456fdbeb9e1
(cherry picked from commit 8bf78650b2 )
2020-10-08 13:12:37 +00:00
TreeHugger Robot
6154a49b28
Merge "Do not re-initialize synthetic password" into rvc-dev am: 5ad4ec37a0 am: b00cccb819
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12653063
Change-Id: I32586fc3a174f8811f0c016838f897b3334b741b
2020-10-08 11:22:17 +00:00
TreeHugger Robot
b00cccb819
Merge "Do not re-initialize synthetic password" into rvc-dev am: 5ad4ec37a0
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12653063
Change-Id: I2681da6b3919efa0bf86241169219567c15e1864
2020-10-08 10:55:02 +00:00
TreeHugger Robot
5ad4ec37a0
Merge "Do not re-initialize synthetic password" into rvc-dev
2020-10-08 10:37:53 +00:00
TreeHugger Robot
84233312e3
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9 am: a2a586a61a am: d29dc3d991 am: e7069bce3c am: f1c038465d am: 488660a841
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: Ib1481039e0f1c4cfc228e2417d2a06c8d77e4b8b
2020-10-08 05:51:53 +00:00
TreeHugger Robot
488660a841
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9 am: a2a586a61a am: d29dc3d991 am: e7069bce3c am: f1c038465d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: I3a3bbd6f1b810d006cbe5e3e06fd00aa5bf09b0d
2020-10-08 05:36:21 +00:00
TreeHugger Robot
f1d26a395f
Merge "Fix out of bound error of IncidentService" into rvc-qpr-dev
2020-10-08 05:12:35 +00:00
TreeHugger Robot
f1c038465d
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9 am: a2a586a61a am: d29dc3d991 am: e7069bce3c
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: I0b180698048fb1c643d90f2d038d1df8d66fc671
2020-10-08 05:05:38 +00:00
TreeHugger Robot
e7069bce3c
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9 am: a2a586a61a am: d29dc3d991
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: Ic730c4d98a309aadcde740d77582ffb7d788337f
2020-10-08 04:54:24 +00:00
TreeHugger Robot
d29dc3d991
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9 am: a2a586a61a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: Id5bfe41bdf8ce53c5da5e9d6322abf7f9df46837
2020-10-08 04:27:35 +00:00
TreeHugger Robot
a2a586a61a
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev am: 83739b6db9
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12735135
Change-Id: I52b4099eca7e8c8069b7fd7446784aae1a0569bc
2020-10-08 04:10:10 +00:00
TreeHugger Robot
83739b6db9
Merge "Fix storing the wrong value of mLockdown in setting" into oc-mr1-dev
2020-10-08 03:40:59 +00:00
David Su
9bc3f695b0
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours am: 88ec485f39 -s ours am: 3b9f0fb6c3 -s ours am: 3ea188d4d2 -s ours am: 81373b0b89 -s ours am: b6a404e7ff -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 e57c25a451 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: Ia64ff047933e091f4597cb5c5ea4283dfb63c35b
2020-10-08 02:56:49 +00:00
David Su
b6a404e7ff
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours am: 88ec485f39 -s ours am: 3b9f0fb6c3 -s ours am: 3ea188d4d2 -s ours am: 81373b0b89 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 e57c25a451 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: I1ca9ae321eba730688222bf132953b5e9c67ab25
2020-10-08 02:35:42 +00:00
David Su
81373b0b89
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours am: 88ec485f39 -s ours am: 3b9f0fb6c3 -s ours am: 3ea188d4d2 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: Iff6123ae0567a9066158c2c4b7a07ec3508e1bd7
2020-10-08 02:13:39 +00:00
David Su
3ea188d4d2
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours am: 88ec485f39 -s ours am: 3b9f0fb6c3 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 e57c25a451 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: I85309b43227c6fcbea1310281ccf7b42981bf1ca
2020-10-08 01:46:19 +00:00
David Su
3b9f0fb6c3
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours am: 88ec485f39 -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: I6c39f346377c9f591d4207b3c2288344470276e6
2020-10-08 01:25:05 +00:00
TreeHugger Robot
2ac809e71d
Merge "Camera: Track native metadata allocations" into rvc-qpr-dev
2020-10-08 01:11:04 +00:00
David Su
88ec485f39
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours am: d840f0c7da -s ours
...
am skip reason: subject contains skip directive
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: I36bdfb8c03950173e51ea9815a6fda619126aff8
2020-10-08 00:53:06 +00:00
David Su
d840f0c7da
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours am: 816fd66d64 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 e57c25a451 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: Idefd4af0be5dce2baf988135f3062029749dc95b
2020-10-08 00:24:07 +00:00
David Su
816fd66d64
[automerger skipped] RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext. am: 752cb249a6 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 e57c25a451 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12779618
Change-Id: I19aeca326d6f4faae382fb6a140acde81602eb3a
2020-10-08 00:11:38 +00:00
Curtis Belmonte
09c1b8ebf9
DO NOT MERGE Check fingerprint client against top activity in auth callback
...
Due to a race condition with activity task stack broadcasts, it's
currently possible for fingerprint authentication to succeed for a
non-top activity. This means, for example, that a malicious overlay
could be drawn in order to mislead the user about what they are
authenticating for.
This commit addresses the issue by adding a check to the biometric
authentication client interface that ensures the authenticating
activity is on top at the time of authentication. Otherwise, the
pending authentication will fail, as if an incorrect biometric had
been presented.
Test: Follow steps from b/159249069:
1. Install com.pro100svitlo.fingerprintauthdemo from the Play store.
2. Install the PoC attack app from b/159249069.
3. Start the PoC attack app and press the "Launch PoC attack" button.
4. Use fingerprint to authenticate while the overlay is showing.
Before: Authentication succeeds, and a new activity is launched.
After: Authentication fails, and no new activity is launched.
Bug: 159249069
Change-Id: Ie5a0f8c3e9b92d348a78678a6ed192d440c45ffc
Merged-In: I289d67e5c7055ed60f7a96725c523d07cd047b23
Merged-In: I3a810cd7e6b97333f648c978e44242662342ec57
2020-10-07 22:54:52 +00:00
Emilian Peev
0f1fd8c236
Camera: Track native metadata allocations
...
Native camera metadata buffers can increase both in size
and count over prolonged periods of camera usage.
Register and track the native buffer allocation in the Java
VM to improve GC.
Bug: 168100424
Bug: 170243539
Test: Camera CTS
Change-Id: I7a10c2f360307a6c1afeecde24dc42184106b872
2020-10-07 18:16:35 +00:00
Julia Reynolds
cb7d292691
Allow notfication vibrations in DND
...
Test: manual
Fixes: 169609238
Change-Id: I5993a2519bfb63ce405c05169754750aaae7b105
2020-10-07 17:39:59 +00:00
David Su
752cb249a6
RESTRICT AUTOMERGE Implement sendBroadcastAsUserMultiplePermissions in BridgeContext.
...
sendBroadcastAsUserMultiplePermissions was added to Context.java.
Implementing in BridgeContext.
Fix oc-dev since BridgeContext is in frameworks/base/tools/layoutlib,
whereas in later branches the file is in frameworks/layoutlib
Test: Compile / build (actual usage is documented in other bugs)
Bug: 159373687
Change-Id: I8715b6fce7039268eb29914cb15f68ab922f4d3f
Merged-In: I857ea00cc58a0abbb77960643f361dd6dd9c8b56
2020-10-07 14:41:24 +00:00
David Su
8bb65f94c8
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours am: aeac5e7d30 -s ours am: 5c2b86fbed -s ours am: 4c94806e28 -s ours am: 008d947b59 -s ours am: 81e1bdcb6f -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: I8ab0879a362d5b9b9aa24599de46794eda706fdc
2020-10-07 09:47:42 +00:00
David Su
81e1bdcb6f
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours am: aeac5e7d30 -s ours am: 5c2b86fbed -s ours am: 4c94806e28 -s ours am: 008d947b59 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: I85509e7b2ad905c15e7280bf2d6b57c02ea068fb
2020-10-07 09:34:40 +00:00
David Su
008d947b59
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours am: aeac5e7d30 -s ours am: 5c2b86fbed -s ours am: 4c94806e28 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: If5edb76ce859af8506a381856c6b3b0058aee541
2020-10-07 09:18:41 +00:00
David Su
4c94806e28
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours am: aeac5e7d30 -s ours am: 5c2b86fbed -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: Id637abc5705e488e2bc77122e052b9d3ea475ae3
2020-10-07 08:32:52 +00:00
David Su
5c2b86fbed
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours am: aeac5e7d30 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: Ic97189261040a3eef447064ceed038727fb11120
2020-10-07 08:16:39 +00:00
David Su
aeac5e7d30
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-dev am: d1bcf628bd am: 60cf3eebd5 -s ours am: 615d6b6ba6 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 ea7ef4ad2a is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12724292
Change-Id: I7bedb3b7b8da1bdbe3f483b5186d7864ffc22f7a
2020-10-07 07:58:20 +00:00
David Su
0a8b94cedf
[automerger skipped] Merge "Backport sendBroadcastAsUserMultiplePermissions to oc-dev" into oc-mr1-dev am: 3d92e370f5 -s ours am: 8a936e088d -s ours am: b9edc63f80 -s ours am: 79148d590a -s ours am: 3c8124a242 -s ours am: 63549d1837 -s ours
...
am skip reason: Change-Id I857ea00cc58a0abbb77960643f361dd6dd9c8b56 with SHA-1 f955e56d51 is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12729621
Change-Id: I28289ad8ba125f9a22a77b306d3648bd74dd01bd
2020-10-07 07:47:42 +00:00
wilsonshih
74e82a7f5c
Make WallpaperMS bind wallpaper component PendingIntent immutable. am: b392903052 am: f75396d3c6 am: 286aa8b9b4 am: 7e53b78946 am: 7e24456d17 am: c201373d98 am: 46bdd4af42 am: 5d67607771
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12718696
Change-Id: If6c8a865ee8020fb7f4c103fb4f0a10a32255615
2020-10-07 07:47:18 +00:00
wilsonshih
89685e6612
Make WallpaperMS bind wallpaper component PendingIntent immutable. am: 178da54fc9 am: 6ea3559233 am: 5b295c7726 am: b3fd083cb1 am: 254924da94 am: b180f6990a
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12718925
Change-Id: I9978b8852c8bcfae3dcfe343d29f5470bfdfc000
2020-10-07 07:47:07 +00:00
Automerger Merge Worker
f6136c74c9
Merge "Merge "Make WallpaperMS bind wallpaper component PendingIntent immutable." into pi-dev am: 416332cf90" into qt-dev am: 2426f27569 am: 8a6fa4c1eb am: 75b7643622 am: 3120bcd10d
...
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12715966
Change-Id: I492a981d21f04ffafb8f68ab2025738c5b569e85
2020-10-07 07:46:48 +00:00
Nathan Harold
7510b01340
[automerger skipped] Merge "[DO NOT MERGE][BACKPORT]Improve location checks in TelephonyRegistry" into qt-dev am: 0b5b9eed4b am: e45ec287ed -s ours am: 94e5401f7e -s ours am: 96631660af -s ours
...
am skip reason: Change-Id I8caa3ea409836ce8469d8d8210b481a0284594f2 with SHA-1 cc584e777d is in history
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/12664597
Change-Id: I629ac86721649bd8dd2682ca80e226dbd8548131
2020-10-07 07:45:56 +00:00