Commit Graph

3873 Commits

Author SHA1 Message Date
Jong Wook Kim
16c5d2c8d2 Merge "Wifi MAC Randomization: Developer option change global settings" 2018-01-23 06:40:51 +00:00
Jong Wook Kim
0a20eda58d Wifi MAC Randomization: Developer option change global settings
Enabling/disabling the connected mac randomization toggle in developer options will change Settings.Global.WIFI_CONNECTED_MAC_RANDOMIZATION_ENABLE, which the wifi framework can look at to decide whether or not to randomized mac addresses. Also added descriptions for the toggle in developer options.

Bug: 67908229
Bug: 71548421
Test: manual testing of checking that the option correctly displays and
logs to check that the toggle correctly changes values.
Change-Id: I48a2dc34d772b0e4ce7637df904b274c9fe1218f
2018-01-22 18:13:40 -08:00
Christine Franks
bae5e6bda1 Merge "Change selection strategy for ACTION_DISMISS_TIMER" 2018-01-22 23:23:25 +00:00
TreeHugger Robot
fb39fd90f0 Merge "Add the assisted dialing carrier config." 2018-01-22 21:56:25 +00:00
TreeHugger Robot
5d86f5e30f Merge "Add PH flag for P power model" 2018-01-22 20:34:44 +00:00
Lei Yu
d95e1d6edd Merge "Update comment for BATTERY_TIP_CONSTANTS" 2018-01-22 20:21:51 +00:00
Eric Erfanian
af7b8c0a67 Add the assisted dialing carrier config.
This is used to activate the feature and show the settings.

Remove @hide from the public APIS.

Design doc:
go/assisted-dialing-dd-v1

Test: manual
Bug: 63934304
Change-Id: I09ea52720bf2439537e2f4ad32afb14f5df25f71
2018-01-22 19:23:04 +00:00
Nancy Zheng
d57c1df388 Merge "Add setting/experiment for small battery devices to have all forced app standby enabled except for when the device is charging." 2018-01-22 17:59:35 +00:00
Michal Karpinski
29a7472974 Split string properly in package name validator
Test: atest frameworks/base/core/tests/coretests/src/android/provider/SettingsValidatorsTest.java
Bug: 64988620
Change-Id: I35b93a9ba317dc31494bffb7ad3576ad7290220f
2018-01-20 14:31:29 +00:00
Mike Ma
fae87da498 Add PH flag for P power model
Add P/H experiment flags for Android P power model. The flags will share
the existing Settings.Global.BATTERY_STATS_CONSTANTS. Key
"track_cpu_active_cluster_time" controls KernelUidCpuActiveTimeReader
and KernelUidCpuClusterTimeReader. Key "read_binary_cpu_time" will be
used in a future optimization.
Bug: 68982314
Test: local build and manual test

Change-Id: Ie84fd5265dc65dd0d46ac347cefa32ad92d643ee
2018-01-19 20:07:20 -08:00
Nancy Zheng
525aaa13dc Add setting/experiment for small battery devices to have
all forced app standby enabled except for when the device
is charging.

Reverting the revert of this CL. The only change is to use
EXTRA_PLUGGED instead of EXTRA_STATUS in detecting charging
state. Verified that this passes CTS test for battery saver.

Bug: 69259147
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/ForceAppStandbyTrackerTest.java
Test: atest CtsBatterySavingTestCases
Change-Id: I4f3ffc0c865a1a3a035b6d9d6838b5056b666eb9
2018-01-19 15:27:42 -08:00
jackqdyulei
8732119521 Update comment for BATTERY_TIP_CONSTANTS
Bug: 70570352
Test: Build
Change-Id: Ibb702ddacdf1111a249c75541a87849713de1195
2018-01-19 14:24:54 -08:00
TreeHugger Robot
20220cdb72 Merge "Add validators for all Settings.Secure settings that are backed up" 2018-01-19 21:53:29 +00:00
Michal Karpinski
964943ab98 Add validators for all Settings.Secure settings that are backed up
A few no longer used settings were removed from SETTINGS_TO_BACKUP.

And extend the unit test to fail if new ones are added without
a validator. Also fail to boot in that case.

Ref: go/android-p-backed-up-settings
Test: atest frameworks/base/core/tests/coretests/src/android/provider/SettingsValidatorsTest.java
Bug: 64988620
Change-Id: I94b4039c9f54c341aec72b62579be3dd8bd84dbb
2018-01-19 19:40:46 +00:00
Makoto Onuki
bd9b0cf9b0 Merge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments" 2018-01-19 18:11:01 +00:00
Michal Karpinski
8f0d71e3ee Merge "Add validators for all Settings.Global settings that are backed up" 2018-01-19 11:44:13 +00:00
Michal Karpinski
ebd9998326 Merge "Add SettingsValidators class and a test for validators enforcement" 2018-01-19 11:42:52 +00:00
Makoto Onuki
5cc9f721ce Merge "Revert "Add setting/experiment for small battery devices to have"" 2018-01-18 23:10:54 +00:00
Makoto Onuki
12391f22df Revert "Add setting/experiment for small battery devices to have"
This reverts commit 9a60382be1.

Reason for revert: Broke battery saver

Bug: 72168928
Bug: 69259147

Change-Id: I09664653686a51c297224c863c4fc6d1ff7e5caf
Test: Manual test
Test: atest CtsBatterySavingTestCases
2018-01-18 22:05:40 +00:00
Michal Karpinski
5db1e430f9 Add validators for all Settings.Global settings that are backed up
And extend the unit test to fail if new ones are added without
a validator. Also fail to boot in that case.

Ref: go/android-p-backed-up-settings
Test: atest frameworks/base/core/tests/coretests/src/android/provider/SettingsValidatorsTest.java
Bug: 64988620
Change-Id: Ibd4a2bad0c6a1f2a9e1beec1a4ec8e6972fd86a4
2018-01-18 20:36:39 +00:00
Michal Karpinski
2c37b08510 Add SettingsValidators class and a test for validators enforcement
Common validators have been moved out to SettingsValidators class,
as they'll be now shared between Settings.System, Settings.Secure
and Settings.Global.

All validators of Settings.System settings have been verified to be
correct and the missing ones were added.

A unit test that verifies that all settings on SETTINGS_TO_BACKUP
list in Settings.System have validators on VALIDATORS list has been
added. This test will also cover Settings.Secure and Settings.Global
once validators are added for those settings. Also, fail to boot
in that case.

Ref: go/android-p-backed-up-settings
Test: atest frameworks/base/core/tests/coretests/src/android/provider/SettingsValidatorsTest.java
Bug: 64988620
Change-Id: I1fe951604010ab0c3f68a66296885a9766690d69
2018-01-18 20:23:17 +00:00
Andrew Sapperstein
43643aeed1 Ignore first crash dialog.
By default, no longer show the crash dialog the first time an app
crashes. Instead, only multiple crashes will show by default.

Add Settings.Global and Settings.Secure flags to toggle this behavior.
Settings.Secure value is controlled via a setting in developer options.

Ensure Settings.Secure is backed up but Global value is not.

Bug: 63703353, 70640329
Test: SettingsBackupTest, manual crashing with a test app

Change-Id: Ib0a66cabdf60aad5e60eded9bfb96e3126bf032f
2018-01-17 15:44:33 -08:00
TreeHugger Robot
13ca805084 Merge "Create Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS setting" 2018-01-17 22:15:52 +00:00
Nancy Zheng
2baa9ab4be Merge "Add setting/experiment for small battery devices to have all forced app standby enabled except for when the device is charging." 2018-01-17 19:00:10 +00:00
Makoto Onuki
3c9c998ffc Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments
Bug: 70982379
Test: Manual test with "settings put global fps_divisor 4" and reboot

Change-Id: I61437ede907fc387257bf9c07dab46f0032d4e1b
2018-01-17 10:55:16 -08:00
Petr Cermak
9669e90c8d Create Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS setting
This will allow us to toggle and experiment with the feature.

Bug: 67765414
Test: atest SettingsBackupTest
Change-Id: I28d0a817561cb6811966d229e8367adb4eb6d40b
2018-01-17 18:04:04 +00:00
Nancy Zheng
9a60382be1 Add setting/experiment for small battery devices to have
all forced app standby enabled except for when the device
is charging.

Bug: 69259147
Test: Manual test
Test: atest frameworks/base/services/tests/servicestests/src/com/android/server/ForceAppStandbyTrackerTest.java
Change-Id: Ica3fe6835958f186269413519ee82bc19fb83275
2018-01-16 14:30:23 -08:00
Mike Digman
02856ba81b Make rotate locked suggestions on by default
Rotate power has been unblocked in ag/3455519.

Test: manual
2018-01-16 11:21:23 -08:00
Shikhar Srivastav
82e3a31f81 Merge "Add VDSO global setting and mapping to sys property." 2018-01-12 23:39:32 +00:00
TreeHugger Robot
de25827747 Merge "Add target package to VisualVoicemailFilterSettings." 2018-01-12 21:32:55 +00:00
Shikhar Srivastav
9a896a6c6d Add VDSO global setting and mapping to sys property.
This will help us run P/H experiments by controlling the VDSO
system property through P/H.

Bug: 70518189
Test: Will manually test it later through opt-in P/H experiment.
Change-Id: I95fd51085aed229358e2cefd472da1116c6073b3
2018-01-12 13:02:40 -08:00
TreeHugger Robot
21d4f67a31 Merge "Expose Global.LOW_POWER_MODE for CTS" 2018-01-12 20:56:43 +00:00
Makoto Onuki
f9046a2093 Expose Global.LOW_POWER_MODE for CTS
Bug: 68769804
Test: atest CtsBatterySavingTestCases
Change-Id: I7dfac2e0c549c91cd368ca955fff71e15d585b34
2018-01-12 10:33:51 -08:00
Mike Digman
8688335d08 Merge "Send rotation suggestions to System UI when rotation locked" 2018-01-11 22:44:08 +00:00
Daniel Colascione
6d3444ec3c Merge "Wire up zram setting, system property" 2018-01-11 19:03:46 +00:00
Mike Digman
e14e66351a Send rotation suggestions to System UI when rotation locked
Test: manual
Change-Id: I6dd05c5367e4e2ea3a2d3a631709a5aed34a256e
2018-01-11 10:43:44 -08:00
Daniel Colascione
766b632ebc Wire up zram setting, system property
The experiment framework toggles the system setting, which manipulates
the system property that init reads during boot to determine whether
we should enable zram.

Test: manual
Change-Id: I4b4f1b1673a5aa5e7f721c7dec7ebe3ea7908af2
2018-01-11 05:37:24 -08:00
Suprabh Shukla
4deb852d2d Added runtime flag for forced-app-standby
Added a global setting which can be configured to get metrics on the
battery savings from this feature.

Test: atest \
FrameworksServicesTests:\
com.android.server.job.BackgroundRestrictionsTest

Fixes: 70579515
Change-Id: I541f2aac39847f9bf372240cafc4e0f0e5ebdc86
2018-01-10 18:22:37 -08:00
TreeHugger Robot
a9dfd2cacc Merge "Allow Voicemails to be inserted as not new." 2018-01-10 23:00:54 +00:00
Ta-wei Yen
1ba33dfd8c Allow Voicemails to be inserted as not new.
Inserting voicemails as new will cause dialer to send notifications to
the user. For initial syncs this is undesirable. Previously the NEW
colunm is only available to call log.

Change-Id: Ie9091d23082a333753760b194475b3d1b8b11917
Fixes: 69482089
Test: CTS
2018-01-09 16:56:07 -08:00
Mehdi Alizadeh
6f1b1c8848 Merge "Updates comment for SOFT_AP_TIMEOUT_ENABLED" 2018-01-09 21:11:18 +00:00
Ricky Wai
3eb9f7accb Merge "Change Network Watchlist feature flag" 2018-01-09 16:02:18 +00:00
Mehdi Alizadeh
57ae55cbef Updates comment for SOFT_AP_TIMEOUT_ENABLED
Bug: 68712445
Change-Id: Ic47917a608e78454f3060487741c5a0e1f6c15a4
Test: None
2018-01-08 19:21:05 -08:00
Sudheer Shanka
710971a286 Merge "Add a global setting to turn on/off the proc state cpu times tracking." 2018-01-09 02:28:51 +00:00
Christine Franks
6198ec6303 Merge "Remove DEMO_USER_SETUP_COMPLETE" 2018-01-09 00:56:08 +00:00
Christine Franks
fa4939e2f0 Change selection strategy for ACTION_DISMISS_TIMER
Bug: 70336445
Test: make -j100 && cts-tradefed run cts-dev -m CtsAlarmClockTestCases

Change-Id: Ic7e3e6f32c873d62d52e39873401e3e8f2f39a0a
2018-01-08 16:38:35 -08:00
Sudheer Shanka
5c19b897dd Add a global setting to turn on/off the proc state cpu times tracking.
Bug: 66953194
Test: atest core/tests/coretests/src/com/android/internal/os/BatteryStatsTests.java
Test: atest hostsidetests/incident/src/com/android/server/cts/BatteryStatsValidationTest.java
Test: atest core/tests/coretests/src/com/android/internal/os/BstatsCpuTimesValidationTest.java
Change-Id: Id26476ad77c95994f358d8bd59b6c2e6513c4c54
2018-01-08 16:25:16 -08:00
Christine Franks
7b76e93bf1 Remove DEMO_USER_SETUP_COMPLETE
This @hide setting is no longer used.

Bug: 71594447
Test: make -j100
Change-Id: Ib412f4c16eabb5bedb9e4538db294bfdfb2a4478
2018-01-08 13:40:19 -08:00
Jeff Sharkey
9f2dc0527e Add DataUnit to clarify SI-vs-IEC units.
Mirrors the design of TimeUnit and ChronoUnit which many developers
are already familiar with, making it easy to pick up and use.

Yes, this is an enum.

Bug: 70915728
Test: bit FrameworksCoreTests:android.util.DataUnitTest
Change-Id: Id0cfdac5c81ed89c3c9ece23c964acba4a4f8471
2018-01-07 19:06:01 -07:00
Eric Enslen
1e423b950a Default grant coarse loc perm to use-open-wifi app
Bug: 70843697
Test: flashed onto walleye and confirmed permission granted when WFA is
enabled.

Change-Id: Ic53886478ec6b8bef311f2f94e0976f7870c8cd1
2018-01-04 10:43:46 -08:00