Commit Graph

7257 Commits

Author SHA1 Message Date
Mihir Patel
9064a4ef80 Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev am: 25192d7d0c am: f333fa0c93
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19054708

Change-Id: I2cbfe0cea3466bf0da1119ee9de1e52152ce6694
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 18:07:43 +00:00
Kristi Saney
f6a9009aee Merge "Add secure settings key for software cursor." 2022-08-10 18:02:44 +00:00
Mihir Patel
f333fa0c93 Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev am: 25192d7d0c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19054708

Change-Id: I6b8ffade431d057334147ae9cd5386afbad13cbc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-08-10 17:41:15 +00:00
Mihir Patel
25192d7d0c Merge "Reporting the Autofill IDs and Positions of active views in list view" into tm-qpr-dev 2022-08-10 16:35:13 +00:00
Mihir Patel
a6e0f74c90 Reporting the Autofill IDs and Positions of active views in list view
Test: atest CtsContentCaptureServiceTestCases, observed events reported only once on scroll and stop as well as on fling
Bug: 211899037
Change-Id: Id67fcc360bf63fcab1d9f345c31d2bf7b9a173d6
2022-08-09 15:37:50 -07:00
Kristi Saney
fb43f54289 Add secure settings key for software cursor.
Context for this setting: https://docs.google.com/document/d/1hh2eY1a6wsOmOajxOUm8Xt8DT29oUvH9x0mCH83pnvk/edit#heading=h.e572ymeclvtl

Bug: 240718050
Test: SettingsBackupTest

Change-Id: I325cff738116887f65d6254703b4ce14328c7d86
2022-08-09 21:45:24 +00:00
TreeHugger Robot
da29e3e38b Merge "Revert "Turn on TARE by default."" 2022-08-05 18:51:33 +00:00
Kweku Adams
8f906c80ad Revert "Turn on TARE by default."
This reverts commit 00eef6e5be.

Reason for revert: http://b/241284782

Change-Id: I6a30da8227589c640ff16e264b50383e1fd5716b
2022-08-05 13:50:06 +00:00
TreeHugger Robot
8094e1199d Merge "Turn on TARE by default." 2022-08-03 17:28:43 +00:00
Josh Yang
bf15fd7fdb Add name space "wear" to DeviceConfig
Bug: 196111331
Test: build success
Change-Id: Ief2c72d08294b8604907fb52fa8d2eaeedc5f406
2022-08-02 14:28:50 -07:00
Kweku Adams
00eef6e5be Turn on TARE by default.
Bug: 240726265
Test: atest CtsAlarmManagerTestCases
Test: atest CtsJobSchedulerSharedUidTestCases
Test: atest CtsJobSchedulerTestCases
Test: atest CtsUsageStatsTestCases
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/alarm
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/job
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/tare
Change-Id: I67d60ec7e7787cfb8284e5dd4b6aaacb4f03ba82
2022-08-01 19:34:03 +00:00
Joshua Mccloskey
315f6f124d Merge "SideFPS UX updates" into tm-qpr-dev am: 2ff2a64cfe
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19039844

Change-Id: I0e5645ff7a507ebd9c8c29f347ed6e45f3f365d3
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 20:56:14 +00:00
Joshua Mccloskey
2ff2a64cfe Merge "SideFPS UX updates" into tm-qpr-dev 2022-07-26 20:34:50 +00:00
TreeHugger Robot
57b0b38b61 Merge "Add dock charging state into stay awake feature (2/2)" into tm-qpr-dev am: db8dacec8a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19116650

Change-Id: I3e07127a49dedb42f441a70e9555fdfb182d00f4
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-26 16:37:11 +00:00
TreeHugger Robot
db8dacec8a Merge "Add dock charging state into stay awake feature (2/2)" into tm-qpr-dev 2022-07-26 15:42:36 +00:00
TreeHugger Robot
d8cd6d9b4a Merge "Add a Settings.Secure value to store extra battery saver schedule" into tm-qpr-dev am: 1dc27fa1f6 am: 00be659711
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194690

Change-Id: I3928a59c7730582f3ece664274d670ff98e78080
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:46:03 +00:00
TreeHugger Robot
00be659711 Merge "Add a Settings.Secure value to store extra battery saver schedule" into tm-qpr-dev am: 1dc27fa1f6
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19194690

Change-Id: I99927c9818b93b73f268bdc64fda1813e0d7b346
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-07-25 16:26:58 +00:00
Wesley Wang
c7adaf6f0f Add a Settings.Secure value to store extra battery saver schedule
- To store extra battery saver schedule mode

Bug: 224899180
Bug: 236688783
Bug: 238841059
Test: Build pass and local access verify
Change-Id: I4a394de04fdb9020ce22377390b81bccfaec2090
2022-07-23 08:10:29 +00:00
Joshua McCloskey
2987c8b264 SideFPS UX updates
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.

Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
Merged-In: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
2022-07-20 17:02:29 +00:00
Joshua Mccloskey
00c545be97 Merge "SideFPS UX updates" 2022-07-20 17:01:57 +00:00
Neil Fuller
66ba9ce8fa Merge "Add support for multiple NTP servers" 2022-07-20 10:18:13 +00:00
wesleycwwang
9121f848db Add dock charging state into stay awake feature (2/2)
- Make dump proto method support dock charging state
 - Add dock charging into proto file and validators

Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
2022-07-20 06:09:02 +00:00
Joshua McCloskey
60dedc99fe SideFPS UX updates
1. Added side fps auth delay on device entry/biometric
prompt to wait for power press.
2. Added tap to dismiss dialog for side fps enrollment.

Test: atest SideFpsEventHandlerTest
Bug: 233953696
Change-Id: I1b8a63cc76cdb5d8e46206ba1bee8fc3246a8cdc
2022-07-18 18:58:31 +00:00
Neil Fuller
0f2b48d1d6 Add support for multiple NTP servers
Add support for multiple NTP servers in NtpTrustedTime. The algorithm to
select the server is documented in comments in that class. Tests have
been updated accordingly.

This commit changes config.xml, removing (string) config_ntpServer and
replacing it with (string-array) config_ntpServers. It also modifies
command line and settings behavior.

Bug: 223365217
Test: atest frameworks/base/core/tests/coretests/src/android/util/NtpTrustedTimeTest.java
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/
Test: atest cts/tests/tests/os/src/android/os/cts/SystemClockSntpTest.java
Test: adb shell settings put global ntp_server "ntp://time.google.com\|ntp://time.android.com"
Test: Inspection: adb shell dumpsys network_time_update_service
Test: Inspection: adb shell dumpsys time_detector
Change-Id: I5e19a4d82c9771448940b9f1db1689f21508667b
2022-07-18 14:50:02 +01:00
Prakriti Gupta
89085f606b Merge "Rename the WF Setting name to be more exact" 2022-07-15 17:20:37 +00:00
Wesley Wang
496afc58c9 Merge "Add dock charging state into stay awake feature (2/2)" 2022-07-15 02:55:27 +00:00
Neil Fuller
afeacd652e Merge "Refactoring before supporting multiple NTP servers" 2022-07-12 20:30:59 +00:00
Neil Fuller
08dac6774b Refactoring before supporting multiple NTP servers
Refactoring changes to make it easier to support NTP configuration that
contains multiple NTP servers to try. As part of this change, the NTP
server configuration is being changed from a simple hostname to a URI in
the form ntp://<host>[:port]. This is a local scheme introduced for this
commit for this purpose and not (currently) an official, registered IANA
URI scheme.

Settings parsing in NtpTrustedTime retains support for the simple
hostname-only form to avoid introducing incompatibilities when devices
upgrade and have settings values from earlier releases.  All other cases
(config.xml, commandline) are updated here to only support the new URI
form as these don't have backwards compatibility guarantees.

A later commit will add:
+ The settings / config changes to support a list of URIs in the format
  introduced in this commit, i.e. in place of the single one supported
  today.
+ The server request loop / server stickiness need to support multiple
  servers.

Switching to a URI over a simpler encoding scheme means:
1) Not having to deal with parsing awkward host + port cases, like IPv6
   addresses which contain colons, e.g. "[:::1]:1234" (these are used in
   in our tests).
2) Opens up the possibility of future protocols like NTS via a different
   URI scheme, and future parameterization of NTP server config with
   query params, paths, or similar.
3) Easy delimiting of lists later using a whitespace character like
   space, which will be encoded when part of a URI. This can be used for
   extending settings parsing to support multiple, space-delimited
   configs as settings code doesn't support multi-value settings out of
   the box (unlike config / commandline cases, which are comparatively
   easy).

This commit contains a new OWNERS file for NtpTrustedTimeTest. The file
has been populated with ownership information for TypedValueTest using
information from the OWNERS for the code under test.

Ignore-AOSP-First: The OWNERS change relates to a file landing
  internally
Bug: 223365217
Test: atest frameworks/base/core/tests/coretests/src/android/util/NtpTrustedTimeTest.java
Test: atest cts/tests/tests/os/src/android/os/cts/SystemClockSntpTest.java
Change-Id: I3afbd04659b4e4ee336619ea5ac6db7588057d6e
2022-07-12 15:30:09 +01:00
wesleycwwang
8ccdab518f Add dock charging state into stay awake feature (2/2)
- Make dump proto method support dock charging state
 - Add dock charging into proto file and validators

Bug: 233704731
Test: atest FrameworksServicesTests
Change-Id: I8208414cc40a12f783749d2c7a9f71be6efab8d9
2022-07-12 07:01:08 +00:00
Prakriti Gupta
ec519e54dd Rename the WF Setting name to be more exact
Note: We are adding Wear settings to the backup list as per ag/17916603, hence no changes are needed in SettingsBackupTest seen in the CL from which this is CPed.

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/19121813

Change-Id: Ia307e57c6b162d6c2ce671302ddb77660328502d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Bug: 222022449
2022-07-08 22:11:08 +00:00
Hani Kazmi
4f221e5c51 Migrate Bundle/Intent APIs to new, type checked, variants
Part of go/safer-parcel. Follow up to ag/16639043. Migrates the following unsafe APIs:

* Parcel.readArray()
* Parcel.readParcelableArray()
* Bundle.getSerializable()
* Bundle.getParcelable()
* Bundle.getParcelableArrayList()
* Bundle.getParcelableArray()
* Bundle.getSparseParcelableArray()
* Intent.getSerializableExtra()
* Intent.getParcelableExtra()
* Intent.getParcelableArrayExtra()
* Intent.getParcelableArrayListExtra

Bug: 227458983
Test: m and presubmit pass
Change-Id: I72f206cb18eb5c669a7fff07a6845bed1c433fdb
2022-07-01 10:53:53 +00:00
Treehugger Robot
0b28e7842e Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755 am: 5ff65420df am: 0b8273f260 am: 35f0b0f611
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: Ibf0a463a8b1645950d6064b213fd55baa17f02eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 17:38:37 +00:00
Treehugger Robot
35f0b0f611 Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755 am: 5ff65420df am: 0b8273f260
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: I934c39d7d4f305acf59941ef93626e2b49397077
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 17:35:01 +00:00
Treehugger Robot
5ff65420df Merge "modify the comment for SYNC_DISABLED_MODE_NONE" am: a4106af231 am: 808aff6755
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2132183

Change-Id: Ie5c78d5afc9858cc0fee380b8cea9e42e6a652dd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-22 16:57:59 +00:00
zhangjincheng
15accb6437 modify the comment for SYNC_DISABLED_MODE_NONE
what is the mean of SYNC_DISABLED_MODE_NONE?

form code, it may should be "sync is not disable"

Signed-off-by: zhangjincheng <zhangjincheng@xiaomi.com>
Change-Id: I0017001966a9bee524e92803a1bc48a436f68129
2022-06-22 15:01:22 +08:00
Ganesh Olekar
7db00aec32 Merge "Deprecate settings secure properties for location access check" 2022-06-14 17:43:03 +00:00
Ganesh Olekar
2b53d01a69 Deprecate settings secure properties for location access check
Bug: 224619912
Test: atest LocationAccessCheckTest
Change-Id: I9a1b8903455c2c295f5daef7f89a444cfae6138a
2022-06-13 15:42:01 +00:00
Florian Mayer
e67ab990b1 Sync memory_safety_native device config to native properties.
Corresponding SELinux config in aosp/2120412.

Bug: 235129567
Change-Id: I199169dd77981028ffc69f87b796699ea4ca9ddf
2022-06-08 11:02:01 -07:00
Songchun Fan
43f3e05a8f Merge "[SettingsProvider] restrict readability of sysui_qs_tiles" 2022-06-02 20:18:41 +00:00
Chen Xu
54aadd229e Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: 9570621986 am: a0da35749a
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I153c6ac9afb69fd13932e0e48bb3dedb27b2d691
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:51:15 +00:00
Chen Xu
a0da35749a Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: 9570621986
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I525c8730501ef9569a3bad091787d10ef0eed5b8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:44:14 +00:00
Chen Xu
0ce9893fdf Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206 am: bc47d4849d
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I832568404ae999f6fdb63c2d1289b170c40f14d0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:34:41 +00:00
Chen Xu
3134842ec5 Merge "Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that beyond S people can not access the DATA_ROAMING API from Settingss.Ideal way to use this is from TelephonyManager." into tm-dev am: 567d57f206
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18692749

Change-Id: I549bb3e7a0b6c5f8390ceb32ca87e1bfce5468f8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 18:18:24 +00:00
TreeHugger Robot
a2b06b0dc3 Merge "Add developer option for back animation" 2022-06-02 05:13:29 +00:00
Zaiyue Xue
6b3ca27563 Merge "Define setting name ADAPTIVE_CHARGING_ENABLED." into tm-qpr-dev am: 3ba66c27da am: aa1b2c12f5
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18610073

Change-Id: I4fa877b44c0696357ad4623db0dd0b18e29df118
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 02:00:52 +00:00
Zaiyue Xue
aa1b2c12f5 Merge "Define setting name ADAPTIVE_CHARGING_ENABLED." into tm-qpr-dev am: 3ba66c27da
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/18610073

Change-Id: I0b823d986918c6a9055acbde9573613dad3883fd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-06-02 01:44:30 +00:00
Songchun Fan
ea8df76520 [SettingsProvider] restrict readability of sysui_qs_tiles
Prevent third-party apps targeting U and above from reading this
setting directly, because it might leak information about installed
packages.

BUG: 232938844
Test: builds
Change-Id: I82ddd8da061f18897d70793a996dd33bc955fd99
2022-06-01 14:40:18 -07:00
Shivakumar Neginal
8335fd51fb Adding maxTargetSdk AndroidS_V2 to DATA_ROAMING. This will make sure that
beyond S people can not access the DATA_ROAMING API from Settingss.Ideal
way to use this is from TelephonyManager.

Test: manual.
Bug: 172467621
Change-Id: I5bbdd886599ff0ecf66eb72beb78456adc4d632c
2022-06-01 06:51:43 +00:00
xuezaiyue
3ec8de2273 Define setting name ADAPTIVE_CHARGING_ENABLED.
Test: manual
Bug: 230386304
Change-Id: I65508f99b7754e152009c2d6f4cb868ccb46d4de
2022-05-27 14:31:08 +08:00
Vadim Caen
0cfb931532 Add developer option for back animation
Bug: 228936326
Test: BackAnimationControllerTest#animationDisabledFromSettings
Change-Id: I857a480e7375cada9171712d737162c7876c087e
Merged-In: I857a480e7375cada9171712d737162c7876c087e
2022-05-25 09:57:36 +00:00