Commit Graph

6708 Commits

Author SHA1 Message Date
Suren Baghdasaryan
fb5194e63f Adding native flag namespace for lmkd.
For experiment flag testing, adding lmkd flag in DeviceConfig.

Bug: 194316048
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: I1f13d6bbb4a9a7fd8825d7e5acde416750271df4
2021-08-06 20:31:18 +00:00
Tingting
8fd17c67ce Add defaultAccount related API to ContactsContract.
Add columns in ContactsContract.Settings to indicate
the default account for new contacts.

Test: ran m update-api to generate current.txt change.

Bug: 188347310
Change-Id: I4333455e36079561b6bfcdd07375aa56659bb4db
2021-08-02 22:30:58 +00:00
Kweku Adams
ae001bed0e Merge "Add TARE enable constant." 2021-07-30 19:41:23 +00:00
Alex Florescu
a106be1e4d Merge "Introduce separate rotation lock settings per device state." into sc-v2-dev am: a50aa7c835 am: 6837ea26bf
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15107814

Change-Id: Ie6d2d155d96e1dca9e77eb2a157904a50718fb97
2021-07-30 19:01:01 +00:00
Alex Florescu
91c8c9ea8f Introduce separate rotation lock settings per device state.
This will be flagged with config_perDeviceStateRotationLock.
If true, a distinct rotation lock settings can be maintained for each
device state. Some device states won't need their own rotation lock
setting and in those cases, the setting of the previous device state
will be used.

The existing global setting "Settings.System.ACCELEROMETER_ROTATION"
still works the same and reflects the setting for the currently active
state.

Test: atest SystemUiTests:RotationLockControllerImplTest
Test: atest SystemUiTests:DeviceStateRotationLockSettingControllerTest
Bug: 183001527
Change-Id: I1cbcfae7db7c01745ea7ad665432f8651d8f1546
2021-07-30 16:27:44 +01:00
Kweku Adams
739dd166c1 Add TARE enable constant.
Add a Settings constant to control the overall enabling of TARE. If
disabled, it will clean up and drop as much as possible. Set the default
value to 0/false.

Bug: 158300259
Test: look at dumpsys output after changing setting constant value
Test: atest SettingsProviderTest:SettingsBackupTest
Change-Id: I252f792444423fe5dc801125f9e7d3a0b6ed5b42
2021-07-28 16:25:21 -07:00
Josh Yang
aa5d333194 Rename PLAY_STORE_AVAILABILITY with PHONE_PLAY_STORE_AVAILABILITY.
Bug: 175820762
Test: manual test and unit test
Change-Id: I5a7bb8ba50a14e7589e8cf771545aeaf4ee9362e
(cherry picked from commit e8aa4baedfaa447da9f9211b07e495759b05216b)
2021-07-28 19:05:55 +00:00
Harshad Dhabu
95b8d682d3 Add new key to System Content Provider for combined location
Bug: 185927316
Test: tests run as part of topic thru the other CL; no extra tests for
this change alone.
Change-Id: I76e21b2f3731f4e556713ad86bc7bd29e467c583

Change-Id: I0bc606e9cf438705166f76872495f2e84dee55d3
(cherry picked from commit 0e20158cf7651d298af879209f81bfae115c253d)
2021-07-28 19:05:48 +00:00
Josh Yang
d7935a531f Move KEY_BURN_IN_PROTECTION to Settings.Global
Bug: 173802026
Test: manual test
Change-Id: I33aa06c68e4327534a0d2cc7c13bae2596a5add4
(cherry picked from commit 0f2a065a5ea736ae649cb2641b80f27bc123d615)
2021-07-28 19:05:39 +00:00
Josh Yang
936413580d [Ambient Lite] Add a WEAR_ACTIVITY_AUTO_RESUME_TIMEOUT_MS setting.
See go/sysui-aod-lite-expiration for more details.

Bug: 177914227
Test: manual test
Change-Id: Ie2751e007a57faba6ae83c48fc494ff80d2dc912
(cherry picked from commit c92d2c67591467541dec962f75a11560a142ef44)
2021-07-28 19:05:32 +00:00
Harshad Ulhas Dhabu
b95a0f20dc Add new keys to Settings Content Provider for Battery Saver
Change-Id: I421b315b4472ee0eb76817d563e0bb8165f435c8
(cherry picked from commit ea1972c8de72b826e189af5fe245a7a35b5116f6)
2021-07-28 19:05:23 +00:00
Anubha Kushwaha
a03b962b3a Add WEAR_TALKBACK_ENABLED as a secure system setting
Bug: 185981712

Change-Id: I043f31e7da512bce072678614d8ba7e78123dbc5
(cherry picked from commit c7aa9ffe701c2d2b0aec0d8ebecf39eb5eff9dc9)
2021-07-27 03:07:55 +00:00
Yeabkal Assegid Wubshit
8a9215e20f Merge "Add gesture settings to system settings provider" 2021-07-27 01:44:15 +00:00
Yohei Yukawa
e14a11c1df Clarify on DEFAULT_INPUT_METHOD and InputMethodInfo#getId()
This CL aims to clarify more on what "IME ID" means in Android.

"IME ID" is a string representation of a certain implementation of
InputMethodService, which has always been computed by

  new ComponentName(packageName, serviceName).flattenToShortString(),

then has been exposed to developers through at least the following two
public APIs.

 * Settings.Secure.DEFAULT_INPUT_METHOD
 * InputMethodInfo#getId()

Now that our IME CTS tests are already requiring that "IME ID" equals
to test IMEs' component name indirectly, it would be more beneficial
if we clearly mention that "IME ID" is guaranteed to be constructed by

  ComponentName#flattenToShortString()

hence is also guaranteed to be parsed with

  ComponentName#unflattenFromString().

It is to late to change strong representations that have been
exposed to developers for more than 10 years anyway.

Other than updating public API documents, this CL does nothing.

Fix: 192392438
Test: presubmit
Change-Id: I013cd79b92363fe6e438f445606b5fc53e2660f6
2021-07-23 11:03:08 -07:00
Josh Yang
1253d56f26 Add gesture settings to system settings provider
Bug: 172168582
Test: manual tested
Change-Id: If8e6c588209d308d490368580310a4f589f1c08c
(cherry picked from commit 7eca5ecf22ac4a6c9234c130a61f75f540faec08)
2021-07-23 00:05:52 +00:00
TreeHugger Robot
584d27f200 Merge "Add a setting to enable the triple press gesture to toggle accessibility in wear." 2021-07-22 20:10:50 +00:00
jasonwshsu
88dff85e61 Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE am: 2e24cc7a87 am: ea79ca3482
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15124970

Change-Id: Ie0da5b9c96d01a709a2517225f041e23a3b47c0a
2021-07-22 19:26:09 +00:00
jasonwshsu
ea79ca3482 Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE am: 2e24cc7a87
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15124970

Change-Id: I937dc5d02390d416f040bcc198c0e31343371e13
2021-07-22 19:12:03 +00:00
TreeHugger Robot
ede423187b Merge changes from topic "a11y_gesture_s-sc-v2-dev" into sc-v2-dev
* changes:
  Add the log for new supported accessibility button type 'Accessibility Gesture'
  Update the supported type in ACCESSIBILITY_BUTTON_MODE according to navigation gestural mode or button mode
  Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE
2021-07-22 18:53:58 +00:00
Himanshi
c766aeb6d2 Add a setting to enable the triple press gesture to toggle accessibility in wear.
Bug: 187390020
Change-Id: I0e6268304c447ab32d69f2bffba44d79f186a346
(cherry picked from commit 1b16bb9f03d7120ad398e5dc771a1814480a7cab)
2021-07-22 17:24:10 +00:00
Songchun Fan
c848cb7172 [SettingsProvider] update API javadoc
Address comments from API review

BUG: 194183938
Test: N/A
Change-Id: I3042be0671728d06bf1c7ae09baee538bb82fbe7
2021-07-22 15:43:13 +00:00
Josh Yang
bb07463bfb Move KEY_OEM_SETUP_VERSION to system provider
Bug: 172977193
Test: manual test
Change-Id: I93534ea01cb9a1b9bf53ecd84d4a9f61350a7500
(cherry picked from commit 013788079ca377165f76e7a8c95888fb06a72549)
2021-07-21 00:09:18 +00:00
Pankaj Sharma
3ad3041621 Merge "Remove extra article from the comment" 2021-07-20 08:23:18 +00:00
Josh Yang
8e7006c48b Move SetupLocaleProperties to Settings.Global.
Bug: 173818444
Test: manual test
Change-Id: Icda9c489534849a2f59e93195f9a6ded377d38b1
(cherry picked from commit 61a67de48545d27e7e8d10a19cc07d2cc8b86dea)
2021-07-19 23:24:08 +00:00
Beth Thibodeau
db622b652e Merge "Always show lockdown button" into sc-dev am: 04697f8263
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15289457

Change-Id: I597e4fb1a795cbb5f50ffaea3f31d717980b1928
2021-07-16 02:01:21 +00:00
Beth Thibodeau
ebf00fdc7a Merge "Always show lockdown button" into sc-dev am: 04697f8263 am: b8abde227f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15289457

Change-Id: I09d2d90eb7c8cc86e0dab898956c34e02d5dd55d
2021-07-15 23:10:52 +00:00
Beth Thibodeau
60f39fc35b Merge "Always show lockdown button" into sc-dev am: 04697f8263 am: 54191ae718
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15289457

Change-Id: I323d8dc6a44209a77020cdf999ffe2dbe3dd3e67
2021-07-15 23:10:12 +00:00
Pankaj Sharma
718ea2ba97 Remove extra article from the comment
SHOW_ROTATION_SUGGESTIONS had a redundant 'the' in its documentation.

BUG: 193762210
Test: N/A since only comment was updated
Change-Id: Iafe3f6e563e4d3663e9dca6b2f3c64a1448a7ac8
2021-07-15 11:14:13 +00:00
Beth Thibodeau
eb151ee8d0 Always show lockdown button
Remove setting option and show lockdown button by default in the power menu

Fixes: 185618694
Test: atest GlobalActionsDialogLiteTest
Test: flash device, set PIN, observe button present

Change-Id: I7c8f976fd73f6edf3edb26c8de31fd83eb9ac296
2021-07-14 16:22:44 -04:00
jasonwshsu
2e24cc7a87 Add a supported type 'gesture' under ACCESSIBILITY_BUTTON_MODE
Root cause: From the user feedback, accessibiltiy gesture has more
benifits than floating accessibility button especially to low vision users.

Solution: Bring back accessibility gesture to be one of the options of
the accessibility button.

Bug: 190563948
Test: install new SettingsProvider.apk & adb reboot & manual test
Change-Id: I59952c744cddfbdc01b906d39b2681858f0bb2ea
2021-07-15 01:00:38 +08:00
Songchun Fan
e32f7fc6d0 Merge "[DeviceConfig] add an API to delete a property" 2021-07-14 15:44:46 +00:00
Songchun Fan
598a193f7f [DeviceConfig] add an API to delete a property
Currently there is only a shell command to delete a property.
Adding an API to do the same.

BUG: 184001163
Test: atest android.provider.DeviceConfigTest
Test: atest CtsDeviceConfigTestCases
Test: atest com.android.server.testables.TestableDeviceConfigTest
Change-Id: I43d7177c509501efd65e32ab3ad000d17d6ffb6c
2021-07-13 15:04:59 -07:00
Songchun Fan
17d1692bef Merge "Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: 3172fe263a am: 606c9f6ba5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235116

Change-Id: Ibbe1cd4c41a1e264b992c4e3a3414f0296bd1a8c
2021-07-09 17:18:18 +00:00
Songchun Fan
c4ab6f2069 Merge "Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT" into sc-dev am: 3172fe263a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235116

Change-Id: I3be6e986a5982dac227599e34a006c4046512036
2021-07-09 16:55:49 +00:00
George Chang
bf0d8be298 Remove @TestApi and @Readable for NFC_PAYMENT_DEFAULT_COMPONENT
Remove @Readable for security vulnerability.
Remove @TestApi since there's no exceptions in ReadSettingsFieldsTest

Bug: 191519696
Bug: 174151290
Test: atest CtsNfcTestCases
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Test: atest CtsQuickAccessWalletTestCases
Test: make RunSettingsRoboTests -j
Test: atest QuickAccessWalletTileTest
Merged-In: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
Change-Id: I13c038753d3acf3f3b651af3cd22ff55cd464cb1
2021-07-09 09:46:29 +00:00
TreeHugger Robot
3e453e2ce4 Merge "[SettingsProvider] make nfc_payment_default_component readable" into sc-dev am: 576c548b3c am: 4a1bc2abd5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235880

Change-Id: I0759014699230862df7b02127e30018539d960a6
2021-07-08 18:25:05 +00:00
TreeHugger Robot
ad3e6f5500 Merge "[SettingsProvider] make nfc_payment_default_component readable" into sc-dev am: 576c548b3c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15235880

Change-Id: I418f9f669453796aceef6dfe1fc9ffa8fc5dffcf
2021-07-08 18:15:53 +00:00
Songchun Fan
47b1f3c74b [SettingsProvider] make nfc_payment_default_component readable
App processes might need to read the Settings value using system code.
Therefore this key is @hide but should be @Readable.

BUG: 191519696
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: Idf1512ebf3487d74a18ad2dc13ee7cbb2c7643d0
2021-07-08 16:11:18 +00:00
Josh Yang
da8c63b8bf Rename BLUETOOTH_MODE to PAIRED_DEVICE_OS_TYPE.
The BLUETOOTH_MODE setting is meant to distinguish the OS type of paired
device. So it makes sense to have a more straightforward name for users
to easily understanding its expected usage.

Bug: 176835928, 191375904
Test: manual test and unit test.
Change-Id: I8a3431c4c05943c13f620ffb89a431c2cda764ad
2021-07-04 07:46:30 +00:00
Josh Yang
82efb8e016 Migrate BluetoothProperties to Settings.Global
Bug: 173068846,191375904
Test: manual test
Change-Id: Idce8213fde1a29555fbdee6986a78d800ff9a793
2021-07-04 05:13:22 +00:00
Josh Yang
22316bc508 Move AmbientProperties to Settings.Global
Bug: 173069117, 191375904
Test: manual test
Change-Id: I020d78355339464764a71256ab4959e90c171612
2021-07-04 03:47:40 +00:00
Beth Thibodeau
5675fd4b47 Merge "Rename media control flag" into sc-dev am: 9fd619e7e4 am: 8da064040b
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15151227

Change-Id: I772b659c83bf1ca224beedeaf6b9a45399126104
2021-07-01 23:53:07 +00:00
Beth Thibodeau
afce98b200 Merge "Rename media control flag" into sc-dev am: 9fd619e7e4
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15151227

Change-Id: Ifa57e1f33ef9c0d8c3cbbdda41e40b51e1381336
2021-07-01 23:36:54 +00:00
Beth Thibodeau
9a15d478e9 Rename media control flag
Some users had a bad default value from a previous build. This renames
the flag so that they will still get the correct default when upgrading.

Fixes: 191786947
Test: manual, atest
Change-Id: I8fa3077bf7c8a4414ebc259174214538684f6560
2021-06-29 22:33:28 -04:00
Rachel Lee
f688af7774 Merge "Add DeviceConfig namespace for SurfaceFlinger." 2021-06-29 21:01:02 +00:00
rnlee
9be99ed681 Add DeviceConfig namespace for SurfaceFlinger.
Bug: 190769260
Test: make
Change-Id: Iac58413ed2d69fde7f7dbcba6b0b101fd6d16a0d
2021-06-29 10:33:27 -07:00
Songchun Fan
c449af45a3 Merge "[SettingsProvider] restrict readability of media_button_receiver to apps targeting R and below" 2021-06-29 15:41:55 +00:00
Tim Van Patten
e36c94e1d9 Merge "Remove support: libfeature_support_angle.so" 2021-06-28 21:45:29 +00:00
Songchun Fan
d25feb053c [SettingsProvider] restrict readability of media_button_receiver to apps targeting R and below
BUG: 189122911
Test: atest android.appsecurity.cts.ReadableSettingsFieldsTest
Change-Id: I6084d4c0d2a4e208827bcb159d0aa6803b310684
2021-06-28 19:52:45 +00:00
Neil Fuller
4ede648e11 Merge "Tidy up naming around "sync disabled" behavior" 2021-06-28 16:25:11 +00:00