Commit Graph

110909 Commits

Author SHA1 Message Date
Rubin Xu
ca00dd4900 Expose system update related API to corp-owned managed profile
Allows profile owner of corporate-owned managed profile to call
the following APIs:
* setSystemUpdatePolicy
* installSystemUpdate

The following APIs can already be called by regular profile owners
so no changes are needed:
* getSystemUpdatePolicy
* getPendingSystemUpdate

Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testSystemUpdatePolicy
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testInstallUpdate
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testSystemUpdatePolicy
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallUpdate
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testInstallUpdateLogged
Bug: 147414327
Change-Id: I7224eb208f665ca7cb301daa7d17cce5126f7858
2020-01-23 17:35:41 +00:00
Stanislav Zholnin
f85aaad615 Merge "Prevent Historical AppOps from returning empty data." 2020-01-17 12:53:38 +00:00
Adrian Roos
b8cb533fa7 Merge "API: Supress existing inconsistent Context service names" 2020-01-17 12:45:08 +00:00
TreeHugger Robot
16a6ec7e26 Merge "Add device policy API to toggle Common Criteria mode" 2020-01-17 12:22:54 +00:00
Adrian Roos
d38f509e90 API: Supress existing inconsistent Context service names
Test: make checkapi
Change-Id: I1f140dc172a405fed52f0f8d6c16f2f730ab89be
2020-01-17 12:21:59 +01:00
Robert Horvath
28d29b36a5 Merge "Go to sleep on boot when booting in quiescent mode" 2020-01-17 11:13:53 +00:00
Rubin Xu
41bdd9713d Add device policy API to toggle Common Criteria mode
Common Criteria mode puts device into a state where certain
funtionalities are tuned or turned on to meet the higher security
requirement from Common Criteria certification. Device Owner
can use the new device policy API to toggle Common Criteria mode.

Bug: 137937540
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Test: atest SettingsProviderTest
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCommonCriteriaMode
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCommonCriteriaMode
Change-Id: If07c053437e980ed3317d3838cc74e5bfd44efce
2020-01-17 10:20:21 +00:00
Joanne Chung
b0dbf96728 Merge "TextLinks API updates." 2020-01-17 09:06:52 +00:00
Goven Liu
9863ff1fe9 Merge "[Wi-Fi] Refactor add wifi networks feature to use WifiNetworkSuggestion." 2020-01-17 08:14:52 +00:00
Rhed Jao
18dcc695de Merge "Fix a11y shortcut failed to be disabled by the warning dialog." 2020-01-17 08:11:56 +00:00
Ryan Lin
be69a3b62f Merge "Added an interface between Sysui and system_server" 2020-01-17 07:40:04 +00:00
govenliu
041217c980 [Wi-Fi] Refactor add wifi networks feature to use WifiNetworkSuggestion.
WifiConfiguration used in the feature of add apps Wi-Fi networks was deprecated, need to be changed to use WifiNetworkSuggestion instead.

Bug: 136472483
Test: just add action, test case will be in Settings App side.
Change-Id: Ia1e4ab88dd70f951ff4e9115b1e373a9886ab565
2020-01-17 14:25:31 +08:00
TreeHugger Robot
64259a3b43 Merge "Simplify the activity lifecycle from START to STOP" 2020-01-17 05:03:28 +00:00
Andrii Kulian
2b3b20c388 Merge changes from topic "app_config_compat"
* changes:
  Update resource config for default display
  Override process config to match activity config
  Set parent for WindowProcessController
2020-01-17 04:56:41 +00:00
Steven Thomas
777401766b Merge "Make setActiveConfig() private, remove plumbing" 2020-01-17 04:50:19 +00:00
Joanne Chung
eae7bb76a9 TextLinks API updates.
1. Change TextLinks.getText() return type from String to CharSequence
2. Javadoc improvement

Bug: 147761091
Test: atest FrameworksCoreTests:android.view.textclassifier
Test: atest android.view.textclassifier.cts.TextClassifierValueObjectsTest
Change-Id: I40e4f401025f96717272a9ea2aac4c168297191e
2020-01-17 10:44:51 +08:00
Yabin Huang
71d62119df Merge "Don't use View ID to search next focus backward View" 2020-01-17 01:50:53 +00:00
TreeHugger Robot
0622f20959 Merge "Expose NotificationChannel#setBlockableSystem as SystemApi" 2020-01-17 01:28:03 +00:00
Meng Wang
07bb82392d Merge "Expose logToRadioBuffer as system API" 2020-01-16 23:45:39 +00:00
Matt Pape
7aa4821b13 Merge "Annotate atomic DeviceConfig methods for testing." 2020-01-16 23:24:30 +00:00
Chen Xu
546ce5e45e modularize telephony-framework from framework.jar
Bug: 140908357
Test: Build & Manaul
Change-Id: Idd4cbdb84247b98072b6ebc00a37168fde6fbbaa
2020-01-16 14:32:50 -08:00
Nate Myren
739e946f87 Merge "added methods to @TestApi" 2020-01-16 22:31:26 +00:00
Nate Myren
3f26271da4 added methods to @TestApi
Added ActivityManager.switchUser(UserHandle),
Context.startActivityAsUser, and UserHandle.of to
@TestApi

Test: None
Bug: 135282431

Change-Id: Iefbaa3c8f02649dd7d01be3093fa47104b077f58
2020-01-16 22:31:02 +00:00
Yabin Huang
ef8a8ac927 Don't use View ID to search next focus backward View
There might be several Views with the same ID in View hierarchy,
and if we search the user specified next focused view by comparing
the View ID, it may return the wrong View with the same ID. To fix
that, we should compare the View itself.

Fixes: 147829061
Test: manual

Change-Id: I3eeb68ed3ea30ce9461165eea56227cb81b21929
2020-01-16 14:29:16 -08:00
Julia Reynolds
3bd8c209b1 Merge "Allow conversations to be demoted out of the conversation space" 2020-01-16 22:23:08 +00:00
Jason O'Brien
5115b1aee3 Merge "Add instrumented app to JAR path (isolated splits)" 2020-01-16 22:21:59 +00:00
TreeHugger Robot
ba3882446c Merge "Camera: Add new UNDEFINED pose reference enum" 2020-01-16 21:49:19 +00:00
Ana Krulec
25f0212763 Merge "WindowManager: Send layer priority hint to SurfaceFlinger" 2020-01-16 21:18:53 +00:00
Meng Wang
aa2ba8e941 Expose logToRadioBuffer as system API
Bug: 144374158
Test: make
Change-Id: I2d25a5844733ed7f1e0bb3f66d39f746f0f7acd8
2020-01-16 12:02:33 -08:00
Julia Reynolds
dcd70d6ec6 Allow conversations to be demoted out of the conversation space
Also default the flag to allow more notifications into that
space to on.

Test: atest
Bug: 137397357
Change-Id: I225f462879bdb28411cc631a3e259b4c71ba7394
2020-01-16 14:39:46 -05:00
Peter Wang
8bb0fa42e3 Merge "[Telephony Mainline] Refactored PermissionManager" 2020-01-16 18:51:18 +00:00
Ruslan Tkhakokhov
9e99080cd3 Merge changes from topic "overrideable-by-restore"
* changes:
  Add Settings.(System/Secure).putStringOverrideableByRestore
  Add preserveValueInRestore flag to Setting object
2020-01-16 18:33:48 +00:00
Hall Liu
7c4dd3a5ef Expose NotificationChannel#setBlockableSystem as SystemApi
Expose setBlockableSystem as a module-apps-only SystemApi.

Bug: 138401571
Test: atest android.app.cts.NotificationChannelTest
Change-Id: I0b6a14360e9278a092476ada6533e63a46d4e4fe
2020-01-16 10:03:27 -08:00
Matt Pape
e8c4eda30a Annotate atomic DeviceConfig methods for testing.
Enforce read permission for Device Config before checking the cache for
results.

Test: atest android.deviceconfig.cts.DeviceConfigApiPermissionTests
Test: atest android.deviceconfig.cts.DeviceConfigApiTests
Bug: 136135417
Change-Id: Ib86b0a6c8b809b23c098bfa75d61eeceda457634
2020-01-16 08:54:58 -08:00
Automerger Merge Worker
a4f3890ea0 Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1 am: 8d29b6d4eb
Change-Id: I0fee940b91344e4a9ed352578bac796de0f11628
2020-01-16 15:30:36 +00:00
TreeHugger Robot
16f519a176 Merge "Introduce ImeFocusController" 2020-01-16 15:30:09 +00:00
Jason O'Brien
6f2978c9fc Add instrumented app to JAR path (isolated splits)
The base APK is loaded during normal execution even when isolated splits
are requested. This preserves that behavior during instrumented tests,
which previously skipped the base APK (causing class loading errors).

Test: tested on device with a trivial automated instrumented test
Bug: 146183755
Change-Id: Ia54072ee91b7c06cb4a787a8954ad2e69b322cac
2020-01-16 15:28:15 +00:00
TreeHugger Robot
e46c7474a2 Merge "Remove feature flag" 2020-01-16 15:10:17 +00:00
Stanislav Zholnin
0d9499c40c Prevent Historical AppOps from returning empty data.
At every filtering level (uid -> packageName -> featureId -> op)  it is possible that lower level filter would filter out all available data. In such case higher level entity should also be removed.

Test: manual verification
Change-Id: Ibd1b08da5b501c1ecabac7158d70414d955203d7
2020-01-16 13:39:50 +00:00
Automerger Merge Worker
8d29b6d4eb Merge "Improve DSU log and notification message" am: 03e365f649 am: aa0e6344c1
Change-Id: I5ba1a7499c53d4b1a70a0ed6ba279cff742422c7
2020-01-16 13:17:36 +00:00
Joanne Chung
adb9ce4ffe Merge "Made the InlineSuggestion APIs testable." 2020-01-16 12:37:32 +00:00
Treehugger Robot
03e365f649 Merge "Improve DSU log and notification message" 2020-01-16 12:15:26 +00:00
PETER LIANG
75d45584a1 Merge "Multiple shortcut menu for android R (7/n)." 2020-01-16 12:05:58 +00:00
Anton Hansson
b2f709db1d Add <extension-sdk> manifest tag inside <uses-sdk>
This allows apps to specify the minimum versions they need
of extension sdks, and fails install if they aren't met.

There is additional work required to prevent local rollbacks
from triggering a downgrade of SDK versions after an install.

Bug: 137191822
Test: atest PackageParserTest
Exempt-From-Owner-Approval: PS4 was approved
Change-Id: If61ae6c67ceb752bec6876006a29e52b996901e7
2020-01-16 11:59:52 +00:00
Stanley Wang
b2aafcb399 Merge "Remove the @hide annotation for the dynamic index of Settings Search." 2020-01-16 11:53:19 +00:00
TreeHugger Robot
f70990753d Merge "Starts a new request on switching back to the existing app" 2020-01-16 11:18:12 +00:00
TreeHugger Robot
51ef50530b Merge "PackageManager no longer requires the ExtServices to be a "Shared Library"" 2020-01-16 10:43:40 +00:00
TreeHugger Robot
0ca2f2a8bc Merge "Update FLAG_DIR_BLOCK_TREE to FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE" 2020-01-16 09:49:02 +00:00
Jorim Jaggi
73c2063811 Merge "Handle cases when multiple type are animating" 2020-01-16 09:41:24 +00:00
Peter_Liang
fdc7ecdddf Multiple shortcut menu for android R (7/n).
Support the legacy hardware shortcut can be deleted and
  software shortcut still keep be disabled.

Test: manual test
Change-Id: I0d2d48daa47a3b6f84e108966c8a4e5573cf06e9
2020-01-16 17:38:21 +08:00