Commit Graph

7025 Commits

Author SHA1 Message Date
Evan Laird
ce1ca2a19f Merge "Sysui changes to support vibrate icon setting" into tm-dev 2022-02-28 15:10:23 +00:00
Anton Kulakov
98e13945e0 Merge "Add namespace for SdkSandbox related features." into tm-dev 2022-02-25 19:25:43 +00:00
Evan Laird
225052be27 Sysui changes to support vibrate icon setting
- Add a listener for the new setting Settings.Secure.STATUS_BAR_SHOW_VIBRATE_ICON
- Rebuild any IconManager that receives an updated blocklist
- Assert that any blocklist changes come in on the main thread

Test: atest CollapsedStatusBarFragmentTest
Bug: 220144337

Change-Id: I667b5c57ef646c57a2f6912df7d233b1b5c0f89d
2022-02-25 16:33:56 +00:00
Aaron Liu
caf89ec290 Merge "Home Controls: Add Device Controls settings" into tm-dev 2022-02-25 16:19:30 +00:00
Anton Kulakov
1ea726550f Add namespace for SdkSandbox related features.
Test: Build
Bug: 216303182
Change-Id: I352951c5bac6a53c2ae3875569c7589aa8bd00ba
2022-02-25 15:34:19 +00:00
TYM Tsai
2a5769bc38 Merge "Make fill dialog feature controlled by device config" into tm-dev 2022-02-25 04:33:29 +00:00
Aaron Liu
3cc5bf6c4f Home Controls: Add Device Controls settings
Add a KEY for the settings and apply the associated business logic.

Fixes: 216102581
Test: Manual
Change-Id: Ic66cd0a865044c602bf7f5364abd726e445c9386
2022-02-23 21:13:06 +00:00
Joe Bolinger
e8e0b2d8a0 Change supervisor settings constants to int.
Fix: 215434051
Test: ROBOTEST_FILTER=BiometricActionDisabledByAdminControllerTest m RunSettingsLibRoboTests
Change-Id: Iaee74fb93d9b455195fd725e2e30baa6c716bff6
2022-02-23 18:36:30 +00:00
TYM Tsai
261ac24929 Make fill dialog feature controlled by device config
Use device config to control whether autofill dialog feature is enabled.
To support this, the autofill namespace of DeviceConfig needs to be exposed
for AutofillManager to read in the app thread.
There are augmented_autofill_mode, smart_suggestion_supported_modes and
compat_mode_allowed_packages existed in autofill space. These can be made
app readable.

Bug: 210926084
Test: atest android.autofillservice.cts.dialog.LoginActivityTest
Change-Id: Idfb846656a0c26eba1db4f8ef6ec427ae4ca666d
2022-02-24 00:34:54 +08:00
Neil Fuller
91d5781980 Merge "Switch "UTC time" to "Unix epoch time" (core)" 2022-02-14 17:21:43 +00:00
Antoan Angelov
332e6894b7 Merge "Add a Settings.Global feature flag to toggle role holder provisioning" 2022-02-14 15:48:37 +00:00
arangelov
0b02a41c3c Add a Settings.Global feature flag to toggle role holder provisioning
This will be useful for testing.

Bug: 218686349
Test: none
Change-Id: I21c9de56638827beb092eeeb2cdc70940e6377f0
2022-02-11 16:42:34 +00:00
Neil Fuller
5990bc702c Switch "UTC time" to "Unix epoch time" (core)
This is more correct. Android devices, even under ideal conditions,
don't track UTC (which contains leap seconds and uses the SI definition
of a second) but use a clock based on Unix epoch time (no leap seconds,
but clocks may skip/stop or smear around leap seconds to ensure a fixed
number of second increments per calendar day when leap seconds are
applied to UTC).

Bug: 218802673
Test: Compile only
Change-Id: I0c557e2231f87ea1b99e3935f79af15bccf91da4
2022-02-11 13:22:05 +00:00
tomnatan
d0df97d939 [10/n] Letterbox Education: don't show if taskbar education is showing.
Introduce a LAUNCHER_TASKBAR_EDUCATION_SHOWING setting for taskbar to
indicate that the education is about to be shown or is currently
showing.

After the taskbar education is dismissed, the letterbox education will
only be shown for a different task or for the same task once its compat
state changes and the letterbox education is eligible to be shown.

Bug: 214590804
Test: N/A
Change-Id: Ia8512e5f188fe421adf1de2fc8a0422b9cc79c76
2022-02-11 10:28:46 +00:00
Kathy Chen
4ff2a4e611 Merge "Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity." 2022-02-09 19:05:21 +00:00
Tom Taylor
3a1346c3ef Merge "Remove RCS columns for a feature that was never implemented" 2022-02-09 16:06:01 +00:00
Lucas Silva
a67451dd23 Merge "Add setting for device docked screen timeout." 2022-02-09 15:09:45 +00:00
Kathy Xiaoming Chen
f8f605c44e Add query API for apps to check the event status. The detection service sends back the response with a status. Add client API for apps to start the consent activity.
It implements Option 5 in this proposal doc: http://go/ambient-consent-api

Test: atest CtsAmbientContextDetectionServiceDeviceTest
Bug: 192476579
Change-Id: I923911fa8f73d973fd22587af74ed27c5045da34
2022-02-08 16:25:39 -08:00
Lucas Silva
3048dbaac5 Add setting for device docked screen timeout.
This new timeout will only apply when the device is docked, while still honoring any maximum timeouts set by DevicePolicyManager or WM.

Test: atest PowerManagerServiceTest
Test: locally on device, modifying the setting manually via adb
Bug: 213908097
Change-Id: I3d992154723fa8871f7c1c24607b16a35c42fb87
2022-02-08 21:35:17 +00:00
Vishnu Nair
615186a1b3 Merge "SurfaceView: Remove blast debug flag" 2022-02-08 15:57:54 +00:00
Vishnu Nair
fc859eed70 SurfaceView: Remove blast debug flag
BufferStateLayer is the now the default interface to SurfaceFlinger
and BufferQueueLayer code path is obsolete and non-functional.

Test: presubmit
Bug: 217973491
Change-Id: I0d083230f3a27d4b0380a1d958fdc5c1b6c3aa51
2022-02-07 15:26:39 -08:00
Olivier Gaillard
1051bbbd1f Merge "Add half watchdogs to dropbox and make the watchdog timeout configurable." 2022-02-07 12:05:41 +00:00
Haik Kalantarian
90bd12ce55 Merge "Added Cooldown Mode global" 2022-02-04 23:40:18 +00:00
TreeHugger Robot
b468e3d43e Merge "Revert "Expose Secure.get{Int,String}ForUser as systemApi"" 2022-02-04 23:01:39 +00:00
Jayachandran C
5cc537a1e3 Merge "Added carrier_id support to the carrier_key table in CarrierInformation DB" 2022-02-04 19:14:19 +00:00
Haik
ee64ba58c7 Added Cooldown Mode global
Bug: 207156866

Test: GlobalSettingsValidators, SettingsBackupTest
Change-Id: Id733ad5e754a1e0bb6f0cc356a76130449a51468
2022-02-04 18:38:13 +00:00
William Escande
1da833ef33 Revert "Expose Secure.get{Int,String}ForUser as systemApi"
This reverts commit c51683b7e7.

Reason for revert: API should not be expose, errorprone is being updated

Change-Id: I633ac76aa03982aa9cb03b1cc9f3d92ced94db4d
2022-02-03 16:43:54 +00:00
Olivier Gaillard
6fe4769529 Add half watchdogs to dropbox and make the watchdog timeout
configurable.

The content of the half watchdog is now more consistent with watchdogs
to make it more actionable (watchdog subject, memory psi, cpu data).

The half watchdog is also published to dropbox in a similar way to the
watchdog. We also use a thread to publish to dropbox to make sure that
we do not block the watchdog handler code.

For the half watchdog, we know wait for 5s to get the cpu data (similar to
the watchdog) which delays the next run. That's only 10% of the default
timeout though so that's not a big difference.

For the configurable watchdog timeout, we delay fetching the value to
be able to start the watchdog as early as possible when system server
starts to detect blocked threads that might happen early. As well, even
if fetching settings is broken, the watchdog will still be running with
the default timeout values.

Test: tested that the half watchdog is added to dropbox

~/master$ adb shell dumpsys dropbox | grep watchdog
2022-01-25 23:22:19 system_server_pre_watchdog (compressed text, 21612 bytes)
2022-01-25 23:22:56 system_server_watchdog (compressed text, 21386 bytes)
2022-01-25 23:29:09 system_server_pre_watchdog (compressed text, 21621 bytes)

The watchdogs and half wathdogs were generated by adding a message with
a long sleep on the ui thread

    Runnable runnable = new Runnable() {
	@Override
	public void run() {
	    SystemClock.sleep(40_000);  // 40s
	}
    };
    Message msg = Message.obtain(UiThread.getHandler(), runnable);
    msg.setAsynchronous(true);
    UiThread.getHandler().sendMessage(msg);

Bug: 209932320
Change-Id: I1bca723d1d7bee98dc7e1aade73a2e4384d6f035
2022-02-03 11:55:05 +00:00
William Escande
c51683b7e7 Expose Secure.get{Int,String}ForUser as systemApi
Bluetooth is going mainline and can no longer use hidden api. We tried
to use the public alternative as our user is the same returned by
contentResolver.getUserId() but errorprone is not happy with it

Bug: 216769091
Test: Build bluetooth as apex mainline module
Change-Id: I195d545cc359d765e261c169032dfad46c916d75
CTS-Coverage-Bug: 217352944
2022-02-01 19:37:26 +00:00
Michal Olech
6c966b35ea Merge "Add system prompt for system language change after <Set Menu Language> CEC message" 2022-02-01 17:21:51 +00:00
arunvoddu
7792574ad0 Added carrier_id support to the carrier_key table in CarrierInformation DB
Bug: b/191919168
Test: aTest verification Passed
Change-Id: Ib51d6eb5231ceb65fffa8e83706c47ce17afd640
2022-02-01 15:28:33 +00:00
Michal Olech
6f1aecf1bf Add system prompt for system language change after <Set Menu Language> CEC message
Requires ro.hdmi.set_menu_language=true

Test: build; flash; manual test
Bug: 190810909
Change-Id: Ic0664e077e975bba0929dd871c3a4c9ab385814c
2022-02-01 12:39:53 +01:00
Darrell Shi
2be2597553 Merge "Add settings key for storing timeout to user 0 preference." 2022-02-01 01:54:12 +00:00
Xinyi Zhou
7b4b98b581 Merge "Add Fast Pair saved devices settings page component name to config" 2022-02-01 01:49:57 +00:00
TreeHugger Robot
3cef8c7f57 Merge "Add an intent action system API for bedtime settings" 2022-01-31 22:17:03 +00:00
Darrell Shi
7132ff527f Add settings key for storing timeout to user 0 preference.
Bug: 213906356
Test: manual
Change-Id: Ic9c65e58a3f399753349dfcba20a1193a6f0eb00
2022-01-31 18:17:59 +00:00
Xinyi Zhou
393ba5ce30 Add Fast Pair saved devices settings page component name to config
The actual page is in GMSCore, which is not fully ready. I tested with
Nearby Share sharing page for indication.

Test: https://photos.app.goo.gl/E1T9hKtuci12SwuY7
Bug: 203579197
Change-Id: Idbbc4e6d5ca180a6d225b9410057473531bc2b0c
2022-01-28 12:56:59 -08:00
Robert Horvath
5dfac22224 Merge changes from topics "low-power-standby-api", "lps-wakelock-testapi"
* changes:
  Add API to configure LPS maintenance mode behavior
  Add TestApi to force Low Power Standby to be active
  Add TestApi wakelock flag to have system acquire wakelock
  Allowlist active voice interaction session from Low Power Standby
  Introduce Low Power Standby API and wakelock restrictions
2022-01-28 12:27:05 +00:00
Ricky Wai
d8d1b82e44 Merge "Add restricted settings app ops and apply it into Restricted Preference" 2022-01-28 11:23:17 +00:00
Zach Johnson
c63b02afc0 Merge "Add SystemApi getter to bluetooth constant" 2022-01-28 05:30:43 +00:00
Xinyi Zhou
e3b13f3c68 Merge "Add Nearby Slice URI for the SliceProvider to Settings.Secure" 2022-01-28 01:43:18 +00:00
William Escande
60c210dfe2 Add SystemApi getter to bluetooth constant
Bluetooth is going mainline and need to have access to constant defined
in both settings.secure and settings.Global

Test: build
Bug: 211851706
Tag: #refactor
Change-Id: Id47da2e5606d29ccd2924d9105e8322a1b697ee1
2022-01-28 01:14:33 +01:00
Robert Horvath
abb95aecf3 Add API to configure LPS maintenance mode behavior
Allow Low Power Standby to be active during doze maintenance modes.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest
Change-Id: I6db6e1a37f48d63d618245f308ea1053c45fb64b
2022-01-27 23:08:32 +01:00
Robert Horvath
570645567f Introduce Low Power Standby API and wakelock restrictions
In Low Power Standby, additional restrictions are placed on apps that
are in a process state of FOREGROUND_SERVICE or less important
during standby (while the device is non-interactive):
- Wakelocks are disabled
- Network access is blocked
During doze maintenance windows the restrictions are lifted temporarily.

This change introduces the APIs for Low Power Standby, as well as
the wakelock restrictions.

This feature is targeting TVs. To prevent Low Power Standby from being
enabled on other devices, the feature is guarded by the config flag
config_lowPowerStandbySupported.

Bug: 190822356
Test: atest LowPowerStandbyControllerTest PowerManagerServiceTest
Ignore-AOSP-First: New permission only added internally for now.
Change-Id: Ia40f8a0fc4b366860af58ad76c988f93a5d41936
2022-01-27 23:08:26 +01:00
Yingzhe Li
26d4d356bd Merge "Add Setting for Wet Mode/Touch Lock Mode" 2022-01-26 19:03:04 +00:00
Steven Ng
28fc9e2fd8 Add an intent action system API for bedtime settings
Test: atest CtsIntentSignatureTestCases
Bug: 210975231
Change-Id: I9559a572acefc6d7fa8bfc31d90f9613d8a25290
2022-01-26 17:21:08 +00:00
Ricky Wai
36e951f1a9 Add restricted settings app ops and apply it into Restricted Preference
Bug: 202130031
Test: Able to compile and boot device successfully
Change-Id: I4501cc90c681165e10c82a359f21951856519fd8
2022-01-26 14:48:57 +00:00
Xinyi Zhou
a214ee474c Add Nearby Slice URI for the SliceProvider to Settings.Secure
Test: n/a.
Bug: 202040692
Change-Id: I6c9100e0963af78112ea7718ad9f0924c9a56ddf
2022-01-25 19:24:18 +00:00
Kathy Chen
50460ddd32 Merge "AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events." 2022-01-23 01:54:29 +00:00
Kathy Xiaoming Chen
5d568eda62 AmbientContext (aka Ambient PCC) Framework API, with a client API for apps to subscribe for AmbientContextEvents, and a provider API for AiAi to implement and provide the detected events.
Client apps need the ACCESS_AMBIENT_CONTEXT_EVENT permission to use the service. The permission protection level is internal|role.

API overview: http://go/ambient-framework-api
PRD: http://go/ambient-attribution-prd
Design doc: http://go/ambient-service-api

Test: CTS test
Bug: 192476579
Change-Id: I9daede83af34f215c278cb0530238faba1be5c70
Ignore-AOSP-First: to prevent new feature leak.
2022-01-22 22:07:22 +00:00