Commit Graph

5786 Commits

Author SHA1 Message Date
Hall Liu
b8eacbec89 Merge "Disable APN lockdown for apps targeting pre-R" into rvc-dev 2020-03-10 01:15:25 +00:00
Jeff Sharkey
9ed18340ca More CTS for APIs used by Mainline.
Bug: 150641862, 150641715, 150641138, 150640123
Test: atest cts/tests/tests/content/src/android/content/cts/ContentResolverTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/BinderTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/DocumentsContractTest.java
Test: atest cts/tests/tests/provider/src/android/provider/cts/media/MediaStoreTest.java
Change-Id: I6f9ae1dcffd79fd6c422962d9ca64d4b98841766
2020-03-09 20:12:55 +00:00
Kevin Chyn
db45def65e Merge "Rename biometric enroll extra" into rvc-dev 2020-03-06 22:43:57 +00:00
Sudheer Shanka
cd629dd39a Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev 2020-03-06 22:39:06 +00:00
Rhed Jao
a4bb7e44da Support long press accessibility button (1/n)
Adds a new setting key to support long press accessibility
button.

Bug: 150587818
Test: atest SettingsProviderTest
Change-Id: I1ca1e01867a937690f7a5e5b27d595cd0a83e395
2020-03-06 06:18:51 +00:00
Kevin Chyn
90cc357df1 Rename biometric enroll extra
Fixes: 150499348

Test: make -j56 update-api
Test: CtsVerifier
Change-Id: Iaa4c682c74c2a082f5e6ec8bd4d1680e1ff8a4bc
2020-03-05 16:53:34 -08:00
Hall Liu
34e61996c5 Disable APN lockdown for apps targeting pre-R
Allow apps targeting pre-R to access the APN db without permissions

Bug: 148552357
Test: manual
Change-Id: I47d142e9984b932f030c29729b9ebcd75c51d26f
2020-03-05 13:52:04 -08:00
Brad Ebinger
cd31f739da Merge "Add new capability polling opt-in intent" into rvc-dev 2020-03-04 18:05:24 +00:00
Brad Ebinger
0a5a8fe7f4 Add new capability polling opt-in intent
Adds a new capability discovery opt-in intent,
which an application can use to prompt the user
to enable contact discovery.

Bug: 111305845
Test: atest CtsTelephonyTestCases; telecom test app
Change-Id: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
2020-03-03 17:18:32 -08:00
Jay Aliomer
d483f72ee3 Dark theme not working bug
When switching dark mode, the dark mode override should only apply when
the dark theme is in auto or custom mode. The solution is
to set the override to the same value as night mode

Test: UiModeManagerTest

Fixes: 150567159
Change-Id: Ib10b73e747a53669de0babc9b44d373b47bfc0fb
2020-03-03 15:20:12 -05:00
Roshan Pius
b3b559f167 Settings(javadocs): Add alternatives for deprecated settings
Bug: 150219394
Test: Compiles
Change-Id: Ie4dfbfa640a042343e20d2238729444fdc8eadb6
2020-02-28 03:35:12 +00:00
Sudheer Shanka
364364ba41 Add a limit on how much data an app can acquire a lease on.
+ Allow this limit to be modified using DeviceConfig properties.
+ Support DeviceConfig.getProperties() in TestableDeviceConfig.

Bug: 144155182
Test: atest --test-mapping apex/blobstore
Test: atest services/tests/mockingservicestests/src/com/android/server/testables/TestableDeviceConfigTest.java
Test: atest services/tests/mockingservicestests/src/com/android/server/am/CachedAppOptimizerTest.java
Change-Id: I28e67a27771be04ed1d37f367abd392505adc5c4
2020-02-24 05:52:33 +00:00
Blake Kragten
75a0184bb7 Merge "Enhanced Connectivity Dev Toggle" 2020-02-21 22:14:23 +00:00
Joshua Duong
2076c04333 Add Settings.Global.ADB_WIFI_ENABLED.
ADB_ENABLED historically meant the state for USB debugging. Since
wireless debugging can be enabled separately, define another setting
for it.

BUG: b/111434128

Test: make
Exempt-From-Owner-Approval: approved in aosp_master
Change-Id: If3abca8e77381d6832f55d55a43c52ee1a1267d1
2020-02-21 02:21:08 +00:00
Varun Shah
abe60fe376 Merge "Share Standby Bucket state between cross profile interacting apps" 2020-02-20 00:50:52 +00:00
Michael Wachenschwanz
9a3501d6bb Share Standby Bucket state between cross profile interacting apps
Cross profile connected apps can provide the functionality of multiple
app from just one of the apps. If the user uses only one of the apps to
interact with all of the connected apps, the connected apps will fall
into low standby buckets. Cross profile connecting apps and using the
conncted apps is the clear signal of usage for both apps, so this
change treats all usage of one app to be equal to the other.

Fixes: 140808123
Test: atest com.android.server.usage.AppStandbyControllerTests
Change-Id: I9e3bd71c7b486417b3943778edece4ab29d4c41d
2020-02-19 14:48:43 -08:00
Bohdan Petrivskyy
7f1264e629 Merge "Removes redundant @SystemApi for registerMonitorCallback and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration." 2020-02-19 22:07:00 +00:00
Nate Myren
8f842ae786 Merge "Add Auto Revoke Enabled settings constant" 2020-02-19 21:18:36 +00:00
Roshan Pius
bd8dd47fde Merge changes from topics "ap_shutdown_timeout_flag", "scan_always_available_API"
* changes:
  WifiOemMigrationHook: Migrate Settings global values
  WifiManager: Add API for scan always available toggle
  SoftApConfiguration: Add shutdown enabled method
2020-02-19 16:28:43 +00:00
Julia Reynolds
042ebb1dc8 Merge changes from topics "jr-all-convo", "jr-default-vic"
* changes:
  Optionally make VICs bubble
  Add method to retrieve all conversations
2020-02-19 12:24:56 +00:00
Hugh Chen
f786c7fa6c Merge "Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT" 2020-02-19 10:20:28 +00:00
Nate Myren
865507a2d3 Add Auto Revoke Enabled settings constant
Add "AUTO_REVOKE_DISABLED" systemApi constant to Settings, which
will be used to read the global state of the auto revoke system.

Test: None
Bug: 146513245
Change-Id: I8072d124adf2808493f2eb4de5e52d87bef57508
2020-02-18 16:15:50 -08:00
Julia Reynolds
908201e1b0 Optionally make VICs bubble
Test: atest
Bug: 149696991
Change-Id: Iec86ac860a51bcecde70d7abd7feeb5f9319ebfa
2020-02-18 17:13:16 -05:00
Bohdan Petrivskyy
7139780e10 Removes redundant @SystemApi for registerMonitorCallback
and from MONITOR_DEVICE_CONFIG_ACCESS permission declaration.

Test: no need, just removing annotation.

Bug: 149487442
Change-Id: I73bbe9672eb5c8c0fd043c07a5e27463f0f14e5c
2020-02-18 19:05:39 +00:00
Roshan Pius
6d4cb9cdc7 WifiOemMigrationHook: Migrate Settings global values
Changes:
a) Add a method to migrate Settings values from platform.
b) Marked all of those settings back to @hide.
c) Also, deprecated couple of public Settings keys which are no longer
used in the wifi stack.

Bug: 148514485
Test: Compiles
Test: TBD: Add unit tests for this class.
Change-Id: I3566cdb53fc997fbb2cc5bceadd865ff8b01539b
2020-02-18 07:27:28 -08:00
hughchen
e3fae2d4b9 Add Settings.Global.ADVANCED_BATTERY_USAGE_AMOUNT
Bug: 149609340
Test: Build pass
Change-Id: If90e3f5482f551884c016fd78c9f8165e728347b
2020-02-17 18:54:46 +08:00
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
Blake Kragten
28e7b5ae61 Enhanced Connectivity Dev Toggle
Add Enhanced Connectivity Developer option switch. This switch will
allow the connectivity thermal power manager to actively shutoff 5G in
order to save power when cellular throughput is below the set threshold.

ScreenShots: https://drive.google.com/drive/folders/109VTTXqIn5Teg6daHpNHV7z13MmEEb7Q?usp=sharing

Bug: 147305171
Test: On-device using developer option menu
Change-Id: Ia990db0fe8a8cea47b12b570c46c10a5ab558a27
2020-02-13 11:25:33 -08: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