Commit Graph

1776 Commits

Author SHA1 Message Date
TreeHugger Robot
aa2e331b72 Merge "Add Multi Audio focus" into rvc-dev am: 35f960dff4
Change-Id: I97bda7a1f752557217d3b597a55342b29c63990a
2020-04-14 06:47:23 +00:00
TreeHugger Robot
35f960dff4 Merge "Add Multi Audio focus" into rvc-dev 2020-04-14 06:29:16 +00:00
TreeHugger Robot
8bfdc107cc Merge "Store conversation requirement in a setting" into rvc-dev am: 5eb9c8fada
Change-Id: I7cb2dde555ac4480d3ad18c675f3a6466184345b
2020-04-07 03:58:21 +00:00
TreeHugger Robot
5eb9c8fada Merge "Store conversation requirement in a setting" into rvc-dev 2020-04-07 03:47:02 +00:00
hjin81.lee
4e984e5503 Add Multi Audio focus
Allows the multiple audio focus that requested with AUDIOFOCUS_GAIN.

Test: atest SettingsProviderTest
Test: Manual - play music on A app
Test: play music on B app    // play music on A app and B app
Test: receive a call         // stop music
Test: end a call             // play music on A app and B app
Test: receive a notification // ducking all music

Bug: b/135749683
Change-Id: I4bdd2cdc5e543674f331fc000bd24fd30499bdc3
2020-04-06 15:33:34 +00:00
Songchun Fan
785234ca99 Merge "Update the SettingsProvider OWNERS file" am: 3a4e4452b2 am: a5518cb83f
Change-Id: Ib98803f60f60e853b676f7e05d3a6dba7326edf0
2020-04-04 20:12:28 +00:00
Hongyi Zhang
e140cceb0f Merge "DeviceConfig: Unban all banned namespaces if any banned one unbanned" into rvc-dev am: b11ab47265
Change-Id: I548d2ca444dcd8a6e77fde7e71e63a39ef6f6133
2020-04-03 22:37:05 +00:00
Hongyi Zhang
b11ab47265 Merge "DeviceConfig: Unban all banned namespaces if any banned one unbanned" into rvc-dev 2020-04-03 22:17:32 +00:00
Svet Ganov
3426c0b458 Update the SettingsProvider OWNERS file
bug: N/A

Test: N/A

Change-Id: I9a25ce97210178767e69226b24fce6d4d0649f1d
2020-04-02 20:44:00 -07:00
Hongyi Zhang
f305f8a9f6 DeviceConfig: Unban all banned namespaces if any banned one unbanned
There are chances that innocent namespaces got banned with actually
harmful namespace, and since innocent namespaces' flags may not be
changed for a long time, they are getting banned on the devices for a
long time even though they are not problematic.
Thus we want to do: When a namespace's configuration got successfully updated, unban ALL the
banned namespaces(by clearing the hashcode map) if the updated namespace was banned before updated.

Bug: 153010388
Test: atest DeviceConfigTest & local device with Mob Dog
Change-Id: I61b92a09d77ef1e1b7bc9c86f6655ba62a8a3d89
2020-04-02 19:25:43 -07:00
Julia Reynolds
e24faa2c86 Store conversation requirement in a setting
So we can show it in developer options. Also fix a bug
where the setting wasn't being respected in systemui.

Test: atest
Bug: 152907434
Change-Id: I1eaed93a0c8a1ec4486c7072972e2f924402bb94
2020-04-02 16:28:40 -04:00
Eugene Susla
aa0540d126 Merge "Introduce a Setting for auto revoke teamfood settings" into rvc-dev am: e7181b197c
Change-Id: Ia26e8f5b7e2270a5780d46b160382f73635561ce
2020-03-30 22:44:16 +00:00
Eugene Susla
e7181b197c Merge "Introduce a Setting for auto revoke teamfood settings" into rvc-dev 2020-03-30 21:58:40 +00:00
Eugene Susla
c6909ffe20 Introduce a Setting for auto revoke teamfood settings
Test: presubmit
Bug: 146513245
Change-Id: I57e20694528e6e2e94957e66d03cbf292c305f0d
2020-03-30 12:29:26 -07:00
Soonil Nagarkar
3944436719 DO NOT MERGE Refactor appops across location am: 39766392a7
Change-Id: I0081bf837d6f16d8c5508fe81ce991a2a6ff3637
2020-03-30 17:30:30 +00:00
Soonil Nagarkar
39766392a7 DO NOT MERGE 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.

Bug: 149375028
Test: presubmits + manual
(cherry picked from commit 6033344baa)
Change-Id: I18e2cf3c39836f31d28180e1a4613df4ad675ab7
2020-03-28 13:59:26 -07:00
Yurii Zubrytskyi
363a726621 Merge "[settings] Add a knob to turn off incremental default" into rvc-dev am: 95955373b8
Change-Id: Ia78fc702f53baf6b1e0157912f034465714e8e75
2020-03-28 08:49:12 +00:00
Yurii Zubrytskyi
95955373b8 Merge "[settings] Add a knob to turn off incremental default" into rvc-dev 2020-03-28 08:34:55 +00:00
Yurii Zubrytskyi
4a90c80aa9 [settings] Add a knob to turn off incremental default
A new value in global settings for the adb to determine if the
device allows using incremental installations by default.

Bug: 150183149
Test: builds
Change-Id: I64e8fafcacbb790fa469629136a7dacbfd34e800
2020-03-27 23:25:35 -07:00
Fabian Kozynski
ef0a15a393 Merge "Add Secure Setting for Controls" into rvc-dev am: 1f8d91de8c
Change-Id: I6161a4f4c44d74ed1a91868061b70f5edd71041f
2020-03-27 17:40:52 +00:00
Fabian Kozynski
1f8d91de8c Merge "Add Secure Setting for Controls" into rvc-dev 2020-03-27 17:16:48 +00:00
Rhed Jao
5015f4727d Merge "A new setting key to hold targets of the a11y button" into rvc-dev am: dba485be4c
Change-Id: I786b89eaa405274b089e5c1d5abdb5d696ff6e8d
2020-03-27 06:52:04 +00:00
Rhed Jao
dba485be4c Merge "A new setting key to hold targets of the a11y button" into rvc-dev 2020-03-27 06:37:05 +00:00
Menghan Li
835bda5744 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev am: fea8d184c2
Change-Id: I276c3ab248480a37ae4905fc364a3e8325be0d7e
2020-03-26 00:38:20 +00:00
Menghan Li
fea8d184c2 Merge "Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)" into rvc-dev 2020-03-26 00:21:50 +00:00
Fabian Kozynski
bcaf0efea3 Add Secure Setting for Controls
Also:
* added to backed up settings.
* fixed imports

Test: build
Test: change setting through adb.
Bug: 152212779
Change-Id: Ia6cc7e9fb7f93842cfbf248f3e88c1d964656409
2020-03-25 09:30:13 -04:00
Rhed Jao
10e4b5f0b0 A new setting key to hold targets of the a11y button
Roll back the changes of ACCESSIBILITY_BUTTON_TARGET_COMPONENT to
support previous behavior of the a11y button. Also, create another
setting key to hold shortcut targets of the a11y button which is
assigned by the user from the settings app.

Bug: 152263232
Test: atest SettingsProviderTest
Change-Id: I7a70e8c8495cefe6632efddbb322a323aa1168c7
Merged-in: I7a70e8c8495cefe6632efddbb322a323aa1168c7
2020-03-25 04:10:08 +00:00
menghanli
390f8f9be9 Accessibility Service & Shortcut Redesign - Remove “volume key shortcut” setting (5/n)
- Target to fix migration issue to support a user revoked the accessibility shortcut before upgrading to R, but wants to to apply new hardware shortcut design in R.
- The switchbar of accessibility_shortcut_enabled was removed in (1/n), so we should also remove related checker in controller.

Bug: 142529032
Test: atest AccessibilityShortcutControllerTest
Change-Id: I48f8d88c4192e894b9e210221e5dc7e701344623
2020-03-25 07:46:41 +08:00
Roshan Pius
4245e14ff5 Merge "WifiMigration: Add a settings key to indicate migration is complete" into rvc-dev am: 5f176bf91e
Change-Id: I951d97fd746b6d7a86957a6f66fcb81046ee9fd0
2020-03-24 05:20:10 +00:00
Roshan Pius
849a6f78a5 WifiMigration: Add a settings key to indicate migration is complete
Bug: 151888061
Test: Manual verification (ensured that this method returns null after
first reboot)

Change-Id: Ie8ad397c7b68e35cfa7b696ef22d84f376cf3fe7
2020-03-23 18:48:28 -07:00
TreeHugger Robot
2525c29d96 Merge "Do not preserve settings changed by 'android' package" into rvc-dev am: 00562369ed
Change-Id: I02f2775b98a61ae0403b91c32182c9ba15aee3a4
2020-03-20 22:13:35 +00:00
TreeHugger Robot
00562369ed Merge "Do not preserve settings changed by 'android' package" into rvc-dev 2020-03-20 22:02:19 +00:00
junyulai
a9e40da0aa [SM07] Make combine subtype configurable from Settings am: 1be2d732e0
Change-Id: Ic8426ae36b5aaadfdd3292a3b70fc9b290443d5c
2020-03-19 06:37:59 +00:00
Junyu Lai
841583ae51 Merge changes I7eaca623,Ic94da540,If330e853,Ie2d229be,Ic6b2f10f into rvc-dev
* changes:
  [SM08] Add NetworkTemplate unit test for fetching mobile data usage
  [SM07] Make combine subtype configurable from Settings
  [SM05] Enable record mobile network stats by collapsed rat type
  [SM04] Support fetching data with NetworkTemplate with subType
  [SM02] Support record mobile network stats by collapsed rat type
2020-03-19 06:29:38 +00:00
junyulai
1be2d732e0 [SM07] Make combine subtype configurable from Settings
Note that enabling/disabling would not take effect until device
reboot. This will be addressed in follow-up patch.

Test: 1. atest NetworkStatsServieTest SettingsBackupTest
      2. adb shell settings put global netstats_combine_subtype_enabled 1|0
Bug: 146415925

Change-Id: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
Merged-In: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
(cherry picked from commit c4f77ac90b)
2020-03-19 01:40:55 +00:00
Ruslan Tkhakokhov
67c3fa3072 Do not preserve settings changed by 'android' package
Bug: 144838882
Test: atest SettingsProviderTest:SettingsStateTest

System reinitialises some settings to the same value after reboot (e.g.
bluetooth_on, accessibility_enabled, font_scale). Such modifications
shouldn't set isPreserved flag.

Change-Id: Ib929bf7d544b78202691eff3ae2ac75f2c209aa2
2020-03-18 22:49:15 +00:00
Rubin Xu
070d6ce897 Merge "Replace COMMON_CRITERIA_MODE setting with getter API" into rvc-dev am: 243c57f079
Change-Id: I5e8aa9eeaa2c14fe745eca98fa396d017e293507
2020-03-18 18:46:28 +00:00
Rubin Xu
243c57f079 Merge "Replace COMMON_CRITERIA_MODE setting with getter API" into rvc-dev 2020-03-18 18:42:28 +00:00
Automerger Merge Worker
995886d001 Merge "Migrate dark theme settings" into rvc-dev am: 221945ad93
Change-Id: Id4276e42ea5fc8a23c01a8d2d6f96294e03c8302
2020-03-12 16:13:59 +00:00
Jay Aliomer
221945ad93 Merge "Migrate dark theme settings" into rvc-dev 2020-03-12 15:34:07 +00:00
Jay Aliomer
df6bdb5baf Migrate dark theme settings
When restoring settings from a different phone,
UiModeManager did not update the new settings.
Now, the settings are loaded from local storage and changes applied
when the SettingsHelper restores a value of interest

Bug: 138671559
Test: manual test: reset phone1, setup, used data transfer tool to restore from phone2, check dark mode is the same as phone 2
Change-Id: I861bec342b3284e0f398c8610fcc6881c27601a5
2020-03-12 15:33:23 +00:00
Rubin Xu
f07973239a Replace COMMON_CRITERIA_MODE setting with getter API
Per API review feedback, global settings are discouraged in favour
of fine-grained getter APIs.

Bug: 149999040
Test: atest com.android.cts.devicepolicy.MixedDeviceOwnerTest#testCommonCriteriaMode
Test: atest com.android.cts.devicepolicy.OrgOwnedProfileOwnerTest#testCommonCriteriaMode
Test: atest FrameworksServicesTests:DevicePolicyManagerTest
Change-Id: Ia810f67409ce2b482bca06f1e21df2f98d12ccfd
2020-03-12 12:03:15 +00:00
Automerger Merge Worker
2e4d4808d0 Merge "Enforce MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE permission" into rvc-dev am: d0effa2492
Change-Id: I65a378750e049de27777093b039c50b09aa544cc
2020-03-11 15:41:57 +00:00
Ruslan Tkhakokhov
71888e5fa1 Enforce MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE permission
Bug: 150877732
Test: 1. atest SettingsProviderTest
      2. atest PreservedSettingsRestoreHostSideTest (with
      MODIFY_SETTINGS_OVERRIDEABLE_BY_RESTORE granted to shell)
Change-Id: I5536233b2084a31161185235195e2a6b25b4c3d1
2020-03-11 10:59:31 +00:00
Automerger Merge Worker
83974911fa Merge "Reset isValuePreservedInRestore in Setting::reset()" into rvc-dev am: c6947ef608
Change-Id: Iab4fe0a7e1232e7ccddfae2b289c494582344aba
2020-03-11 01:46:50 +00:00
Ruslan Tkhakokhov
c6947ef608 Merge "Reset isValuePreservedInRestore in Setting::reset()" into rvc-dev 2020-03-11 01:27:08 +00:00
Bill Yi
302b54ed30 Import translations. DO NOT MERGE
Auto-generated-cl: translation import
Change-Id: Ia99492307aaac5f11141da67c8c242a28447d338
2020-03-07 20:12:00 -08:00
Automerger Merge Worker
78a5f4ba32 Merge "Add a limit on how much data an app can acquire a lease on." into rvc-dev am: cd629dd39a
Change-Id: I0a814a59e6c50fc666ccd4140f5a9a0503c43709
2020-03-06 22:41:09 +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
Ruslan Tkhakokhov
8c7effd4c7 Reset isValuePreservedInRestore in Setting::reset()
Bug: 150842661
Test: 1. atest SettingsStateTest
      2. atest PreservedSettingsRestoreHostSideTest

Reset operation brings a setting to its default state. This should
include isValuePreservedInRestore which is false for a newly initialized
setting.

Change-Id: Ife317e2ac9dbaae9d3f2abe770407558e7bdd775
2020-03-06 19:00:37 +00:00