Commit Graph

5726 Commits

Author SHA1 Message Date
Tingting Wang
431ea9b0e3 Merge "Update ContactsContract doc." 2020-02-03 22:14:15 +00:00
Blake Kragten
834847065b Merge "Phenotype integration for connectivity thermal power manager system apk" 2020-02-03 20:37:25 +00:00
Makoto Onuki
df2457279f Merge "Do not use @SystemApi(client = MODULE_APPS) (documents/settings)" 2020-02-03 17:51:48 +00:00
TreeHugger Robot
1320c7b707 Merge changes I259a3f41,Id309a941
* changes:
  Guard the preserve settings logic in SettingsBackupAgent with a flag
  Do not restore settings marked as preserved in SettingsBackupAgent
2020-02-02 16:28:38 +00:00
Makoto Onuki
e479728fe2 Do not use @SystemApi(client = MODULE_APPS) (documents/settings)
There will be no special protection mechanisms around MODULE_APPS,
so we're going to remove it for now.

All the MODULE_APPS should be protected with a permission, etc, so
the change should be safe.

Bug: 148177503
Test: Build / treehugger
Change-Id: I76328c2d5aaa3f171bf8afde5b3d1accad8c2e2b
2020-01-31 15:26:32 -08:00
Daniel Sandler
2f7640449b Merge "Cherry-pick "action chips in share sheet" from qt-qpr1-dev." 2020-01-30 15:39:19 +00:00
Blake Kragten
2d26c1fb0b Phenotype integration for connectivity thermal power manager system apk
This initializes connectivity thermal power manager namespace

Bug: 148415527
Test: On-device
Change-Id: I28f7e8ae2c3b6e337587aefa3f0ab9ba844efdd2
2020-01-29 14:38:38 -08:00
Roshan Pius
cdd9f30708 Merge "Settings: Remove unused WIFI_SAVED_STATE" 2020-01-29 18:59:30 +00:00
Roshan Pius
c1e0de9740 Settings: Remove unused WIFI_SAVED_STATE
The usage was removed from opt/net/wifi earlier.

Also, cleaned up a bunch of other settings in SettingsProvider
that were previously removed in ag/10080845.

Bug: 141623345
Test: Compiles
Change-Id: I18690ee12d6b701b6f487285e36ca0143244bcfd
2020-01-29 07:19:42 -08:00
Dan Sandler
e3d1993e47 Cherry-pick "action chips in share sheet" from qt-qpr1-dev.
> Action chips in share sheet.
>
> Move the Copy button to a new row of chips below the
> (now larger) preview. Optionally, if a proximity-sharing
> service is installed, show that chip as well.
>
> Bug: 143229724
> Fixes: 144290152
> Test: atest SystemUITests frameworks/base/core/tests/coretests
> Change-Id: I0d6457df85bc937f72ca97da6b4b84b634a90daf
>
> ----------
>
> Exclude nearby_sharing_component from backup test
>
> Fixes: 146019461
> Test: atest SettingsBackupTest
> Change-Id: Ieb953284f2c00d69220e776f2b628f73013140e0
>
> ----------
>
> DO NOT MERGE: Fix alignment of share chips.
>
> Bug: 144290152
> Test: visual inspection in landscape & portrait
> Change-Id: Ib60b7b56bdf23a45c61416b8309a921451010e8e
>
> ----------
>
> Allow nearby sharing to substitute name & icon in chip
>
> meta-data bundle keys (values are resids):
>
>     CHIP_LABEL_METADATA_KEY = "android.service.chooser.chip_label"
>     CHIP_ICON_METADATA_KEY = "android.service.chooser.chip_icon"
>
> Test: manual, confirm that correct name & icon are used
>       and that custom icon is tinted in light/dark theme
>       (and that the copy chip is tinted right, too!)
> Bug: 144290152
> Change-Id: I57157e07630fa8bec3057e6d18336c59944fcb4f
>
> ----------
>
> DO NOT MERGE: Add another exception to the nearby-sharing chip code.
>
> Fixes: 146690046
> Test: Share from Chrome
> Change-Id: I41b3965ca2289f628a2d1de3a6da7daf01385a54

Test: atest SystemUITests frameworks/base/core/tests/coretests SettingsBackupTest
Test: manual sharing
Change-Id: Ibcf36b3c216da8e55597fbd307c9a7780cf571c6
2020-01-28 22:49:13 -05:00
Jack Yu
641db9a36a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
2020-01-28 16:46:30 -08:00
Tingting Wang
8c61813ff9 Update ContactsContract doc.
RawContacts.BACKUP_ID is public and might be used by 3P. So we will not
deprecate it.

Test: build
Bug: 147668000
Change-Id: I63d4541340cde03e7269b0680a61b7fd198e7df9
2020-01-28 18:20:28 +00:00
Meng Wang
094d46dd30 Merge "Telephony: do not use hidden API" 2020-01-28 17:44:32 +00:00
Linus Tufvesson
4e09642d50 Merge "Cache empty prefixs in NameValueCache" 2020-01-28 11:35:23 +00:00
Meng Wang
f77ad42dc6 Telephony: do not use hidden API
Bug: 137202333
Test: make
Change-Id: Id0177c9c82d7831d165650c96a3cdea0566a6e2f
2020-01-27 18:01:02 -08:00
Malcolm Chen
14cc219ecd Move Skip464XlatStatus enum to Telephony/Annotation.java.
Skip464XlatStatus enum is only used in mainline modules.

Bug: 140908357
Test: build
Change-Id: Ifa3b55ec7091151241d1bd9264669867f898f380
2020-01-28 00:30:55 +00:00
Linus Tufvesson
bc3e94fdc1 Cache empty prefixs in NameValueCache
and cache things on the first round trip.

Test: atest frameworks/base/core/tests/coretests/src/android/provider/NameValueCacheTest.java
Bug: 147739090
Change-Id: I9ed48f34be096f2b2d673ee1f5330388c14b695c
2020-01-27 17:33:28 +00:00
TreeHugger Robot
5ee3f374d1 Merge "Expose constants in Telephony.Carriers" 2020-01-27 06:27:59 +00:00
Hui Yu
88910decff FGS background start restriction.
1. Background started foreground service shall not have
while-in-use permissions including location, camera and
microphone. Many exemptions have been applied including:
--FGS started by widget.
--FGS started by notification.
--FGS started by IME or other visible app.
--FGS started by ROOT_UID, SYSTEM_UID, NFC_UID.

2. Add a phenotype key KEY_DEFAULT_BACKGROUND_FGS_STARTS_RESTRICTION_ENABLED
to turn on/off this feature (default is on).

3. In dogfood, if a background started FGS with while-in-use permission
(any of location/camera/microphone) run into this restriction, the FGS
will not been granted these permission. we show a toast message to
alert user and ask them to write a bugreport using instruction at
go/r-bg-fgs-restriction. So we can have a statistic how many apps will
be impacted by this feature.
These is a flag Settings.Global.FOREGROUND_SERVICE_STARTS_LOGGING_ENABLED
to turn on/off the toast message (default is on, in dogfood)

Bug: 136219221
Test: atest android.app.cts.ActivityManagerProcessStateTest
atest android.app.cts.ActivityManagerApi29Test.java
atest android.app.cts.ActivityManagerFgsBgStartTest

Change-Id: Ibc8aaa6839a69136f9311bfacdbab9705b31b6a7
2020-01-24 20:58:47 -08:00
Vishnu Nair
f85c92f4f6 Merge "Switch to compositor shadows for PiP and Freeform windows (disabled by default)" 2020-01-25 00:44:04 +00:00
Ruslan Tkhakokhov
ada833f4e6 Do not restore settings marked as preserved in SettingsBackupAgent
Bug: 144838882
Test: atest SettingsProviderTest:SettingsBackupAgentTest
      Manual: 1) Run backup for settings
              2) Change several settings
	      3) Run restore for settings
	      4) Through adb logcat verify settings changed in 2) are
	      not  restored

Change-Id: Id309a9417b992eddddb9fe2830f2a691224af9af
2020-01-24 16:31:52 +00:00
Omer Nebil Yaveroglu
15395f59a7 Various API changes including:
1. Move isSatisifed into RuleEvaluator to minimise the API surface.
2. Add a new global settings for skipping integrity component for rule
providers.
3. Incorporate changes suggested by API review in http://b/147835536.

Note that this change is forked from ag/9974531.

Test: atest frameworks/base/core/tests/coretests/src/android/content/integrity/
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/integrity
Bug: 145290357, 147835536
Change-Id: Ic358a83b6bdcd4cb783e6904869f7dc2d136a55e
2020-01-24 10:44:44 +00:00
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
Vishnu Nair
f6ef1c7071 Switch to compositor shadows for PiP and Freeform windows (disabled by default)
Shadows are generated on PiP and Freeform windows by setting an
elevation on the window's DecorView. The elevation is passed back
to wm as surface insets to generate a large enough surface for the
client to draw its content and render shadows around it.

This cl introduces a new settings which overrides the setElevation
call in DecorView and sets a shadow on the task surface. The
elevation of the DecorView and the surface insets will remain unset.

Add a surface crop to the task surface so we have proper bounds
to draw shadows.

Test: go/wm-smoke
Bug: 136561771

Change-Id: Icc45e4fac3d495df5272d2e5f37163b9e7caeb4c
2020-01-23 16:31:02 -08: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
Daniel Bright
d428423aa7 Expose constants in Telephony.Carriers
Exposing APN specific constants for use within APN classes in other modules.

Bug: 148170690
Test: make, flash
Change-Id: I86d513a0e1a4a04d8ec199463942dea416cee5e1
2020-01-22 16:51:06 -08: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