Commit Graph

5686 Commits

Author SHA1 Message Date
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
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
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
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
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
Mark Chien
6978df2cb6 Merge "Expose check write setting operation as system API" 2020-01-10 11:06:38 +00:00
Shafik Nassar
baf2935099 Merge "Add Intent Actions to control OP_MANAGE_EXTERNAL_STORAGE" 2020-01-10 10:26:07 +00:00
Automerger Merge Worker
7b469d73d2 Merge "Expose some tethering constants in Settings" am: 07dcca55fc am: 2173a4d07e am: b8a97000e9
Change-Id: I0a6e91e6f33924ef181033faeb755c8cc123b94b
2020-01-09 12:27:08 +00:00
Automerger Merge Worker
b8a97000e9 Merge "Expose some tethering constants in Settings" am: 07dcca55fc am: 2173a4d07e
Change-Id: I1231b6fdfb8373dd03ac34649769d90163063bf1
2020-01-09 12:13:35 +00:00
markchien
e64a799169 Expose check write setting operation as system API
If tethering provisioning check is required, caller must have tethering
privilege permission to change tethering. If provisioning is not needed,
caller who has write settings permisssion also can change tethering.
Expose checkAndNoteWriteSettingsOperation for tethering check whether
caller has write settings permission.

Bug: 144814607
Test: -build, flash, boot
      -atest SettingsTest#testCheckWriteSettingsOperation
Change-Id: Ib3931bbe39361c2c4324935f16473cc675848032
2020-01-09 09:54:53 +00:00
markchien
9845e908d0 Expose some tethering constants in Settings
Make some tethering constants @systemApi because tethering
cannot use hide Api.

Bug: 144814607
Test: build, flash, boot
Change-Id: I8b46e2483eec575cddaad392d055551b75ca71ef
2020-01-09 08:48:55 +00:00
TreeHugger Robot
789539d86f Merge "Update java doc for FLAG_DIR_BLOCKS_TREE" 2020-01-09 04:50:47 +00:00
shafik
e6c41e5cbf Add Intent Actions to control OP_MANAGE_EXTERNAL_STORAGE
Adds 2 new intents that are intended to launch Settings activity that
control apps' ability to MANAGE_EXTERNAL_STORAGE.
ACTION_MANAGE_ALL_FILES_ACCESS_PERMISSION launches a generic activity
to control all apps that declared MANAGE_EXTERNAL_STORAGE permission.
Any app can launch this activity.

ACTION_MANAGE_APP_ALL_FILES_ACCESS_PERMISSION launches an activity for a
specific app. Package name should be specified in the intent data as a
package-schemed URI.

Test: manual
Bug: 146425146
Change-Id: I232df1f61ec8e76b5b0233d202114c5b260fecb7
2020-01-09 00:17:37 +00:00
Peter Wang
eeea33fb80 Merge "[Telephony Mainline] Expose APIs in SubscriptionManager" 2020-01-09 00:07:48 +00:00
Jack Yu
e94a7a4f97 Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
2020-01-07 17:39:21 +00:00
Chandan Nath
0447bc3587 Merge "remove unused BACKUP_MULTI_USER_ENABLED" 2020-01-07 17:36:50 +00:00
Artur Satayev
e11493cb9a Merge "Use new UnsupportedAppUsage annotation." 2020-01-07 14:35:08 +00:00
TreeHugger Robot
b644ae2000 Merge "Adds DeviceConfig flag configuration banning to SettingsProvider." 2020-01-07 13:43:11 +00:00
Artur Satayev
df4395991f 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: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
2020-01-07 13:29:50 +00:00
Peter Wang
37916d6213 [Telephony Mainline] Expose APIs in SubscriptionManager
Bug: 146362772
Fix: 146362772
Test: Build, TelephonyProviderTest
Change-Id: Icaff3117cab45e6458931a600fa8d63821e0fe13
2020-01-07 02:23:18 -08:00