Commit Graph

22727 Commits

Author SHA1 Message Date
Makoto Onuki
58956e4afc Merge "Disable per-process app class to investigate" 2022-02-08 00:06:36 +00:00
Makoto Onuki
855548719d Disable per-process app class to investigate
Test: treehugger
Bug: 185177290
Change-Id: I87f16857bc0c2b6ed5ff00a0c042a4706864d21a
2022-02-07 10:46:02 -08:00
Felipe Leme
969f745873 Merge "Changes Activity to use Dumpable for "legacy" cases." 2022-02-07 17:32:52 +00:00
Kholoud Mohamed
e7dd38e563 Merge "Add getDrawable API overrides with Icon" 2022-02-07 10:47:06 +00:00
Remi NGUYEN VAN
8f497e5c43 Merge changes from topic "ms52-movenetstats"
* changes:
  Expose MATCH_PROXY as a module-lib API.
  Add setPollForce to module API
  Move networkstats JNI to connectivity module
  [MS54.1] Move NetworkStats to updatable sources
  [MS62.1] Start NetworkStatsService from the module
2022-02-07 10:27:37 +00:00
Stephanie Bak
f5cdd6f9a7 Merge "WifiSsidPolicy replace static method with constructor" 2022-02-07 06:57:18 +00:00
TreeHugger Robot
472bc8d932 Merge "Changes the interpretations to icon vlues" 2022-02-07 03:32:02 +00:00
Junyu Lai
937076ef12 [MS62.1] Start NetworkStatsService from the module
NetworkStatsService is going to be moved into Connectivity mainlne
module and it will be not visible to SystemServiceResistry after
migration done. Thus:
1. Register service in NetworkStatsServiceInitialalizer, a separate
   initializer is needed because the service needs to be created
   before NetworkPolicyManagerService's initialization.
2. Call SystemReady at PHASE_ACTIVITY_MANAGER_READY phase where
   it needs to be ready before StatsPullAtomService pulls at
   PHASE_THIRD_PARTY_APPS_CAN_START.
3. Register manager in ConnectivityFrameworkInitializerTiramisu
   instead of SystemServiceRegistery.

Test: atest FrameworksNetTests CtsNetTestCases NetworkUsageStatsTest
Bug: 204830222
Change-Id: I95020d816ed613ce3480a0720a5b71dcdc7fab72
2022-02-07 11:45:17 +09:00
Cecilia Hong
b420a4418f Merge "Modify Smartspace UI templates APIs." 2022-02-05 21:09:21 +00:00
Shan Huang
56fc3f5e5c Merge "Add compatibility back callbacks." 2022-02-05 06:31:15 +00:00
TreeHugger Robot
10e2560cba Merge "Have both NAVIGATION_HINT_IME{,_SWITCHER}_SHOWN" 2022-02-05 02:48:09 +00:00
Shan Huang
025b9e5ceb Add compatibility back callbacks.
For pre-T apps, the default back callback dispatches KEYCODE_BACK to the
application's root view.
For T+ apps, the default KEYCODE_BACK listener invokes the registered
OnBackInvokedCallback.

Test: m -j
Bug: 195946584
Change-Id: I62342b249e6cd6f8b036f7e950cc3f9754418ee4
2022-02-05 01:53:25 +00:00
Hui Wu
a19a26fafb Changes the interpretations to icon vlues
Bug: 210528288
Test: Tested on the physical device
Change-Id: Ieb8940954c8949d0d88e4ab66d973c0cd808d298
2022-02-04 17:50:53 -08:00
Felipe Leme
2eea07021e Changes Activity to use Dumpable for "legacy" cases.
Test: adb shell am start com.android.settings && adb shell dumpsys activity com.android.settings --autofill
Test: atest CtsAppTestCases:android.app.cts.ActivityDumpTest

Bug: 149254050

Change-Id: I658b18a965f3d35c3ecbb2aae58c7c7d7527c6e4
2022-02-04 15:39:13 -08:00
Antonio Kantek
efccd1dfe9 Merge "(TouchMode Permission 2/n) Introduce permission for touch mode" 2022-02-04 22:42:56 +00:00
Yohei Yukawa
bf122b9f94 Have both NAVIGATION_HINT_IME{,_SWITCHER}_SHOWN
This is a mechanical renaming CL with no behavior change.

Somehow NAVIGATION_HINT_IME_SHOWN was set when the IME switcher needs
to be shown, not when the IME is shown.  This CL aims to avoid future
confusions by also introducing

  NAVIGATION_HINT_IME_SWITCHER_SHOWN

then setting NAVIGATION_HINT_IME_SHOWN when the IME is actually shown.

This CL also updates NavigationBarTest to verify those flags.

Bug: 192412909
Bug: 217755059
Test: atest SystemUITests:NavigationBarTest
Change-Id: I8bdd58d040689953072c7f384ece2bca677265e1
2022-02-04 12:49:21 -08:00
Cecilia
e4368e19b8 Modify Smartspace UI templates APIs.
1. Add a SmartspaceText class to warp CharSequence with the info of TrunctAtPosition;
2. Add a field shouldTint to SmartspaceIcon.

Test: atest CtsSmartspaceServiceTestCases
Bug: 213926964
CTS-Coverage-Bug: 214471292
Change-Id: If9352fcced3db4e398d49dae8ff17f86f5765b47
2022-02-04 19:48:43 +00:00
Jay Sullivan
be2bd69f06 Merge changes from topic "t-media-permissions"
* changes:
  Define splits for AUDIO/VIDEO/IMAGE permissions
  Define new AUDIO/VIDEO/IMAGE permissions
2022-02-04 18:18:37 +00:00
Salud Lemus
411c2f4527 Merge "Permit access to certain get APIs for financed device owner" 2022-02-04 17:54:17 +00:00
Salud Lemus
10935c1f16 Merge "Expose device owner type constants for CTS tests" 2022-02-04 17:48:49 +00:00
kholoud mohamed
88695202ad Add getDrawable API overrides with Icon
Bug: 188410712
Bug: 203548565
Test: atest EnterpriseResourcesTests
Change-Id: Ia56f54acabed996f5852c6f6a850379e533e026c
2022-02-04 17:09:46 +00:00
Stephanie Bak
8d01b763eb WifiSsidPolicy replace static method with constructor
Bug: 216628454
Test: DevicePolicyManagerTest
Change-Id: I149dad0caf3725cd59204b2d3a04828f5950ed3e
2022-02-04 16:07:15 +00:00
Stephanie Bak
b67c420a0c Merge "Replace SSID String with WifiSsid" 2022-02-04 15:59:37 +00:00
TreeHugger Robot
92668918dd Merge "Expose MANAGED_PROVISIONING_DPC_DOWNLOADED via DevicePolicyManager" 2022-02-04 15:02:56 +00:00
Kholoud Mohamed
cbac567d5e Merge "Add constants for enterprise strings in dialer" 2022-02-04 11:21:06 +00:00
TreeHugger Robot
8581bc3e77 Merge "Add GameSession APIs for starting activities." 2022-02-04 09:25:47 +00:00
Salud Lemus
804e73f6aa Permit access to certain get APIs for financed device owner
Permitting access will be useful when writing the CTS tests.

Bug: 216852998
Test: atest com.android.server.devicepolicy.DevicePolicyManagerTest

Change-Id: I8113fcbc0eadb8af783b2dfe5aad96b194f5c014
2022-02-03 17:17:16 -08:00
shannonchen
ed33816c43 Add GameSession APIs for starting activities.
This API allows the game service provider to start an
activity in the existing game task and receive a result
through the GameSessionActivityCallback instead of the
result being sent to the game.

For an example use case, in the Android S dashboard, the
dashboard starts the YouTube-hosted live stream activity to
handle YouTube live streaming and the Play Games-hosted
dashboard activity to handle showing Play Games services
data.

The API allows the GameSession provider to respond to
different activity results returned from the target
activity.

Test: manual e2e testing
Bug: 208242220
Bug: 202414447
Bug: 202417255
CTS-Coverage-Bug: 206128693
Change-Id: I1eb017ade1ae60a713d85a70df23845498206df7
2022-02-03 22:42:11 +00:00
Li Li
cfa95a3e2c Merge "Update Freezer app kill reasons" 2022-02-03 18:49:56 +00:00
Ameer Armaly
3bfc384ad3 Merge "Add API for services to turn off window animations." 2022-02-03 18:39:58 +00:00
Vadim Caen
8e59ca9a3a Merge "Save the OnBackInvokedCallback in WindowState" 2022-02-03 17:26:12 +00:00
Issei Suzuki
aa45a654ab Merge "Add comment for locking down custom task animation." 2022-02-03 15:14:55 +00:00
Lorenzo Colitti
62b2beb69c Merge "Split out the ipsec API surface and use framework-connectivity-tiramisu" 2022-02-03 13:36:33 +00:00
Aleks Todorov
1bf00cb627 Merge "Deprecate android.app.extra.PROVISIONING_LOGO_URI in framework." 2022-02-03 12:18:54 +00:00
Elis Elliott
d603ad7916 Expose MANAGED_PROVISIONING_DPC_DOWNLOADED via DevicePolicyManager
Expose Settings.Secure.MANAGED_PROVISIONING_DPC_DOWNLOADED by adding
getter & setter methods in DevicePolicyManager.

Bug: 212679631

Test: android.devicepolicy.cts.DevicePolicyManagerTest
Change-Id: I9c8c69ec494fcbf82965308b76f6e27e5184ba4d
2022-02-03 11:06:54 +00:00
Issei Suzuki
1eaedb4baf Add comment for locking down custom task animation.
Bug: 162066454
Test: N/A, comment change only
Change-Id: Ie014c70cf5253dc6107d2da10414278e36f9bd08
2022-02-03 10:29:26 +00:00
Wenhao Wang
eeea740723 Merge "Revert "Revert "User consent for Logcat data access""" 2022-02-03 05:54:43 +00:00
Stephanie Bak
22caa6fb93 Replace SSID String with WifiSsid
Bug: 215753949
Test: atest DevicePolicyManagerTest
Change-Id: I74fcb6c3476a5e1b7ac38e7f7c5b3880e3895f30
2022-02-03 05:47:39 +00:00
Li Li
99111bf436 Update Freezer app kill reasons
Update Freezer app kill reasons from REASON_OTHER to REASON_FREEZER.

Bug: 179715791
Test: dumpsys activity exit-info shows the new reason.
Test: atest android.app.cts.ActivityManagerAppExitInfoTest
Change-Id: If65c14af2fcd11efd7228b47fcf7b1189adb45bb
2022-02-02 21:20:00 -08:00
Felipe Leme
484e4efc74 Merge "Fixed DPM.logoutUser() methods." 2022-02-03 01:05:57 +00:00
Aaron Huang
1dad7aa006 Split out the ipsec API surface and use framework-connectivity-tiramisu
Bug: 204153604
Test: TH
Change-Id: I6cc8aef6a0ab9ce4bcef2797196b1d1b3687acca
2022-02-03 09:47:41 +09:00
Wenhao Wang
ec8c5511af Revert "Revert "User consent for Logcat data access""
This reverts commit d7138b445c.
This patch fixes the breaking caused by
commit b4f8ed9bb8.

It's a workaround patch. The upcoming patch will have solid fix.

Bug: 193708292
Bug: 217482811
Bug: 217495147
Test: atest PlatformRuleTests -- --abi x86_64
Test: atest FrameworksServicesTests -- --abi x86_64
Ignore-AOSP-First: pending fix for logcat privacy issue
Change-Id: If18086130599f0ae027d16ccbb7b5b5cd73f2e72
2022-02-02 16:08:19 -08:00
Antonio Kantek
d299b88323 (TouchMode Permission 2/n) Introduce permission for touch mode
This CL adds caller pid and uid for permission checks in the native
layer when switching touch mode state.

Bug: 198487159
Test: atest FrameworksCoreTests
Test: atest CtsInputMethodTestCases
Test: atest CtsInputTestCases
Test: atest CtsSecurityTestCases
Test: atest CtsWindowManagerDeviceTestCases
Change-Id: I64480c0284481b288ad0950c2e95726b9adb529f
2022-02-02 15:10:34 -08:00
Ameer Armaly
c52cb42e51 Add API for services to turn off window animations.
Bug: 195757359
Test: atest AccessibilityWindowReportingTest
Change-Id: I5fc1c90e87de17fb770f6a3371fc341985017a61
2022-02-02 22:14:28 +00:00
Salud Lemus
5ea8a1fbe2 Expose device owner type constants for CTS tests
This is necessary to be able to use them in the Bedstead test infra.

Bug: 216852998
Test: None (trivial change)

Change-Id: Ib5afccc65d357b893d193b91b78f59f32b9e2811
2022-02-02 13:13:14 -08:00
Vadim Caen
717e53a6a7 Save the OnBackInvokedCallback in WindowState
This CL enable OnBackInvokedCallback to be saved in a WindowState and
queried by the BackNavigationController to be returned when
ATM.startBackNavigation() is called.

The DecorView provides a PendingOnBackInvokedDispatcher that can receive
callback registration before being added to a ViewRootImpl.

Test: atest FrameworksCoreTests:BackNavigationTest
Bug: 131727607
Change-Id: I01528a22ea4a6583a56ade4eab69136d727855d0
2022-02-02 22:08:02 +01:00
Caitlin Cassidy
f759b1ebee Merge "[Media TTT] Add @SystemApis for all the media transfer callbacks." 2022-02-02 21:00:56 +00:00
Felipe Leme
abc9c87519 Fixed DPM.logoutUser() methods.
The initial implementation was setting the logout user to be SYSTEM
on non-headless system user mode, but recently it was changed to
return null if the user was not switched or started by the device
admin.

Test: atest com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser_systemApi com.android.cts.devicepolicy.DeviceOwnerTest#testCreateAndManageUser_LogoutUser # on phones and automotive
Fixes: 216648012

Change-Id: I1f8f754167260a41df13dca13cb62467723c99b1
2022-02-02 16:53:22 +00:00
Caitlin Cassidy
44386a5a2e [Media TTT] Add @SystemApis for all the media transfer callbacks.
This migrates the media transfer from just a service to a full-fledged
@SystemApi. Some of the testing infrastructure has not yet been migrated
to keep this CL slightly smaller.

Bug: 216318437
Test: systemui media.taptotransfer tests *still need to be updated*
Change-Id: Idf1f72de1343020668e158d74051c1dfb970cfcd
2022-02-02 16:14:33 +00:00
TreeHugger Robot
24c7b8113a Merge "New @TestApi: DevicePolicyManager.isNewUserDisclaimerAcknowledged()" 2022-02-02 15:08:17 +00:00