Commit Graph

23209 Commits

Author SHA1 Message Date
Louis Chang
da9b7dcacc Merge "Adding null check to prevent NPE" into tm-dev 2022-04-28 13:33:43 +00:00
Alexander Roederer
3d790a1673 Merge "Updates documentation on Action Button Icons" into tm-dev 2022-04-26 16:58:07 +00:00
Lucas Dupin
874513847f Merge "Make ISmartspaceManager non-blocking" into tm-dev 2022-04-26 16:28:58 +00:00
Charles Chen
6ed3a87798 Merge "Promote isFloating to TestApi" into tm-dev 2022-04-26 06:20:14 +00:00
Sooraj Sasindran
6d8f27328f Merge "Store preferential network service config in xml" into tm-dev 2022-04-26 00:41:48 +00:00
Antoan Angelov
6327cfe89b Merge "Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE" into tm-dev 2022-04-25 19:32:44 +00:00
Lucas Dupin
4c41efd8d9 Make ISmartspaceManager non-blocking
Methods from this manager are being called from the SystemUI main
thread, and hitting system_server locks.
All methods return void, and are already using a callback mechanism,
we can make this oneway.

Fixes: 220718061
Test: Deployed on Phone,CTS tests
Change-Id: Ief549fce0d2463547cade4028696cf9431ce3a84
2022-04-25 10:39:22 -07:00
arangelov
6f1c9c3295 Update javadocs for EXTRA_ROLE_HOLDER_UPDATE_RESULT_CODE
Also ACTION_UPDATE_DEVICE_POLICY_MANAGEMENT_ROLE_HOLDER

Bug: 230098812
Test: none
Change-Id: Ib06b40bec7d32c32f044822b48ff7e8ebcb220a4
2022-04-25 16:44:51 +01:00
Louis Chang
7fe81a61c5 Adding null check to prevent NPE
#createConfirmDeviceCredentialIntent returns null if the device
is insecure.

Bug: 229950204
Test: atest StartActivityAsUserTests
Change-Id: I7de3e72d0677044e282952126612fc3e072d83fd
2022-04-25 13:14:12 +08:00
Alexander Roederer
b2c69fb78e Updates documentation on Action Button Icons
Updates documentation on Action Button icons to note that icons
are not displayed as of Android 7.0.

Bug: 184243364
Test: Only documentation change
Change-Id: If301c9d5ca46b847be16a741d0aa3bb96b37499c
2022-04-24 02:31:45 +00:00
Issei Suzuki
408b90ffad Merge "Add timestamp to ActivityOptions.OnAnimation*Listener" into tm-dev 2022-04-23 04:29:09 +00:00
Makoto Onuki
e1851000e7 Merge "Remove STOPSHIP" into tm-dev 2022-04-22 23:33:10 +00:00
Issei Suzuki
8fbc23c5c9 Add timestamp to ActivityOptions.OnAnimation*Listener
Bug: 229948029
Test: atest ActivityTransitionTests
Change-Id: I1e6d21c8b603f4e81bde6c649868baad625c2b38
2022-04-22 21:47:24 +02:00
Ricky Wai
0fbae018dc Merge "Add OEM config for enhanced confirmation mode and add restricted read ops" into tm-dev 2022-04-22 14:53:01 +00:00
Sooraj Sasindran
ee3a15d419 Store preferential network service config in xml
Bug: 227338666
Test: verified using manual test that config is persistent
Change-Id: I0cc2e7395ef9530a8ebdd27fcf7a791a7f126367
2022-04-22 04:09:36 -07: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
30183c1cf8 Merge "Invalidate home task snapshot onWakeAndUnlock." into tm-dev 2022-04-21 18:23:28 +00:00
Makoto Onuki
020c607e75 Remove STOPSHIP
Fix: 221248960
Test: Boot, treehugger
Change-Id: Ib313e21f4df1b117514887b58f8c229ad87de58f
2022-04-21 10:23:10 -07: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
Charles Chen
6010845a4a Promote isFloating to TestApi
fixes: 229824513
Test: presubmit
Change-Id: I0023ee49bb4bcc4a49563a26107484915dc7713b
2022-04-21 17:17:17 +08:00
Nick Gagliardi
be242d1d47 Updated an incorrect link.
Bug: 213538093

Change-Id: I7e8c0bcbf7fd2200dead73f1db44910baa97baba
2022-04-20 21:14:13 +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
Ricky Wai
24797ecd7b Add OEM config for enhanced confirmation mode and add restricted read ops
OEM can set the config in config.xml to enable / disable enhanced
confirmation mode.
And now we only allow apps with manage appops permission to read
ACCESS_RESTRICTED_SETTINGS op, so bad apps cannot know if the app is
in restricted setting mode

Bug: 217711280
Bug: 217709978
Test: atest AppOpsTest#testRestrictedSettingsOpsRead
Test: With OEM config on, accessibility page for unknown source app is
disabled by default.
Test: With OEM config off, accessibility page for unknown source app is
not disabled.
Change-Id: I6da408306ae43972b7af81c0a3c91bf95e9d6993

Change-Id: I9b79c2edb1341246e75c0d495e3158d370cd7d22
2022-04-20 10:48:48 +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
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
2aac68104f Merge "Clear the system bars color when removing the splash screen window." into tm-dev 2022-04-15 02:18:23 +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
a9448a6772 Merge "Respect style when source is also set" into tm-dev 2022-04-13 16:06:46 +00:00
Julia Reynolds
f8e0fd5fe7 Merge "Allow registered call notifications to always appear" into tm-dev 2022-04-13 13:06:47 +00:00
Rubin Xu
f8bcf01a09 devicepolicy: fix javadoc typo
Fix: 229080555
Test: none
Change-Id: I6ce2ed9a067d35436d107181fe732a5bd6b35583
2022-04-13 13:47:13 +01:00