Commit Graph

648563 Commits

Author SHA1 Message Date
Winson Chung
ea9b0fc9d6 [automerger skipped] Add mechanism for a task's windows to be trusted overlays am: 47fb132ef2 am: c9869e0d9c -s ours
am skip reason: Merged-In I170cb5a7d22ef569eb36de21cc0bcbef60dd385e with SHA-1 47fb132ef2 is already in history

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

Change-Id: I69cb6296f58953ec93f1dd3877ffbdc881b2efdf
2021-11-11 19:23:04 +00:00
Winson Chung
3c33bfd12e [automerger skipped] Merge "DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y"" into rvc-qpr-dev am: 3d570b73d3 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I56955e85820b0455e4928d5830b18e02b978f768
2021-11-11 19:22:13 +00:00
Chris Ye
bf60d8af3c [automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based am: 716333761d am: 0ee0d7f55e -s ours
am skip reason: Merged-In I70151697cc01e8427129f951f0ebadc4805b2d56 with SHA-1 716333761d is already in history

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

Change-Id: Iafead68ffbad240cb4a99bf63bba336857cf2772
2021-11-11 19:21:47 +00:00
Winson Chung
c9869e0d9c Add mechanism for a task's windows to be trusted overlays am: 47fb132ef2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975849

Change-Id: Ia323593ceba41580d88b6d058ae0bfc8c92dce3f
2021-11-11 19:00:04 +00:00
Winson Chung
3d570b73d3 Merge "DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y"" into rvc-qpr-dev 2021-11-11 18:58:35 +00:00
Varun Shah
2a14be36ff Merge "Update deletion conditions for a package's UsageStats." into sc-dev 2021-11-11 01:03:49 +00:00
Chris Ye
0ee0d7f55e Change InputWindowInfo::isTrustedOverlay() to be permission and flag based am: 716333761d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975848

Bug: 196389741
Change-Id: I3109c9cadb88297ec13751171b15410633bba03a
Merged-In: I70151697cc01e8427129f951f0ebadc4805b2d56
2021-11-10 19:06:16 +00:00
Winson Chung
ad1a19d9ff DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y"
This reverts commit 4ec7b5c3fb.

Bug: 196389741
Test: Ensure PIP windows are trusted overlays

Change-Id: I49477ffd489ecbc969ab9b9310c2344ab03280e8
(cherry picked from commit 0cf0d420e1)
2021-11-10 17:17:36 +00:00
Varun Shah
157fbcfbe4 Update deletion conditions for a package's UsageStats.
If a profile owner is defined for a specific user, do not delete usage
stats for a package on package deletion.

Bug: 197399948
Test: atest UserUsageStatsServiceTest
Test: atest UsageStatsTest [all]
Change-Id: I94a8e3dfca8ef4c7616f77944d61726e06043b85
Merged-In: I94a8e3dfca8ef4c7616f77944d61726e06043b85
2021-11-10 17:11:32 +00:00
Siarhei Vishniakou
e1a2ccd0e5 [automerger skipped] Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29 am: 6bdebc2a7d -s ours
am skip reason: Merged-In Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b with SHA-1 0657e19940 is already in history

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

Change-Id: I0888fd2e22727637aeb71c6b910d1f07403f1a03
2021-11-10 07:19:43 +00:00
Siarhei Vishniakou
6bdebc2a7d Only allow trusted overlays to specify FLAG_SLIPPERY am: 07e7aaff29
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16190719

Change-Id: Ida640d4498e98eaaa9922b611e38c65936dd9814
2021-11-10 07:07:03 +00:00
Siarhei Vishniakou
07e7aaff29 Only allow trusted overlays to specify FLAG_SLIPPERY
For all other requests, drop this flag.

Test: atest FlagSlipperyTest
Bug: 157929241
Change-Id: Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b
Merged-In: Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b
2021-11-10 06:49:04 +00:00
TreeHugger Robot
f159de0dcf Merge "Mark screen decorations as trusted overlays" into rvc-dev am: bb3f22df9a am: 5448bd7ed3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16222361

Change-Id: I524489ca639856389e55fa4ac5c31f0f348b02ee
2021-11-10 03:02:14 +00:00
TreeHugger Robot
5448bd7ed3 Merge "Mark screen decorations as trusted overlays" into rvc-dev am: bb3f22df9a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16222361

Change-Id: Ie00822b22ee7e9b46a5229f1e778e5a4c1a1bccf
2021-11-10 02:38:17 +00:00
TreeHugger Robot
bb3f22df9a Merge "Mark screen decorations as trusted overlays" into rvc-dev 2021-11-10 02:18:17 +00:00
TreeHugger Robot
94fb6eff68 Merge "Only allow trusted overlays to specify FLAG_SLIPPERY" into sc-dev 2021-11-10 00:55:27 +00:00
Winson Chung
1e2cf25915 Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 58c437f18c am: 88aae2f25f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975850

Change-Id: I5398f7f9b896a7207f2e8ec4d9becd96f6ca0298
2021-11-09 23:43:23 +00:00
Winson Chung
6b51131818 [automerger skipped] DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y" am: 0cf0d420e1 am: 4e58604920 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I739d37b74db21611ee55ebef3889262fff47e5b5
2021-11-09 23:43:14 +00:00
Winson Chung
901c25122b [automerger skipped] Add mechanism for a task's windows to be trusted overlays am: 47fb132ef2 am: 12c795620e -s ours
am skip reason: Merged-In I170cb5a7d22ef569eb36de21cc0bcbef60dd385e with SHA-1 954ce27d13 is already in history

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

Change-Id: I9d4619232a7891c1ae83d40728d603afc57af5f6
2021-11-09 23:43:04 +00:00
Chris Ye
c7f2da5697 [automerger skipped] Change InputWindowInfo::isTrustedOverlay() to be permission and flag based am: 716333761d am: dc366a00d5 -s ours
am skip reason: Merged-In I70151697cc01e8427129f951f0ebadc4805b2d56 with SHA-1 535a128dc1 is already in history

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

Change-Id: Iff9bff7cff872bbc1156965ae7382d767796c8c5
2021-11-09 23:42:30 +00:00
Winson Chung
88aae2f25f Merge changes from topic "trusted_overlay_backport" into rvc-dev am: 58c437f18c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975850

Change-Id: Ic21fa531902e2144fe187c6170079e46d49ad235
2021-11-09 23:21:22 +00:00
Winson Chung
4e58604920 DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y" am: 0cf0d420e1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975850

Change-Id: I7d0bbb3713041f3d5ddd61f3a7f15a3ddfc78f4a
2021-11-09 23:21:11 +00:00
Winson Chung
12c795620e Add mechanism for a task's windows to be trusted overlays am: 47fb132ef2
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975849

Change-Id: Id1226a57313811749baf131f0ed418b8d586cc94
2021-11-09 23:21:09 +00:00
Chris Ye
dc366a00d5 Change InputWindowInfo::isTrustedOverlay() to be permission and flag based am: 716333761d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15975848

Change-Id: I199e9f6818bf99d7f4c7a59992b0695c8ac0b745
2021-11-09 23:20:58 +00:00
Winson Chung
58c437f18c Merge changes from topic "trusted_overlay_backport" into rvc-dev
* changes:
  DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y"
  Add mechanism for a task's windows to be trusted overlays
  Change InputWindowInfo::isTrustedOverlay() to be permission and flag based
2021-11-09 23:03:14 +00:00
Siarhei Vishniakou
620ee47b2a Mark screen decorations as trusted overlays
These decorations set flag_slippery, to cover the unlikely event of user
tapping a screen decor and then not able to send this touch gesture to
the neighboring window.

Bug: 157929241
Test: `adb shell dumpsys input` and make sure that ScreenDecorOverlay
and ScreeDecorOverlayBottom have FLAG_SLIPPERY

Change-Id: Ib276764edcf1acffe94e3db7397fd23aaaa5dbaa
Merged-In: Ib276764edcf1acffe94e3db7397fd23aaaa5dbaa
(cherry picked from commit 8eca1d5615)
2021-11-09 17:35:14 +00:00
Dmitry Dementyev
5b663962d8 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927 am: d446e110b6 am: c56d34c225 am: 014b806c56
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: I9af670490d6a852a7ee6f3015a6ff0eec2848d3b
2021-11-09 16:39:56 +00:00
Dmitry Dementyev
d20bf16032 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927 am: d446e110b6 am: c56d34c225 am: 377f1097b1
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: Ie8eedb3dcae9e6b5258248e2256bc6d99912a6d1
2021-11-09 16:17:23 +00:00
Dmitry Dementyev
014b806c56 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927 am: d446e110b6 am: c56d34c225
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: I94e99ec24d9dc593638cc70435b2b49b3ad55177
2021-11-09 15:57:14 +00:00
Dmitry Dementyev
377f1097b1 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927 am: d446e110b6 am: c56d34c225
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: Iaa9b592e63dc1a983d5f2e57dda7d90ed4ac992b
2021-11-09 15:54:55 +00:00
Dmitry Dementyev
c56d34c225 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927 am: d446e110b6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: I005854d66ac71e56cee1af1026fdc0d2d5d01c2a
2021-11-09 15:34:12 +00:00
Dmitry Dementyev
d446e110b6 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a am: 8e8fbc8927
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: Ic19f454deaa9ef8bb9a176c1879fc2570dd5d5ac
2021-11-09 15:06:14 +00:00
Dmitry Dementyev
8e8fbc8927 Merge "Force-set a ClipData to prevent later migration." into pi-dev am: d5c2fb380a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16094504

Change-Id: I0d01e8325beae6a69b88a38887863b222be01b95
2021-11-09 14:52:24 +00:00
Dmitry Dementyev
d5c2fb380a Merge "Force-set a ClipData to prevent later migration." into pi-dev 2021-11-09 14:24:20 +00:00
TreeHugger Robot
3b1c05a7fb Merge "Revert "Revert "[pm] remove old stage dirs on low storage""" into sc-dev 2021-11-08 19:24:50 +00:00
TreeHugger Robot
3a605eef32 Merge "Revert "Revert "[pm] remove old stage dirs on low storage""" into rvc-qpr-dev am: 8f9f44e025
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16056948

Change-Id: I47923d6e6126b02b6474d17d2b1d094ccd8a8c20
2021-11-08 18:31:16 +00:00
TreeHugger Robot
8f9f44e025 Merge "Revert "Revert "[pm] remove old stage dirs on low storage""" into rvc-qpr-dev 2021-11-08 18:10:57 +00:00
Winson Chung
47fb132ef2 Add mechanism for a task's windows to be trusted overlays
- Exposes a method to set that a certain part of the SF hierarchy is
  trusted, and sets this state for tasks in PIP.

Bug: 191529039
Bug: 196389741
Test: Manual, try using permission dialog while PIP is active

Change-Id: I170cb5a7d22ef569eb36de21cc0bcbef60dd385e
Merged-In: I170cb5a7d22ef569eb36de21cc0bcbef60dd385e
2021-11-05 21:15:54 +00:00
Winson Chung
0cf0d420e1 DO NOT MERGE: Revert "Map TYPE_TRUSTED_APPLICATION_OVERLAY to system window type for A11y"
This reverts commit 4ec7b5c3fb.

Bug: 196389741
Test: Ensure PIP windows are trusted overlays

Change-Id: I49477ffd489ecbc969ab9b9310c2344ab03280e8
2021-11-05 21:15:54 +00:00
Chris Ye
716333761d 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: I70151697cc01e8427129f951f0ebadc4805b2d56
Merged-In: I70151697cc01e8427129f951f0ebadc4805b2d56
2021-11-05 21:15:53 +00:00
Vadim Caen
9aff8397c8 Merge "Add details about theme stability" into sc-dev 2021-11-05 11:57:16 +00:00
TreeHugger Robot
ebfb03ea7a [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev am: cc70d98ee4 -s ours am: 200306a728 -s ours am: 5637b4df4a -s ours
am skip reason: Merged-In I79baeb71ac5d1ed45602ac55cdca996b3bed0ac3 with SHA-1 921d955822 is already in history

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

Change-Id: I9411fb56b542626078a5f8f852d538cd92068468
2021-11-04 19:59:05 +00:00
TreeHugger Robot
bc21b57873 [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev am: cc70d98ee4 -s ours am: 200306a728 -s ours am: fe0dd0153e -s ours
am skip reason: Merged-In I79baeb71ac5d1ed45602ac55cdca996b3bed0ac3 with SHA-1 921d955822 is already in history

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

Change-Id: If7dbbe3feb5a1c859397113f5df58bfcc0b3120a
2021-11-04 19:50:04 +00:00
TreeHugger Robot
5637b4df4a [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev am: cc70d98ee4 -s ours am: 200306a728 -s ours
am skip reason: Merged-In I79baeb71ac5d1ed45602ac55cdca996b3bed0ac3 with SHA-1 921d955822 is already in history

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

Change-Id: Ib61cc914f72cd3439a8bf703962bef136de132be
2021-11-04 19:38:53 +00:00
TreeHugger Robot
fe0dd0153e [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev am: cc70d98ee4 -s ours am: 200306a728 -s ours
am skip reason: Merged-In I79baeb71ac5d1ed45602ac55cdca996b3bed0ac3 with SHA-1 921d955822 is already in history

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

Change-Id: Iff9eb6132ea263ee7e82faad339566df9dadb85e
2021-11-04 19:38:03 +00:00
TreeHugger Robot
200306a728 [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev am: cc70d98ee4 -s ours
am skip reason: Merged-In I79baeb71ac5d1ed45602ac55cdca996b3bed0ac3 with SHA-1 921d955822 is already in history

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

Change-Id: I7d108cc3b66769d0507a15a30539082cab1a711b
2021-11-04 19:19:57 +00:00
TreeHugger Robot
cc70d98ee4 Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-qpr1-dev 2021-11-04 18:49:34 +00:00
Siarhei Vishniakou
0657e19940 Only allow trusted overlays to specify FLAG_SLIPPERY
For all other requests, drop this flag.

Test: atest FlagSlipperyTest
Bug: 157929241
Change-Id: Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b
Merged-In: Ia30f1c38d5ddb351c90b748ea76448a76a9dde7b
2021-11-04 17:32:25 +00:00
TreeHugger Robot
6cadff9ffc [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-dev am: 7efe303e96 -s ours am: 8687963e7a -s ours am: 9af49ac0df -s ours am: ae8067e74a -s ours
am skip reason: skipped by user jeffdq

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

Change-Id: I937f402c4e6015918f7a50aca8a6974eceaeb697
2021-11-04 16:48:16 +00:00
TreeHugger Robot
04b38ad96c [automerger skipped] Merge "Allow forcing status bar state changes and do so when the screen turns off." into qt-dev am: 7efe303e96 -s ours am: 8687963e7a -s ours am: 9af49ac0df -s ours am: 1470239670 -s ours
am skip reason: skipped by user jeffdq

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

Change-Id: I406f26bcc7b7851435710aa32554c34f9322c124
2021-11-04 16:47:10 +00:00