Commit Graph

5798 Commits

Author SHA1 Message Date
Automerger Merge Worker
2372be2c1e Merge "Disable APN lockdown for apps targeting pre-R" into rvc-dev am: b8eacbec89 am: c37dc025ce am: 02ac94c0de am: e8cbe0481d
Change-Id: Id4edaccf365c83de06fe19090b641c680f7aa47e
2020-03-10 02:04:43 +00:00
Hall Liu
b8eacbec89 Merge "Disable APN lockdown for apps targeting pre-R" into rvc-dev 2020-03-10 01:15:25 +00:00
Hall Liu
246e470e89 Merge "Allow empty tokens in strict grammar" 2020-03-10 01:11:06 +00:00
Automerger Merge Worker
a55e09410e Merge "Merge "More CTS for APIs used by Mainline." into rvc-dev am: 469263a457 am: cdac1f3854" into rvc-d1-dev-plus-aosp am: e2a6e48ee5 am: dbcb04010b
Change-Id: Ia481c61683c8234b68ae97b264eefb8bbc479750
2020-03-09 23:21:22 +00:00
Hall Liu
ea5b2c08df Allow empty tokens in strict grammar
Allow empty tokens in SQLiteQueryBuilder's strict grammar enforcement

Bug: 143230980
Test: atest SQLiteQueryBuilderTest, manual
Change-Id: Ie82dded77a3eaa75095333b0e77f10e21c9f7caf
2020-03-09 14:28:35 -07: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
Automerger Merge Worker
e05cebb507 Merge "Rename biometric enroll extra" into rvc-dev am: db45def65e am: a0b5de810e am: c895287848 am: 3ea61e1828
Change-Id: I7b7ed9399caefb7812e5433838c0192a2b41374e
2020-03-07 23:10:16 +00:00
Automerger Merge Worker
7a083b9134 Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev am: cd629dd39a am: 78a5f4ba32 am: a0085ebfd7 am: f8061e7a7f
Change-Id: I9ffbf1e45e7691660d9b14cb2256317ed95c5728
2020-03-07 23:09:59 +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
Automerger Merge Worker
afaf4c65ce Merge "Support long press accessibility button (1/n)" into rvc-dev am: 02b288d66e am: ae6e89b657 am: f4e2e1ad62 am: 287df0f647
Change-Id: I23555df1bc019cb5ace0b55f0bbb84665caf4bb8
2020-03-06 09:57:52 +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
Automerger Merge Worker
72c15dd04a Merge "Add new capability polling opt-in intent" into rvc-dev am: cd31f739da am: 6c7a529add am: 45150b77f2 am: 0a1b779d64
Change-Id: Id780867b8a350cdddf032086ab8cb986f433bb17
2020-03-04 19:28:58 +00:00
Brad Ebinger
cd31f739da Merge "Add new capability polling opt-in intent" into rvc-dev 2020-03-04 18:05:24 +00:00
Automerger Merge Worker
ecb08643c3 Merge "Dark theme not working bug" into rvc-dev am: 55318a3474 am: 78f368f6c9 am: 77d5472abf am: 8bc89f3ed0 am: 84be910e66
Change-Id: I80b75019665d697556a23d7cffe24a8f499ce8aa
2020-03-04 16:56:49 +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
Automerger Merge Worker
4d3fdda3b5 Merge "Settings(javadocs): Add alternatives for deprecated settings" into rvc-dev am: f5360ee034 am: 6279dcd351 am: afc8150391 am: b7a472db2c
Change-Id: Iedc922084c263640b61e4d51de968edfce24318a
2020-02-28 04:17:04 +00: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
Soonil Nagarkar
e9af9a8b92 Merge "Refactor appops across location" 2020-02-24 22:52:51 +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
Soonil Nagarkar
6033344baa Refactor appops across location
-Add a new app ops helper to make testing easier.
-Consolidate app identity within CallerIdentity class.
-Remove location age restriction for coarse locations, was a bit
arbitrary.
-Remove listener identifiers from LM. These were not being properly
propagated and add a lot of binder overhead with what appears to be
little benefit since we have featureIds, which contain much better
information.
-Remove appops checks from some GNSS APIs that shouldn't require it.
-Move location fudger into location providers and reset them after mock
providers are used so that offset information cannot be leaked.

Test: presubmits + manual
Change-Id: I0ab6318093b1a7c7210ce9e39ccccf75d4f2eb66
2020-02-21 10:09:02 -08: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