Commit Graph

4129 Commits

Author SHA1 Message Date
Michael Wachenschwanz
2870552de6 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev
am: b3972f9d23

Change-Id: Iacdddabdd58c0da6b53d997b08ddf70bef583392
2018-05-01 17:35:00 -07:00
Michael Wachenschwanz
b3972f9d23 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev 2018-05-02 00:23:23 +00:00
android-build-team Robot
ee2b9ee200 Merge "Add personalization state paused constant" into pi-dev
am: 1fc69c5eda

Change-Id: I9a79ca52682c4cc13a3611560552b2470dc8ebe5
2018-05-01 12:10:02 -07:00
Ajay Nadathur
43bda82c10 Add personalization state paused constant
- Add a new constant USER_SETUP_PERSONALIZATION_PAUSED to inform
interested listeners when personalization is paused.

bug: 78898802
Test: Manually tested and verified
Change-Id: I4481c38e31a8b47dfc98d8733b446885899d4a67
2018-04-30 21:42:44 +00:00
Chia-I Wu
58030441c0 Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev
am: 06c0c3a933

Change-Id: I39b0120433fd1585ba2be7aa777bbb1686d1a254
2018-04-27 08:57:28 -07:00
Chia-I Wu
06c0c3a933 Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev 2018-04-27 15:47:41 +00:00
Sudheer Shanka
0c3d9cefcb Merge "Schedule external stats sync on battery level change with a delay" into pi-dev
am: a750da1960

Change-Id: I5af09a2df4458611ad9f3c9812dc0f787bddbd4f
2018-04-26 20:33:52 -07:00
Sudheer Shanka
a750da1960 Merge "Schedule external stats sync on battery level change with a delay" into pi-dev 2018-04-27 03:20:38 +00:00
Michael Wachenschwanz
5ca5cb6c53 Add Stable Charging Threshold for AppStandby
Delay parole when charging to ensure the device has some time to charge
and avoid a spike is activity on plug in.

Change-Id: If85f097249aeed6b64f43a22f4d25ff0a070febb
Fixes: 78040839
Test: atest AppStandbyControllerTests
2018-04-26 15:44:58 -07:00
Sudheer Shanka
0719c6af44 Schedule external stats sync on battery level change with a delay
and fix locking in scheduleCpuStatsSyncDueToWakelockChange().

Bug: 74146897
Test: atest cts/hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2891dfb8a0aedf429232f45e26deab93c738506e
2018-04-26 15:43:40 -07:00
Lei Yu
a4940ae0b2 Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev
am: 4620d9b3a3

Change-Id: I4890f4b4e1f8dbcf144b2e613165382d67b70de3
2018-04-25 17:02:26 -07:00
TreeHugger Robot
4620d9b3a3 Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev 2018-04-25 23:37:43 +00:00
Chia-I Wu
1e0e7176bd Add COLOR_MODE_AUTOMATIC
COLOR_MODE_SATURATED disables color management and thus treat any
color space as panel color space.  COLOR_MODE_AUTOMATIC is similar
to COLOR_MODE_SATURATED in that it stretches color spaces to panel
color space, but the stretching is color space aware.

persist.sys.sf.native_mode is extended to be a integer, where

 0: use DisplayColorSetting::MANAGED
 1: use DisplayColorSetting::UNMANAGED
 2: use DisplayColorSetting::ENHANCED

Bug: 73824924
Test: manual
Change-Id: Ia356958d8e1fbae90f244ded7111de2e45aa4b3c
2018-04-25 11:35:36 -07:00
Sudheer Shanka
ec9e20a1d9 Merge "Rate limit battery external stats collection in takeUidSnapshot(s)." into pi-dev
am: 6bc6e21be7

Change-Id: I50eba3f8c2171c511e0b1ecd3d0e605956e97d24
2018-04-23 14:52:01 -07:00
Sudheer Shanka
e56013aa31 Rate limit battery external stats collection in takeUidSnapshot(s).
Bug: 74146897
Test: atest cts/tests/tests/os/src/android/os/health/cts/SystemHealthManagerTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Change-Id: I2e01146718c3ce65d230308097622b958cb2897a
2018-04-23 11:38:36 -07:00
Lei Yu
4b976ad270 Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED
APP_STANDBY_ENABLED is controlled by server side to do experiment.
Before this CL, Adaptive Battery is hooked up to this flag, so
even though if user turns it off, it may be turned on by server.

Add a high level ADAPTIVE_BATTERY_MANAGEMENT_ENABLED to control
the feature in settings UI side.

AppStandbyController looks at both flags and enables standby
only if both are true.

Bug: 78153913
Test: Build
      Manually change both flags (through UI and adb)
      Verify dumpsys usagestats shows the correct state
      for mAppIdleEnabled.
Change-Id: I1fb4461f382e1ee87000fdc38962d94a17891c1e
2018-04-19 11:47:38 -07:00
Yu-Han Yang
53bab450b9 Merge "Add setting for GNSS location request update duration" into pi-dev
am: af52d9815a

Change-Id: If268c45fa38671ebe17b4f7c0c9d58b2029cea48
2018-04-18 11:26:49 -07:00
TreeHugger Robot
af52d9815a Merge "Add setting for GNSS location request update duration" into pi-dev 2018-04-18 18:10:04 +00:00
Qingxi Li
166f56c4cf Merge "Add Global Settings to device whether show Carrier menu" into pi-dev
am: ff03f0cfe4

Change-Id: Ia086ac7fcaa4faa45c9fce5463b700d735bec1f8
2018-04-17 15:46:07 -07:00
Qingxi Li
ff03f0cfe4 Merge "Add Global Settings to device whether show Carrier menu" into pi-dev 2018-04-17 22:20:59 +00:00
Qingxi Li
ead1271f1c Add Global Settings to device whether show Carrier menu
Add Global Settings EUICC_SUPPORTED_COUNTRIES. When the device enabled
esim UI by default and the users in eSIM supported countries, even if
eSIM is not provisioned, carrier menu will be shown. This global
settings will be updated by eSIM mamanger when the phone boot up.

Bug: 77638033
Test: E2E
Change-Id: Ib3ac8bcdfab56d6cd7c12e48318f1794af5bc1aa
2018-04-17 10:02:37 -07:00
Lifu Tang
fddae7a2e7 Merge "Add an action to launch scanning settings" into pi-dev
am: 4af3d1a4a4

Change-Id: I8e15c04b225ceb2792a2ca2d41c405922c02e482
2018-04-14 19:47:11 -07:00
Lifu Tang
58aa11bd1f Add an action to launch scanning settings
Needs to launch scanning settings from other apps

Bug: 77823544
Test: build and flash
Change-Id: If02b359dcbfee79b34b6b66abb3cf36a2a3412e3
2018-04-13 16:32:08 -07:00
Mathew Inwood
d39b02157b Merge "Configurable sampling rate for hidden API access log events." into pi-dev
am: fb55bd8706

Change-Id: I734dffcd6c993bf718d6835a734be26de5d76780
2018-04-11 10:19:04 -07:00
Mathew Inwood
fb55bd8706 Merge "Configurable sampling rate for hidden API access log events." into pi-dev 2018-04-11 16:45:19 +00:00
Mathew Inwood
04194fef78 Configurable sampling rate for hidden API access log events.
To reduce log spam, we do not log all hidden API accesses. This CL allows
configuration of the sampling rate of the log events so it can be tweaked
later if necessary.

Test: m
Test: $ adb shell settings put global hidden_api_access_log_sampling_rate 65536
Bug: 64382372
Bug: 77517571
Change-Id: I659c22bd504564da58d972f94b774a9af4039386
2018-04-10 16:57:07 +01:00
Julia Reynolds
af330f184e Merge "Add link to onboarding screen" into pi-dev
am: e5d97dd6f9

Change-Id: I6ca7fbf3b1e9a14a12a1b3ecefd07549df11ff4d
2018-04-10 07:49:59 -07:00
TreeHugger Robot
e5d97dd6f9 Merge "Add link to onboarding screen" into pi-dev 2018-04-10 14:35:44 +00:00
Mathew Inwood
9c5d1784b9 Merge "Different hidden API enforcement policy for P & pre-P." into pi-dev
am: 9139bbfa9b

Change-Id: Ie7883c0ff862d26f5639176ff004726ba8d3f972
2018-04-10 06:24:17 -07:00
Julia Reynolds
9aa1c9e925 Add link to onboarding screen
Test: runtest systemui-notification
Bug: 77658931
Change-Id: I70210b5d5e0de27ff38a6b2f5d8201266b6ec4d6
2018-04-10 08:47:07 -04:00
Mathew Inwood
1ab3025cc7 Different hidden API enforcement policy for P & pre-P.
Also make these configurable so we have the flexibility to change it if
necessary.

Setting the policy inside ActivityManagerService is not ideal, as that
means that AMS is the only place where the policy in ApplicationInfo is
correct. It should really be set inside PackageManagerService. However,
if it's set there, it would get out of date when the settings change, and
we'd have to update inside AMS anyway. So putting it only here seems ok
for now.

Test: $ adb shell settings put global hidden_api_policy_pre_p_apps 2
Test: $ adb shell settings put global hidden_api_policy_p_apps 2
Bug: 64382372
Change-Id: Ic4cbbb1e6464623e90c17ae08c0b6cbbe0dfa125
2018-04-10 10:13:07 +01:00
Dianne Hackborn
d260ab199f Merge "Fix issue #77721907: Add global setting to hide all error dialogs" into pi-dev
am: 1f596e0c2e

Change-Id: I64a8fceb305856c12645cb4c9ba7cf691cf23976
2018-04-09 23:39:36 -07:00
Dianne Hackborn
1f596e0c2e Merge "Fix issue #77721907: Add global setting to hide all error dialogs" into pi-dev 2018-04-10 06:24:50 +00:00
Christine Franks
2b6ef340c4 Merge "Whitelist DISPLAY_COLOR_MODE setting for B&R" into pi-dev
am: a1b3aa27dd

Change-Id: I9f6cca01f68eafc4cfd249d46d8f9d5bfd7ce680
2018-04-09 18:31:44 -07:00
Christine Franks
a1b3aa27dd Merge "Whitelist DISPLAY_COLOR_MODE setting for B&R" into pi-dev 2018-04-10 00:16:02 +00:00
Christine Franks
1269960d99 Whitelist DISPLAY_COLOR_MODE setting for B&R
Bug: 68664032
Test: make -j100 && atest SettingsBackupTest && atest
SettingsValidatorsTest
Change-Id: I1d38acfcd3e6a0c228ae6891581b3218d4a67e6b
2018-04-09 14:41:59 -07:00
Mehdi Alizadeh
42ff9dd1f4 Adds entries for Swipe Up Enable in Settings.Secure
am: 1264d880e2

Change-Id: I4dd2b567cc6c7b7aae70c0042a4e4a9650fc7b8c
2018-04-09 11:51:47 -07:00
Mehdi Alizadeh
1264d880e2 Adds entries for Swipe Up Enable in Settings.Secure
Bug: 77549883
Test: None
Change-Id: Ie346c4f527fa014eadbfaa1d81d7f8a5f37f653f
2018-04-09 18:28:04 +00:00
Jeff Sharkey
4f431f42cd Merge "More knobs for connectivity experiments." into pi-dev
am: 70df722321

Change-Id: I4957ea5904101d781820f2dbbc5199a3139e2a54
2018-04-09 10:48:52 -07:00
Dianne Hackborn
82b17ca340 Fix issue #77721907: Add global setting to hide all error dialogs
adb shell settings put global hide_error_dialogs 1

This forces the same behavior as other devices that hide all
dialogs.

Bug: 77721907
Test: manual
Change-Id: I93e03d55f885f1874c33f46cad8cede0c759063b
2018-04-09 10:35:37 -07:00
TreeHugger Robot
70df722321 Merge "More knobs for connectivity experiments." into pi-dev 2018-04-09 17:33:15 +00:00
Annie Meng
32e7e082f7 Merge "Don't backup/restore screen brightness" into pi-dev
am: 3a7e021169

Change-Id: Id27f2a0631fde41e2b247ec3eb48419bb48bc84d
2018-04-09 03:01:14 -07:00
Annie Meng
3a7e021169 Merge "Don't backup/restore screen brightness" into pi-dev 2018-04-09 09:53:48 +00:00
Robin Bennett
b1b9aa2ea0 Merge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreground activity." into pi-dev
am: 219e139651

Change-Id: I55b953d0f060f38251c6504470d4b13a38b50f25
2018-04-09 00:57:40 -07:00
Robin Bennett
219e139651 Merge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreground activity." into pi-dev 2018-04-09 07:41:20 +00:00
Yu-Han Yang
ab3e7bdd62 Add setting for GNSS location request update duration
Bug: 77696830
Test: atest SettingsBackupTest
Change-Id: I4514070ba12de2d1c4c47c03a9bf70d8f57fe197
2018-04-06 11:44:21 -07:00
Annie Meng
aeeb24e9cd Don't backup/restore screen brightness
We no longer want to backup and restore screen brightness as it could
leave the new device in an unusable state and doesn't make sense
cross-device.

Test: 1) atest SettingsBackupTest
2) atest SettingsValidatorsTest
3) Manual:
- Old backup set that has screen brightness does not restore with change
- Screen brightness does not backup or restore with change
Bug: 77583401
Merged-In: I8a6d950717e6aeb9bf6773c14708ee70069f9df0

Change-Id: I8a6d950717e6aeb9bf6773c14708ee70069f9df0
(cherry picked from commit 931b41b71a)
2018-04-06 12:48:23 +00:00
Yu-Han Yang
954238347a Merge "Implements GNSS satellite blacklist" into pi-dev
am: b1bcab2210

Change-Id: I2b02d5a1c898be0745eb88f65c6518b069d412a2
2018-04-05 16:47:36 -07:00
TreeHugger Robot
b1bcab2210 Merge "Implements GNSS satellite blacklist" into pi-dev 2018-04-05 23:28:19 +00:00
Hall Liu
a13852d071 Merge "Move RTT system setting to Settings.Secure" into pi-dev
am: fe85e4589b

Change-Id: Idd9171f313136911e2dc6031f6356463e51bf16f
2018-04-05 11:36:10 -07:00