Commit Graph

5702 Commits

Author SHA1 Message Date
Automerger Merge Worker
06b65cd96b Merge "Expose CARRIER_APPS_HANDLED as system API" am: eb7dddb9ab am: 5a4ec31b04 am: 258856c02b
Change-Id: Ic3861437985f8b709a05236bab063e26200e7eac
2020-01-24 08:08:06 +00:00
Brad Ebinger
782e5ac9d9 Merge "Add IMS_RCS_UCE_ENABLED column to SimInfo database" 2020-01-23 23:26:19 +00:00
Automerger Merge Worker
5a4ec31b04 Merge "Expose CARRIER_APPS_HANDLED as system API" am: eb7dddb9ab
Change-Id: I26b62ee0613191cff39e975f145bda8e7b54fe87
2020-01-23 23:05:38 +00:00
Grace Jia
c3458b6bc7 Merge "Delete hidden API in Telephony.ServiceStateTable" 2020-01-23 18:28:51 +00:00
Brad Ebinger
071d4201fc Add IMS_RCS_UCE_ENABLED column to SimInfo database
Add the ability for the user to turn on/off UCE in settings.

Bug: 148167203
Test: atest CtsTelephonyTestCases:RcsUceAdapterTest
Change-Id: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
2020-01-23 08:40:34 -08:00
Matt Pape
e4b7a310c6 Merge "Adds scoped DeviceConfig reset support to RescueParty." 2020-01-23 05:14:23 +00:00
Grace Jia
8b732c0942 Delete hidden API in Telephony.ServiceStateTable
Test: compile
Bug: 147902780
Change-Id: I8448bf395b1f9f51627fed0c32afc5d769ec431e
2020-01-23 01:24:25 +00:00
Meng Wang
f03b011ee6 Expose CARRIER_APPS_HANDLED as system API
Bug: 148171388
Test: make
Change-Id: Ia6ea92f1cc29dd3706fbf2f8820551240c847dce
2020-01-22 14:59:27 -08:00
Alex Kershaw
12d0ea4b58 Merge "Add system API for building document URI with user ID." 2020-01-22 07:34:45 +00:00
Sean Pont
4805925645 Merge "Add QuickAccessWallet API" 2020-01-22 05:36:01 +00:00
Valerie Hau
2eb5cc7bf9 Merge "Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags" 2020-01-21 22:20:04 +00:00
Sean Pont
d00aefb43c Add QuickAccessWallet API
Adds a new API that allows applications to provide payment cards and
other relevant passes to SysUI which are then shown in the Quick Access
Wallet (long press on Pixel). See go/aospqaw-dd for details.

Bug: 144342153
Test: manual - started device, didn't blow up
Test: atest - run from frameworks/base dir
Change-Id: I8fef3116e6e4bd1f8a4f5a907892ea8993b49b0e
2020-01-21 14:18:34 -08:00
Jay Aliomer
15d855465b Custom dark theme scheduling
allows the use to set the start and end automatic dark theme
activation within a day.
Fixes: 147649309
Test: atest UiModeManagerServiceTest UiModeManagerTest
Change-Id: Iaa3593d4e8863412e3703ce9f089b88dd4df1225
2020-01-21 14:13:23 -05:00
Valerie Hau
eeef1a9baa Adding WINDOW_MANAGER_NATIVE_BOOT and window_manager_use_blast_adapter flags
For ViewRootImpl on BLAST experiment, setting up namespace and flag to
turn on Blast adapter through P/H experiment

Bug: 147096935
Test: build, boot, adb shell device_config put
window_manager_native_boot wm_use_blast_adapter true/false
check that BLAST adapter is turned on/off as expected
Change-Id: Ie1b158721ac9b751fcf3954310259f14486d3bb8
2020-01-21 10:01:39 -08:00
Bohdan Petrivskyy
095a4d34e6 Adds scoped DeviceConfig reset support to RescueParty.
When there is a new DeviceConfig access related calling package
will be monitored for 48 hours for crashes. If crashes occur,
only relevant accessed namespaces are reset.

Test: atest RescuePartyTest.

Bug: 136134408

Change-Id: I8d585496783812842c34f440e250469c2d510f3a
2020-01-21 17:06:10 +00:00
Galia Peycheva
ea2867877b Merge "Add minimal post processing flag in Settings.Secure" 2020-01-21 09:29:16 +00:00
Alex Kershaw
1befe9d85d Add system API for building document URI with user ID.
This is required for the direct tabbed DocsUI experience that doesn't
involve the up-front disambig (that always only has one app in it).

Bug: 145895146
Bug: 147900456
Test: atest CtsProviderTestCases:android.provider.cts.DocumentsContractTest
Change-Id: Ic44b592382d880cdd76df2885ca8c52b1b697697
2020-01-20 20:52:35 +00:00
Yogisha Dixit
f00b8ca0c4 Merge "Add a new secure setting to disable doze." 2020-01-20 10:32:19 +00:00
Calvin Pan
2ffecdb9fd Merge "Redesign the setPreferredNetworkType" 2020-01-20 08:00:05 +00:00
Yogisha Dixit
91009993e6 Add a new secure setting to disable doze.
This secure setting doesn't need to be backed up because it represents a device state (e.g. airplane mode) and not a user-specified configuration.

Test: SettingsTest, Settings_SecureTest, SettingsProviderTest
Bug: 147584235
Change-Id: Ic89182297b095d128c63a4b422b4af2e3a63f3d3
2020-01-17 16:00:08 +00:00
Galia Peycheva
088d7c097c Add minimal post processing flag in Settings.Secure
Minimal post processing might not be very well supported on all TV
displays (e.g.the switch to/out of the low latency mode might be too
slow or there might be flickering on the screen or some color
interference, etc). This depends on the vendor implementation of minimal
post processing. In such cases, we want to give the user an option to
disable this feature in the settings menu. This means that any calls to
the API (Window.setMinimalPostProcessing) will be ignored and no signals
will be sent to the display.

This CL adds the necessary flag to Settings.Secure. The value is read
from DisplayManagerService, which combines it with the information from
the WindowManager and the display capabilities to request the right low
latency mode on the display.

Bug: 144356279

Test: m && ./vendor/google/tools/flashall
      1. adb shell settings put secure minimal_post_processing_allowed 1
      2. Open Activity that prefers minimal post processing
      3. adb shell settings put secure minimal_post_processing_allowed 0
         -> this should turn ALLM off
      4. adb shell settings put secure minimal_post_processing_allowed 1
         -> this should turn ALLM back on
      5. Exit Activity
         -> this should turn ALLM off

Change-Id: I2d24a9a004d4939b0439d466ef2ca279803fd67f
2020-01-17 16:37:32 +01:00
calvinpan
d11c1218d5 Redesign the setPreferredNetworkType
Some APPs(like OMA DM) might enable or disable 5G settings, so redesign
the setPreferredNetworkType behavior.

1. Create allowed_network_type in telephonyprovider
2. Create get/set allowed network type API
3. When APPs call setPreferredNetworkType() that will AND with allowed
network type.

Bug: 136730709
Test: By Manual
1. setAllowedNetwork to disable 5G
2. setPreferredNetworkTypeBitmask to set NR_LTE_GSM_WCDMA
3. framework set LTE_GSM_WCDMA to modem
Change-Id: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
2020-01-17 20:56:41 +08: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
Goven Liu
9863ff1fe9 Merge "[Wi-Fi] Refactor add wifi networks feature to use WifiNetworkSuggestion." 2020-01-17 08:14:52 +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
Matt Pape
7aa4821b13 Merge "Annotate atomic DeviceConfig methods for testing." 2020-01-16 23:24:30 +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
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
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
0ca2f2a8bc Merge "Update FLAG_DIR_BLOCK_TREE to FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE" 2020-01-16 09:49:02 +00:00
Xin Li
e13851556b DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
2020-01-15 16:15:41 -08:00
Roshan Pius
32913a8eda Settings: Formalize Wifi Mainline usages
a) Removed some of the @hide settings value which can be replaced with
an overlay flag.
b) Promoted all the other wifi setting keys to @SystemApi.

Bug: 147373460
Test: Device boots up and connects to wifi networks.
Change-Id: Id9775a5a73350ac9921400904771e6f04810e45a
2020-01-15 15:50:38 -08:00
Ruslan Tkhakokhov
018f5534fa Add Settings.(System/Secure).putStringOverrideableByRestore
Bug: 144838882
Test: 1) SettingsStateTest
      2) Manually change settings on the device; verify isModified flag
         is set; reboot; make sure changes are persisted.

In ag/10056253 logic was introduced to make sure settings modifications
are not overridden by restore. However, some callers still need to use
the old behavior. Modification made through
Settings.System.putStringOverrideableByRestore will be overridden by
restore.

Change-Id: I91084ef61711a77ff17b2a5ee1996fa15cb17e73
2020-01-15 17:33:52 +00:00
Rhed Jao
70cb293d44 Merge changes from topic "A11yShortcut_NeedWithUi"
* changes:
  Accessibility shortcut improvement (10/n)
  Accessibility shortcut improvement (9/n)
  Accessibility shortcut improvement (8/n)
2020-01-15 07:22:32 +00:00
Ivan Chiang
84b55928a1 Update FLAG_DIR_BLOCK_TREE to FLAG_DIR_BLOCKS_OPEN_DOCUMENT_TREE
Test: m -j
Bug: 144764129
Change-Id: I0653fa1e16869db8a2ccc4425d368677c27873bc
2020-01-15 11:02:27 +08:00
Jack Yu
c3133cbc57 Do not migrate use full volume shared preference
Use full volume has been renamed to override DnD and
the toggle is now only available for certain countries. We
intended not to provide the ability to migrate this shared
preference as it might cause issue for users who already
changed the preference. After mainline migration, override
DnD should be always reset to default value of that country.

Test: Manual
Bug: 147426188

Merged-In: I5746fe32674131b474e784bd5dd62ecff76386d5
Change-Id: I5746fe32674131b474e784bd5dd62ecff76386d5
(cherry picked from commit bcbe46816c)
2020-01-14 22:59:05 +00:00
Chen Xu
32f525c975 support data migration from OEM legacy app to mainline
Defined systemAPI for interaction with legacy cellbroadcast app

Bug: 135956699
Test: Tested with cell broadcast receiver test app and confirmed data can be migrated.
Merged-In: I6e583672a3673fd226e14d33d7a7648f4fd03efb
Change-Id: I6e583672a3673fd226e14d33d7a7648f4fd03efb
(cherry picked from commit ad2f91fc6d)
2020-01-14 22:54:58 +00:00
Stanley Wang
a1af1b6fd5 Remove the @hide annotation for the dynamic index of Settings Search.
- Remove the @hide of queryDynamicRawData api in the
  SearchIndexablesProvider.
- Remove the @hide of DYNAMIC_INDEXABLES_RAW and
  DYNAMIC_INDEXABLES_RAW_PATH strings in the SearchIndexablesContract.

Fixes: 143670349
Test: manual

Change-Id: Ic33060c21211a1ca0d56fe3329d19b53f4576dfe
2020-01-14 17:11:10 +08:00
Rhed Jao
129d419b08 Accessibility shortcut improvement (8/n)
- Migrate magnification navibar enabled setting to a11y button targets
  list setting.
- Clear settings of a11y button targets list, since there's no need to
  track legacy ones.

Bug: 136293963
Test: atest SettingsProviderTest
Change-Id: I0e83ebe55e00b5c760e3df5180a5d3a67c429e6f
2020-01-14 11:59:47 +08:00
Etan Cohen
59759229e4 [DPP] Add EXTRA to indicate bands support on remote device
Bug: 139381558
Test: use demo app (WifiEasyConnect.apk) to send information, observe logs
Change-Id: I5476230fe1c64edc34dbdfba24189f720b5a01e1
2020-01-13 19:45:30 -08:00
Etan Cohen
d0589b2494 Merge "[DPP] update Easy Connect R2 documentation" 2020-01-13 21:45:00 +00:00
TreeHugger Robot
329426efd2 Merge "Do not migrate use full volume shared preference" 2020-01-13 18:32:50 +00:00
Etan Cohen
a17095af55 [DPP] update Easy Connect R2 documentation
Bug: 139381558
Test: build docs
Change-Id: I9200d5b9b5e9ce68b679cf911b2eb0356187bdaf
2020-01-13 09:13:21 -08:00
Treehugger Robot
89ac95017f Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:35:38 +00:00
Treehugger Robot
9938c70fb5 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:05:17 +00:00
Artur Satayev
bc3d8b9071 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I534e3fd1305e2f4af076986770033478448a665c
Merged-In: I534e3fd1305e2f4af076986770033478448a665c
2020-01-13 12:39:59 +00:00
Jack Yu
bcbe46816c Do not migrate use full volume shared preference
Use full volume has been renamed to override DnD and
the toggle is now only available for certain countries. We
intended not to provide the ability to migrate this shared
preference as it might cause issue for users who already
changed the preference. After mainline migration, override
DnD should be always reset to default value of that country.

Test: Manual
Bug: 147426188
Change-Id: I5746fe32674131b474e784bd5dd62ecff76386d5
2020-01-10 23:40:59 -08:00
kholoud mohamed
5b2dfe3744 Add createRequestInteractAcrossProfilesIntent API.
Creates intent to open the relevant settings page for the
user to enable/disable the INTERACT_ACROSS_PROFILES appop.

BUG: 140728653
BUG: 136249261
Test: atest CrossProfileAppsPermissionHostSideTest

Change-Id: Ia86ae5c8318190374ee73377b81cfade3b0e34c8
2020-01-10 16:47:55 +00:00
Automerger Merge Worker
71a13b21fe Merge "Expose check write setting operation as system API" am: 6978df2cb6 am: ff1e9a9b93 am: 692d0700c9
Change-Id: Id182fdd425b7b34a82d30f9a12aab547132785bb
2020-01-10 11:45:26 +00:00
Automerger Merge Worker
692d0700c9 Merge "Expose check write setting operation as system API" am: 6978df2cb6 am: ff1e9a9b93
Change-Id: Ifb553e901b849e53b196881b190e4d05c5855a9c
2020-01-10 11:23:52 +00:00