Commit Graph

5759 Commits

Author SHA1 Message Date
Sean Pont
59ecddf837 Merge "Improve QuickAccessWallet documentation and client." 2020-02-16 04:30:17 +00:00
Sean Pont
72fc25f5a3 Improve QuickAccessWallet documentation and client.
Test: manual - launch quick access wallet
Test: atest CtsQuickAccessWalletTestCases
Bug: b/149575358
Change-Id: I6f0b86dc62c3cd2b85c5b1b378c7b6c9ec663b58
2020-02-14 16:04:42 -08:00
Paul Hu
4daaa833de Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01 am: 06c0f60a2b am: 5e7e9b09aa
Change-Id: Idfc4b99208b07e8a556a9350065de63ac06ac194
2020-02-14 20:20:41 +00:00
Paul Hu
06c0f60a2b Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01
Change-Id: Ibde5dfa7be0bd3e2db664b49f3a65eb618da933d
2020-02-14 08:19:04 +00:00
Paul Hu
77e6024c01 Merge "Add ACTION_TETHER_SETTINGS" 2020-02-14 08:05:33 +00:00
Bernardo Rufino
c692869c1e Use SDK_INT constant in the javadoc of SAW intents
Instead of hardcoding 11.

Bug: 146563745
Test: Builds
Change-Id: I3e4002134010558b224492512bd76958edc8e4dc
2020-02-13 08:51:22 +00:00
TreeHugger Robot
088839281c Merge "Link to notif history in shade" 2020-02-12 03:44:29 +00:00
Yi Jiang
5040954f68 Merge "Moves Adaptive Sleep's settings from Settings.System to Settings.Secure" 2020-02-12 00:48:58 +00:00
Soonil Nagarkar
77a9227b19 Fix work profile handling across location
There were a couple problems with work profile state in location. First,
we assumed that notifications sent to parent users would also be sent to
profiles but this is not true. Second we had assumed location status in
profiles was always identical to the parent user, but work profiles may
have user restrictions applied which are not present on the parent user.
The easiest way to handle these issues seems to be to expand LMS user
handling to deal with all users, rather than making various assumptions
which may or may not be true.

This also means we need to store last locations on a per profile basis.
Since we're refactoring how last location works completely, we also
removed the special NO_GPS handling for last locations. With the new
permission strings we now no longer have to exclude gnss based location
from coarsening. This lets us:

1) deprecate and remove various constants and methods use for storing
coarse locations tied to fine locations
2) substantially simplify code that calculated coarse location

This also exposed numerous bugs in the location service where we were
using the current user's state instead of the calling user's state,
which could have exposed the current user's location to other users
inappropriately.

Bug: 148798374
Bug: 146071833
Test: presubmits + manual
Change-Id: I2d3216a9fb58b73d0124d563b05de8870b70b716
2020-02-11 14:04:39 -08:00
Julia Reynolds
d09bbeefb6 Link to notif history in shade
Test: manual
Bug: 137396965
Change-Id: I083cf332ca0b6098a38d68bdff441c929aa0928a
2020-02-11 14:08:59 -05:00
Fiona Campbell
004e36da64 Merge "Add support for brightness as a float" 2020-02-11 18:51:02 +00:00
Yi Jiang
38f5a0683b Moves Adaptive Sleep's settings from Settings.System to Settings.Secure
Test: atest AdaptiveSleepPreferenceControllerTest
Test: atest AdaptiveSleepDetailPreferenceControllerTest
Bug: 139319542

Change-Id: Icd09a3291214194179d49d4e68032ba04fdfd040
2020-02-11 17:52:24 +00:00
Fiona Campbell
d4eb295196 Add support for brightness as a float
Change the framework to handle brightness as a float rather than an int.

Test: AutomaticBrightnessControllerTest
BrightnessConfigurationTest
BrightnessMappingStrategyTest
BrightnessUtilsTest
DevicePolicyManagerTest
DisplayManagerServiceTest
DisplayTest
DozeScreenBrightnessTest
PowerManagerTest
PowerManagerVrTest
SettingsProviderTest

Exempt-From-Owner-Approval: Changing param from int to float

Change-Id: I413641cd987c5ec8f82753c0388a33f85a9682de
2020-02-10 23:44:40 +00:00
Roshan Pius
9acc2db5d6 WifiManager: Add API for auto wakeup feature toggle
Needed for moving away from using Settings.Global values as pseudo APIs.

Bug: 148514485
Test: atest android.net.wifi
Test: Verified wifi wakeup feature toggle in wifi settings.
Change-Id: I999d1cf835743e6e56e9bdeeeb67579c8ba48c1c
2020-02-10 07:02:17 -08:00
Roshan Pius
3fecd2f55f Settings.Global: Unmark NETWORK_RECOMMENDATIONS_ENABLED as @SystemApi
Bug: 148514485
Test: Compiles
Change-Id: I6828bac0c0395ec61a2a0256a64900bbca475073
2020-02-10 06:55:46 -08:00
Julia Reynolds
882f206956 Add support for Conversation settings
Test: atest
Bug: 137397357
Change-Id: I68df21cc94d4964b417cad7aaad05526e1b4f967
2020-02-07 09:06:12 -05:00
paulhu
572c46d354 Add ACTION_TETHER_SETTINGS
Tethering notification needs to launch TetherSettings when user
tapped notification. But OEM can have their own Settings
package. So add ACTION_TETHER_SETTINGS in Settings.java for
launching TetherSettings via intent. Then OEM can launch their
TetherSettings by receiving this intent.

Bug: 149068177
Test: Build, Flash, manual test.
Change-Id: I98f6b50b45f1f8cc1fe6dab7b2592de4611363ce
2020-02-07 09:21:39 +00:00
TreeHugger Robot
99e648eafe Merge "Add document for ALLOWED_NETWORK_TYPES" 2020-02-06 09:08:13 +00:00
calvinpan
9c518c60f2 Add document for ALLOWED_NETWORK_TYPES
Add document that ALLOWED_NETWORK_TYPES takes a long type in
Telephony.SimInfo.

Bug: 148853369
Test: Build pass
Change-Id: Id8049f66f4b5409ca2e945f39d679d4f59014ec8
2020-02-06 02:34:26 +00:00
Automerger Merge Worker
8a6bd20bdb Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a
Change-Id: I3c5f995f742ea861140e22ab43ff40d89ab462ad
2020-02-05 19:19:27 +00:00
Jack Yu
087568092a Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563

Merged-In: Iac8d9abe3b011485ffe8220d94f25f99d022014b
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
(cherry picked from commit e94a7a4f97)
2020-02-04 16:20:44 -08:00
Automerger Merge Worker
e1f9b607d7 Merge "Added data coding scheme and location check time support" am: ad194f332d
Change-Id: I475683bca98d019295726a21a487253ae09383a7
2020-02-04 21:55:33 +00:00
Jack Yu
eba90e264a 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
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
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
Automerger Merge Worker
1cf5d1f1f7 Merge "Added support for Calls.FEATURES_VOLTE in call log." am: 966020f8dd
Change-Id: I6b6dd980971a72388b05fdace1858c0404d7da70
2020-01-31 15:59:45 +00: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
Tyler Gunn
966020f8dd Merge "Added support for Calls.FEATURES_VOLTE in call log." 2020-01-29 20:24:09 +00:00
Roshan Pius
cdd9f30708 Merge "Settings: Remove unused WIFI_SAVED_STATE" 2020-01-29 18:59:30 +00:00
Grace Jia
9af1c6297f Added support for Calls.FEATURES_VOLTE in call log.
Test: CTS test
Bug: 141264508
Change-Id: Ia554be9e7150ea99c45ec011c166c1bcd87ddc9a
Merged-In: Ia554be9e7150ea99c45ec011c166c1bcd87ddc9a
2020-01-29 10:38:06 -08: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
Brad Ebinger
47c65ba67b Add IMS_RCS_UCE_ENABLED column to SimInfo database
am: 41c232c7bc

Change-Id: I622957ba0bf60f74094cd6c06ea8d041a265ff26
2020-01-27 11:08:16 -08: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
calvinpan
c64805d392 Merge "Redesign the setPreferredNetworkType"
am: 53b272d680

Change-Id: I9dec551a3aeb71edd52d33d1e92bb385bca7cf19
2020-01-24 16:12:48 -08:00
Brad Ebinger
41c232c7bc 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
Merged-In: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
Change-Id: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
2020-01-24 13:39:22 -08:00
calvinpan
d77e0bde77 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
Merged-In: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
Change-Id: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
2020-01-24 13:23:27 -08:00