Commit Graph

23376 Commits

Author SHA1 Message Date
Alex Johnston
a1b136134c Merge "Make screen capture per-device DO and COPE" into tm-dev am: c170d9adf0 am: 21338dd57e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17070865

Change-Id: Ifde1b4fe4a7288db1677a15e08237dd42db231c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-22 10:10:55 +00:00
Alex Johnston
c170d9adf0 Merge "Make screen capture per-device DO and COPE" into tm-dev 2022-04-22 09:29:12 +00:00
Josh Tsuji
b35356a3cc Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev am: 30183c1cf8 am: 7949750348
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17802841

Change-Id: I34e69eb91599819e9538a6b3ba5f53579862a470
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 18:58:58 +00:00
Josh Tsuji
30183c1cf8 Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev 2022-04-21 18:23:28 +00:00
Nick Gagliardi
900031a8e6 Merge "Updated an incorrect link." into tm-dev am: 71e2f74d9a am: cacc4f15d5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17865668

Change-Id: I8e848b5d37516d0422e49c807fc9062bd98a19ec
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-21 13:20:23 +00:00
Alex Johnston
af6b08b09a Make screen capture per-device DO and COPE
Test cases:
- DO
  - Verify disabled for entire device
  - Verify still disabled after restart
  - Verify no longer disabled when DO is removed
- COPE
  - parent
     - Verify disabled for entire device
     - Verify still disabled after restart
     - Verify no longer disabled when COPE PO is removed
  - not-parent
     - Verify disabled for user
     - Verify disabled after restart
     - Verify disabled when PO is removed

Bug: 217558483
Test: DevicePolicyManagerTest
      OrgOwnedProfileOwnerTest#testScreenCaptureDisabled
      ScreenCaptureDisabledTest
Change-Id: I977eb18619da46e1cfc5d0a8d351ea80d3ea7205
2022-04-21 13:29:42 +01:00
Nick Gagliardi
be242d1d47 Updated an incorrect link.
Bug: 213538093

Change-Id: I7e8c0bcbf7fd2200dead73f1db44910baa97baba
2022-04-20 21:14:13 +00:00
Yohei Yukawa
4244bb98c4 Merge "Let A11yIME use its own IPC definitions" into tm-dev am: 538f36937d am: 1cd2dc5be4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17773213

Change-Id: Icc048070661b4fe149dcf2d2c636328a41f6def0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 18:42:56 +00:00
Derek Jedral
eb3b2354d0 Merge "[Trust] Add test target for tablets." into tm-dev am: a4a4f42b3a am: a09c3f9c49
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17747648

Change-Id: I105b804302f0b5392be8cd4401c9b68ae14edeb7
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 18:24:55 +00:00
Yohei Yukawa
538f36937d Merge "Let A11yIME use its own IPC definitions" into tm-dev 2022-04-20 17:42:55 +00:00
Derek Jedral
a4a4f42b3a Merge "[Trust] Add test target for tablets." into tm-dev 2022-04-20 17:10:06 +00:00
Jing Ji
745fe4cfac Merge "[BugFix] acquireProvider maybe wait for timeout" am: bf7ab279a6 am: 2ee9e5dbb7 am: 25fb447edc am: d448360623 am: 81e967fc63 am: bd0e9527a2
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1999690

Change-Id: I2d88b45d183ccfa0f21f7e2a6fe856ecdd0f6c26
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 13:14:56 +00:00
Jing Ji
d448360623 Merge "[BugFix] acquireProvider maybe wait for timeout" am: bf7ab279a6 am: 2ee9e5dbb7 am: 25fb447edc
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1999690

Change-Id: I48bc9e68457689f60d7825e015df47805398bb56
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-20 06:06:57 +00:00
Jing Ji
2ee9e5dbb7 Merge "[BugFix] acquireProvider maybe wait for timeout" am: bf7ab279a6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1999690

Change-Id: I4b8b8c57f3f8efebceb8751a5ea304014f252a76
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-19 04:50:12 +00:00
Jing Ji
bf7ab279a6 Merge "[BugFix] acquireProvider maybe wait for timeout" 2022-04-19 04:31:57 +00:00
Xin Li
b2f021295c Merge sc-v2-dev-plus-aosp-without-vendor@8433047
Bug: 226662282
Merged-In: I6541f7d49cb932c85374bf9acf777038b888e873
Change-Id: I95df36a778a7fa9ea52fe0bba2332534d6288032
2022-04-18 21:01:07 +00:00
Josh Tsuji
c1b5ff0481 Invalidate home task snapshot onWakeAndUnlock.
Also, add ability to pass in null to invalidateHomeTaskSnapshot
if the correct permissions are held, so that System UI does not
need to IPC to Launcher to ask it to invalidate itself.

Fixes: 229191103
Test: atest SystemUITests
Test: wake and unlock, note no double launcher
Change-Id: I0c547639979460b3a85b0ef0a8bbf760d60054cb
2022-04-18 13:07:58 -04:00
Derek Jedral
3c4a8625b9 [Trust] Add test target for tablets.
Add a target for tablets that we can point to in order to run tests
during pre and post-submit.

Test: local atest
Bug: 228851008
Change-Id: Ie0a1186cc97388c1b9c282c81e8bfcab5eec814b
2022-04-18 16:46:48 +00:00
Yohei Yukawa
c60176c1f3 Let A11yIME use its own IPC definitions
This is a follow up CL to our previuos CL [1], which enabled
AccessibilityService to use a subset of InputConnection APIs.

In that CL we have reused existing AIDL interfaces that were designed
and maintained for IMEs for simplicity, where a non trivial amount of
unnecessary IPC endpoints were included.

From the security and maintainability viewpoints, however, exposing
unnecessary IPC endpoints is discouraged in general.  To address such
concerns this CL introduces a set of dedicated IPC definitions for
A11yIME so that we do not need to reuse IPCs for IMEs.

This CL also stops passing InputBinding object to A11yIME process as
it contains IInputContext Binder Proxy, which can still be used to
directly invoke fallback InputConnection.  This is doable now because
A11yIME no longer relies on fallback InputConnection [2].

This CL is should not have any observable changes in the semantics.
End-to-end CTS tests guarantee that everything is still working as
intended now and in the future.

 [1]: Ia651a811093a939d00c081be1961e24ed3ad0356
      fb17e5ae7a
 [2]: I2af3cd50444d8ddf25aa0f6479238156914e6fff
      dc635efb68

Fix: 215633021
Fix: 215636776
Test: atest CtsInputMethodTestCases:AccessibilityInputMethodTest
Test: atest CtsAccessibilityServiceTestCases:AccessibilityInputConnectionTest
Test: atest CtsAccessibilityServiceTestCases:AccessibilityImeTest
Change-Id: I5ff2e804cbcf90828370a0612ff54111130bdff4
2022-04-18 08:59:44 -07:00
Sudheer Shanka
11ca5138aa Inform Application thread to block for network rules to be updated. am: 3bad67bf01
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062965

Change-Id: I6e9d7cf43ba2758df9b110e83d5f55f6f1fa39e1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 18:18:03 +00:00
Sudheer Shanka
7ee9ee6a32 Inform AMS about the uid blocked reasons. am: eb5e04aeca
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2065619

Change-Id: I71ebe7b4ba72b159951d79e94d5783c4b508a8b1
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 18:17:58 +00:00
Sudheer Shanka
6216322403 Inform NPMS about the app coming to the TOP state early. am: 3d9f5e63c1
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2065617

Change-Id: I5339e5eae40519857d8c33b23c04b6b036fae00a
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 18:17:48 +00:00
Sudheer Shanka
595316feff Avoid checking for idle state when the app is in top state. am: 99b5c0cbf6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2065614

Change-Id: I9beeae26b70181bd1050f6f10666dbb3141b8295
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 18:17:43 +00:00
Julia Reynolds
4811ba19bb Make notification getParcelable usages safer am: d6090a038a am: f14dc83401
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17761212

Change-Id: Ieee07440cab9e28571c0a42252e99f1e3340cd9e
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 13:21:51 +00:00
Julia Reynolds
d6090a038a Make notification getParcelable usages safer
Test: SystemUITests, CtsAppTestCases
Fixes: 198825327
Change-Id: I7a4868a56bc2c9a69d2fb1eae5d53faa3c9dede0
2022-04-15 12:38:27 +00:00
Wu Ahan
2f056bb150 Merge "DO NOT MERGE: Don't do heavy operation while in the synchronized block" into tm-dev 2022-04-15 10:49:21 +00:00
Sudheer Shanka
3bad67bf01 Inform Application thread to block for network rules to be updated.
Bug: 226299593
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: Ie37173d0d3f4034a74b834550920530166cd4201
Merged-In: Ie37173d0d3f4034a74b834550920530166cd4201
2022-04-15 09:40:13 +00:00
Sudheer Shanka
eb5e04aeca Inform AMS about the uid blocked reasons.
This will be used to let the application thread
know whether or not to block for network rules to
be updated when coming to the foreground.

Bug: 226299593
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I9bff481a0026fb57af8dbee580e617c8410f9ebe
Merged-In: I9bff481a0026fb57af8dbee580e617c8410f9ebe
2022-04-15 09:39:57 +00:00
Sudheer Shanka
3d9f5e63c1 Inform NPMS about the app coming to the TOP state early.
It's possible for an app to come to the TOP state before
the oomAdj computation is done and we cannot wait for
oomAdj computation to complete and then inform NPMS about
the state change. So, inform NPMS early about the state
change when we know the app is going to the TOP state.

Bug: 226299593
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I5d582618652cead179c419f7fe084283dd89d514
Merged-In: I5d582618652cead179c419f7fe084283dd89d514
2022-04-15 09:39:39 +00:00
Sudheer Shanka
99b5c0cbf6 Avoid checking for idle state when the app is in top state.
When we know that an app moved to a procstate that is considered
an interaction event, the app will not be in idle state. So, avoid
calling into UsageStatsService for idle state in this case.

Bug: 209338078
Test: atest tests/cts/hostside/src/com/android/cts/net/HostsideRestrictBackgroundNetworkTests.java
Change-Id: I5648db595d2fd10a151da13e472fd905bcafe182
Merged-In: I5648db595d2fd10a151da13e472fd905bcafe182
2022-04-15 09:35:40 +00:00
Wei Sheng Shih
5962831661 Merge "Clear the system bars color when removing the splash screen window." into tm-dev am: 2aac68104f am: 63570b80b3
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17493268

Change-Id: If47ba8b9da75998a09d383e32385a0a4d5a3f3c9
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-15 02:55:07 +00:00
Wei Sheng Shih
2aac68104f Merge "Clear the system bars color when removing the splash screen window." into tm-dev 2022-04-15 02:18:23 +00:00
Felipe Leme
d631548fea Merge "Fixes main DevicePolicyManager javadoc." 2022-04-14 17:19:24 +00:00
Rubin Xu
2e4abb8167 Merge "devicepolicy: fix javadoc typo" into tm-dev am: 5f50853cfb am: 935515257b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17733166

Change-Id: Ieef3f60b9cedbe4c71c6a7459cd953f14f6042cc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 21:01:52 +00:00
Julia Reynolds
de34de812d Merge "Update FLAG_ONLY_ALERT_ONCE docs" am: e3a1682e0b am: bd0f7d47eb am: cd2f1c2a9c am: 35a4d73544 am: d1b5861a6e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062847

Change-Id: Ia6ed1dda1c86e66e0b89e3be9262cd414caaa903
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 21:00:37 +00:00
Rubin Xu
5f50853cfb Merge "devicepolicy: fix javadoc typo" into tm-dev 2022-04-13 20:28:13 +00:00
Julia Reynolds
35a4d73544 Merge "Update FLAG_ONLY_ALERT_ONCE docs" am: e3a1682e0b am: bd0f7d47eb am: cd2f1c2a9c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062847

Change-Id: I16be1f26ff7eee520901f7ac149232ca2048328b
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 20:10:12 +00:00
Julia Reynolds
cd2f1c2a9c Merge "Update FLAG_ONLY_ALERT_ONCE docs" am: e3a1682e0b am: bd0f7d47eb
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062847

Change-Id: I535584d91df8b54026a2af0c78b03a0bfb3da4af
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 19:49:54 +00:00
Julia Reynolds
bd0f7d47eb Merge "Update FLAG_ONLY_ALERT_ONCE docs" am: e3a1682e0b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2062847

Change-Id: I46beb5247898976a891faccd62f2464efb7c5b58
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 19:34:08 +00:00
Julia Reynolds
e3a1682e0b Merge "Update FLAG_ONLY_ALERT_ONCE docs" 2022-04-13 19:02:02 +00:00
Kholoud Mohamed
2d05f8d89d Merge changes from topic "overrideSource" into tm-mainline-prod am: ff01918cf6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17716415

Change-Id: I47262fc6af0203398cdd40e23430e8384f47b4a8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 16:14:38 +00:00
Kholoud Mohamed
a9448a6772 Merge "Respect style when source is also set" into tm-dev 2022-04-13 16:06:46 +00:00
Kholoud Mohamed
ff01918cf6 Merge changes from topic "overrideSource" into tm-mainline-prod
* changes:
  [automerge] Respect style when source is also set 2p: 06a85bdb26
  Respect style when source is also set
2022-04-13 16:06:46 +00:00
Julia Reynolds
6ea66a0405 Merge changes from topic "presubmit-am-cbc3dc3a1fb64fea92fed20dc6a3f23e" into tm-mainline-prod am: 117aa0eb9f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/17642059

Change-Id: Ic76db554544b03e6d07f11ec0115192a48030d80
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-04-13 13:47:11 +00:00
Julia Reynolds
f8e0fd5fe7 Merge "Allow registered call notifications to always appear" into tm-dev 2022-04-13 13:06:47 +00:00
Julia Reynolds
117aa0eb9f Merge changes from topic "presubmit-am-cbc3dc3a1fb64fea92fed20dc6a3f23e" into tm-mainline-prod
* changes:
  [automerge] Allow registered call notifications to always appear 2p: 20a47d5ed0
  Allow registered call notifications to always appear
2022-04-13 13:06:45 +00:00
Rubin Xu
f8bcf01a09 devicepolicy: fix javadoc typo
Fix: 229080555
Test: none
Change-Id: I6ce2ed9a067d35436d107181fe732a5bd6b35583
2022-04-13 13:47:13 +01:00
kholoud mohamed
06a85bdb26 Respect style when source is also set
Fixes: 214576716
Test: atest android.devicepolicy.cts.DevicePolicyResourcesTests
Change-Id: I82ac3fa837232c3a6d7d51c8c41e5e851aa2366d
2022-04-13 12:44:54 +00:00
Edward Savage-Jones
1a90fd5998 Update FLAG_ONLY_ALERT_ONCE docs
Update FLAG_ONLY_ALERT_ONCE docs to match implementation
from Android P and onwards.

Bug: 222328375
Test: atest BuzzBeepBlinkTest
Change-Id: Ic058b8265551362b04b9cd0363e43a4c08ecd736
2022-04-13 08:35:38 +00:00
Ahan Wu
52d63e7e4c DO NOT MERGE: Don't do heavy operation while in the synchronized block
We read the wallpaper within the synchronized block, this is a long time
operation, might block the other thread who is going to obtain the lock.
So we have to move the operation beyond the synchronized block.

Bug: 228435216
Test: atest WallpaperManagerTest#testPeekWallpaperNotBlockingOtherThread
Change-Id: Ic2a947b473710ffe68db436586769858950588a4
2022-04-13 04:02:27 +00:00