Commit Graph

5739 Commits

Author SHA1 Message Date
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
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
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