History log of /frameworks/base/core/java/android/provider/Settings.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1f8f21af607b6a8449a509d8482f92a194fc1c99 23-May-2018 Remi NGUYEN VAN <reminv@google.com> Merge "Add configurable captive portal probes" into pi-dev
8255c2d6c27363daa8bd92f7fcb3302682b9950a 22-May-2018 Remi NGUYEN VAN <reminv@google.com> Add configurable captive portal probes

The probes allow testing for a configurable status code and location
header (regexes). They are disabled by default, so this CL is a
no-op unless the probe configurations are pushed.

Bug: b/79499239
Test: tests in CL pass, manual: captive portal login works
Change-Id: I785723aaed06054b9aa8ebff77803f23d7836db9
/frameworks/base/core/java/android/provider/Settings.java
1561bb41bdd2b5d333c14dedbe52168f3bf51a02 23-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add Settings Slice Whitelist key" into pi-dev
640821bbc82549cc4f67397564397fdfbf6bcc46 21-May-2018 Matthew Fritze <mfritze@google.com> Add Settings Slice Whitelist key

Bug: 79779103
Test: None - only a flag.
Change-Id: I764f2fddf05bf2b9df4e633c7f6c6c7e781c1149
Merged-In: I794159db4ff8aba7b6dcd91e13a984db40da47e7
/frameworks/base/core/java/android/provider/Settings.java
f0800fa3bd6d5279df3a183cc35ca5489112d73e 02-May-2018 Tony Huang <tonyychuang@google.com> Add theme mode design let user can choose theme self

Add a ContentObserver on WallpaperManagerService to
listen THEME_MODE value change. When changed, call
notifyWallpaperColorsChanged and set WallpaperColors
color hint by the current mode.

Bug: 63903361
Test: manual
Change-Id: I4f7aa7b184565b1bb23c7f4f1f07fc310dac7546
/frameworks/base/core/java/android/provider/Settings.java
4451179411f4a84d2b64c5306371b186e510ad3c 17-May-2018 Annie Meng <anniemeng@google.com> Allow restore of settings with nullable components

Creates a new settings validator that allows for null components, which
have semantic meaning for certain settings (in this case, that no
service is selected).

Bug: 79925290
Test: 1) atest SettingsValidatorsTest
2) Manual:
- In Settings UI, select "None" for autofill service and accessibility
shortcut target
- "adb backup -keyvalue -f nullsettings.ab com.android.providers.settings"
- "adb restore nullsettings.ab"
- Verify no crashes and that autofill service and accessibility shortcut
target both have "None" in Settings UI

Change-Id: I159b3f4706c6b981a30437c31724b106eb4e3f2a
/frameworks/base/core/java/android/provider/Settings.java
eed1b812a4ad38c6815f3066e41a95d7f5358838 21-May-2018 Annie Meng <anniemeng@google.com> Check settings validators for NPE

From b/79910479, we need to have better checks on settings validators.

Catch NPE for various settings validators and add a @Nullable annotation
to try to prevent NPEs in new validators.

Bug: 80067772
Test: atest SettingsValidatorsTest
Change-Id: I9a5058e1bae1ba0dea084c0589aa3e4ef3a51836
/frameworks/base/core/java/android/provider/Settings.java
45a250a2be6deceeebb74d25c98d984b173b4db4 19-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Id4feeefa,Ie0a501b8 into pi-dev

* changes:
Add counter for predictive info for hush gesture
Update DND strings
38fcfd050010aad8a98f63694194eb3df053d41e 18-May-2018 Beverly <beverlyt@google.com> Add counter for predictive info for hush gesture

Test: adb shell settings get secure hush_gesture_used
Test: adb shell settings get secure manual_ringer_toggle_count
Change-Id: Id4feeefa03a5951c03b09ab466a6c399d8aadd0e
Fixes: 79537757
/frameworks/base/core/java/android/provider/Settings.java
fedf04f3dfc1195d98bb928d30b47ac07b7f3a29 18-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "(Behind flag) Wireless charging vibration feedback" into pi-dev
19841794096e7c9f7112ba25af9bfda04403f791 16-May-2018 Erik Kline <ek@google.com> Add explicit override for default Private DNS mode

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug: 79719289
Change-Id: I943c5476666e47d04690626e2133f501cb875b46
/frameworks/base/core/java/android/provider/Settings.java
cd835ba41851a17fe9141b3901e0534600f72373 16-May-2018 Dianne Hackborn <hackbod@google.com> Merge "More app ops fg/bg tuning" into pi-dev
df9f36da19ab42bb1c44dc61a8300aecea0a840d 09-May-2018 Beverly <beverlyt@google.com> (Behind flag) Wireless charging vibration feedback

- to turn vibration feedback on wireless charging:
adb shell settings put global charging_vibration_enabled 1

Test: manual
Bug: 74505795
Change-Id: I177bc05e75bb9e66a88b45432eee778ab619e28f
/frameworks/base/core/java/android/provider/Settings.java
7830cd820bb1c5710818806e0d51165e86763d43 16-May-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings." into pi-dev
76fd7d57760502090b2a9fd28ed92232be30cdca 15-May-2018 Damien Bargiacchi <drb@google.com> Merge "Switch the setting for Off Body Radios Off to User Absent Radios Off" into pi-dev
eddc0d712c06648bd3b330af92ea32c8192851e3 15-May-2018 Jiabin Huang <jiabin@google.com> Merge "Add support for manually set surround formats." into pi-dev
e93ab41d2a98f154f5e2a58c10da93226921c462 15-May-2018 Dianne Hackborn <hackbod@google.com> More app ops fg/bg tuning

- Only report that something has changed when a uid changes between
the restricted and unrestricted states. (Adds new constant that
defines this important division point.)

- Have different settle times for different key transitions: (a)
out of the top state, (b) out of any other unrestricted state,
(c) down to a lower background state.

- But, don't apply any settle time when transitioning from top to
another unrestricted state... there is no need to.

Bug: 78480444
Test: manual
Change-Id: Ife772858009a6da5c286e285a4059aea3ad3f6c7
/frameworks/base/core/java/android/provider/Settings.java
3994075a5b638ecffce5b8782521fce7631e7169 03-Apr-2018 jiabin <jiabin@google.com> Add support for manually set surround formats.

To make surround sound setting more clear to users, we are changing
surround setting from ALWAYS to MANUAL. With MANUAL, users could enable
surround formats according to their need.

Bug: 67479735
Test: Try creating AudioTrack with enable/disable surround formats.
Change-Id: I79e610f6c43d7003daf13da3bee4e03ba9b6ea87
/frameworks/base/core/java/android/provider/Settings.java
301e92a4dd71e6581935a8ccc53cb0b6b842c58b 27-Apr-2018 Beverly <beverlyt@google.com> Show settings suggestion

Bug: 78445134
Test: Settings tests
Change-Id: Ib66ebb3af3328ac1ffa9949282afaf800e1f1019
/frameworks/base/core/java/android/provider/Settings.java
72da1e6f788ad2ca27518b630fa7d251c31d9a8b 10-May-2018 Christopher Tate <ctate@google.com> Document system activity intents that may not be implemented

All of these activity-start intents might be unimplemented on some
Android products. Document this to make sure that developers are
aware of the need to safeguard against this.

Bug: 68300743
Bug: 62201251
Bug: 69587018
Fixes: 77282739
Test: atest CtsContentTestCases:.AvailableIntentsTest
Change-Id: Ia2346d03ccb7f2bdad2b84ba9efff72413fdc3c2
/frameworks/base/core/java/android/provider/Settings.java
68bbaade77b3b8f0bcc308e385307f897c6e27e8 10-May-2018 Damien Bargiacchi <drb@google.com> Switch the setting for Off Body Radios Off to User Absent Radios Off

Bug: 79491395
Change-Id: I82f8742398da503bdddc420399de444e3314998e
/frameworks/base/core/java/android/provider/Settings.java
65a4f251c7e14307f46911e376db49c8c7a1a8bb 09-May-2018 Dianne Hackborn <hackbod@google.com> Further flesh out app ops foreground state.

Fix some bugs, add the ability to monitor state changes, improve
dumpsys output to help debugging, add a new check API that allows
the caller to get the real state.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I3d41be9968c1d95a1456f4052da958ea64aa068d
/frameworks/base/core/java/android/provider/Settings.java
792d36c17036e80a587ba910f362e1b4f0b5ea9c 09-May-2018 Victor Hsieh <victorhsieh@google.com> Merge "Allow only selected priv apps to run OOB" into pi-dev
785d618b1a4c66d885cafec34ed1981daee6736d 19-Apr-2018 Victor Hsieh <victorhsieh@google.com> Allow only selected priv apps to run OOB

- Add pm.dexopt.priv-apps-oob-list to allow selecting specific packages
to run OOB, in a comma-separated string of package names. When set to
"ALL" (default), all priv apps will run in OOB.
- Add a global config priv_app_oob_list to persist the state for
experiment.
- Also make background dexopt to respect the config.

Test: 0. Reset previous OOB settings.
1. settings put global priv_app_oob_list \
com.google.android.gms,com.android.vending
2. cmd package compile -m speed -f com.google.android.gms (then
com.android.vending, com.google.android.googlequicksearchbox)
3. dumpsys package dexopt
# .vending and .gms are "verify", .googlequicksearchbox is
# "speed".
Test: settings put global priv_app_oob_list 'ALL' # see the same result
Test: settings delete global priv_app_oob_list # see the same result
Test: atest SettingsBackupTest
Bug: 30972906
Bug: 63920015
Change-Id: Iba47b4763a026cdc94939db0a743822278917269
/frameworks/base/core/java/android/provider/Settings.java
7af8fe3e295f40b6c4e9d247fcfa5069735af1c9 08-May-2018 Rohan Shah <shahrk@google.com> Merge "Add knobs for tweaking blocking helper thresholds" into pi-dev
0350dab5b690652f78024a211c993f32fb766876 04-May-2018 Rohan Shah <shahrk@google.com> Add knobs for tweaking blocking helper thresholds

Added both blocking helper parameters to Global Settings to allow for
tweaking stats/values. Added listeners for value updates (so that
channels are updated properly with new thresholds).

Bug: 77143005
Test: manually, test cases
Change-Id: Ia5cfb29ca40500a694261bd5e9e60fa1f34e742a
/frameworks/base/core/java/android/provider/Settings.java
564942d0655e841fcb7c7dd7032f04b8fb45a111 05-May-2018 android-build-team Robot <android-build-team-robot@google.com> Merge "Convert RTT background throttle to a settable value (1/2)." into pi-dev
b3972f9d2351a877fc0be5841da3289d5a487ebf 02-May-2018 Michael Wachenschwanz <mwachens@google.com> Merge "Add Stable Charging Threshold for AppStandby" into pi-dev
b6e04d5383047f05beafcbb8d76886de47bf10e3 01-May-2018 Wei Wang <weiwa@google.com> Convert RTT background throttle to a settable value (1/2).

Bug: 69323456
Test: Manual test. Unit tests with runtest.sh.
Change-Id: I7dd3efc0ef3f0a12303f927da134abbd2383deb6
/frameworks/base/core/java/android/provider/Settings.java
43bda82c1088c00d23c152be5b3b7c82b3a4374a 30-Apr-2018 Ajay Nadathur <ajayns@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
06c0c3a9330c0ccf7e130222b738bfc4caad596b 27-Apr-2018 Chia-I Wu <olv@google.com> Merge "Add COLOR_MODE_AUTOMATIC" into pi-dev
a750da196031e2159aa8ff1f42934f20b87dfc96 27-Apr-2018 Sudheer Shanka <sudheersai@google.com> Merge "Schedule external stats sync on battery level change with a delay" into pi-dev
5ca5cb6c5350d8f79beb418251cad90eb152813e 26-Apr-2018 Michael Wachenschwanz <mwachens@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
0719c6af4442e1be5de766582398b8e6efb7b180 24-Apr-2018 Sudheer Shanka <sudheersai@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
4620d9b3a3e09884683e0a76c6b85b76405b276b 26-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add ADAPTIVE_BATTERY_MANAGEMENT_ENABLED" into pi-dev
1e0e7176bdbae9fd1f47351e6ed100c303535cab 14-Mar-2018 Chia-I Wu <olv@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
e56013aa312608c4cd7ea12d5bab1594534b137e 23-Apr-2018 Sudheer Shanka <sudheersai@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
4b976ad270c624b9ebd3721f0a4499edbe7379dc 19-Apr-2018 Lei Yu <jackqdyulei@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
af52d9815a3078a4aa3d92236854ecae902aa338 18-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add setting for GNSS location request update duration" into pi-dev
ff03f0cfe4c1fa8f6c2264ecd307c3bff8b9bfec 18-Apr-2018 Qingxi Li <qingxi@google.com> Merge "Add Global Settings to device whether show Carrier menu" into pi-dev
ead1271f1c25ff0649239880dbc1be8ac817ef82 12-Apr-2018 Qingxi Li <qingxi@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
58aa11bd1f8f6492eb1cb37d74669d11f3669d35 12-Apr-2018 Lifu Tang <lifu@google.com> Add an action to launch scanning settings

Needs to launch scanning settings from other apps

Bug: 77823544
Test: build and flash
Change-Id: If02b359dcbfee79b34b6b66abb3cf36a2a3412e3
/frameworks/base/core/java/android/provider/Settings.java
fb55bd87067fc044056e6f12ee36bd7c8d08cdc5 11-Apr-2018 Mathew Inwood <mathewi@google.com> Merge "Configurable sampling rate for hidden API access log events." into pi-dev
5177da3b01c2b8e23ff3820fe07b5761e8ee4d36 07-Feb-2018 Santos Cordon <santoscordon@google.com> Add SCREEN_BRIGHTNESS_FOR_VR to set of public settings.

This will allow the settings to be adjusted by any third party app,
just like SCREEN_BRIGHTNESS is today.

Additionally adds the default value to the SystemSettings database
on initial setup.

Test: After clean install check that the default value is in the DB via
'adb shell settings get system screen_brightness_for_vr'
Test: Verify that SCREEN_BRIGHTNESS_FOR_VR can be changed by a 3rd party
app with WRITE_SETTINGS permission.

Bug: 73090564
Change-Id: I93d167ab23652c39b0cf815eb40935be26b857a6
(cherry picked from commit 5956f49210f32b8ceabf860f904b5ca77ec9631c)
/frameworks/base/core/java/android/provider/Settings.java
04194fef78ecd75ea09cb9c75c211f5170e6f91d 04-Apr-2018 Mathew Inwood <mathewi@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
e5d97dd6f9e10c21568ae96a000e58834015bee9 10-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add link to onboarding screen" into pi-dev
9aa1c9e9256674de2e75d0fa1d61cc10a85d416b 09-Apr-2018 Julia Reynolds <juliacr@google.com> Add link to onboarding screen

Test: runtest systemui-notification
Bug: 77658931
Change-Id: I70210b5d5e0de27ff38a6b2f5d8201266b6ec4d6
/frameworks/base/core/java/android/provider/Settings.java
1ab3025cc761862392db757ed8c12de0574443f5 03-Apr-2018 Mathew Inwood <mathewi@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
1f596e0c2ea6437c7a689b7d6c928d5eb9765056 10-Apr-2018 Dianne Hackborn <hackbod@google.com> Merge "Fix issue #77721907: Add global setting to hide all error dialogs" into pi-dev
a1b3aa27dd5a9abdc2825bcd06bedd3e135cc9e9 10-Apr-2018 Christine Franks <christyfranks@google.com> Merge "Whitelist DISPLAY_COLOR_MODE setting for B&R" into pi-dev
1269960d992d94c00a66197bf35a96060cdc1300 31-Oct-2017 Christine Franks <christyfranks@google.com> Whitelist DISPLAY_COLOR_MODE setting for B&R

Bug: 68664032
Test: make -j100 && atest SettingsBackupTest && atest
SettingsValidatorsTest
Change-Id: I1d38acfcd3e6a0c228ae6891581b3218d4a67e6b
/frameworks/base/core/java/android/provider/Settings.java
1264d880e2c85786d3f8eedecb8e141471e2cd04 04-Apr-2018 Mehdi Alizadeh <mett@google.com> Adds entries for Swipe Up Enable in Settings.Secure

Bug: 77549883
Test: None
Change-Id: Ie346c4f527fa014eadbfaa1d81d7f8a5f37f653f
/frameworks/base/core/java/android/provider/Settings.java
82b17ca3400c7dc23d5df0c2dc1d4d7532c71107 07-Apr-2018 Dianne Hackborn <hackbod@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
70df72232148340a5f3ea85f0892272901939f49 09-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "More knobs for connectivity experiments." into pi-dev
3a7e021169c7afa8755c28a1295f3eff17ff8381 09-Apr-2018 Annie Meng <anniemeng@google.com> Merge "Don't backup/restore screen brightness" into pi-dev
219e139651f85423248459fb20cc06ad41a56307 09-Apr-2018 Robin Bennett <robinbennett@google.com> Merge "Add setting/experiment to send keycode sleep for ungaze when Home is the foreground activity." into pi-dev
ab3e7bdd62ec2707ed0bc6447f68b8f7f6012d0f 06-Apr-2018 Yu-Han Yang <yuhany@google.com> Add setting for GNSS location request update duration

Bug: 77696830
Test: atest SettingsBackupTest
Change-Id: I4514070ba12de2d1c4c47c03a9bf70d8f57fe197
/frameworks/base/core/java/android/provider/Settings.java
aeeb24e9cd59e64722527671f68ecb7731a5ea19 05-Apr-2018 Annie Meng <anniemeng@google.com> 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 931b41b71a411dd714025970aeb752c71e86b239)
/frameworks/base/core/java/android/provider/Settings.java
b1bcab2210b770ae6811fc0386766d2cd3449dca 06-Apr-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Implements GNSS satellite blacklist" into pi-dev
fe85e4589bc17e899f471dde1b6573f4673a31b9 05-Apr-2018 Hall Liu <hallliu@google.com> Merge "Move RTT system setting to Settings.Secure" into pi-dev
66c7ea91b413c9d812047288efb343c16b23d865 12-Mar-2018 Yu-Han Yang <yuhany@google.com> Implements GNSS satellite blacklist

Bug: 38269641

Test: m -j ROBOTEST_FILTER=GnssSatelliteBlacklistHelperTest RunFrameworksServicesRoboTests
Test: atest SettingsBackupTest
Test: Tested with adb on device

Change-Id: Ifaa330bf74353ea5c8826f0000d1935258b8dbf2
/frameworks/base/core/java/android/provider/Settings.java
44e41012ecaad1c8e5d78e0efb3b6d9d997a4108 03-Apr-2018 Hall Liu <hallliu@google.com> Move RTT system setting to Settings.Secure

Bug: 76449217
Test: manual
Change-Id: I85620d5b834aa7e04579212f3fd5cf6c0498b570
/frameworks/base/core/java/android/provider/Settings.java
36b414bc2de065ead88a384a8e877788a5db32f1 30-Mar-2018 Jeff Sharkey <jsharkey@android.com> More knobs for connectivity experiments.

Keep the same default values in place for calculating opportunistic
quotas, but now allow experiments to override these values.

Tests to verify behavior of defaults.

Bug: 72353440
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Change-Id: I38c225fd141b2e94085ca4cce17ecd51fee3f3aa
/frameworks/base/core/java/android/provider/Settings.java
1193a35bcdee2df2ac3880131e8890f50019ceb1 28-Mar-2018 Robin Bennett <robinbennett@google.com> Add setting/experiment to send keycode sleep for ungaze when Home is the
foreground activity.

Bug: 77253874

Change-Id: Ic799eec8439786ae20bb366b9d4e93ec30d34070
/frameworks/base/core/java/android/provider/Settings.java
9ab1da20525d31837b450e5f22243d89f2fbb997 04-Apr-2018 Remi NGUYEN VAN <reminv@google.com> Merge "Add settings to configure default multipath quota." into pi-dev
e0ec992630dbcb39776cf42d1489745abdd4b1d0 29-Mar-2018 Remi NGUYEN VAN <reminv@google.com> Add settings to configure default multipath quota.

Bug: 72631572
Test: Tests in go/ag/3828171 pass
Change-Id: I795debd0328ea7cad32c968cb4b407928e054528
/frameworks/base/core/java/android/provider/Settings.java
c610677258779173392ee145b1f1f2af6296813e 03-Apr-2018 Gil O'Neil <goneil@google.com> Merge "Made a note that app names may not contain delimiter characters" into pi-dev
cd21f1c5c2d0145ec48c727c13e07377b4b22312 30-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make battery saver suggestion configurable" into pi-dev
986fae20eafc3b36e5f827d70edb3863cb4817d0 30-Mar-2018 goneil <goneil@google.com> Made a note that app names may not contain delimiter characters

This includes ":" and ";"

Bug: 77241786
Test: None
Change-Id: Iabbfa7770e599d1fcd6ff76a55358d5e71e03a2b
/frameworks/base/core/java/android/provider/Settings.java
5b53875fdc24c041d198838bce294aa6e631b2e2 27-Mar-2018 Artem Iglikov <artikz@google.com> Clear app data before full restore for specified packages

In some cases (deferred restore) the app data needs to be cleared even
if the app has implemented backup agent. As a quick fix introduce
PACKAGES_TO_CLEAR_DATA_BEFORE_FULL_RESTORE secure setting, which
transport can fill prior to restore.

Bug: 69069240
Test: adb shell settings put secure packages_to_clear_data_before_full_restore com.google.android.apps.nexuslauncher && adb shell bmgr restore com.google.android.apps.nexuslauncher
Change-Id: I2a4651365d9cf4747f32d2ba69312f54cd03d118
/frameworks/base/core/java/android/provider/Settings.java
bc064d4b4b7685876b8cc48830e7571a5a3ecb2e 27-Mar-2018 Makoto Onuki <omakoto@google.com> Make battery saver suggestion configurable

Test: Manual test with: settings put global low_power_mode_suggestion_params start_nth=2,end_nth=3
Bug: 74120126

Change-Id: If165892477b41547a3880e2e961a38328b33c5bd
/frameworks/base/core/java/android/provider/Settings.java
452ae34af55cba26e6597fd3708f9e2bd5b0485f 27-Mar-2018 Makoto Onuki <omakoto@google.com> Merge "Add auto battery saver suggestion notification/dialog" into pi-dev
52c6295e22e6eb205300a5471c67ef26ae9466fa 22-Mar-2018 Makoto Onuki <omakoto@google.com> Add auto battery saver suggestion notification/dialog

Spec: go/ebs-low-battery-mode-flow

- Basically when the user manually enables battery saver 4 times,
we show this notification to suggest turning on "scheduled"
(i.e. auto) battery saver.

- We show it through 8th time. If the user hits "no thanks",
or if auto-saver is enabled already, we will not show it.

- Introduced a new notification channel "HINTS" with
IMPORTANCE_DEFAULT.

Bug: 74120126
Test: Manual test with ll development/scripts/battery_simulator.py

Change-Id: I713abc59dc7caee6882ba848c3e3aabaf778c2bd
/frameworks/base/core/java/android/provider/Settings.java
b429012907e8b48bf88c5ec5e91312c3379ca325 27-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add link to notification app listing in shade" into pi-dev
110a7c20f401771759bac6231c61938723dfb113 26-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Sticky battery saver" into pi-dev
ed1c9af6536be8d331d8df41babeda9a446d0355 21-Mar-2018 Julia Reynolds <juliacr@google.com> Add link to notification app listing in shade

Test: atest SystemUITests
Bug: 74318867
Change-Id: Ic309dfb08be0d41b7d524adc1b5910ab61b2d9fb
/frameworks/base/core/java/android/provider/Settings.java
a3cd7b9d53cdc98952365b12a8f9d5623726ed52 19-Mar-2018 Makoto Onuki <omakoto@google.com> Sticky battery saver

- When battery saver is enabled manually (i.e. via PM.setPowerSaveMode()),
it'll stick, and we'll re-enable battery saver even after a reboot
or a charge.

- Extracted all battery saver state transition logic into a separate
class.

Fix: 75033216
Bug: 74120126
Test: Manual test with "dumpsys battery set ...."
Test: atest $ANDROID_BUILD_TOP/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/BatterySaverStateMachineTest.java
Change-Id: If020cd48f341b339783fe09dd35bc7199e737a52
Test: dumpsys power
Test: incident_report power
Test: atest CtsBatterySavingTestCases
/frameworks/base/core/java/android/provider/Settings.java
4069f7a167a290bade2bd87ff7d1dbb6970fea46 26-Feb-2018 Richard Ledley <rledley@google.com> Add flag to control blocking Smart Replies for apps targeting an Android version below P.

Bug: 73802997

Test: atest SmartReplyConstantsTest

Change-Id: Id340cba09da7931ff6a4689802b3a5f594852a72
(cherry picked from commit 28944cbdcf15128b664ccdaed44c59d3fc64d1db)
/frameworks/base/core/java/android/provider/Settings.java
7384995cf80ed0e93943e2aa872bff435784bafd 23-Mar-2018 Alice Sheng <alicesheng@google.com> Merge "Add setting for disabling swap." into pi-dev
224e2fb2ef360f026ae2a8ab45d49e39ffc2561a 22-Mar-2018 Julia Reynolds <juliacr@google.com> Merge "Add vol up + power ringer toggle gesture" into pi-dev
b32b1ad3734e66d8df4940e741e35c228e9f8547 14-Mar-2018 Alice Sheng <alicesheng@google.com> Add setting for disabling swap.

Bug: 73089999
Change-Id: I89c50ae2badcb75c52652acaeb181a3161233375
/frameworks/base/core/java/android/provider/Settings.java
4e561f83cbfc1c05955f724db73c72366ad816eb 22-Mar-2018 Felipe Leme <felipeal@google.com> Merge "Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES." into pi-dev
dddd69ef3eb72edacc4961dc6a6f1ab0cddcf416 22-Mar-2018 Michael Plass <mplass@google.com> Merge "Add Settings.Global.WIFI_SCORE_PARAMS" into pi-dev
5527286e08f9ba26ef49ad9019bd3968bdaa69af 20-Feb-2018 Mike Digman <digman@google.com> Add vol up + power ringer toggle gesture

It only runs when the screen is on.

Test: manual, invoking gesture with different system settings
Bug: 75252670
Change-Id: I934d0bbb0a9fffecf34ebaadf77f3e1241d4faf7
/frameworks/base/core/java/android/provider/Settings.java
fd4003bf0949a4a33200621d0c6f33dbebfa14d3 21-Mar-2018 Felipe Leme <felipeal@google.com> Renamed AUTOFILL_COMPAT_MODE_ALLOWED_PACKAGES.

The syntax of that setting changed from P Developer Preview1 to the final P, so
it's safer to use a new name than risk breaking devices during the update.

Bug: 74458004
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest\
FrameworksCoreTests:SettingsBackupTest

Change-Id: I1c507e8eae20f598dfe259178667ae6c2bc892ff
/frameworks/base/core/java/android/provider/Settings.java
16a0dd2d5eeef320a80afe130e6c1e2946e8d2f1 20-Mar-2018 Makoto Onuki <omakoto@google.com> Implement new BS warning / notification flow (1/2)

- Show the battery saver confirmation dialog only for the first time.
- Start counting # of manual activations, which will be used in a
follow-up CL.

Bug: 74120126
Test: Manual tests with ./vendor/google_experimental/users/omakoto/android-battery-tester
Test: m -j ROBOTEST_FILTER=BatterySaverUtilsTest RunSettingsLibRoboTests
Test: cd frameworks/base/packages/SystemUI/tests && \
atest src/com/android/systemui/power/PowerUITest.java src/com/android/systemui/power/PowerNotificationWarningsTest.java
Change-Id: If6a081a6222e6a87c4cd332364c89856e7648a36
/frameworks/base/core/java/android/provider/Settings.java
01cee8e6862cabe5dd1d7bfebaa82fc5bb255ee6 21-Mar-2018 Ben Lin <linben@google.com> Merge "Add new Intent start a package's Open By Default page directly." into pi-dev
6ed6340e3cd43fc111fb4916b380da61eba834c4 21-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic "SoundTriggerJobService-steps" into pi-dev

* changes:
Throttle number of sound trigger operations / day
Add SoundTriggerDetectionService
Expose SoundTriggerManager and SoundTrigger APIs
f1510fbe7a87bce9100a520240282d8565906fba 01-Mar-2018 Michael Plass <mplass@google.com> Add Settings.Global.WIFI_SCORE_PARAMS

For experimentally varying parameters of the framework's various wifi
scoring methods.

Bug: 65216267
Test: atest SettingsBackupTest
Change-Id: I6b1476aff8c18e4dd2b5ae8d41b5a48d2b4de283
/frameworks/base/core/java/android/provider/Settings.java
0b08926fcb0391f47a07073553dd06c71d43ea4f 20-Mar-2018 Alice Sheng <alicesheng@google.com> Merge "Revert "Revert "Add setting for enabling CPU frequency scaling.""" into pi-dev
18e3eb816887156f40def1c14db434ddde9ec245 10-Mar-2018 Philip P. Moltmann <moltmann@google.com> Add SoundTriggerDetectionService

The service is meant to replace the PendingIntent based API. Once all
users of the PendingIntent based API switched the PendingIntent based API
will be removed.

To have as little as possible impact on the whole SoundTrigger framework
the RemoteSoundTriggerDetectionService class implements the same
interface as the PendingIntent based class. Hence the exising code has
very little change. Further once the old code can be removed the amount
of changed (and added) code is limited.

The RemoteSoundTriggerDetectionService -> SoundTriggerDetectionService
is a vanilla as possible service implementation. The special behaviors
are:
- The system holds a wakelock while service operations are in progress
and the service is bound as foreground. Hence the service can e.g.
listen to the microphone.
- Service operations have a certain amount of time they are allowed to
run. Once every operation is either finished or the the operation
exceeded the allotted time, the system calls onStopOperation for each
still pending operation. This is a similar model as for the commonly
used JobService.
Please note that if the time allowed for an operation is 15s and
op1 was run as 0si, and op1 was run at 5s, the service is allowed to run
until 20s. Hence _both_ onStopOperations will happen at 20s. This is
done for ease of implementation but should not give the service more
power than calling onStopOperation exactly 15s after each operation is
triggered.
- If an operation is done before the allotted time is reached, the
service can declare the operation as finished manually by calling
onOperationFinished. This is a call back into the system, hence a
'client' binder is sent to the service. If the operation is finished
by calling this method onStopOperation will not be called.
- As the service instance might be killed and restored between
operations we add a opaque bundle 'params' to each operations. The users
of the API can use this to send data from the start command to the
operations. It can also just be set to null. The params are not meant to
store changing state in between operations. Such state needs to be
persisted using the regular methods (e.g. write it to disk)
- A service can be used for multiple recognition sessions. Each
recognition is uniquelity defined by its sound model UUID. Hence each
operation gets at least tree arguments: Operation ID, sound mode UUID, params
- As a small optimization the params are cached inside of the service
instance.

The time allowed for each operation is in a @SystemAPI global setting,
so the service can make sure it finishes the operations before they are
stopped. It might take some time to deliver the operations via the
binder, hence it is not recommended to try to use every last ms of
allotted time.

Test: atest SoundTriggerDetectionServiceTest (added in separate CL)
atest android.provider.SettingsBackupTest
Change-Id: I47f813b7a5138a6f24732197813a605d29f85a93
Fixes: 73829108
/frameworks/base/core/java/android/provider/Settings.java
039deb4390fee97d50c474202dfe5de0616f9772 20-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Moves the settings changed logging for statsd." into pi-dev
c97870a91ab4eadb03dec6fbdebd01cb6663ae3d 14-Mar-2018 Anthony Stange <stange@google.com> DO NOT MERGE Add scan background mode to Settings.Global.

This enables us to mess with the different scan intervals and shift
clients to a different scan mode in the background based on what scan
interval values we choose for the different power modes.

Bug: 71765044
Test: None. Just adding a key.
Change-Id: Id48ebc521dd3fe8a68c9c4c0bdb1018ea5b3743e
/frameworks/base/core/java/android/provider/Settings.java
bd78991bc6a1319c97172a53fd1c0bddb3200332 17-Mar-2018 David Chen <dwchen@google.com> Moves the settings changed logging for statsd.

Previously, we wrote a log entry regardless of permission checks, so
the logging could be misleading. Now we only send the log to statsd
after verifying that this setting mutation is valid.

Test: Flashed onto marlin-eng and verified stats-log as expected.
Bug: 73493944
Change-Id: I2a8b052aa8c380ffc5d15caec089fffcdc5823f4
/frameworks/base/core/java/android/provider/Settings.java
59a9488f507cf494092bcd9ce1cf2c1c88937ee4 20-Mar-2018 Alice Sheng <alicesheng@google.com> Revert "Revert "Add setting for enabling CPU frequency scaling.""

This reverts commit 6750352248bcce6668eabd1911d092b7fe31a1cd.

Reason for revert: Added SElinux policy to allow the service to be started. Verified by local testing on the latest pi-wear-dev.

Bug: 74018496
Bug: 75974893
Change-Id: I9bd8939f6292be9c160e19ebdf934023792059ba
/frameworks/base/core/java/android/provider/Settings.java
7723aed494798afa0ac01998226eec8c6397fb78 19-Mar-2018 Alice Sheng <alicesheng@google.com> Merge "Revert "Add setting for enabling CPU frequency scaling."" into pi-dev
6750352248bcce6668eabd1911d092b7fe31a1cd 19-Mar-2018 Alice Sheng <alicesheng@google.com> Revert "Add setting for enabling CPU frequency scaling."

This reverts commit 2e8afd8736cba3352bcbf585461becb20a7c7600.

Reason for revert: SELinux Boot crash
Bug: 75974893

Change-Id: I4751530a1b460842130a495efe688aaf19b92638
/frameworks/base/core/java/android/provider/Settings.java
f4f317798b05634bac9fe94e33b71806e21ff6b8 19-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Settings: Remove unused bg scan throttle settings" into pi-dev
e9b60f2cd3d89a7dc46bbe26055fb30b9ef2945f 19-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add setupwizard personalisation state to Settings" into pi-dev
1799f2b878e635120ad6f0846b82296baa8ffe47 19-Mar-2018 Alice Sheng <alicesheng@google.com> Merge "Add setting for enabling CPU frequency scaling." into pi-dev
9c396677d9e7e6f290e80275626b1df712493bac 02-Mar-2018 Roshan Pius <rpius@google.com> Settings: Remove unused bg scan throttle settings

Bug: 68987915
Test: Compiles
Change-Id: I49b213f0d63f2a639e45c2239506787d31ae866a
Merged-In: Id878daa0f782ddc751e726ee19cdc1c8e5ea1bc2
/frameworks/base/core/java/android/provider/Settings.java
702fc647f3361baa8f646cf3f3f0b72b08e37bf2 09-Mar-2018 Ajay Nadathur <ajayns@google.com> Add setupwizard personalisation state to Settings

bug: 74396457
Test: Manually tested and verified
Change-Id: I84b8cf7c45818131f903743b6c42cfeffe1c7194
Merged-In: I84b8cf7c45818131f903743b6c42cfeffe1c7194
/frameworks/base/core/java/android/provider/Settings.java
5f5a0bf00df7d2c6e5ef3ae47293195195b6c84a 16-Mar-2018 Michael Kwan <mkwan@google.com> Modify time only mode flag into set of values instead of just one.

The time only mode flag has not been used yet, so the change should
be low impact.

Bug: 38259902
Test: m -j32
Change-Id: Ie01870633dbaaf51989a148f105a995f58f0da4e
/frameworks/base/core/java/android/provider/Settings.java
d069a888cf32f105bf6843a7083770f5b82af74e 13-Mar-2018 Annie Meng <anniemeng@google.com> DO NOT MERGE Create a setting for backup/restore agent timeouts

Part of push to make backup and restore agent timeouts configurable. Creates
a Global setting for the current static BackupManagerService timeouts so
that they can be overriden with P/H. We keep the current default values,
which will be updated once we investigate what more appropriate values are.

Remame the constants to better reflect what they're used
for. Next, we will update the framework to use these constants.

This depends on the refactor of how we observe changes to key value
backup settings (ag/3709997).

Bug: 70276070
Test: m -j RunFrameworksServicesRoboTests ROBOTEST_FILTER=BackupAgentTimeoutParametersTest
Change-Id: Id506314ce0c8bd5e4d1d8b4001b26cbad0056c99
/frameworks/base/core/java/android/provider/Settings.java
d4b6c8c16204ccd0b0e6d452b1831f7a965fbccd 15-Mar-2018 Primiano Tucci <primiano@google.com> Merge "perfetto: Add setting to enable/disable traced" into pi-dev
cf92ca169b583225793a483d1a1f5164371535e6 07-Mar-2018 Hector Dearman <hjd@google.com> perfetto: Add setting to enable/disable traced

This will help us run P/H experiments by controlling the
whether traced runs through P/H.

This will allow to gradually roll out traced and, in an
emergency, remotely disable it.

Run:
$ adb shell 'ps -A | grep traced'
Should see traced.
$ adb shell 'settings put global sys_traced 0'
$ adb shell 'ps -A | grep traced'
Should no longer see traced.

Test: See above.
Bug: b/71737179
Bug: b/74383547
Change-Id: I1f564421d9abae14d7d80769e9517eb363dae33a
Merged-In: I1f564421d9abae14d7d80769e9517eb363dae33a
/frameworks/base/core/java/android/provider/Settings.java
41b5ece1359db36c59a38629225c75da7513e9cd 14-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "incidentd: cleaning up settings.proto" into pi-dev
3699c36d24f3948bf3b89982eff0db4dbe0442cf 13-Mar-2018 Kweku Adams <kwekua@google.com> incidentd: cleaning up settings.proto

This also fixes dumping of settings that use a prefix.

Since the proto isn't being used yet, I thought it would be nice to
clean it up so we start using it with a clean format.

Bug: 74611860
Test: flash device and check incident output.
Change-Id: Ib99ccab7929208cf8b4404715b0bd417852314c6
/frameworks/base/core/java/android/provider/Settings.java
4457bb8e0427f05f8c747ef7d106b169f338e4e2 13-Mar-2018 Antony Sargent <asargent@google.com> Update comment for HAPTIC_FEEDBACK_ENABLED setting

The current comment is a little confusing, and this ends up in the
public documentation here:

https://developer.android.com/reference/android/provider/Settings.System.html#HAPTIC_FEEDBACK_ENABLED

See b/22390263 entry for a link to at least one instance where an actual
developer was confused by this.

This CL changes the comment to match what we call the setting in the UI
of the Settings app. Note that it's possible this could become stale
someday (e.g. we used to label this "Vibrate on touch" and switched to
"Vibrate on tap" at some point), but this description will probably
still be ok and remain an improvement over what we have now.

Bug: 22390263
Test: N/A (comment only change)
Change-Id: I717a7c5a2f9ecc38cfe6f0c1c0379a868f810782
/frameworks/base/core/java/android/provider/Settings.java
2e8afd8736cba3352bcbf585461becb20a7c7600 12-Mar-2018 Alice Sheng <alicesheng@google.com> Add setting for enabling CPU frequency scaling.

Bug: 74018496
Change-Id: I97a6828b6248ae6850e615a4840469420dbaf918
/frameworks/base/core/java/android/provider/Settings.java
75431913efb867a7052ffdd48eef6a5ed8ec4e08 12-Mar-2018 Beverly Tai <beverlyt@google.com> Merge "Using zen duration preference" into pi-dev
9e56800b6e4648ea4df594b6a2ef3da1f2e16595 12-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Moved urlBarResourceId from autofill service manifest to whitelist settings." into pi-dev
1c7eb0c8eb156c4656f2d3e1b97929797e4e7ec9 09-Mar-2018 Felipe Leme <felipeal@google.com> Moved urlBarResourceId from autofill service manifest to whitelist settings.

The manifest attribute is still public as it might have been used by autofill
services deployed against P DP1; it will be removed after the next developer
previs is branched out. We also need to assumie a default value for the buttons
if not specified by settings, but that will be done in a separate change so it
can be easily reverted.

Also implemented support for multiple buttons, and added unit tests.

Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest \
CtsAutoFillServiceTestCases:VirtualContainerActivityTest \
FrameworksServicesTests:AutofillManagerServiceTest

Bug: 74445943
Bug: 72811561
Fixes: 73786629

Change-Id: I066ecf40fde2c5318dd8633a659fca8b7af8aecd
/frameworks/base/core/java/android/provider/Settings.java
33975d7a3b255d720ae6cd465ceaeb0a0b18f1f9 10-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Permit all daltonizer settings to be restored" into pi-dev
7b8c8e2e1b674e5b1c3bc7336e1a7c41f20849ce 09-Mar-2018 Phil Weaver <pweaver@google.com> Permit all daltonizer settings to be restored

Bug: 74434715
Test: make
Change-Id: I832e209ff96bf10084f409858d0fb46310fae4f4
/frameworks/base/core/java/android/provider/Settings.java
fa63f6895b02c64eb9d57fdc95d490190f565efc 09-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add global setting for auto-battery saver threshold max" into pi-dev
53f3f15654a12a820e08cd5d42b5f94d061598ab 01-Mar-2018 Rohan Shah <shahrk@google.com> [QS] Update Cellular/data usage tile

Updated intent and API. We were using an explicit intent and there's
changes going on in the Settings team that change the activity name and
enabled states. Updating to an implicit event as with other parts of the
Settings app (e.g. Bluetooth).

Test: Visually
Bug: 73586207
Change-Id: Ifa5125b4770927521d9267569d487319efdb9f9f
/frameworks/base/core/java/android/provider/Settings.java
524b4dfe3a91aa086fd96a77f3ecb8234723ad91 07-Mar-2018 Makoto Onuki <omakoto@google.com> Add global setting for auto-battery saver threshold max

Bug: 74351418
Test: Manual test with "settings put global low_power_trigger_level_max 100"
Change-Id: I9a936facdca64915748f5d85c16edd553a3c6003
/frameworks/base/core/java/android/provider/Settings.java
09da25f00d0d8cd6625b6ba6f184d4a182b04e7f 26-Feb-2018 Beverly <beverlyt@google.com> Using zen duration preference

Test: make ROBOTEST_FILTER=ZenDurationDialogTest RunSettingsLibRoboTests -j40
Bug: 73741459
Change-Id: Ide76ac8016b84f128c47ad3731eeced25dce8c73
/frameworks/base/core/java/android/provider/Settings.java
5a169cf2f6495cfd408ae607701f06cb497f6df3 07-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "System sounds get its own dnd toggle" into pi-dev
3cd42a0a04ee7b0860ed1df05dc938f387945c6a 27-Feb-2018 jackqdyulei <jackqdyulei@google.com> Add APP_AUTO_RESTRICTION_ENABLED

This config is used in aosp to auto restrict anomaly app.
Also add it to backup, dump and proto.

Bug: 73002171
Test: Build
Change-Id: I3d198e8856e2431f9ab7350a6dd897f1a6010002
Merged-In: I3d198e8856e2431f9ab7350a6dd897f1a6010002
(cherry picked from commit 1d9c0aa9401e35066aca95a5d062018c151d502f)
/frameworks/base/core/java/android/provider/Settings.java
d696476fb31a203db38c7c31c347b27c8fda84ef 16-Feb-2018 Beverly <beverlyt@google.com> System sounds get its own dnd toggle

- Added logic for streams to be muted by dnd (unassociated with ringer)

Test: runtest -x frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Bug: 73362490
Change-Id: I1101e67282f7331497e91eb510d2bf4f1ea6b4b1
/frameworks/base/core/java/android/provider/Settings.java
296f80a539c99e1d8c9346fd6bf35d118c17d644 28-Feb-2018 Ben Lin <linben@google.com> Add new Intent start a package's Open By Default page directly.

Bug: 74010481
Test: None

Change-Id: I63ad4c834e38a718cf444ebc544ee3cb5f38c09d
(cherry picked from commit 1c0e3451cdfee9acacb675c33db7c4dbb227b880)
/frameworks/base/core/java/android/provider/Settings.java
b6b0495af3f4c9cd6fda442c728478c1a6ac19f5 20-Feb-2018 yuanlu <yuanlu@google.com> Add the flag for only alowing wifi on charger/network request option

Bug: 72828389
Test: atest
frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: I137e9cf4b9d5d9760bf05139bd6ead5973b13724
/frameworks/base/core/java/android/provider/Settings.java
df7105a993a101a5e21c6dc30cf780a626fd112a 02-Mar-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Re-enable cross-profile use of spell checker APIs"
5518c752ba5d50b4314227b649f7b6c178ff2b63 27-Feb-2018 Mathew Inwood <mathewi@google.com> Add HIDDEN_API_BLACKLIST_EXEMPTIONS to @TestApi.

It's used by a CGTS test.

Bug: 64382372
Test: It builds
Change-Id: I4bde625a89896140b2e8bf585d16074d290c0fc9
/frameworks/base/core/java/android/provider/Settings.java
3f8c568883e5df9dd0c44d19c5c4d23edd3756c3 01-Mar-2018 Yohei Yukawa <yukawa@google.com> Re-enable cross-profile use of spell checker APIs

Recently we successfully removed the restriction that up to one
SpellCheckerService can be active at the same time [1]. This still
makes much sense at high level, but at the ecosystem level there are
still some products / components that depend on the previous behavior
that child profile users can use parent profile's spell checker
service, which was originally introduced as a stopgap solution for
Android N MR1 [2].

Our decision for Android P for now is to revert back to the previous
behavior only when the calling process is running under work
profile.

At the implementation level, we can summarize the new behavior as
follows:
* When TextServicesManager APIs are called from work-profile
processes, those API calls will be evaluated with parent-profile's
user ID to match the previous behavior [2].
* If the currently selected spell checker is not a pre-installed
one, then API calls from work profile will fail to match the
previous behavior [2].
* When TextServicesManager APIs are called from non work-profile
processes, those API calls will continue being evaluated with
calling user ID, as we planned for Android P [1].
* TextServicesData will not be created for child profile users.

[1]: I06c27ef834203a21cc445dc126602c799384527b
06a2624049f09e1ad68f8ab74fdb525aacd5c1e5
[2]: Iae9045ba5baccd04ed68906e7afb9160677ec4a5
095fa371643b1d8e829067ea4ed93c357b39e773

Bug: 63041121
Bug: 64718412
Bug: 70922751
Bug: 73609140
Fix: 73862883
Test: atest FrameworksCoreTests:com.android.internal.textservice.LazyIntToIntMapTest
Test: Manually tested with Test DPC as follows:
* When AOSP Spell Checker is pre-installed and the current spell
checker, both main profile and work profile can use AOSP spell
checker.
* When SampleSpellCheckerService is side-loaded and the current
spell checker, only main profile can use
SampleSpellCheckerService.
Change-Id: Ic046f832f203115106409a53418a5746eb6d4939
/frameworks/base/core/java/android/provider/Settings.java
fa6d6d963bc5e2c0e04f7d5b27688e281dd1ca49 01-Mar-2018 Abodunrinwa Toki <toki@google.com> Merge "Add TCM.getTextClassifier(int type)"
c7073a4b050238457074cc5c290d77bd95bde928 01-Mar-2018 Abodunrinwa Toki <toki@google.com> Add TCM.getTextClassifier(int type)

Bug: 72747726
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: I0d6cb5eaf3f9baa0564672c4d4b680fb00f40a51
/frameworks/base/core/java/android/provider/Settings.java
50b611070fed444d9826ff44d8f840b7be81f225 16-Feb-2018 Damien Bargiacchi <drb@google.com> Add setting for off body, radio off feature

Bug: 72714112
Change-Id: I8a632983c6c60ae195afa5bd6bdb677719bc5044
/frameworks/base/core/java/android/provider/Settings.java
db8fc314d2ac9a2ce3209fe9e842c985e6f57d06 26-Feb-2018 Abodunrinwa Toki <toki@google.com> Associate TCconstants with the TCM instead of TCImpl

Also updates flags list.

Bug: 72946306
Bug: 72946123
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationManagerTest
Test: bit FrameworksCoreTests:android.view.textclassifier.TextClassificationConstantsTest
Test: bit CtsWidgetTestCases:android.widget.cts.TextViewTest
Test: bit FrameworksCoreTests:android.widget.TextViewActivityTest
Change-Id: I8af9d3d1da01836fbadcbbf6ce7c1c0db7456a05
/frameworks/base/core/java/android/provider/Settings.java
e23ece0212bb9f4b4538291e7c74f1d36ed8437c 27-Feb-2018 Jiuyu Sun <jiuyu@google.com> Merge "Mark EUICC_PROVISIONED as @SystemApi."
5075264b6d0a9b2981713b6f65a4a65d2e9afce8 15-Feb-2018 Mike Digman <digman@google.com> Add intro mode to rotate suggestion button

Ripples the button multiple times when in intro mode

Test: manual
Change-Id: I16ada6014077298aa393ca495db1cd2b275b90dd
/frameworks/base/core/java/android/provider/Settings.java
15f5a7ef45992ecf88c52dcc2e2733a8c9bede84 17-Feb-2018 goneil <goneil@google.com> Store carrier app name in global settings for SIM dialog/notification

Bug: 70042722
Test: Manual QA
Change-Id: If3e97e90a37ac4e585a64c21ddfe234259cd0813
/frameworks/base/core/java/android/provider/Settings.java
183a553273ccbec7b32bfb5611dd88d9c524ab9f 23-Feb-2018 Gil O'Neil <goneil@google.com> Merge "Allow certificates to be stored in the carrier app whitelist"
fb83c73f370955771370639f96e0fbfce36ab522 23-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "STOPSHIP: Roll forward: Add UidCpuPower global setting"
5649922b7c429d2a4b80bd1f6145139d57868967 23-Feb-2018 Christine Franks <christyfranks@google.com> Merge "Support forced Night Display auto mode"
6db18a9badeaf76ccfdbf745fa356f2fe024df87 11-Jan-2018 goneil <goneil@google.com> Allow certificates to be stored in the carrier app whitelist

Use CARRIER_APP_WHITELIST to store app certificate mapped to package
name (instead of just package name as we had before).

Bug: 70042722
Test: SettingsBackupTest
Test: UiccProfileTest#testParseWhitelistMapFromString() for parsing map
Change-Id: Ia0c7c364cd8154272ef62cbbf412036b4eae1b21
/frameworks/base/core/java/android/provider/Settings.java
0aacdb665cc42a64b5ecdfe1011bb3f19fea6d58 19-Feb-2018 Jan Althaus <jalt@google.com> Make default entity lists flag configurable

Bug: 73277686
Test: bit CtsViewTestCases:android.view.textclassifier.cts
CtsTextTestCases:android.text.util.cts
FrameworksCoreTests:android.view.textclassifier
Change-Id: I84be54fb407088ee25c3ba2d4d62708a898621ad
/frameworks/base/core/java/android/provider/Settings.java
b85013a8844cbf4ac4e6fa0086cd8a5256c668e2 22-Feb-2018 Holly Jiuyu Sun <jiuyu@google.com> Mark EUICC_PROVISIONED as @SystemApi.

Bug: 35851809
Test: test on phone
Change-Id: I1627aeaf6846e889767fb4223c46fa278a751b23
/frameworks/base/core/java/android/provider/Settings.java
8ad6f6d6710191a7c2cdcccdd61f7df1da2a9268 14-Dec-2017 Christine Franks <christyfranks@google.com> Support forced Night Display auto mode

Bug: 69973773
Test: make -j100

Change-Id: Ifc1cb5d35f5d5b4ad988b8add04008332cf37dbe
/frameworks/base/core/java/android/provider/Settings.java
31efdc385c8fef30e0cda2863b3d5c3c995d55c5 19-Feb-2018 Jan Althaus <jalt@google.com> Adding logging for generateLinks

Bug: 67629726
Test: Added test and manually verified end-to-end
Change-Id: If5d20b7102b875a898a2fb897b624773554c9083
/frameworks/base/core/java/android/provider/Settings.java
04e7a9b07084e8a3cb1cbad0b4d4e42b64fa5d83 02-Feb-2018 Marissa Wall <marissaw@google.com> STOPSHIP: Roll forward: Add UidCpuPower global setting

This will help us run P/H experiments by controlling the
uid cpu power system property through P/H.

b/70517018
Test: adb shell settings put global sys_uidcpupower 1
verify via getprop sys.uidcpupower

Change-Id: I8cf7365be885ef4910e37d3f993ba3079e15a37d
/frameworks/base/core/java/android/provider/Settings.java
b331d1f1ef96e24838abeb15ac0310e376d707d4 18-Feb-2018 Bernardo Rufino <brufino@google.com> Merge "Add local transport parameters for transport flags GTS test"
0c200baed436c2c9d4e842f6ca47e4f9d52b2f14 17-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Minor autofill changes to support compat mode CTS tests."
47b37aa03480837a7cbbce8a1201554e102fd781 16-Feb-2018 Svet Ganov <svetoslavganov@google.com> Minor autofill changes to support compat mode CTS tests.

Bug: 72811561
Test: atest CtsAutoFillServiceTestCases:VirtualContainerActivityCompatModeTest

Change-Id: I6ec2563cea75afc77a1598805988d8e6c433c574
/frameworks/base/core/java/android/provider/Settings.java
ac417a56afa691b0489fd339f382d6cebe80bfb5 17-Feb-2018 Sudheer Shanka <sudheersai@google.com> Merge "Read per-uid cpu times less often."
5e4bebb891553e0bec7abd499bb3848f89aef94f 16-Feb-2018 Jeff Sharkey <jsharkey@google.com> Merge "Better handling of NTP-based clocks."
9911a28adb3b1196fe912ff5b65b8d5cbc7321ec 15-Feb-2018 Jeff Sharkey <jsharkey@android.com> Better handling of NTP-based clocks.

Now that we have a nice Clock abstraction, we can use it to represent
a clock backed by an NTP fix. (This makes testing logic much easier
to write.)

We now rely completely on NetworkTimeUpdateService to keep our NTP
fix up to date, instead of trying to refresh in the middle of
critical paths which could trigger random ANRs.

Add internal FallbackClock to make it easier to handle missing NTP
fixes. Add internal SimpleClock to let implementers focus on single
millis() method.

Test: bit FrameworksNetTests:com.android.server.net.NetworkStatsServiceTest
Test: bit FrameworksServicesTests:com.android.server.NetworkPolicyManagerServiceTest
Bug: 69714690, 72320957
Change-Id: Ic32cdcbe093d08b73b0e4b23d6910b23ea8e1968
Exempt-From-Owner-Approval: approved in previous PS
/frameworks/base/core/java/android/provider/Settings.java
1d84b1734ddf5c7c0daa59faae995ad1006f42e6 16-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding maximum input size checks"
eaa78b92a5ef191d8c581811b2d15920011e0e02 26-Jan-2018 Bernardo Rufino <brufino@google.com> Add local transport parameters for transport flags GTS test

Added parameters for local transport in secure setting for setting up
local transport to test transport flags GTS test.

Test: GTS test in topic CL.
Bug: 73100304
Change-Id: If654175d91fdf1ea68db0f3320d59b2b770a4db3
/frameworks/base/core/java/android/provider/Settings.java
4e0f11c65fe79b4de18367f67dc1e8fe8f013656 16-Feb-2018 Hall Liu <hallliu@google.com> Merge "RTT bugfixes, part 5"
97685b49f3e122d44698bc97bca2c6c04eb95b99 15-Feb-2018 Gil O'Neil <goneil@google.com> Merge "Move from an alert dialog to a full screen dialog for SIM app install"
c20379e6ec8057f8566ba05f74e527e5c081d033 15-Feb-2018 Sudheer Shanka <sudheersai@google.com> Read per-uid cpu times less often.

Schedule the read with a delay and ignore any
proc state changes during this delay duration.

Bug: 73437192
Test: atest com.android.internal.os.BatteryStatsTests
Change-Id: Ica6ec3f16ed911091e79102a2a62210edcaddf94
/frameworks/base/core/java/android/provider/Settings.java
e9aa338817ed0a7ab1668e4d4fe176311b6476b9 15-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Autofill Field Classification improvements."
08aba3cc544cd95af55922e7f259722e3f146ccd 15-Feb-2018 Svetoslav Ganov <svetoslavganov@google.com> Merge "Don't hold the autofill lock when looking up fill compat packages"
febb733c1b170ccba0668e50beef1e230dc51eda 13-Feb-2018 Felipe Leme <felipeal@google.com> Autofill Field Classification improvements.

* Changed the remoteId -> userValue API to userValue -> categoryId so the
category could map to multiple values (for example,
"email" -> "email1", "email2")
* Added method and settings for maximum number of category ids.
* Tuned the default value of some settings.

Bug: 70407264

Test: atest CtsAutoFillServiceTestCases:UserDataTest \
CtsAutoFillServiceTestCases:FieldsClassificationTest \
SettingsBackupTest

Change-Id: I27f348c500077937c0f4bf65db6a899fa3c41cf6
/frameworks/base/core/java/android/provider/Settings.java
a6ebff0f0ba66274b333a157c3f15d7c38527fe5 14-Feb-2018 Svetoslav Ganov <svetoslavganov@google.com> Don't hold the autofill lock when looking up fill compat packages

Test: cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases

Bug:73072565

Change-Id: I773e1e2f4ceedbe45c9389a065dc7f6fb0ab65b1
/frameworks/base/core/java/android/provider/Settings.java
1a7aedcb109ed2548fc6c6fcefa5329af23f827b 15-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Stop restoring ENABLED_INPUT_METHODS"
4291960c7dfbd5ddc6458385a09341f3cf006a48 24-Jan-2018 goneil <goneil@google.com> Move from an alert dialog to a full screen dialog for SIM app install

Bug: 70906683
Test: Local install and tests
Change-Id: Idafee66814ec3e7b8a4a1254ba5f3e55b7bf864a
/frameworks/base/core/java/android/provider/Settings.java
a549fed5185d6c0aa602a399a8da1ef963308cd0 10-Feb-2018 Hall Liu <hallliu@google.com> RTT bugfixes, part 5

* Add a new API to allow Telecom to inform ConnectionServices when the
RTT text stream changes
* No longer set the RTT property from ConnectionService. Client apps
should be setting properties themselves.
* Add Dialer-side RTT property in order to remove the dependence on
checking the RTT streams, which have a complex lifecycle

Bug: 72951201
Bug: 72648661
Test: manual, with real RTT calls and Dialer's SimulatorConnection, also
cts
Change-Id: Ic4c7d883d2dc6baf8e8c0eaa4df58d7de8762b9e
/frameworks/base/core/java/android/provider/Settings.java
169cb3b4949a9bb5e3face59f3c2baf9dbcd4f45 08-Feb-2018 Mathew Inwood <mathewi@google.com> Hidden API blacklisting killswitch.

Just support "*" for now, meaning disable all API blacklisting for all
apps.

Test: Manually verified by:
- installing test app that accesses hidden API
- manually blacklist the API
- $ adb shell settings put global hidden_api_blacklist_exemptions \\*

Change-Id: I9a41a104742c9aaaf3a753e7b0f3a1106e37d4d3
/frameworks/base/core/java/android/provider/Settings.java
3bae4e5d86e310cddcfe74d234a1b721058007e0 07-Feb-2018 Beverly <beverlyt@google.com> Zen upgrade notification

Test: runtest --path /extra/master/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ZenModeHelperTest.java
Change-Id: Ia31f89af74d9bcee40e050bd6cc13f1e6a9a15d9
Fixes: 73000503
Fixes: 72876890
Fixes: 73110052
/frameworks/base/core/java/android/provider/Settings.java
aad2b51bb14cdee4529616cfe241db39ea4e6cdd 07-Feb-2018 Makoto Onuki <omakoto@google.com> Sync too many retries

- When an one-shot sync with app-standby exempt fails too many times in a row,
drop the "exempt from app-standby" flag.

- Also obtain some constants from global settings so we can change them
in CTS.

Bug: 72443754
Test: Manual test (CTS WIP)

Change-Id: Ibdbb348a7ff26a0be04b8f2c256e1f6ead39907d
/frameworks/base/core/java/android/provider/Settings.java
ceb94979e32b20496c64f6f454b4f1dbe1856341 12-Feb-2018 Qingxi Li <qingxi@google.com> Merge "Public EuiccManager APIs."
10011fa917849e78b70c323b27a661f64ae0a1b1 05-Feb-2018 Petr Cermak <petrcermak@google.com> Replace smart reply boolean setting with key-value list

This patch replaces the recently introduced
Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS boolean setting
with a new Settings.Global.SMART_REPLIES_IN_NOTIFICATIONS_FLAGS
key-value list.

Rationale: This will allow us to add and tweak smart reply parameters
without polluting the global settings namespace.

Bug: 67765414
Test: atest SmartReplyConstantsTest
Change-Id: I284bb6b31618a234c4772d16ad6190a713035f1b
/frameworks/base/core/java/android/provider/Settings.java
4f73b9c09ac6ae73c22ad02872e362c817ab2d4c 13-Dec-2017 Holly Jiuyu Sun <jiuyu@google.com> Public EuiccManager APIs.

Public EuiccManager and other related necessary files.
Mark EuiccCardManager and other related necessary files as @SystemApi.
Solve lint errors and warnings.

Bug: 35851809
Test: test on phone
Change-Id: I68853e134e1e31fa9b91a83af6c491a2a8cca971
/frameworks/base/core/java/android/provider/Settings.java
b6276fe5a3d77abccf117de303efc183e78001e4 08-Feb-2018 Jiuyu Sun <jiuyu@google.com> Merge "Revert "Public EuiccManager APIs.""
d3bb4aed78b75365fc0d18fc31750d86404a1f47 08-Feb-2018 Jiuyu Sun <jiuyu@google.com> Revert "Public EuiccManager APIs."

This reverts commit af6a5fffdc5ef30065f8bc2d1280bbd87eae3c64.

Reason for revert: <INSERT REASONING HERE>

Change-Id: Id3296a91e5c3ad624a6a03f6532b859524a518bf
/frameworks/base/core/java/android/provider/Settings.java
7fdd2bf7c133ef17f9c8510981b976e8f3c7475f 08-Feb-2018 Jiuyu Sun <jiuyu@google.com> Merge "Public EuiccManager APIs."
af6a5fffdc5ef30065f8bc2d1280bbd87eae3c64 13-Dec-2017 Holly Jiuyu Sun <jiuyu@google.com> Public EuiccManager APIs.

Public EuiccManager and other related necessary files.
Mark EuiccCardManager and other related necessary files as @SystemApi.
Solve lint errors and warnings.

Bug: 35851809
Test: test on phone
Change-Id: Id7895f9b35ce9d4fb6fae42ba89ca9b29dbfa74c
/frameworks/base/core/java/android/provider/Settings.java
eafb54143909389dbc6d6120a55c70a1c5036a27 06-Feb-2018 Christine Franks <christyfranks@google.com> Change night display auto mode Validator type

NIGHT_DISPLAY_AUTO_MODE_VALIDATOR was incorrectly aliasing
BOOLEAN_EVALUATOR. As the valid values for this setting are { 0, 1, 2 },
when 2 (sunset-sunrise auto mode) was restored, the restoration would
fail.

Bug: 72992475
Test: B&R a device from the cloud with a sunrise-sunset auto mode.
Change-Id: I2dcb746847054e1f3d93731790a4d534f927ae28
/frameworks/base/core/java/android/provider/Settings.java
ca7809507c3b40a6eb47e7dd8822744d5901254c 07-Feb-2018 Yohei Yukawa <yukawa@google.com> Stop restoring ENABLED_INPUT_METHODS

This CL logically reverts the following CL to stop restoring
Settings.Secure.ENABLED_INPUT_METHODS during the new device/user
setup.

* If0104151b3526da6ecc669adde3119a239ecafeb
7b9a28c7f0a7b88ed1ea777edc05002d2d2b38b7

This CL also partially reverts the following CL because part of that
CL is no longer necessary.

* I94b4039c9f54c341aec72b62579be3dd8bd84dbb
964943ab98874a91be04f9ea2137861c93f6ffd3

In theory we should have been able to revert most of the following CL,
but other team it is already used by other projects so we cannot
revert it right now, unfortunately.

* I01f5fafbbcfe3e3f5313829162ec011eaf2ad991
2028ddaa5024dfc9844376f2032115aee360155a

Reason for revert:
At high level, we doubt restoring
Settings.Secure.ENABLED_INPUT_METHODS still benefits restore
experience for the user.

* Anecdotally almost all IMEs maintain enabled languages with their
per-app settings such as SheredPreference. This observation leads
us to think that we should focus more on stabilizing per-app
backup/restore scenario at least for IME migration scenarios.

* The code is not that simple and cost to maintain it is not that
low. If we reverted this code, we could spend our resources for
other tasks, including improving restore experience for the user.

* Stopping restoring ENABLED_INPUT_METHODS reduces chances to
conflict with what the device policy says [1].

* We have had a strict rule about what IMEs can be enabled
automatically, and the rule has been that only pre-installed IMEs
can be automatically enabled by the system, unless some system
components that have WRITE_SECURE_SETTINGS permission overrides it.
Mechanically enabling an IME just because it was enabled in the
previous device does not fit this model well.

* Since Android O MR1, we also backup/restore user languages
specified in the global settings [2]. The default selected IME
should be able to automatically enable language support based on
the restored system locales.

[1]: DevicePolicyManager#setPermittedInputMethods()
[2]: I1e6c7ba5b7abb6bde8b01ce0f647c04a5caa81a6
0f19cc779fb81bca0d00fd0a062f431cedb5f684

Fix: 72978240
Test: atest FrameworksCoreTests:android.provider.SettingsBackupTest
Test: atest FrameworksCoreTests:android.provider.SettingsValidatorsTest
Test: atest FrameworksCoreTests:com.android.internal.inputmethod.InputMethodUtilsTest
Change-Id: I122a8f69b2f75a9af85e14b66db764c5d153040e
/frameworks/base/core/java/android/provider/Settings.java
108aad3c3036e61850cd39f55687626674f47d30 30-Jan-2018 Jan Althaus <jalt@google.com> Adding maximum input size checks

Bug: 67629726
Test: Added tests and ran core tests
Change-Id: Ib6ca53b068731fa0eabcabaed230d7f3ccde1288
/frameworks/base/core/java/android/provider/Settings.java
a51c496153103a8330f9aa8cb5a670d46bcdec85 07-Feb-2018 Sandeep Patil <sspatil@google.com> Revert "STOPSHIP: Add UidCpuPower global setting"

This reverts commit 495665dc2f1f3cebc94d5f47629b018634a74074.

Reason for revert: b/73018322
Bug: 73018322

Change-Id: I1b83c4d916159e6961ec30576c7629e57978a72d
/frameworks/base/core/java/android/provider/Settings.java
bcfcd6c9bb6fc728e433c6156fdfa51432f92adf 05-Feb-2018 Ajay Dudani <adudani@google.com> Add display panel low power mode global setting & mapping to sys property.

This will help us run P/H experiments by controlling display panel low
power mode system property through P/H.

Bug: 72121774
Test: Compile, boot taimen.
Change-Id: Id4c95bcd5616e9749f9dcc9d9f4773ffdad3e994
/frameworks/base/core/java/android/provider/Settings.java
c65eb444374cd4503d3ee39432ec71ed1d3357e3 06-Feb-2018 Beverly Tai <beverlyt@google.com> Merge "Wireless charging sound used for wired charging"
b80a4052c7f6330a2a3a6d6251600bbef1240b90 06-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add Settings Global value for anomaly config"
fa81bee278d6494ea798f164c40b276164f2e450 01-Feb-2018 jackqdyulei <jackqdyulei@google.com> Add Settings Global value for anomaly config

1. ANOMALY_CONFIG_VERSION: version of the anomlay config
2. ANOMALY_CONFIG: a base64-encoded string of raw config.

Bug: 72385333
Test: Build
Change-Id: If990d2e00e019cc6d6a6c601de9a08bd5e649654
/frameworks/base/core/java/android/provider/Settings.java
04674a0ef963f98591bee020642063320e17347b 05-Feb-2018 Hall Liu <hallliu@google.com> Merge "Add setting and logging for RTT"
d4d2a8a6587ee2a671e50974f34a6519bc1db32a 30-Jan-2018 Hall Liu <hallliu@google.com> Add setting and logging for RTT

Add a system setting to store preferred RTT mode for calls. Add logging
for RTT in Telecom base classes.

Bug: 63934808
Test: manual
Change-Id: Ie26fac800931604379bbe7b8abfed7caa8c0236d
/frameworks/base/core/java/android/provider/Settings.java
4b909212b334e33550be113b9463aebbe1856ddc 05-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "STOPSHIP: Add UidCpuPower global setting"
c1313eb44d01285983975bd57f010c526ca2ff56 01-Feb-2018 Beverly <beverlyt@google.com> Wireless charging sound used for wired charging

Test: manual (plug/unplug with charging sounds enabled)
Change-Id: Ic97cd15421804ff4b6edacfc20dd81515835d58d
Fixes: 70259821
Bug: 29737261
/frameworks/base/core/java/android/provider/Settings.java
1bb9f29909016aa3be7ebe7ef52558d219696186 05-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Autofill compatibility mode."
24c90450fe3fe097a7bca51edd6a4cffd8fd13aa 28-Dec-2017 Svetoslav Ganov <svetoslavganov@google.com> Autofill compatibility mode.

Autofill helps users fill credentials, addresses, payment methods,
emails, etc without manually typing. When focus lands on a fillable
element the platform captures a snapshot of the screen content and
sends it to an autofill service for analysis and suggestions. The
screen snapshot is a structured representation of the screen content.
If this content is composed of standard widgets, autofill works
out-of-the-box. However, some apps do their own rendering and
the content in this case looks like a single view to the platform
while it may have semantic structure. For example, a view may render
a login page with two input test fields.

The platform exposes APIs for apps to report virtual view structure
allowing autofill services to handle apps that have virtual content.
As opposed to apps using standard widgets, this case requires the app
developer to implement the new APIs which may require a fair amount
of code and could be seen as a processes that could take some time.
The most prominent typs of apps that fall into this category are
browsers.

Until most apps rendering virtual content and specifically browsers
don't implement the virutal APIs, autofill providers need to fall-
back to using the accessibliity APIs to provide autofill support
for these apps. This requires developers to work against two sets
of APIs - autofill and accessibility - which is incovenient and error
prone. Also, users need to enable two plugins - autofill and
accessibility which is confusing. Additionally, the privacy and
perfomance impact of using the accessibility APIs cannot be addressed
while autofill providers need to use thes APis.

This change adds an autofill compatibility mode that would allow
autofill services to work with apps that don't implement the
virtual structure autofill APIs. The key idea is to locally enable
accessibility for the target package and remap accessibility to
autofill APIs and vise versa. This way an autofill provider codes
against a single set of APIs, the users enable a single plugin,
the privacy/performance implications of using the accessibility
APIs are addressed, the target app only takes a performance hit
since accessibility is enabled locally which is still more efficient
compared to the performance hit it would incur if accessibility is
enabled globally.

To enable compatibility mode an autofill service declares in its
metadata which packages it is interested in and also what is
the max version code of the package for which to enable compat
mode. Targeted versioning allows targeting only older versions of
the package that are known to not support autofill while newer
versions that are known to support autofill would work in normal
mode.

Since compatibility mode should be used only as a fallback we
have a white list setting with the packages for which this mode
can be requested. This allows applying policy to target only
apps that are known to not support autofill.

Test:
cts-tradefed run cts-dev -m CtsAutoFillServiceTestCases
cts-tradefed run cts-dev -m CtsAccessibilityServiceTestCases

bug:72811034

Change-Id: I11f1580ced0f8b4300a10b3a5174a1758a5702a0
/frameworks/base/core/java/android/provider/Settings.java
ad357d1839760849fcbcb8cbdce34003e8831acd 02-Feb-2018 Jeff Sharkey <jsharkey@android.com> Pass in the user defined by Context.

The majority of Manager-style classes already use Context.getUserId()
when making calls into the OS, so clean up the remaining callers to
unify behind this strategy.

This gives @SystemApi developers a nice clean interface to interact
across user boundaries, instead of manually adding "AsUser" or
"ForUser" method variants, which would quickly become unsustainable.

Test: builds, boots
Bug: 72863821
Exempt-From-Owner-Approval: trivial changes
Change-Id: Ib772ec4438e57a2ad4950821b9432f9842998451
/frameworks/base/core/java/android/provider/Settings.java
a43f7fde7951d8b50e60c33a4ca4e5efe602304a 02-Feb-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Always show wifi wake setting."
c48b5eff34477da85762835bc521065ae914c31b 02-Feb-2018 Makoto Onuki <omakoto@google.com> Merge "Update the comment on LOW_POWER_MODE_TRIGGER_LEVEL in PowerUI"
495665dc2f1f3cebc94d5f47629b018634a74074 02-Feb-2018 Marissa Wall <marissaw@google.com> STOPSHIP: Add UidCpuPower global setting

This will help us run P/H experiments by controlling the
uid cpu power system property through P/H.

b/70517018
Test: Will manually test it later through opt-in P/H experiment

Change-Id: I2cb26f429e867acbed7ff553cc18b447932af655
/frameworks/base/core/java/android/provider/Settings.java
250d7849239ced47f217f62acd42e2d1487baad4 25-Jan-2018 Joe LaPenna <jlapenna@google.com> Always show wifi wake setting.

Remove WIFI_WAKEUP_AVAILABLE config setting its available by default.
Remove check for NETWORK_RECOMMENDATIONS_ENABLED, the feature no longer
uses the recommender.

Test: make RunSettingsRoboTests RunSettingsLibRoboTests;
Test: atest SettingsBackupTest; manual/exploratory
Bug: 69624403
Bug: 67952636
Change-Id: I9e287b79d0da01bab00ed81295dcc1f266ca0851
/frameworks/base/core/java/android/provider/Settings.java
45a772e4b1c288d212d693a7c88a9cf6edf8c29f 02-Feb-2018 Makoto Onuki <omakoto@google.com> Update the comment on LOW_POWER_MODE_TRIGGER_LEVEL in PowerUI

I originally envisioned to keep this logic and the one in the
battery service (which decides when to send a LOW_BATTERY broadcast)
in sync.

However, because this PowerUI logic decides when to show the "battery low"
notification, and showing the notification when the battery level
is still 50% doesn't really make sense even when the battery saver
starts at 50%, so let's only cap the value in PowerUI.

So if LOW_POWER_MODE_TRIGGER_LEVEL is 50,
- Battery saver kicks in at battery level 50%
- LOW_BATTERY broadcast is also sent at 50%

- But we don't show the "battery low" notification until 15% still.

(I'll talk with the PM and we might tweak the details.)

Bug: 71707409
Test: build & boot
Change-Id: I162dc722a6f634e5844ed81385a8463797634a02
/frameworks/base/core/java/android/provider/Settings.java
9086762d565aa9fd92b306cd61c892038bef64fc 01-Feb-2018 Bookatz <bookatz@google.com> Use statsd constants instead of literals

Instead of writing StatsLog.write(StatsLog.NAME, 1), we replace the 1
with the appropriate StatsLog constant.

Bug: 72749863
Test: still compiles

Change-Id: I68c8206de49df7e77ee66333dd633e4b70c7b226
/frameworks/base/core/java/android/provider/Settings.java
81ad972f39a12ff0aa8351b6a43727ffb73c4685 19-Jan-2018 Robin Lee <rgl@google.com> Feature flag for stopping restricted profiles

Defaults to true by default. Some devices may override this to force the
restricted profile to stop when not in use to save all the memory it
consumes where that is an issue.

There is no framework / first-party code setting it, but since this
is checked every time a user switches into the profile rolling it out
should be relatively straightfoward.

Bug: 71626497
Test: make droid
Change-Id: I7a718c4fdd2d80131df083908129b715d94e824e
/frameworks/base/core/java/android/provider/Settings.java
c9c029c70bd719b722d107db98ced7d37ab1533e 27-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add setting/experiment for time only mode for watch type devices."
0193e5651f1ff4abd0c1ce52c3c1043c88d629cc 26-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add setting to control vibration intensity."
47abf8c143a74d83fd35e6b71019b39e6e0692a7 23-Jan-2018 Michael Kwan <mkwan@google.com> Add setting/experiment for time only mode for watch type devices.

Bug: 38259902
Test: none
Change-Id: I884f488c8147e6611cbb9556041920cd7f938aab
/frameworks/base/core/java/android/provider/Settings.java
50bdbe3e2ff56948a4589333e53cdd60e72eb5b6 25-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add key to store location changer"
8d82825c75a23c8c5d15ea1467bfa6b0b35af4c9 11-Jan-2018 Narayan Kamath <narayan@google.com> Support logging chained WorkSources from JobScheduler.

Controller by a feature flag, which this change also introduces.

Bug: 62390666
Bug: 70892390
Test: manual, via JobSchedulerTestApp
Test: CtsJobSchedulerTestCases

Change-Id: Ic7dfb7861f7987a1b6eeb4cf3851193e9ad7da84
/frameworks/base/core/java/android/provider/Settings.java
0cba58f5dfe942bb0e10fb32b4a8a734461c1253 24-Jan-2018 Lifu Tang <lifu@google.com> Add key to store location changer

Store location changer into Settings.Secure

Modify quick settings to identify itself as location changer

Bug: 68779883
Test: Manual
Change-Id: I2c7a599e1383102685994d876e7160e164436a08
/frameworks/base/core/java/android/provider/Settings.java
22ae9d5ca0e6adc4d946dda0826334861506d893 28-Nov-2017 Glen Kuhne <kuh@google.com> Carrier Network Available Notification setting

Adds a setting allowing user to toggle Carrier Network Available
Notification on and off.

Bug: 69310016
Test: Verified manually
Change-Id: I209cd216dd5fd5c790aca8f74707a7ef831edd6a
/frameworks/base/core/java/android/provider/Settings.java
2ffeef2a35948ff98c43bbfb1a9282b7a4c03689 25-Jan-2018 Jeremy Klein <jlklein@google.com> Merge "Add scan interval and window lengths to Settings.Global." am: d3dac85e46 am: 8c33c789ed
am: 4ec192fd26

Change-Id: Ieae2e96acac3f1372d4075145426065f666a221a
35a0c676eea576c8903477465e43a2ecc4dc68f6 24-Jan-2018 Michael Wright <michaelwr@google.com> Add setting to control vibration intensity.

This patch adds two distinct vibration control settings: one for
notifications and ringtones, and one for haptic feedback. Since we don't
always have the exact intent of a given vibration, VibratorService will
do its best to classify each VibrationEffect into one of these two
categories and then scale the vibration accordingly based on the
intensity setting.

Bug: 64185329
Test: cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibratorTest
cts-tradefed run commandAndExit cts-dev -m CtsOsTestCases -t android.os.cts.VibrationEffectTest
Change-Id: If16237f4782281aaab33e4a0f55c29f1a30ac493
/frameworks/base/core/java/android/provider/Settings.java
4ec192fd268b7d70b167beb31f48ad5613d7032f 25-Jan-2018 Jeremy Klein <jlklein@google.com> Merge "Add scan interval and window lengths to Settings.Global." am: d3dac85e46
am: 8c33c789ed

Change-Id: Ib86750eadcf5683faba4151e3f3373f04a387de1
1da5ab0183978be836cd08db833d68ad964fbc54 24-Jan-2018 Daniel Nishi <dhnishi@google.com> Merge "Add a new setting for Bluetooth on while driving."
41584b69fd0693c5ffc967aca07bade7e08de01a 24-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update crash dialog options."
6e39b9556a893daa63e5ac363f2c34df759773d7 24-Jan-2018 Michal Karpinski <mkarpinski@google.com> Merge "Add restore of Settings keys to SettingsBackupAgent.RESTORE_FROM_HIGHER_SDK_INT_SUPPORTED_KEYS"
6154427d0c9636f8e2a8c9ab933fc90d99116fce 24-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Added STORAGE_VOLUME_ACCESS_SETTINGS intent."
dc6a1c4b8af4bf2261e7c9ec3119759bd5681f1a 24-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Propagate location mode properly from SettingsProvider"
d2c4f7f610789e912578b16a975d41e712e15aae 24-Jan-2018 Maggie Wang <yiranwang@google.com> Merge "Deprecate location modes"
45a9b5dbbc071d777b8d22c085ba33298afcac49 11-Jan-2018 Jeremy Klein <jlklein@google.com> Add scan interval and window lengths to Settings.Global.

This will enable running experiments to determine the
effects on battery life of changing these values.

Bug: 71765044
Test: Just adding a key value here. This is basically a no-op.
Change-Id: I33a0b2da6e793ef508d020a3c2d321d5553c3fb1
/frameworks/base/core/java/android/provider/Settings.java
d82096eca34cbbd9aed52542dfaeb63bedb3bf08 22-Jan-2018 Felipe Leme <felipeal@google.com> Added STORAGE_VOLUME_ACCESS_SETTINGS intent.

Applications typically use this action to ask the user to revert the
"Do not ask again" status of directory access requested made by
StorageVolume.createAccessIntent(directory).

Test: atest CtsAppSecurityHostTestCases:ScopedDirectoryAccessTest#testResetDoNotAskAgain
Test: adb shell am start -a android.settings.STORAGE_VOLUME_ACCESS_SETTINGS

Bug: 63720392

Change-Id: I1ed1a018a54013d88260e11ef9646aaed3a3a318
/frameworks/base/core/java/android/provider/Settings.java
8e49825e803ed4520420d553f9b211bc8358a9a0 23-Jan-2018 Makoto Onuki <omakoto@google.com> Propagate location mode properly from SettingsProvider

Bug: 72240163
Bug: 72037769
Test: atest $ANDROID_BUILD_TOP/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/BatterySaverLocationTest.java

Change-Id: I7bad1547aaad30aa5c47ef813cbfc14dad4a5cce
/frameworks/base/core/java/android/provider/Settings.java
5b679c4d177b18435d362e34a2fce43e0d63e4ae 16-Jan-2018 Andrew Sapperstein <asapperstein@google.com> Update crash dialog options.

Add app info to crash dialog. Show close (aka force stop) on all dialogs,
not just the repeat dialog.

Remove showing restart and mute by default. Add Settings.Global
configuration parameters for both in case we want to show those options again.

Also some minor cleanup (converting some members to locals).

Bug: 63703353
Bug: 70640329
Test: manual
Change-Id: I83a2b1a5ea0f6a2a9765d7648dab7c184bfbc43f
/frameworks/base/core/java/android/provider/Settings.java
aa080f96763a9d38f21fb33de93216cd207a5930 05-Jan-2018 Maggie <yiranwang@google.com> Deprecate location modes

1. Mark public fields as deprecated: LOCATION_MODE, LOCATION_MODE_HIGH_ACCURACY, LOCATION_MODE_SENSORS_ONLY,
LOCATION_MODE_BATTERY_SAVING, LOCATION_MODE_OFF.

2. Add new public methods to LocationManager:
setLocationEnabled(boolean)
isLocationEnabled()
setLocationProviderEnabled(String, boolean)

3. Remove LOCATION_PREVIOUS_MODE and constant
LOCATION_MODE_PREVIOUS. Refactor code that references
LOCATION_MODE_PREVIOUS to use LocationManager.setLocationEnabled or
LOCATION_MODE_HIGH_ACCURACY.

4. Mark deprecated fields and methods as removed: LOCATION_PROVIDERS_ALLOWED, setLocationProviderEnabled(), isLocationProviderEnabled()

5. Refactor logic in Settings app and Quick Settings to call
LocationManager.setLocationEnabled() instead of setting location mode.

Bug: 70990911
Test: Manual
Change-Id: Ia49b385f8b6a358b62291983eb0146af0ecf8e02
/frameworks/base/core/java/android/provider/Settings.java
7976412772580ea27a2e294b83d0129f2239d91a 03-Jan-2018 Daniel Nishi <dhnishi@google.com> Add a new setting for Bluetooth on while driving.

This also adds a feature flag to read to see if the feature is enabled
on a given device.

Bug: 66679618
Test: Used in Settings Robotest
Change-Id: Idb892aa78f244d026a8d4b7dc104d47e0f611085
/frameworks/base/core/java/android/provider/Settings.java
b52575c5288cec9d62de4fee1622a54a6f388f6c 19-Jan-2018 Michal Karpinski <mkarpinski@google.com> Add restore of Settings keys to
SettingsBackupAgent.RESTORE_FROM_HIGHER_SDK_INT_SUPPORTED_KEYS

Now that we have validators in place for all settings that are
backed up.

Also, add a setting to override restoreAnyVersion, which can be
modified by Phenotype.

Bug: 64988620
Bug: 72162887
Test: manual (P->P - master without changes to master with changes)
Test: manual (Q->P = API29 -> API28)
Test: a lot of other scenarios covered by our end-to-end tests
Test: a GTS test with both settings that don't have validators
and have values that wouldn't pass validation will be added
in vendor/xts
Change-Id: Ifaf94306984b5204c79648d48fd4056ad403196e
/frameworks/base/core/java/android/provider/Settings.java
c128c86481682f92ba005332b7e456b0b8a762c3 22-Jan-2018 Julia Reynolds <juliacr@google.com> Remove settings intent

There's no dedicated screen for it to go to.
Test: make
Bug: 63927402

Change-Id: I9fc3352b74e526b5bd43ac48626c0d469fae4899
/frameworks/base/core/java/android/provider/Settings.java
16c5d2c8d25ab2f898d843068876324b957f53dd 23-Jan-2018 Jong Wook Kim <jongwook@google.com> Merge "Wifi MAC Randomization: Developer option change global settings"
0a20eda58d9cd9da3d005577ee175288cf4eef0c 06-Jan-2018 Jong Wook Kim <jongwook@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
5d86f5e30f924a01c0c13dbb007f25a9d88f727b 22-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add PH flag for P power model"
d95e1d6edde1b17dea8983266a0a238fa209295d 22-Jan-2018 Lei Yu <jackqdyulei@google.com> Merge "Update comment for BATTERY_TIP_CONSTANTS"
d57c1df38818031857acc84210a7ca4380a23239 22-Jan-2018 Nancy Zheng <nzheng@google.com> Merge "Add setting/experiment for small battery devices to have all forced app standby enabled except for when the device is charging."
fae87da49812480f726f724bc6824c2cbd438e96 20-Jan-2018 Mike Ma <yanmin@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
525aaa13dc0bb33f9a1eb5bb607c76d180db8e6e 12-Jan-2018 Nancy Zheng <nzheng@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
87321195212895dd1584cb910632737a8ff24772 19-Jan-2018 jackqdyulei <jackqdyulei@google.com> Update comment for BATTERY_TIP_CONSTANTS

Bug: 70570352
Test: Build
Change-Id: Ibb702ddacdf1111a249c75541a87849713de1195
/frameworks/base/core/java/android/provider/Settings.java
20220cdb722fb6f92e9106e80507088ea570f984 19-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add validators for all Settings.Secure settings that are backed up"
964943ab98874a91be04f9ea2137861c93f6ffd3 19-Jan-2018 Michal Karpinski <mkarpinski@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
bd9b0cf9b0713d8ed9edd0729a8b8b0ca47cbbd3 19-Jan-2018 Makoto Onuki <omakoto@google.com> Merge "Make DEBUG_FPS_DIVISOR updatable via setting for possible experiments"
8f0d71e3ee99cb3cee8409ec7b5448282aaadce7 19-Jan-2018 Michal Karpinski <mkarpinski@google.com> Merge "Add validators for all Settings.Global settings that are backed up"
ebd999832642385a581213d2cb487b07fcd4f236 19-Jan-2018 Michal Karpinski <mkarpinski@google.com> Merge "Add SettingsValidators class and a test for validators enforcement"
5cc9f721ce36d278df4b0f3fe0a685ba221e9360 19-Jan-2018 Makoto Onuki <omakoto@google.com> Merge "Revert "Add setting/experiment for small battery devices to have""
12391f22dfe4697d55555ba94d0c5c1155dd546e 18-Jan-2018 Makoto Onuki <omakoto@google.com> Revert "Add setting/experiment for small battery devices to have"

This reverts commit 9a60382be1d94e1143cdd16576db774126193798.

Reason for revert: Broke battery saver

Bug: 72168928
Bug: 69259147

Change-Id: I09664653686a51c297224c863c4fc6d1ff7e5caf
Test: Manual test
Test: atest CtsBatterySavingTestCases
/frameworks/base/core/java/android/provider/Settings.java
5db1e430f9d774a5b203eda5ec53f065bb1ec5b3 18-Jan-2018 Michal Karpinski <mkarpinski@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
2c37b08510877af06542ad21eb5b63c8f9824584 18-Jan-2018 Michal Karpinski <mkarpinski@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
43643aeed151da5c92817298a04b2b32c3aba338 21-Dec-2017 Andrew Sapperstein <asapperstein@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
13ca805084a8043b5c2cde8c6f2a365eca49a4d4 17-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Create Settings.Global.ENABLE_SMART_REPLIES_IN_NOTIFICATIONS setting"
2baa9ab4be183ac1e432f08e8b5549d0bfa180c2 17-Jan-2018 Nancy Zheng <nzheng@google.com> Merge "Add setting/experiment for small battery devices to have all forced app standby enabled except for when the device is charging."
3c9c998ffc90b24fdd58a18c04b5297797c15abf 17-Jan-2018 Makoto Onuki <omakoto@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
9669e90c8dbb38e27774f5f897893a43ce3300ca 16-Jan-2018 Petr Cermak <petrcermak@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
9a60382be1d94e1143cdd16576db774126193798 12-Jan-2018 Nancy Zheng <nzheng@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
02856ba81bc0f2cb1beda0e0858e8393ed3fded7 16-Jan-2018 Mike Digman <digman@google.com> Make rotate locked suggestions on by default

Rotate power has been unblocked in ag/3455519.

Test: manual
/frameworks/base/core/java/android/provider/Settings.java
82e3a31f8158641b32ebf21771309834c873ce30 13-Jan-2018 Shikhar Srivastav <shikharsr@google.com> Merge "Add VDSO global setting and mapping to sys property."
9a896a6c6d13194af2623f7e7ca5ef80d2cf4ecb 10-Jan-2018 Shikhar Srivastav <shikharsr@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
21d4f67a317a2a806320b9a02e3e13af5e1b6acd 12-Jan-2018 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose Global.LOW_POWER_MODE for CTS"
f9046a2093946dd6ca75fdb5577ae1d9e49c625e 12-Jan-2018 Makoto Onuki <omakoto@google.com> Expose Global.LOW_POWER_MODE for CTS

Bug: 68769804
Test: atest CtsBatterySavingTestCases
Change-Id: I7dfac2e0c549c91cd368ca955fff71e15d585b34
/frameworks/base/core/java/android/provider/Settings.java
8688335d0836bb8bcb8da237571a37aa9bf16995 11-Jan-2018 Mike Digman <digman@google.com> Merge "Send rotation suggestions to System UI when rotation locked"
6d3444ec3c38da75eefbbe7ab44dec88b2dfbe98 11-Jan-2018 Daniel Colascione <dancol@google.com> Merge "Wire up zram setting, system property"
e14e66351a2bc5db6b5d1b5e0f37133fd7b524df 11-Jan-2018 Mike Digman <digman@google.com> Send rotation suggestions to System UI when rotation locked

Test: manual
Change-Id: I6dd05c5367e4e2ea3a2d3a631709a5aed34a256e
/frameworks/base/core/java/android/provider/Settings.java
766b632ebc03a3965cdf5ce96563e80b94bd2f4e 09-Jan-2018 Daniel Colascione <dancol@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
4deb852d2d85ecd4f48821c7f58305559bdf0118 09-Jan-2018 Suprabh Shukla <suprabh@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
6f1b1c88487c139ec2562790caeba073541b6375 09-Jan-2018 Mehdi Alizadeh <mett@google.com> Merge "Updates comment for SOFT_AP_TIMEOUT_ENABLED"
3eb9f7accb65edfa0bd396bb1b972fd04ec56101 09-Jan-2018 Ricky Wai <rickywai@google.com> Merge "Change Network Watchlist feature flag"
57ae55cbeff100653888926dbced53447fae8eb6 09-Jan-2018 Mehdi Alizadeh <mett@google.com> Updates comment for SOFT_AP_TIMEOUT_ENABLED

Bug: 68712445
Change-Id: Ic47917a608e78454f3060487741c5a0e1f6c15a4
Test: None
/frameworks/base/core/java/android/provider/Settings.java
710971a2866a58c896a6862b36c10630f176804b 09-Jan-2018 Sudheer Shanka <sudheersai@google.com> Merge "Add a global setting to turn on/off the proc state cpu times tracking."
6198ec6303494026bb1b5b0a6af422defc25e50d 09-Jan-2018 Christine Franks <christyfranks@google.com> Merge "Remove DEMO_USER_SETUP_COMPLETE"
5c19b897ddb89481c5981195d2470f6ce5de4b1c 06-Jan-2018 Sudheer Shanka <sudheersai@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
7b76e93bf1e7de547989b044ddf9cb7c34db1898 08-Jan-2018 Christine Franks <christyfranks@google.com> Remove DEMO_USER_SETUP_COMPLETE

This @hide setting is no longer used.

Bug: 71594447
Test: make -j100
Change-Id: Ib412f4c16eabb5bedb9e4538db294bfdfb2a4478
/frameworks/base/core/java/android/provider/Settings.java
1e423b950abc044d2f18a1771af19e42a5ea2022 18-Dec-2017 Eric Enslen <enslen@google.com> 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
/frameworks/base/core/java/android/provider/Settings.java
2bac68a6357e01cebd68d4287c64e93a84edb53a 03-Jan-2018 Malcolm Chen <refuhoo@google.com> Merge "Move Ims related settings from global setting to subscription db." am: f2ebbd1356
am: 5bf5c028f7

Change-Id: Iab3a7a47da5961471bce7a8e29960ab75e68719b
6bd8601e9f79598096ee31441e536fecdd415191 06-Dec-2017 Lucas Dupin <dupin@google.com> New keyguard slice data structure

Using androidx package and new API, also splitting content into
multiple views for better animation support.

Bug: 64155983
Test: visual, see data from provider propagate to AoD
Change-Id: I74b5511d582e7ec1f6ffe5dbc5595f54b9ccb202
/frameworks/base/core/java/android/provider/Settings.java
02a1c08096b705f8091951ac7d9afb7f7166b66f 27-Dec-2017 Denis Kuznetsov <antrim@google.com> Add notification on succesful backups

Bug: 63885845
Test: make RunFrameworksServicesRoboTests

Change-Id: I6c8d04de7f5d7e82d695b1bf36de0aa27452db19
/frameworks/base/core/java/android/provider/Settings.java
372da168131479df441049e56245c4ab76a860eb 26-Sep-2017 Malcolm Chen <refuhoo@google.com> Move Ims related settings from global setting to subscription db.

Bug: 66699661
Test: Manual

Change-Id: Id0d7795401f120b6a8704304a368d926a6610395
Merged-In: Id0d7795401f120b6a8704304a368d926a6610395
/frameworks/base/core/java/android/provider/Settings.java
8f90bcc50ae6413c587a3086faf56ac87b0d6dcf 23-Dec-2017 Svet Ganov <svetoslavganov@google.com> Document which sys services can be accessed by instant apps

This change documents that some system services are not available
to instant apps due to the restricted security sandbox they run in.
Also ensure that if target SDK is P WallpaperManager is null if the
backing system service cannot be looked up to be consistent with
the way other system services behave.

Test: Manual

Fixes: 70984822
Fixes: 69848394

Change-Id: I9aae884d5840c92136c7d713fac87e7732dc2642
/frameworks/base/core/java/android/provider/Settings.java
1878f0bd8f3a756db7d81e645434bfc55a550d96 22-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add settings constants for battery tip"
29f91ea0ac803ae1585d6a5c9b38e0a5265e7e02 14-Dec-2017 jackqdyulei <jackqdyulei@google.com> Add settings constants for battery tip

Bug: 70570352
Test: Build
Change-Id: I6639916b5b685d3ee64cfc2ea0771c1244e0e437
/frameworks/base/core/java/android/provider/Settings.java
eef5065eb1172bebb483b4bb5a2a349803aadb97 21-Dec-2017 Ricky Wai <rickywai@google.com> Change Network Watchlist feature flag

Bug: 63908748
Test: From log, feature is enabled/disabled when setting is enabled/disabled
Change-Id: Ifa41ea98b3ab27bdc6c06f07cb9766406427b3fc
/frameworks/base/core/java/android/provider/Settings.java
bbfed90230a77b5714fafa5f829cf4f992467eed 21-Dec-2017 Felipe Leme <felipeal@google.com> Added @TestApi on new Autofill settings for field classification.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest CtsAutoFillServiceTestCases:UserDataTest

Bug: 70407264

Change-Id: Ia4413e5aa8973bafa0149093c6c17602dd498ae5
/frameworks/base/core/java/android/provider/Settings.java
b430d8ff06c78c7879eecd5137726d86d2c615d7 16-Dec-2017 Sudheer Shanka <sudheersai@google.com> Merge "Start processes asynchronously in AMS."
77dadd93571eae3df9dd2189dd28cec010f0d429 16-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Global app standby flag"
172612c8919638ad57ac0b67f2acec3e144fc26c 15-Dec-2017 Amith Yamasani <yamasani@google.com> Global app standby flag

Disable app standby features if app_standby_enabled
is set to 0. This allows for UI and experiments to
control the feature.

Bug: 70655630
Test: adb shell settings put global app_standby_enabled 0
adb shell dumpsys usagestats
adb shell am get-standby-bucket <packagename>

Change-Id: Id6c62b078e52040767100f2997832cc586bb0806
/frameworks/base/core/java/android/provider/Settings.java
f6690100be5c5cd75c64d9a6a0345acff7b754d1 16-Oct-2017 Sudheer Shanka <sudheersai@google.com> Start processes asynchronously in AMS.

Currently, process start is initiated in ActivityManagerService
holding the main lock and this takes ~40ms to complete. As seen
in some of the issues in previous releases, this is one of the
contributors of the lock contention in system_server. This change
tries to address this issue by moving the process start outside
the locked section.

When a process start is required, instead of doing it synchronously,
this request will be posted on a handler thread. On the handler thread,
this process start request will be completed without holding a lock.
If for some reason, we decide the process is not needed anymore before
it is actually started or being started, then AMS does everything as
usual removing the references to the process from internal state except
actually killing the process which will be handled on the handler
thread.

Bug: 68775202
Test: Ran app startup perf tests using forrest, will update the bug with results.
Test: https://docs.google.com/spreadsheets/d/1cW81guRALZXKsN-WZsKyQiCSY-RgkJ2m_M9IfqIquz8
Test: cts-tradefed run singleCommand cts-dev -m CtsActivityManagerDeviceTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWindowManagerDeviceTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsAppTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsMultiUserHostTestCases
Test: adb shell am instrument -e package com.android.server.am -w \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -e class com.android.server.pm.UserManagerTest -w \
com.android.frameworks.servicestests/android.support.test.runner.AndroidJUnitRunner
Test: adb shell am instrument -e package android.content -w \
com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: cts-tradefed run singleCommand cts-dev -m CtsProviderTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
android.content.cts.ContentResolverTest
Test: cts-tradefed run singleCommand cts-dev -m CtsContentTestCases -t \
android.content.cts.ContentProviderTest
Test: cts-tradefed run singleCommand cts-dev -m CtsWebkitTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsHostsideWebViewTests
Test: cts-tradefed run singleCommand cts-dev -m CtsAssistTestCases
Test: make WebViewLoadingTests && make tradefed-all && tradefed.sh \
run template/local_min --template:map test=WebViewLoadingTests
Test: adb shell setprop wrap.com.google.android.apps.maps \
'"LIBC_DEBUG_MALLOC_OPTIONS=backtrace logwrapper"'
&& adb shell dumpsys meminfo --unreachable <PID_OF_APP>
&& check ppid of <APP> is logwrapper's pid.
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapNoDebugTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapDebugTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapNoWrapTestCases
Test: cts-tradefed run singleCommand cts-dev -m CtsWrapWrapDebugMallocDebugTestCases
Test: manual

Change-Id: I1fe7ce48cd5a4aadccaf6b3d6fdb5cad3304f1d3
/frameworks/base/core/java/android/provider/Settings.java
78172e70f4c5d776678551965db7c167ee11703e 09-Dec-2017 Felipe Leme <felipeal@google.com> Made Autofill Field Classification API public and documented it.

Test: mmm frameworks/base/:doc-comment-check-docs
Test: atest FrameworksCoreTests:SettingsBackupTest
Test: m -j 100 update-api

Fixes: 67867469

Change-Id: Iedf56a2bbcde3826eb22f5ed7a96d6ed70b968f4
/frameworks/base/core/java/android/provider/Settings.java
a629e4c393e5ac52c07598a5d3b4ed120115c97d 15-Dec-2017 Fyodor Kupolov <fkupolov@google.com> Merge "Added compatibility WAL flags for Global.Settings"
ee90c03fe787ccc52c9605212eddf80cf50a7824 12-Dec-2017 Fyodor Kupolov <fkupolov@google.com> Added compatibility WAL flags for Global.Settings

Added Settings.Global.SQLITE_COMPATIBILITY_WAL_FLAGS -
configuration flags for SQLite Compatibility WAL. Encoded as a key-value
list, separated by commas. E.g.:
compatibility_wal_supported=true, wal_syncmode=OFF

SQLiteCompatibilityWalFlags caches the value of
SQLITE_COMPATIBILITY_WAL_FLAGS on first access and keeps it through
the lifetime of the process for consistent behavior across all
connections.

Test: SQLiteCompatibilityWalFlagsTest
Test: setting put global ... + verify that dumpsys dbinfo has the new flag
Bug: 70226732
Bug: 70517616
Change-Id: Ifacbf5908c83351ebe5dea676eeb716af039fb14
/frameworks/base/core/java/android/provider/Settings.java
895d73105b09d95e9e86a4e55131f08dc9193674 14-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add more IntDef prefixes for auto-documenting."
ce8db9911494225fcd99711d7df85a130de5a6ce 14-Dec-2017 Jeff Sharkey <jsharkey@android.com> Add more IntDef prefixes for auto-documenting.

Test: builds, boots
Bug: 70177949
Exempt-From-Owner-Approval: annotation-only changes
Change-Id: I76dde6054e06f52240bd4b1a0f196dcb74623608
/frameworks/base/core/java/android/provider/Settings.java
48f1a647655f3479bc655d2c3c4873c6aa9b712c 11-Nov-2017 gomo <gomo@google.com> Duty Cycling and Low Power Mode GNSS feature implementations

Implementaion of 2 GNSS Android-P features:
- The Duty Cycling API to enable high accuracy applications development
- The Low Power Mode GNSS API to save power when indoor

Bug: 64009176
Test: Existing unit tests still pass.
Change-Id: I3ba3b86a635a54927c694fdd66a038757e843937
/frameworks/base/core/java/android/provider/Settings.java
000cf5e06de6ac266467071b638d0b7039bf81db 10-Nov-2017 Adrian Roos <roosa@google.com> Display Cutout: Add emulation

Adds an overlay to SystemUI that draws an emulated
cutout in the bounding polygon that the window manager
supplies.

Bug: 65689439
Test: adb shell settings put global emulate_display_cutout 2
Change-Id: I91e6832d7e4594e995241d29d6f1ed0d918d59a0
/frameworks/base/core/java/android/provider/Settings.java
734afbe61e3a7180649aebe4a89fb9e21dd668ae 07-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Moar changes for Autofill Field Classification mechanism:"
4170751a680e006d311a74250e96dfd41411743d 06-Dec-2017 Chris Wren <cwren@google.com> add integer array values to KeyValueListParser

Test: atest NotificationSnoozeTest KeyValueListParserTest AlwaysOnDisplayPolicyTest
Change-Id: Ia26cd38258c2cf83558a9a39a6b1c2ec6dedfcb1
/frameworks/base/core/java/android/provider/Settings.java
329d04097e1db9b6f801972d94f56c5b56c09e8a 06-Dec-2017 Felipe Leme <felipeal@google.com> Moar changes for Autofill Field Classification mechanism:

- Changed max score to float (range 0.0 - 1.0).
- Replaced getTopMatch() to getMatches().
- Created a Scorer interface with a default edit-distance implementation.
- Added a isFieldClassificationEnabled() method.

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:EditDistanceScorerTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest FrameworksCoreTests:SettingsBackupTest

Bug: 68045531

Change-Id: Ice6cbf548053b86b47980d9664a3a21219c0ff08
/frameworks/base/core/java/android/provider/Settings.java
53f0e029194684e66093239afebcf0cad0b1a165 29-Nov-2017 Makoto Onuki <omakoto@google.com> Don't persist LOCATION_GLOBAL_KILL_SWITCH

Bug: 68769804
Test: manual test
Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Test: atest ${ANDROID_BUILD_TOP}/frameworks/base/core/tests/coretests/src/android/provider/SettingsProviderTest.java
Test: atest SettingsProviderTest

Change-Id: I448e1aad10b517b41f58a15459c6dd1fbaf36478
/frameworks/base/core/java/android/provider/Settings.java
edb95359226a7094bc7ba54d4d66880fe714e228 04-Dec-2017 Yueming Wang <yuemingw@google.com> Merge "Implement DevicePolicyManager.setSystemSettings."
0de748d833bef8e08329ef1abb9b681391e34ac8 15-Nov-2017 yuemingw <yuemingw@google.com> Implement DevicePolicyManager.setSystemSettings.

b/67627818
Bug: 67627818
Test: runtest -x services/tests/servicestests/src/
com/android/server/devicepolicy/DevicePolicyManagerTest.java

design doc: https://docs.google.com/document/d/
1rvEg5jE3lMhjH-OA0iTLBUY2opM96fg7BrP81MoPnmg/edit#

Change-Id: If5f5c280957085480872f2d59ed59309cf288145
/frameworks/base/core/java/android/provider/Settings.java
3ce82e34e6684951ba89e2bfb49e8ef3ca8c951d 04-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Refactored field detection mechanism to support multiple fields."
452886a5b8d7cb94ba0c53e8976ff558980db1e5 27-Nov-2017 Felipe Leme <felipeal@google.com> Refactored field detection mechanism to support multiple fields.

Now instead of using FillResponse.setFieldDetection() with an object that
contains both the autofill ids an the user data, service must:
- Set global mapping through AutofillService.setUserData()
- Pass just the autofill ids to FillResponse.setFieldClassificationIds()

This CL is purely a refactoring CL - although the new API supports multiple
values and multiple fields, the implementation is still hardcode for one
value and one field (as before).

Test: atest CtsAutoFillServiceTestCases:FieldsClassificationTest
Test: atest CtsAutoFillServiceTestCases:UserDataTest
Test: atest CtsAutoFillServiceTestCases:FillResponseTest

Bug: 68045531

Change-Id: I8d846d817dfcde3a4db7abff798bb2250e1c4e7b
/frameworks/base/core/java/android/provider/Settings.java
dcc0da281b4a7e250a732da524f90cbb954516eb 11-Nov-2017 Mehdi Alizadeh <mett@google.com> Adds soft AP timeout settings

Adds two different settings for this feature: 1) to enable/disable
the timeout mechanism (by a toggle control from Settings UI). 2) to set
the timeout duration which is configurable as an overlay.

Bug: 68712445
Test: None
Change-Id: I6232410f85b9c25477d3edada37cc7312d888f19
/frameworks/base/core/java/android/provider/Settings.java
728dceac63884f90aa9f2d4a297fdbda96d5922a 30-Nov-2017 Bernardo Rufino <brufino@google.com> Remove old BackupManagerService

As discussed, only removed the class, local interface and trampoline
still exist. That will go into a next CL.

Bug: 65823538
Test: make RunFrameworksServicesRoboTests
Test: runtest -p com.android.server.backup frameworks-services
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupTestCases
Test: gts-tradefed run commandAndExit gts-dev -m GtsBackupHostTestCases
Test: cts-tradefed run commandAndExit cts-dev -m CtsBackupTestCases
Test: adb shell bmgr backupnow <kv and full-backup packages>
Test: adb backup & adb restore
Change-Id: Ifcb4c02e364b8c4899ff376ff20cd8c89fc1af28
/frameworks/base/core/java/android/provider/Settings.java
fd315a9fd9769937593be778a526c78db1b5a0d9 29-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce Global.LOCATION_GLOBAL_KILL_SWITCH"
0000d32feefcf7d2254efd8d7b27741188f02a45 29-Nov-2017 Makoto Onuki <omakoto@google.com> Introduce Global.LOCATION_GLOBAL_KILL_SWITCH

- When it's set to "1", LOCATION_PROVIDERS_ALLOWED will return "".

- When it's updated, the provider will send the changed notification
for LOCATION_PROVIDERS_ALLOWED for all running users.

Bug: 68769804
Test: Manual test with the settings command
Test: atest $ANDROID_BUILD_TOP/frameworks/base/core/tests/coretests/src/android/provider/SettingsBackupTest.java
Change-Id: Ie14ee696788b4152f7ae442da06b0bfa8034db52
/frameworks/base/core/java/android/provider/Settings.java
08d6f6a60a712e0848d6ed15a034de2ca60dea53 28-Nov-2017 Jakub Pawlowski <jpawlowski@google.com> Merge "Add persistent state for Hearing Aid Profile" am: 2282e2f57f
am: 0f9b8c2c60

Change-Id: I971ab43aed9d0f656e0878e7277ec8e416b1867f
0f9b8c2c600cda5554e50734214ae35d3f9ce37f 28-Nov-2017 Jakub Pawlowski <jpawlowski@google.com> Merge "Add persistent state for Hearing Aid Profile"
am: 2282e2f57f

Change-Id: Iff05733aeb2214b1720883f6c7c28a3357887ec2
cb6ce25529d03db3567156661f7abacc314fbb26 22-Nov-2017 Jakub Pawlowski <jpawlowski@google.com> Add persistent state for Hearing Aid Profile

Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
Merged-In: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
/frameworks/base/core/java/android/provider/Settings.java
c2d7be6667149ebdcf4091db4e76f9cb7a44e80b 22-Nov-2017 Jakub Pawlowski <jpawlowski@google.com> Add persistent state for Hearing Aid Profile

Defines the flag used in code and the Settings.Global key names for
persisting state of the Bluetooth Hearing Aid Profile.

Test: manual
Bug: 69623109
Change-Id: I19e68be55a80f338bdc5d39d6c3c6d251f1cb514
/frameworks/base/core/java/android/provider/Settings.java
06e314f6cc0d629f59579f8bd549915580f79b4b 21-Nov-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Adding "Mobile data" and "Data usage" button in mobile settings."
1fe5547eda49645ae1b7ee67704f7a1e0b96953b 17-Nov-2017 Cody Northrop <cnorthrop@google.com> Merge "Rootless GPU Debug"
86cedcb583b8859fadb273e93cbb3b96b22ba83e 20-Oct-2017 Cody Northrop <cnorthrop@google.com> Rootless GPU Debug

Add the ability to load GPU debug layers from the base
directory of debuggable applications.

This commit:
* Adds a new Setting to Developer options: "Enable GPU debug layers"
* Adds a new way to discover and specify GPU debug layers per app
* Moves much of the layer enabling logic into GraphicsEnvironment
* Removes the JNI component of ApplicationLoaders

Bug: 63708377
Test: Manual, CTS tests to follow
Change-Id: I7d33e9f835f49aa8d86e63bdb32037728bc8b6a4
/frameworks/base/core/java/android/provider/Settings.java
a786f00f069c33aab5171f615cb3e35ed1755ede 15-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Refactor battery saver logic + add "per device" setting"
66a7812bc90b5be7702fe5743d257fddcdb48201 15-Nov-2017 Makoto Onuki <omakoto@google.com> Refactor battery saver logic + add "per device" setting

- Extract the battery saver mode transition logic to BatterySaverController.

This now also supports running different code when screen turns on and off.

- BatterySaverPolicy now takes a "per-device configuration" from config.xml,
which can be overwritten via a global setting. We'll use this to set up
max CPU frequencies.

- The actual part to write max CPU frequencies is not finished yet.

Test: atest BatterySaverPolicyTest
Bug: 68769804
Change-Id: Ife38c2cd94ac9902911b005dbbca8b0d0a62e6d7
/frameworks/base/core/java/android/provider/Settings.java
220871a697290529278ed16db508eda8e12f3fc7 14-Nov-2017 Xin Li <delphij@google.com> Merge commit '98e12851336b7db16e583f9afac63ecc97465980' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master.

Change-Id: Ia7b8da4a00d215160e4a4fa40f6044208d1297b7
Merged-In: I19846d2a3ee27aecbae2367a74ee49082eea154d
eaa8032ab9dfffbb9b5594e8c70c112e449824a1 14-Nov-2017 Jordan Liu <jminjie@google.com> Merge "Customize the default value of Enhanced 4G LTE mode" am: 0f113b2f25 am: df79be072d
am: 92c4fa8570

Change-Id: I0c40a2435feb57c7ebd90491cd0c3055f47b7a07
44bb533e7421703781eca6c215d449df44373d65 14-Nov-2017 Xiangyu/Malcolm Chen <refuhoo@google.com> Merge "Move Ims related settings from global setting to subscription db."
92c4fa85701252308fc1d51a085471181866927a 14-Nov-2017 Jordan Liu <jminjie@google.com> Merge "Customize the default value of Enhanced 4G LTE mode" am: 0f113b2f25
am: df79be072d

Change-Id: I65d3b0a60ad69cb6e5c07297eeb8166230b9f720
b0886f3fe1bf674ee525c5599d3f9158414f539f 31-Oct-2017 Kweku Adams <kwekua@google.com> incidentd: Updating Settings Provider proto dump.

Handling potential null cases, adding comments, logging new settings,
and dumping historical operations.

Bug: 65750829
Test: flash device and check incident.proto output
Change-Id: I66fe324a91fba136e73761cfb74f3527de75d3ad
/frameworks/base/core/java/android/provider/Settings.java
3c9118900fc64e0172efb736a35f62dcc168e3a4 20-Jun-2017 Malcolm Chen <refuhoo@google.com> Adding "Mobile data" and "Data usage" button in mobile settings.

Grant "READ_NETWORK_USAGE_HISTORY" permission to phone because
"Datat usage" button summary needs it. Settings provides new
intent to open mobile data usage page.

Bug: 62201918
Test: Manual
Change-Id: Ie317109c723f3946ace4d34c743081a7ae046462
Merged-In: Ie317109c723f3946ace4d34c743081a7ae046462
/frameworks/base/core/java/android/provider/Settings.java
a3e562cd8f0abdeabe05942400dae9e0d8a4e308 09-Nov-2017 Ricky Wai <rickywai@google.com> Merge "Add Network security watchlist service"
4a3d844742fca89c142ee24a469830d435d64689 08-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Very initial field detection prototype."
1a6e667cb6e9211908d02eb21c50c006473376f9 27-Oct-2017 Ricky Wai <rickywai@google.com> Add Network security watchlist service

Network security watchlist service is a service to monitor all potential
harmful network traffic. By setting a network watchlist, any connections
that visit any site from watchlist will be logged.

Logs will be aggregated everyday and encoded using differential
privacy before exporting it from framework.

This feature is disabled now, run "setprop ro.network_watchlist_enabled true" to enable it.

All network events are handled in an async bg thread, it should not
cause any delay in netd. Also, it uses the hooks in enterprise network logging,
so we can run netd_benchmark to measure the impact to netd.

Here are the things not included in this CL:
- ConfigUpdater to get and set watchlist
- Differential privacy encoding logic and reporting
- CTS
- Memory and performance optimization for internal watchlist data structure

Test: manual - turn on the feature, hard code a watchlist xml, process
that visited that domain is being logged in sqlite.
Test: run netd_benchmark - seems no obvious performance change.
Test: bit FrameworksCoreTests:android.net.NetworkWatchlistManagerTests
Test: runtest frameworks-net
Test: runtest frameworks-services -p com.android.server.net.watchlist

Bug: 63908748

Change-Id: I09595178bac0070a867bc5e0501a7bf2c840e398
/frameworks/base/core/java/android/provider/Settings.java
14723e314c98182bc9b7a1eaa06bdc35dc51637b 06-Oct-2017 manabu, shimoda <manabu.x.shimoda@sonymobile.com> Customize the default value of Enhanced 4G LTE mode

To control the default value by carrier configuration,
- Add a carrier option to control default Enhanced 4G LTE mode enabled.
- Remove initializing Settings.Global.ENHANCED_4G_MODE_ENABLED.

Test: manual - Checked that the "Enhanced 4G LTE mode" can be controlled
by carrier config.
Bug: 67725875

Change-Id: Ic714abcae5c388cc12e6c4b1f45e2abb07febf54
/frameworks/base/core/java/android/provider/Settings.java
b6ba24718824745c3567141a18f9ed120afd6f3c 07-Nov-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose EXTRA_SUB_ID."
6c5c1d73461880b55c8f08f3b38197c290524560 07-Nov-2017 Erik Kline <ek@google.com> Merge "Replace dns_tls with private_dns_mode setting" am: 8cf645c04d am: f1799116c2
am: 76d2732ad8

Change-Id: Icba28e4d4e446dd6eac0f2f017957894e33084f2
76d2732ad8661515f2fab8fa26d8d8c8ada9d035 07-Nov-2017 Erik Kline <ek@google.com> Merge "Replace dns_tls with private_dns_mode setting" am: 8cf645c04d
am: f1799116c2

Change-Id: I3e0448c045eb1072d0cd70a163ca355786b21cc4
4d092238de2de290f018c41c1134b8b89baa635d 30-Oct-2017 Erik Kline <ek@google.com> Replace dns_tls with private_dns_mode setting

Also includes:
- SettingsLib strings used in PrivateDnsModeDialogPreference
interaction in the Settings app
- rename ContentResolver "resolver" in methods working with
DNS resolvers (too confusing)

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net
- no new failures in SettingsBackupTest nor in SettingsProviderTest
- manual interaction with developer option works
Bug: 34953048
Bug: 64133961
Change-Id: Ia7502916db9ffa0792e1e500a35e34d06a88e79d
/frameworks/base/core/java/android/provider/Settings.java
24d7173cf1e3193bb48c9c6aed0261efe34f890b 20-Oct-2017 Felipe Leme <felipeal@google.com> Very initial field detection prototype.

A.K.A "OMG, It's full of TODOs!"

Test: cts-tradefed run commandAndExit cts-dev -m CtsAutoFillServiceTestCases -t android.autofillservice.cts.FieldsDetectionTest

Bug: 67867469

Change-Id: I7c8f7c3e35ccbae0134e2a446b7b44e1e57261fc
/frameworks/base/core/java/android/provider/Settings.java
f32f7b454a7cda6b49b2d1d0489124152461bff9 03-Nov-2017 Jeff Davidson <jpd@google.com> Expose EXTRA_SUB_ID.

This is an (optional) extra for ACTION_NETWORK_OPERATOR_SETTINGS.

Bug: 67751543
Test: TH only; no functional changes
Change-Id: I6cd306a85341dd835ff114a4214e8c34dd1d7dac
/frameworks/base/core/java/android/provider/Settings.java
8994a1ff6f5dcff950f642641d51cb9210ae9d1d 01-Nov-2017 Alex Salo <asalo@google.com> Add a setting to control JIT for priv apps.

This flag can be controlled by Phenotype starting GmsCore v9.

Bug: 67415855
Test: not needed
Change-Id: I07d31dd209ab0a0e48ce745f1b54be63f5993e5d
/frameworks/base/core/java/android/provider/Settings.java
c28b2bbb00b62aa1919fe63989480d21cc605c25 24-Oct-2017 David Chen <dwchen@google.com> Adds logging to push settings changed to statsd.

Introduces atom and logging for every time a setting is updated.
We also include the previous value to validate our logging
data quality. We need to add the INTERACT_ACROSS_USERS_FULL
permission to prevent a security exception during testing; since the
logging occurs from system_server uid, this security exception should
not occur normally.

Test: Manual by inspecting the statsd output while toggling settings.
Change-Id: I92ca2afa596e54e61936e22611d749bb60ccb364
/frameworks/base/core/java/android/provider/Settings.java
c66dee973df2fe77af88e206a689542857114947 26-Sep-2017 Malcolm Chen <refuhoo@google.com> Move Ims related settings from global setting to subscription db.

Bug: 66699661
Test: Manual

Change-Id: Id0d7795401f120b6a8704304a368d926a6610395
/frameworks/base/core/java/android/provider/Settings.java
8ad7149d1b5e415efc6ac4ced10c4c80a4181d9e 25-Oct-2017 Christine Franks <christyfranks@google.com> Support native and srgb for night display

Bug: 68159303
Test: make -j100

Change-Id: Iea4b38bd8c9037f50b7ffa6e3c4f12b0e536a8ce
/frameworks/base/core/java/android/provider/Settings.java
10e9bc5ba78f5e6fd138e6ee752b2d2b3589d747 25-Oct-2017 Christine Franks <christyfranks@google.com> Merge "DO NOT MERGE - Support native and srgb for night display" into oc-mr1-dev
am: 2d110e6829

Change-Id: I0e805b480a3317548c219eb282fcf399b41b4ff1
8c9f91eba618c1fc5ad7f7ddef2b8854d4d10fce 25-Oct-2017 Christine Franks <christyfranks@google.com> DO NOT MERGE - Support native and srgb for night display

Bug: 68159303
Test: make -j100

Change-Id: Iea4b38bd8c9037f50b7ffa6e3c4f12b0e536a8ce
/frameworks/base/core/java/android/provider/Settings.java
a3427552fe05d3c532b89a149d706c01495b5bac 24-Oct-2017 Pulkit Bhuwalka <pulkitb@google.com> Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92 am: b977674b17
am: 7cc5e10c2f

Change-Id: I4a0d1e8cc4f879896c3029a8f871d794362e0bca
7cc5e10c2f910af708235ac705c0348f6339cbc2 24-Oct-2017 Pulkit Bhuwalka <pulkitb@google.com> Merge "Persist Bluetooth CoD config value across reboot" am: ba45409c92
am: b977674b17

Change-Id: I6b6745eb558d664e1f17d5e808c66990cd0038eb
b977674b1721ea3c17be4b85a899ad054a24ada5 24-Oct-2017 Pulkit Bhuwalka <pulkitb@google.com> Merge "Persist Bluetooth CoD config value across reboot"
am: ba45409c92

Change-Id: I4d28d0b1b52e587285d3b92b66fdc4b6c1b38720
ba45409c922a7d63cdcb08d1ae1d1d8f11e7e6f7 24-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Persist Bluetooth CoD config value across reboot"
5140894a5d8f19df5e6ca301fcd678e7ed3291f4 24-Oct-2017 Hansong Zhang <hsz@google.com> Merge "Change Bluetooth HID Profile Name (1/6)" am: 8218b219f3
am: c8a370aeba

Change-Id: I2c5da84f5b57496e2a0ef45fb17085670f7465a9
c8a370aeba5fe441ec84950ec0dcefd5456bc777 24-Oct-2017 Hansong Zhang <hsz@google.com> Merge "Change Bluetooth HID Profile Name (1/6)"
am: 8218b219f3

Change-Id: Ic085deaa070b4008b34d03b507f81a5df220764a
0edf754b2d04965d3186407a6d5de1d36d29f0a9 21-Oct-2017 Hansong Zhang <hsz@google.com> Change Bluetooth HID Profile Name (1/6)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

(Cherry-picked from commit c26c76c63d933f8057f795d05624f91b811c8c71)
Merged-In: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
/frameworks/base/core/java/android/provider/Settings.java
c26c76c63d933f8057f795d05624f91b811c8c71 21-Oct-2017 Hansong Zhang <hsz@google.com> Change Bluetooth HID Profile Name (1/11)

Make the Bluetooth HID profile name consistent with the Bluetooth HID service
name.

BluetoothInputHost → BluetoothHidDevice
BluetoothInputDevice → BluetoothHidHost
IBluetoothInputHost → IBluetoothHidDevice
IBluetoothInputDevice → IBluetoothHidHost
BluetoothProfile.INPUT_HOST → BluetoothProfile.HID_DEVICE
BluetoothProfile.INPUT_DEVICE → BluetoothProfile.HID_HOST

Bug: 68055651
Test: make
Change-Id: Iadb890a54dd3d6868b87514472bbac6bb0c6179f
/frameworks/base/core/java/android/provider/Settings.java
547853d4c34bf121c7be0faa9979034d5e101bfd 26-Sep-2017 Pulkit Bhuwalka <pulkitb@google.com> Persist Bluetooth CoD config value across reboot

Create new Settings key for storage and update the API doc.

Bug: 36015415
Test: Verified by storing a value through a test app and restarting the
machine to ensure it's picked up.

Change-Id: I94aa054e525c4656bb3a824a29cae9c88f8904e0
/frameworks/base/core/java/android/provider/Settings.java
f5699224e9a336ae98a159deb08708ad683cce0f 20-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add FingerprintEnroll API"
4ee7b8af83a1e47b480258671a31479caa2a69ca 20-Oct-2017 Ben Schwartz <bemasc@google.com> Merge "Add a global setting to disable DNS over TLS" am: 4a906c167b am: 3017ebec8c am: b84582fc96
am: 7e7c472d9a

Change-Id: I0c066afaa0d6d776cac08cbc7bd97dbf5b29a8be
7e7c472d9a7b8da8fa3fd0ee1552f4c63eee3278 20-Oct-2017 Ben Schwartz <bemasc@google.com> Merge "Add a global setting to disable DNS over TLS" am: 4a906c167b am: 3017ebec8c
am: b84582fc96

Change-Id: Ia64a8318ad2f57aa3dc58a13d20274b877649fef
b84582fc9647ba0fe4a2d3b406d40cd1d394ae19 20-Oct-2017 Ben Schwartz <bemasc@google.com> Merge "Add a global setting to disable DNS over TLS" am: 4a906c167b
am: 3017ebec8c

Change-Id: I94c2f2011bbe29e3d8a39904d19d2b5c606ae0be
3017ebec8ccc13dc2e3841464b17f40ffae3b441 20-Oct-2017 Ben Schwartz <bemasc@google.com> Merge "Add a global setting to disable DNS over TLS"
am: 4a906c167b

Change-Id: Ie0f5586342b32c9e7c745ab9697b44158a920233
83ff28c00c88c9e730d451101ead2c1fe0a59993 14-Oct-2017 Kevin Chyn <kchyn@google.com> Add FingerprintEnroll API

Bug: 65459785

Test: adb shell am start -a android.settings.FINGERPRINT_ENROLL
Flow is correct with and without PIN/Pattern/Pass set up

Change-Id: Ib4daa9a4b687bb7b884fe4159a6cbd871db88641
/frameworks/base/core/java/android/provider/Settings.java
bccbd009edf909747a47cdfaa4cbd34343fb13b1 02-Oct-2017 Ben Schwartz <bemasc@google.com> Add a global setting to disable DNS over TLS

Bug: 63449024
Test: Manual. Appears to work.
Change-Id: Ib3b58bfff5951240a2e02f18c362efa96635ef4f
/frameworks/base/core/java/android/provider/Settings.java
a55f74e45d30ef9f533c9cf8d47f01df5ed05fec 21-Sep-2017 Eugene Susla <eugenesusla@google.com> Magnification Gestures CTS test

Test: ensure affected CTS tests pass
Change-Id: I2ad9ef57098d1e9343d571e0d59504851ac691eb
/frameworks/base/core/java/android/provider/Settings.java
2a86655b42009a5d2292776de483a3135aed4e63 15-Oct-2017 Abodunrinwa Toki <toki@google.com> Merge "Flags to enable/disable smart selection in EditText" into oc-mr1-dev
am: 14ba6e10c0

Change-Id: I0ddb7b827ad8b0be37c7e1adc5a95493bd35d61f
ba60ab604c880699166cc5fbfad95aa0f2501141 20-Sep-2017 Abodunrinwa Toki <toki@google.com> Flags to enable/disable smart selection in EditText

1. smart_selection_enabled_for_edit_text
Disables smart selection for editable text.
2. smart_selection_dark_launch
Dark launch TextClassifierImpl.suggestSelection(...)
In this mode we run the method, but never change the user's
selection to measure the quality of the results based on what
the user actually wanted.

Bug: 65959640
Test: Manually tested flags turn on/off feature with 'adb shell
settings put global' and GServices override.
Test: bit FrameworksCoreTests:android.provider.SettingsBackupTest
Merged-In: Iacc561c8ee004b0123de66ad1ee06b1f56b4e4b4
Change-Id: Iacc561c8ee004b0123de66ad1ee06b1f56b4e4b4
/frameworks/base/core/java/android/provider/Settings.java
f055302a73a575f547e0167da0967f26ecefa421 13-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Flags to enable/disable smart selection in EditText"
0e6b43ed58074725d8021401ded8e22a685d15e1 20-Sep-2017 Abodunrinwa Toki <toki@google.com> Flags to enable/disable smart selection in EditText

1. smart_selection_enabled_for_edit_text
Disables smart selection for editable text.
2. smart_selection_dark_launch
Dark launch TextClassifierImpl.suggestSelection(...)
In this mode we run the method, but never change the user's
selection to measure the quality of the results based on what
the user actually wanted.

Bug: 65959640
Test: Manually tested flags turn on/off feature with 'adb shell
settings put global' and GServices override.
Test: bit FrameworksCoreTests:android.provider.SettingsBackupTest
Change-Id: Iacc561c8ee004b0123de66ad1ee06b1f56b4e4b4
/frameworks/base/core/java/android/provider/Settings.java
fb44d212f267074a305eb34fa064b6d6904aa3ef 04-Oct-2017 Winson Chung <winsonc@google.com> 3/Removing unnecessary filtering logic for recent tasks in SystemUI

- Remove all code related to last-stack-active-time, quiet profile task
handling, and visible task range filtering
- Remove the notion of firstActiveTime since that was only used to filter
tasks in SystemUI, also convert lastActiveTime to elapsed real time since
it is only used in the system to order active tasks, and in SystemUI as
a part of the TaskKey for caching purposes (it is no longer used to
determine the last visible task based on time)

Bug: 34270611
Test: runtest --path frameworks/base/services/tests/servicestests/src/com/android/server/am/RecentTasksTest.java
Change-Id: I44d494a521f60f302e0976fcf33490fe837f7cdb
/frameworks/base/core/java/android/provider/Settings.java
1334afec1f875209344a359c2836302b93a36831 09-Oct-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic "wear_small_battery-master"

* changes:
Revert device idle timing changes for small battery devices.
Removing watch specific DeviceIdleController logic in favor of small battery device flag
b5877b3e0c19d40fc50eb55bfa4ac5b6aa55795a 07-Oct-2017 Andrew Sapperstein <asapperstein@google.com> Merge "Update ANOMALY_DETECTION_CONSTANTS javadoc." into oc-mr1-dev am: 972446cf03
am: 31c0be94ef

Change-Id: I4fca12fbda920b77ae6309e98d5f764ea878b5ce
31c0be94efa686aa54c2668c7dce2d09165e1dfe 07-Oct-2017 Andrew Sapperstein <asapperstein@google.com> Merge "Update ANOMALY_DETECTION_CONSTANTS javadoc." into oc-mr1-dev
am: 972446cf03

Change-Id: I74706c0f8f2369ff06dc6d9d1d588845edd467b4
858a4640f3215096bf66dcf9bcb17c00db966279 06-Oct-2017 Andrew Sapperstein <asapperstein@google.com> Update ANOMALY_DETECTION_CONSTANTS javadoc.

Adds more of the supported parameters including the new
wakeup blacklist parameter.

Bug: 67000019
Test: is comment change
Change-Id: Iee80b5cbf7972860e87efd5551bce962a3fa03c5
/frameworks/base/core/java/android/provider/Settings.java
597da8ad1119a2b95704613aa15cc80caad7ed1f 21-Jul-2017 shreerag <shreerag@google.com> Removing watch specific DeviceIdleController logic in favor of small battery device flag

Bug: 28091250
Change-Id: Iaeda3c8249287fec7d17e575071de22cad344cea
(cherry picked from commit b964832da6a6ba0615c1f7606b22b5fd89c45491)
/frameworks/base/core/java/android/provider/Settings.java
5a860604e3bd0591961a4721088d170e71122fb1 03-Oct-2017 Chris Wren <cwren@google.com> Merge "Enable experimentation on notification snooze options" into oc-mr1-dev am: 9cb14a0c95
am: 4706c262fa

Change-Id: Ic99064fcb8a51b8d66ce5b55e4e2da52cbc1557b
4706c262fad74c3e881251531b88d5eba83e4ad0 03-Oct-2017 Chris Wren <cwren@google.com> Merge "Enable experimentation on notification snooze options" into oc-mr1-dev
am: 9cb14a0c95

Change-Id: Ia54ca5b12479f22c9bef54b1f488bcb74e15423f
e901a7e0ed81f76c2330dbbfcec4a448c40cf4de 02-Oct-2017 Chris Wren <cwren@google.com> Enable experimentation on notification snooze options

Bug: 67003813
Test: runtest systemui

Change-Id: Id46ef3938e2edc633f64cec7b66e10d80c9a0bff
/frameworks/base/core/java/android/provider/Settings.java
c4db5cae4f7ae86fb02fc861bfdfca41ef1729ac 21-Sep-2017 Kenny Guy <kennyguy@google.com> Fix typo in Settings.BOOT_COUNT

Change-Id: Idc274d55e4c26584288455f8087776d0a8b930e5
Test: make docs
/frameworks/base/core/java/android/provider/Settings.java
0321346f38839a332e7c097a1cc80251a13b97c3 25-Aug-2017 Christine Franks <christyfranks@google.com> Handle night display state when timezone changes

Bug: 64458884
Test: runtest -c com.android.server.NightDisplayServiceTest \
frameworks-services and manually tested Hawaii and London

Change-Id: I052034a4c64eb73c42672215e8847c11e00efeb5
(cherry picked from commit 2ce862c3ed3739c4bb794794fb57e00fe233a3d5)
/frameworks/base/core/java/android/provider/Settings.java
1cdb151ef7f4bb1203320039e8a48a3c1720593f 20-Sep-2017 Christine Franks <christyfranks@google.com> Merge "Handle night display state when timezone changes" into oc-mr1-dev
am: 1276f357d3

Change-Id: I96cc0161eb092f2a965efbff4a417bc992493625
1276f357d3addd80ca0348515d07193b68682f44 20-Sep-2017 Christine Franks <christyfranks@google.com> Merge "Handle night display state when timezone changes" into oc-mr1-dev
2ce862c3ed3739c4bb794794fb57e00fe233a3d5 25-Aug-2017 Christine Franks <christyfranks@google.com> Handle night display state when timezone changes

Bug: 64458884
Test: runtest -c com.android.server.NightDisplayServiceTest \
frameworks-services and manually tested Hawaii and London

Change-Id: I052034a4c64eb73c42672215e8847c11e00efeb5
/frameworks/base/core/java/android/provider/Settings.java
8c8ded0e11216c55ebedacb38ac7a85829a23a4c 15-Sep-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add a backup manager constants secure settings."
cc1e76a4b3b4e19ebc340c93a36a3dfef09598e5 31-Aug-2017 Tim Zheng <timzheng@google.com> Add a backup manager constants secure settings.

This change add one secure settings which is a key value list consisting
of 7 individual settings; it also provides a class to get these settings
and use the default values specified in default.xml file when the settings
are missing.

This is the first part of a 2 part change. A subsequent change will use
these settings in backup service manger for setting up backup frequency.

Test: This change builds. Manual tests will be included in part 2 of the
change.
Bug: 63351792
Change-Id: I62baddbf3e0b96af6b7de3dfdeac3479e5b3ded8
/frameworks/base/core/java/android/provider/Settings.java
7c8f03477b74ad950fe4a183e53cb580c64e4a11 15-Sep-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed am: d1412d3d60 am: b8ae843a20
am: 8be86f28f8

Change-Id: I0a64f06c0771f88f1cbe09d46f48fca35529ea42
8be86f28f8ebf0cc467c85e79ca23d1dbda8f9d6 14-Sep-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed am: d1412d3d60
am: b8ae843a20

Change-Id: Ic72fdc1f0833b8ebcd6d789cc2023266287dc341
bd89855f46f3ff77b3c3afd4a40782f1802322f0 14-Sep-2017 Sundeep Ghuman <sghuman@google.com> Merge "Change score cache eviction time to settings value." into oc-mr1-dev
am: 2193f912f3

Change-Id: Ifec764594fcaa858a81d52896cc501d56dcf20e0
b8ae843a20f048d4ec8a49f62629bed11dff3d86 14-Sep-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed
am: d1412d3d60

Change-Id: Ia63b719e65f0d82f7aa65fd4a74a442ffa27190d
1bfd76caf75b43bc3800461b82aff6a098693d48 14-Sep-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718 am: 4b3a4b58ed
am: d1412d3d60

Change-Id: I89c089697a431a21d120561fcd54ead30320751c
d1412d3d608c8879025978ebbfa5f85bf91a26e0 14-Sep-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes. Bug: 38270718
am: 4b3a4b58ed

Change-Id: I2925d1d3bf70cebfb8d830a28a977208138d91af
1e98151104022d7dbc1f3d49501f46fe8090d265 29-Aug-2017 Sundeep Ghuman <sghuman@google.com> Change score cache eviction time to settings value.

Reduce default eviction time from intended 24 hours (erroneously input
as 24 days) to 20 minutes.

Bug: b/63073866
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I89eae2483b9a65a65d7cf5b1151952609b6b7fd7
Merged-In: I89eae2483b9a65a65d7cf5b1151952609b6b7fd7
/frameworks/base/core/java/android/provider/Settings.java
4b3a4b58ed8fc725b8c4e1c23bd9c6c5fdf73755 15-Jun-2017 Dave Friedman <dmail@google.com> Docs: Updating ANDROID_ID information to reflect Android O changes.
Bug: 38270718

Test: Verified on local build.

Change-Id: If4f86d261ae950cc14579aeba65c36a289cdf56c
/frameworks/base/core/java/android/provider/Settings.java
e7454950f62ff7fc90f66cde41b7e6e01352bc73 12-Sep-2017 Chad Brubaker <cbrubaker@google.com> Merge "Expand and expose Lockdown global action"
4f28f0de37b00216dbe0f66513735a0ab7dd570d 07-Sep-2017 Chad Brubaker <cbrubaker@google.com> Expand and expose Lockdown global action

This action puts the phone into the state where it can only be unlocked
via the user's primary knowledge factor. In the future this can also
evict keys and otherwise secure the device beyond the norm in a sketchy
situation.

This is currently controlled Settings.Secure.LOCKDOWN_IN_POWER_MENU, it
can be enabled for testing via
`adb shell settings put secure lockdown_in_power_menu 1`

Bug: 37221346
Test: Manual
Change-Id: I6197fadf655e5298cab1ab95153c316b87f3b718
/frameworks/base/core/java/android/provider/Settings.java
1b1b7827c8352609bd5035f0ec2a6c33272aa4a8 07-Sep-2017 Daniel Nishi <dhnishi@google.com> Merge "Flag storage settings cache invalidation time." into oc-mr1-dev am: b53b925f68
am: a5288e7ae6

Change-Id: I4f82aba1446d3fa959ed8055b7d9fb97cfc69b64
a5288e7ae656bb39009343cea38f096c980d504f 07-Sep-2017 Daniel Nishi <dhnishi@google.com> Merge "Flag storage settings cache invalidation time." into oc-mr1-dev
am: b53b925f68

Change-Id: Ib6706048900ee19a72ad412da091a9278adb42c5
9bb85d3c4d0698e41dd5a27a534d55d9f983daaf 29-Aug-2017 Sundeep Ghuman <sghuman@google.com> Change score cache eviction time to settings value.

Reduce default eviction time from intended 24 hours (erroneously input
as 24 days) to 20 minutes.

Bug: b/63073866
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/AccessPointTest.java

Change-Id: I89eae2483b9a65a65d7cf5b1151952609b6b7fd7
/frameworks/base/core/java/android/provider/Settings.java
b53b925f6803a4260687a80d4c20da2060833c0b 07-Sep-2017 Daniel Nishi <dhnishi@google.com> Merge "Flag storage settings cache invalidation time." into oc-mr1-dev
15d584448a619ccddc960ba54348e5a9665c0b21 06-Sep-2017 Chad Brubaker <cbrubaker@google.com> Merge "Allow Instant Apps to access send_action_app_error" into oc-mr1-dev am: 102f564165
am: 47be923fd5

Change-Id: I326983ec4699570b5de91824cca08028e95d1914
47be923fd5c020090abee33d7da8bffeee1ea87c 06-Sep-2017 Chad Brubaker <cbrubaker@google.com> Merge "Allow Instant Apps to access send_action_app_error" into oc-mr1-dev
am: 102f564165

Change-Id: Iaec41b49ab0fd6d312efc08b05b3cff0b12c4401
a6170b86baa5e43966dee19166edbc7f190e2587 01-Sep-2017 Chad Brubaker <cbrubaker@google.com> Allow Instant Apps to access send_action_app_error

Bug: 65294464
Test: Manual
Change-Id: I81964362b5109037315064ebc4610adb0edc151f
/frameworks/base/core/java/android/provider/Settings.java
8c6fe753dd89985400c4ce0181916ae8db6bb872 01-Sep-2017 Julia Reynolds <juliacr@google.com> Merge "Add more functionality to channel groups"
b8688916714f49dd5d53163e4ea15b21c4491f0b 01-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev am: 67594c6f54
am: 04e7d1fa20

Change-Id: I9b4a60017a5e2273e572d90929d269e31352b5a0
04e7d1fa208e8062d86d56f9846b63337e3fd2d3 01-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev
am: 67594c6f54

Change-Id: Ifbb83939c2c2c30048fe43b2092b2afe4c3b234c
67594c6f54a6f0f9a9a8359914494e317c509acc 01-Sep-2017 Lei Yu <jackqdyulei@google.com> Merge "Hook up AOD knobs to Settings.Global" into oc-mr1-dev
8443dd0e7680e489509e8a9bf0bb5fcefd7a8c3e 25-Aug-2017 jackqdyulei <jackqdyulei@google.com> Hook up AOD knobs to Settings.Global

This cl creates AlwaysOnDisplayPolicy, which get values for the
following knobs(go/aod-experiments) from Settings.Global:
1. screen_brightness_array
2. dimming_scrim_array
3. prox_screen_off_delay
4. prox_cooldown_trigger
5. prox_cooldown_period

Also update code to make sure AlwaysOnDisplayPolicy is used
everywhere.

Bug: 64899561
Test: runtest -x AlwaysOnDisplayPolicyTest

Change-Id: I2e83ff980771e67177e4964bd83aa68b2bdca65f
/frameworks/base/core/java/android/provider/Settings.java
005c8b9098120526fa69f98bce3a5e1f79e3699b 24-Aug-2017 Julia Reynolds <juliacr@google.com> Add more functionality to channel groups

Description, blocking, links to/from the app

Test: cts, runtest systemui-notification
Bug: 63927402
Change-Id: Icc8caf319651f9ac2d622fb54110270c89bdff61
/frameworks/base/core/java/android/provider/Settings.java
595987e6198b5ee55416a3945efa479f95c3eeb7 30-Aug-2017 Jeff Sharkey <jsharkey@google.com> Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev am: f31cf45e82
am: 8ab5f7f324

Change-Id: Ica24924ff8e5c95bd14114fb0a1d82c21a7d30d4
8ab5f7f324af9228dcf6b2406a50cafd9a40b1f7 30-Aug-2017 Jeff Sharkey <jsharkey@google.com> Merge "Augment network stats based on SubscriptionPlan." into oc-mr1-dev
am: f31cf45e82

Change-Id: Ia6c6d5893d841f21d181363dc01f77efa6579a8f
f4de294297de47d8c594956b2d8607e314e71836 29-Aug-2017 Jeff Sharkey <jsharkey@android.com> Augment network stats based on SubscriptionPlan.

When a carrier provides an "anchor" of data usage at a specific
moment in time, augment the network statistics used by warning/limit
thresholds and Settings UI. For example, if the OS measured 500MB
of usage, but the carrier says only 400MB has been used, we "squish"
down the OS measured usage to match that anchor.

Callers using the hidden API will have their data augmented by
default, and the public API offers a way to opt-into augmentation.

Thorough testing to verify behavior.

Test: bit FrameworksNetTests:android.net.,com.android.server.net.
Test: cts-tradefed run commandAndExit cts-dev -m CtsUsageStatsTestCases -t android.app.usage.cts.NetworkUsageStatsTest
Bug: 64534190
Change-Id: Id3d4d7625bbf04f57643e51dbf376e3fa0ea8eca
/frameworks/base/core/java/android/provider/Settings.java
97ebbf871ac01a1f91b050d222875b63e8048710 28-Aug-2017 xulicheng <xulicheng@xiaomi.com> Merge "Ensure the generation is not changed before put value to cache" am: 11ae580f81 am: 489f2c2c48 am: 848cde3beb
am: 4755a1a41a

Change-Id: Ibe36de21f657b42ab8c7c27d53d0298d7275d09b
4755a1a41a09408c3be7fda14585598cc14a66d2 28-Aug-2017 xulicheng <xulicheng@xiaomi.com> Merge "Ensure the generation is not changed before put value to cache" am: 11ae580f81 am: 489f2c2c48
am: 848cde3beb

Change-Id: I52b5811ab3aab9bda73d1c4706858e3e8a70bef2
489f2c2c48243946268480995c442c5e9bf4d5e9 28-Aug-2017 xulicheng <xulicheng@xiaomi.com> Merge "Ensure the generation is not changed before put value to cache"
am: 11ae580f81

Change-Id: I5bf2c557f6f46f1455204761a9045b8b90d7ea32
5782b5c52d6ca2ff5cd389ee6e3c41e759521a6e 24-Aug-2017 Daniel Nishi <dhnishi@google.com> Flag storage settings cache invalidation time.

Fixes: 37923463
Test: Settings Robotest

Change-Id: Ibd4c90dde6d378621ab5e8a96408cd3f496c1f6e
/frameworks/base/core/java/android/provider/Settings.java
a5db9b42ea7ee0786ffc27f0e85e48c0a6a8150d 24-Aug-2017 xulicheng <xulicheng@xiaomi.com> Ensure the generation is not changed before put value to cache

It may get old value from mValues, so check the generation
is not changed before update cache

Bug: https://issuetracker.google.com/issues/64995655
Test: Build
Change-Id: Ia7ae18baa269d0590e36f186e2f14b0bfbab3504
Signed-off-by: xulicheng <xulicheng@xiaomi.com>
/frameworks/base/core/java/android/provider/Settings.java
230c78cec5086e53e378bfc3a8e3bb6168dc0a1f 20-Aug-2017 Baligh Uddin <baligh@google.com> DO NOT MERGE ANYWHERE Revert "Merge "Remove gender-specific pronouns from documentation" into oc-dev"

Bug: 64864568

This reverts commit fd35d7c0a284e31231e2f424cade864be695965b, reversing
changes made to 07a21754f45672b27e765d8c7677c9663c6dce91.
/frameworks/base/core/java/android/provider/Settings.java
06a2624049f09e1ad68f8ab74fdb525aacd5c1e5 01-Jul-2017 Guliz Tuncay <gulizseray@google.com> Multi-user aware TSMS

Currently, spell checker component can process requests only from the
foreground user's account and requests from background users are always
ignored. However, in order to fully realize the multi-user nature of
Android, most system services will need to truly support multiple users
simultaneously. With multi-user aware TSMS implemented, apps from
background users (other accounts and their work profiles) can also run
their spell checking jobs in batch, without the external device user
having to switch accounts for the spell checker to be enabled in that
account.

Bug: 63041121
Test: Manually as follows
Setup: Create a work profile and a secondary user
1. adb shell pm create-user --profileOf 0 --managed workprofile (userId 10)
2. adb shell am create-user seconrdaryuser1 (userId 11)
3. Build SampleSpellCheckerService, which is by default
direct-boot unaware.
package name: com.example.android.samplespellcheckerservice
APK name: SampleSpellCheckerService_DBUnaware.apk
4. Also build a custom SampleSpellCheckerService by explicitly
making '.SampleSpellCheckerService' direct-boot aware.
package name: com.example.android.samplespellcheckerservice2
APK name: SampleSpellCheckerService_DBAware.apk
5. adb install --user 0 -r SampleSpellCheckerService_DBUnaware.apk
6. adb install --user 10 -r SampleSpellCheckerService_DBUnaware.apk
7. adb install --user 11 -r SampleSpellCheckerService_DBUnaware.apk
8. adb install --user 0 -r SampleSpellCheckerService_DBAware.apk
9. adb install --user 10 -r SampleSpellCheckerService_DBAware.apk
10. adb install --user 11 -r SampleSpellCheckerService_DBAware.apk
11. make -j ApiDemos
12. adb install --user 0 -r $ANDROID_PRODUCT_OUT/data/app/ApiDemos/ApiDemos.apk
13. adb install --user 10 -r $ANDROID_PRODUCT_OUT/data/app/ApiDemos/ApiDemos.apk
14. adb install --user 11 -r $ANDROID_PRODUCT_OUT/data/app/ApiDemos/ApiDemos.apk
15. Make sure AOSP Keyboard (com.android.inputmethod.latin) is installed
for all users.

Test 1: Settings correctly updated for each user (Work profile's SC is
not bound to account and can be individually updated)
0. Complete Setup
1. adb shell am start-user 0
2. adb shell am start-user 10
3. adb shell am start-user 11
4. adb shell settings put --user 0 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
5. adb shell settings put --user 10 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
6. adb shell settings put --user 11 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
7. adb shell settings get --user 0 secure selected_spell_checker
-> com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
8. adb shell settings get --user 10 secure selected_spell_checker
-> com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
9. adb shell settings get --user 11 secure selected_spell_checker
-> com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
10. adb shell settings put --user 0 secure selected_spell_checker com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
11. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
12. Repeat 8 & 9. Results should be the same.
13. adb shell settings put --user 10 secure selected_spell_checker com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
14. adb shell settings get --user 10 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
15. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
16. adb shell settings get --user 11 secure selected_spell_checker
-> com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
17. adb shell settings put --user 11 secure selected_spell_checker com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
14. adb shell settings get --user 11 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
14. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
15. adb shell settings get --user 10 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
16. adb shell am start-user 0
17. adb shell am start-user 10
18. adb shell am start-user 11
19. adb shell settings put --user 0 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
20. adb shell settings put --user 10 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
21. adb shell settings put --user 11 secure selected_spell_checker com.example.android.samplespellcheckerservice/.SampleSpellCheckerService

Test 2: Basic functionality works (each user can use SC when they're at
the foreground) & background connections aren't broken
0. Complete Setup
1. Open "Api Demos" app for user 0
2. Go to Views/Text/EditText
3. Focus into the first EditText then type "aaa"
4. Focus into the second EditText then type "aaa"
5. adb shell dumpsys textservices --user 0
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
6. adb shell dumpsys textservices --user 10
-> make sure there are no active spell checker sessions.
7. adb shell dumpsys textservices --user 10
-> make sure there are no active spell checker sessions.
8. Repeat 7-10 for the work profile (userId 10)
9. adb shell dumpsys textservices --user 10
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
10. adb shell am switch-user 11
11. Repeat 7-10 (userId 11)
12. adb shell dumpsys textservices --user 11
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
13. adb shell dumpsys textservices --user 0
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
14. adb shell dumpsys textservices --user 10
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.

Test 3: Background user can also call spell checker APIs
0. Complete Setup
1. adb shell pm install -r TestApp.apk
2. adb shell am switch-user 11
3. adb shell am start --user 11 -n com.example.gulizseray.testapp/com.example.gulizseray.testapp.MainActivity
4. adb logcat | grep spellcheckerclient
-> Periodically calls spell checker APIs and prints results
5. adb shell dumpsys textservices --user 11
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
6. Adb shell am switch-user 0
7. adb logcat | grep spellcheckerclient
-> Continues to periodically call SC APIs and print results
8. Open "Api Demos" app for user 0
9. Go to Views/Text/EditText
10. Focus into the first EditText then type "aaa"
11. Focus into the second EditText then type "aaa"
12. adb shell dumpsys textservices --user 0
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
13. adb shell dumpsys textservices --user 11
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.

Test 4: Package updates for all unlocked users (not just foreground user) are tracked properly (New package added/removed from owner, profile, secondary users)
0. Complete Setup
1. adb uninstall --user 0 com.example.android.samplespellcheckerservice
2. adb shell dumpsys textservices --user 0
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
does not exist in the list
3. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
4. adb uninstall --user 10 com.example.android.samplespellcheckerservice
5. adb shell dumpsys textservices --user 10
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
does not exist in the list
6. adb shell settings get --user 10 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
7. adb uninstall --user 11 com.example.android.samplespellcheckerservice
8. adb shell dumpsys textservices --user 11
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
does not exist in the list
9. adb shell settings get --user 11 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
10. adb install --user 0 -r out/target/product/generic/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
11. adb shell dumpsys textservices --user 0
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
is in the list

12. adb shell settings get --user 0 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
13. adb install --user 10 -r out/target/product/generic/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
14. adb shell dumpsys textservices --user 10
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
is in the list
15. adb shell settings get --user 10 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService
16. adb install --user 11 -r out/target/product/generic/system/app/SampleSpellCheckerService/SampleSpellCheckerService.apk
17. adb shell dumpsys textservices --user 11
-> Make sure com.example.android.samplespellcheckerservice/.SampleSpellCheckerService
is in the list
18. adb shell settings get --user 11 secure selected_spell_checker
-> com.android.inputmethod.latin/.spellcheck.AndroidSpellCheckerService

Test 5: SpellCheckerBindGroups will be cleared when the corresponding
app is killed.
0. Complete Setup
1. Open "Api Demos" app for user 0
2. Go to Views/Text/EditText
3. Focus into the first EditText then type "aaa"
4. Focus into the second EditText then type "aaa"
5. adb shell dumpsys textservices --user 0
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
6. Kill Api Demos
7. adb shell dumpsys textservices --user 0
-> make sure there are no active spell checker sessions.
8. Repeat 1-7 for work profile (user 10)
9. adb shell am switch-user 11
10. Repeat 1-7 for secondary user (user 11)
12. adb shell pm install -r TestApp.apk
13. adb shell am start --user 11 -n com.example.gulizseray.testapp/com.example.gulizseray.testapp.MainActivity
14. adb shell dumpsys textservices --user 11
-> make sure 'com.example.android.samplespellcheckerservice'
is serving spell checker sessions.
15. adb shell am switch-user 0
16. adb shell am force-stop com.example.gulizseray.testapp
17. adb shell dumpsys textservices --user 11
-> make sure there are no active spell checker sessions.
Change-Id: I06c27ef834203a21cc445dc126602c799384527b
/frameworks/base/core/java/android/provider/Settings.java
2164608b1a35e1862d1fb8090183fffe9bd82f69 01-Jun-2017 Joachim Sauer <jsauer@google.com> Allow null value for TIME_12_24 setting.

The TIME_12_24 setting internally has 3 possible values: "12" to force a
12 hour clock, "24" to force a 24 hour clock and null to use the current
locales default (which also happens to be the default value).

The change makes it possible to explicitly set null. Without this it's
impossible to "undo" setting it to one of the two explicit values.

Bug: 32761619
Test: bit CtsProviderTestCases
Change-Id: Ib7e040176860b8db83702ebec88cdf2d347680b3
/frameworks/base/core/java/android/provider/Settings.java
93dcf32590a998a9e6695592ce0251252287901e 04-Aug-2017 Tadashi G. Takaoka <takaoka@google.com> Remove @hide ACTION_SHOW_INPUT_METHOD_PICKER am: 7b16a3c64a
am: 7d7f68d49f

Change-Id: I28896755b1fa14ebc37bce0f7a7c78aa18fea377
7b16a3c64a786998914dcd8552fa5cc6879e4e36 26-Jul-2017 Tadashi G. Takaoka <takaoka@google.com> Remove @hide ACTION_SHOW_INPUT_METHOD_PICKER

All references to
android.provider.Settings.ACTION_SHOW_INPUT_METHOD_PICKER have been
removed by the following CLs.

Id36c8c34159bea8b72557b40bcf024d401f580b6 frameworks/base
Id990c66516c9b3ed7ada6891746ec0e0eecbe545 packages/apps/Settings
I915231678b94f97c1b5105cb607d6631e3df6b6a vendor/google_clockworks
I3e26ed807445725262485ac1065fdfa299d1b624 cts

Test: make checkbuild
Fixes: 64008672
Bug: 6364455
Change-Id: I4210a5b5662be497d395a454f7f1cc395637683e
/frameworks/base/core/java/android/provider/Settings.java
79ac25b589c8ff5f0b53118cdcd2b209110f602e 24-Jul-2017 Andreas Gampe <agampe@google.com> Settings: Remove SamplingProfiler vestiges

The sampling profiler has been removed.

Bug: 63118033
Test: m
Change-Id: I7762cd586de7919d0853067154db19aa3e6fa80b
/frameworks/base/core/java/android/provider/Settings.java
b7c929977c60f0a33fc5bd8339ca7c1770f0980f 24-Jun-2017 Christine Franks <christyfranks@google.com> DO NOT MERGE - Remove RetailDemoModeService

Bug: 62712426
Test: make -j100
Change-Id: I483f2e3518a48fbc833562e71c3acd17ad565881
Merged-In: I483f2e3518a48fbc833562e71c3acd17ad565881
/frameworks/base/core/java/android/provider/Settings.java
732c0439e7453c64bbb7555df90b595522f60ffe 24-Jun-2017 Christine Franks <christyfranks@google.com> Remove RetailDemoModeService

Bug: 62712426
Test: make -j100
Change-Id: I483f2e3518a48fbc833562e71c3acd17ad565881
/frameworks/base/core/java/android/provider/Settings.java
d31a663f0270d190f27a0aa37012de7910680f30 19-Jul-2017 Ricardo Loo <rloo@google.com> Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev am: 8e644a7510 am: 73f94e7896
am: 8fef5bf360

Change-Id: Iceee88d3362d7e8392cbf99666daeb1bd9eb0046
73f94e789664a7cf8d7f48643146277f280220ba 19-Jul-2017 Ricardo Loo <rloo@google.com> Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev
am: 8e644a7510

Change-Id: Ib12f6abb1cd3bdc4701b13e607288fcaf48ce43e
2bca3ab2548bff7547ea7a4d2830a2792c4af591 19-Jul-2017 Ricardo Loo <rloo@google.com> Merge "docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description" into oc-dev
am: 8e644a7510

Change-Id: I51aa7e1c4d294ef567212ebb6b445a2730289d66
94bcdbca224188c067c651e034e187def082e8dd 17-Jul-2017 Narayan Kamath <narayan@google.com> NetworkPolicyManagerService: Allow data saver to be on by default.

This value is read from the global settings provider, and can be
configured via an overlay.

Bug: 63112872
Test: NetworkPolicyManagerServiceTest

Change-Id: If55ea08df1dd8440189f9b46a5606118de99c930
/frameworks/base/core/java/android/provider/Settings.java
2f272bf32600d9073036165659216d9254e87b4e 17-Jul-2017 Calvin On <con@google.com> DO NOT MERGE ANYWHERE: Fix build

Hide NET_TRANSITION_WAKELOCK_OVERRIDE_MS setting

Bug: 63760887
Bug: 30574433
Change-Id: I6069e275cfd64a2c994b14962df1ca31f39d3943
/frameworks/base/core/java/android/provider/Settings.java
e3fd65f9e582ae098dccc0d432387c39ee504f29 13-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev am: 3fbd93056e
am: 6d626acdbf

Change-Id: Iabff9ca955aef414ad7e62e0c68e2774ff01c9b7
3fbd93056e3b142080a2313158d2b0e7ef84061e 13-Jul-2017 Adrian Roos <roosa@google.com> Merge "AOD: Implement long press gesture to launch assist" into oc-dr1-dev
95434b51af894da6cbbbe58cce90dd883c5b0384 16-Jun-2017 Calvin On <con@google.com> DO NOT MERGE ANYWHERE: Allow NetTransitionWakelock to be overridden via Settings

Bug: 30574433
Change-Id: If0d2a0b99266d60557623105728feace9ea16943
/frameworks/base/core/java/android/provider/Settings.java
d0963a07d148426d7b872862697ae1ca538a834b 15-May-2017 Adrian Roos <roosa@google.com> AOD: Implement long press gesture to launch assist

Bug: 37684244
Test: adb shell settings put secure doze_pulse_on_long_press 1; turn screen off, long press, verify assistant is launched
Change-Id: I87335d3c091bbb17022d79e599f46fb826039b7d
/frameworks/base/core/java/android/provider/Settings.java
a249de50d11d023f764edf245ba634ee43fa7e00 12-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move eSIM factory reset implementation to RecoverySystem" into oc-dr1-dev
e060ffd2ca90d998550dcd9501cc7a567fbf6bb1 24-Jun-2017 qingxi <qingxi@google.com> Move eSIM factory reset implementation to RecoverySystem

This CL reverts the implementation of eSIM factory reset in
MasterClearReceiver and uses RecoverySystem#rebootWipeUserData to erase
eSIM data. Besides this, when the eSIM data isn't erased, we should call
EuiccManager#retainSubscriptionsForFactoryReset to let the fastboot know
that.

Bug: 62957212
Test: TreeHugger
Merged-In: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
Change-Id: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
/frameworks/base/core/java/android/provider/Settings.java
2f23151e9764c14b672763af6f0e4408eaa0d399 24-Jun-2017 qingxi <qingxi@google.com> Move eSIM factory reset implementation to RecoverySystem

This CL reverts the implementation of eSIM factory reset in
MasterClearReceiver and uses RecoverySystem#rebootWipeUserData to erase
eSIM data. Besides this, when the eSIM data isn't erased, we should call
EuiccManager#retainSubscriptionsForFactoryReset to let the fastboot know
that.

Bug: 62957212
Test: TreeHugger
Change-Id: I08ab9d53ec4fc73a65e8e7d0c39ac95b2d44d012
/frameworks/base/core/java/android/provider/Settings.java
0862e80eb376ab6e7b2a3068018a2ba08f075b31 10-Jul-2017 Jason Monk <jmonk@google.com> Merge "Add screensaver settings to backup list" into oc-dr1-dev am: 2c3c58d917
am: 4c30304a8c

Change-Id: Icac69838617de8c58a0d9090dc4d78b14ad1a976
2c3c58d917b0f63d37699af58e7b941ba41be9a7 10-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add screensaver settings to backup list" into oc-dr1-dev
df31effd5f2a21ff57016f4f6f54aa0fdc21c9f2 10-Jul-2017 Jason Monk <jmonk@google.com> Add screensaver settings to backup list

Test: manual
Change-Id: Icf47312e20b4ec44d02dc31ce575e89083a8be7d
Fixes: 35700553
/frameworks/base/core/java/android/provider/Settings.java
5f8e0b881e9a878ad0cfb4b216fbdf892badd219 19-Jun-2017 Julia Reynolds <juliacr@google.com> Rate limit notification sounds/vibrations

1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557
/frameworks/base/core/java/android/provider/Settings.java
aec98da9ebb19f9c6359e0af5a3795e73d44ea4a 01-Jul-2017 Ricardo Loo <rloo@google.com> docs: Updated #ACTION_REQUEST_SET_AUTOFILL_SERVICE description

Making clear that `ACTION_REQUEST_SET_AUTOFILL_SERVICE` is an activity
action, not a broadcast action.
Test: Ran `make ds-docs -j16 and staged the change at
http://go/dac-stage/reference/android/provider/Settings.html#ACTION_REQUEST_SET_AUTOFILL_SERVICE

BUG: 62470123
/frameworks/base/core/java/android/provider/Settings.java
fa1143658b7f9be1f9009b209e76663db7db75a2 12-Jun-2017 Daniel Nishi <dhnishi@google.com> Add a Setting for whether or not we have been disabled by policy.

Bug: 62106274, 35698183
Test: StorageManager robotests
Merged-In: I1788d6143362130df88950c6843fa78b67182d5e
(cherry picked from commit da7332c0707094b66e9a2e22f4c64cf9520cfddb)
/frameworks/base/core/java/android/provider/Settings.java
da7332c0707094b66e9a2e22f4c64cf9520cfddb 12-Jun-2017 Daniel Nishi <dhnishi@google.com> Add a Setting for whether or not we have been disabled by policy.

Bug: 62106274, 35698183
Test: StorageManager robotests

Change-Id: I1788d6143362130df88950c6843fa78b67182d5e
/frameworks/base/core/java/android/provider/Settings.java
3b1026b74a1cc338f21f92e5a0b9ba75fe93257a 05-Jul-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding "Mobile data" and "Data usage" button in mobile settings."
0f3ea43158ed17d1243d17186f8519992c26af51 30-Jun-2017 Jason Monk <jmonk@google.com> Merge changes from topic 'HideMultiUser' into oc-dr1-dev am: 3024de2536
am: a3ec7819b1

Change-Id: I6145dea6295f859d7dcf36a035c8c6e1cbc09071
cb5296a6f0b54ed5da9e69374ef7ec6b553170f9 30-Jun-2017 Jason Monk <jmonk@google.com> QS: Move auto-add state to settings provider

And back it up.

Test: runtest systemui
Change-Id: I880909ce63ab32a5c11f31f449c1aa10221085d3
Fixes: 62667758
/frameworks/base/core/java/android/provider/Settings.java
210625408818c03a8e9e20c0cfc45c72c84d3c2f 20-Jun-2017 Malcolm Chen <refuhoo@google.com> Adding "Mobile data" and "Data usage" button in mobile settings.

Grant "READ_NETWORK_USAGE_HISTORY" permission to phone because
"Datat usage" button summary needs it. Settings provides new
intent to open mobile data usage page.

Bug: 62201918
Test: Manual
Change-Id: Ie317109c723f3946ace4d34c743081a7ae046462
/frameworks/base/core/java/android/provider/Settings.java
76c096d89a1fa28cac5d10300ba60df583aa3321 19-Jun-2017 Julia Reynolds <juliacr@google.com> Rate limit notification sounds/vibrations

1 alert per second.

Bug: 36662487
Test: runtest systemui-notification
Change-Id: I2046ae17b9e89ac0a83e182b91422fd242bc7557
/frameworks/base/core/java/android/provider/Settings.java
6a93509080ab2478a705f6d8d6a5b46c8d7fa0b6 21-Jun-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #62065889: Assess thresholds and criteria for killing..."
19ec26ddaf5557e69c11db678dd7d7d73734a7c5 21-Jun-2017 Kevin Chyn <kchyn@google.com> Merge "Add action for launching Assist Gesture settings" into oc-dr1-dev am: 523c0a6a65
am: 8f4c710204

Change-Id: I2969bd464ff9f865bc33ab674b411bcf9f524dca
523c0a6a65fc60121ed0194c46a76d5a87d36745 21-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add action for launching Assist Gesture settings" into oc-dr1-dev
743c4f30e0f2d195edb30e63ab2022bbdae95b9a 21-Jun-2017 Sujith Ramakrishnan <sujithrk@google.com> Merge "Add a new flag to check if provisioning is completed on ATV" into oc-dev am: 59c6385bf9 am: f63c015bba
am: fca9439afe

Change-Id: Ia8268d65e2bef84bf351a1bdc2a99eb0a6f6fb0a
63e1d36bbf355880c4ed11f50680c76da4db83a1 21-Jun-2017 Sujith Ramakrishnan <sujithrk@google.com> Merge "Add a new flag to check if provisioning is completed on ATV" into oc-dev
am: 59c6385bf9

Change-Id: I61b688030f11cbe745dadd0a541d9196eb36d21c
f63c015bbaf0e51d23893515239881f7d39c90a7 21-Jun-2017 Sujith Ramakrishnan <sujithrk@google.com> Merge "Add a new flag to check if provisioning is completed on ATV" into oc-dev
am: 59c6385bf9

Change-Id: Iba2e6a6fe6c76c6ae1776f9ce430223ed6222dc4
ffca58bc5e9f8b3d1d78b2fd6e630d9ce2bdc20c 25-May-2017 Dianne Hackborn <hackbod@google.com> Work on issue #62065889: Assess thresholds and criteria for killing...

...background processes (CPU, etc)

Add full configuration params for adjusting these settings (some were
already there).

Also... as long as we are doing this...

- Get rid of all of the wakelock stuff. That is completely pointless
now that we aren't even allowing cached processes to hold wake locks.

- This greatly simplifies the code, since we don't need to deal with
two different policies for how we do checks. Instead, we just regularly
check for CPU and the CPU check interval.

- And make the CPU check more aggressive and have much more flexibility
for tuning: there are now 4 different maximum CPU use levels, depending
on how long the process has been in the cached state. This allows us to
be more strict on CPU use the longer it is sitting in the background.

Note that CPU use tracking only happens while the device is not
plugged in to power... I'll leave this for now, but I think in the
future we should think about applying these limits even when plugged
in, because in either case cached apps should really not be doing
much.

Test: manual
Change-Id: I68f4ab68be5f7d5fc4822005107fb60ef07a374d
/frameworks/base/core/java/android/provider/Settings.java
268a96c6eb8660521fc5b8e04d3f01d5ac3f3ef4 18-Jun-2017 Kevin Chyn <kchyn@google.com> Add action for launching Assist Gesture settings

Bug: 62540322

Test: adb shell am start -a android.settings.ASSIST_GESTURE_SETTINGS

Change-Id: I60a2b98aba605d93166aba1af2ee19c3fc6b5a8c
/frameworks/base/core/java/android/provider/Settings.java
3956654b44bae9b65192be7497449b0463a692f5 19-Jun-2017 Daniel Nishi <dhnishi@google.com> Merge "Flag the DH no threshold options menu." into oc-dr1-dev am: f69d450b6f
am: 5cecfe5b0a

Change-Id: Ibc39e8545525925941c806f35105a73e0cf971f8
f69d450b6f0a1c3dcaead83943dfe98fceffff47 19-Jun-2017 Daniel Nishi <dhnishi@google.com> Merge "Flag the DH no threshold options menu." into oc-dr1-dev
b852e56668d02c00853bc0a3651001044c11be71 06-Jun-2017 Julia Reynolds <juliacr@google.com> Migrate managed services from setting to policy xml

Change-Id: Ie20f91dbdd0ba6b57b5909cbf0152a32754fe02d
Fixes: 62263757
Test: runtest systemui-notification, cts AudioManagerTest,
cts-verifier DND tests, verify bug reports after toggling
access for various types of managed services, verified
default approved services aren't renabled on boot; verified that
they are reenabled after a device reset, verified that
settings are migrated after a restore from OC backup.
/frameworks/base/core/java/android/provider/Settings.java
314df160c02edb817cea00dad66a1de4d2122e72 17-Jun-2017 Sujith Ramakrishnan <sujithrk@google.com> Add a new flag to check if provisioning is completed on ATV

- This flag will be set once provisioning is completed
and reset when SetupWizard is re-enabled.

Test: None. Adding a static variable.

Bug: 62419382
Change-Id: Ie3e4c118d26f6bd035a451ed1914e73bdeda4e3f
/frameworks/base/core/java/android/provider/Settings.java
dab9a98ccd0af58c3b224dccf978e58e5e68c5db 16-Jun-2017 Todd Kennedy <toddke@google.com> Merge "enable/disable dexopt for instant apps remotely" into oc-dev am: 5d969b9862 am: 3586115ae5
am: 40c74514df

Change-Id: Id3432a8e7a01f0af69fd3ad0b70542718c6c33b7
40c74514df11e319ef658a97dc46968e58e7b3d2 16-Jun-2017 Todd Kennedy <toddke@google.com> Merge "enable/disable dexopt for instant apps remotely" into oc-dev am: 5d969b9862
am: 3586115ae5

Change-Id: I2a8093b966e246ad77ee4257b81bf819443e94c2
1466c1618f3ce0dcbec0535f14b2b64dde94bd89 16-Jun-2017 Todd Kennedy <toddke@google.com> Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am: 5d969b9862

Change-Id: If9f063e5db82c079b7a9e682365a8840ee7da794
3586115ae562c18d5f1e2404dd31069f25a3c424 16-Jun-2017 Todd Kennedy <toddke@google.com> Merge "enable/disable dexopt for instant apps remotely" into oc-dev
am: 5d969b9862

Change-Id: Ica29f01779c2bb504d682a2b457f861264cc00b0
5d969b9862aefa3ddd8160f12829c22bc86de131 16-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "enable/disable dexopt for instant apps remotely" into oc-dev
8135cb3d6e43f785e223db744a6c2d689fa38ae1 16-Jun-2017 qingxi <qingxi@google.com> Merge "Add API from EuiccManager to wipe eUICC data" into oc-dr1-dev am: 647b11c97f
am: da193ec198

Change-Id: Ibff0ecabda81899096301a6bf0613dc4206f1039
0ca328f420cb9c0b0e8259aa0671a0191e0d3a81 20-May-2017 qingxi <qingxi@google.com> Add API from EuiccManager to wipe eUICC data

Use EuiccManager#eraseSubscriptions(PendingIntent) to erase all the
carrier data from eUICC chip if the user choose to "Erase eSIMs" from
the system setting.

Bug: 37475183
Test: E2E
Change-Id: Iaab2640c98576fdc87ca626765329ae0398724e4
/frameworks/base/core/java/android/provider/Settings.java
546204238530de939f7b76e6900a38d64cad1c93 15-Jun-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev am: ef0554438f am: 84795f778b
am: 56617fd24f

Change-Id: I0051a01a498d77e0dea10ce31c51912b7747b551
56617fd24ffc9fd25c78178e54d60907486bd977 15-Jun-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev am: ef0554438f
am: 84795f778b

Change-Id: I90d6e150b6dcfe7665b5c1b7db84dd04a7d0d824
92cc8d3816ee15dc8294082d7c1e8e0cde1b4a12 15-Jun-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I5d25640507d4c4cf61f64638d27ddf0cac67f880
84795f778b5ef9d8666d2f1ab885dac5b028cfba 15-Jun-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #36891897: Need to ensure foreground services..." into oc-dev
am: ef0554438f

Change-Id: I39ad3ffce83c1817bdc8aa7ab9f623d1b683d983
133c5da0d972ff8f1676890679f478aa30e08dfd 15-Jun-2017 Todd Kennedy <toddke@google.com> enable/disable dexopt for instant apps remotely

Change-Id: I997b8ae515f7bf2570edca4ed7ab4b46198148a5
Fixes: 62591398
Test: Manual; install instant app and see that it doesn't dexopt
Test: Manua; update gservices flag, install instant app and see that it does dexopt
/frameworks/base/core/java/android/provider/Settings.java
cb01563d7efa5689abb98fe4e5d8cc86bfc2b6fc 15-Jun-2017 Dianne Hackborn <hackbod@google.com> Work on issue #36891897: Need to ensure foreground services...

...can't hide themselves

Tune the policies for when we tell about apps running in the
background after their services have stopped.

- If it ran while the screen was on, the time we require for it
to be running is much shorter (a couple seconds) as well as the
time we tell about it having run (with another tunable for the
minimum time we tell about this).

- If it has only run while the screen is off and stops a sufficient
amount of time before the screen goes on (currently a second) then
we will not show anything when the screen goes on.

- If it stops when the screen turns on, we will make sure the user
sees about it for a short period of time (currently 5 seconds).

Also includes some improved debug output about handler message
queues.

Test: manual

Change-Id: Iab438410d7182b2dfe4f9c1cce7069b26b34834c
/frameworks/base/core/java/android/provider/Settings.java
a2053ecf70b553f65b9292f7d95399b119dbcc37 14-Jun-2017 Kevin Chyn <kchyn@google.com> Merge "Add assist gesture silence and wake settings" into oc-dr1-dev am: 6eacc1a4ba
am: 3164bf6743

Change-Id: I30ba4eac86bc92ac8013840f80a3645efba64d3e
2d84bdcaea1239301b166b322f907cda97181757 14-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose USER_SETUP_COMPLETE as Test API."
4f5320ec4ffa2d3407f841495dde9a6e18fc5d1b 14-Jun-2017 Daniel Nishi <dhnishi@google.com> Flag the DH no threshold options menu.

Bug: 38322601
Test: Manual
Change-Id: If52b1a2c6b01843c5865aab0589724345acccc3c
/frameworks/base/core/java/android/provider/Settings.java
333f15c432ac565320f7c5b68bdebb8e3e4afde5 14-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Making action MANAGE_UNKNOWN_APP_SOURCES non-optional"
809393740f3134bcc70916353293002e4084dec7 10-Jun-2017 Kevin Chyn <kchyn@google.com> Add assist gesture silence and wake settings

Bug: 37427306

Test: make -j56
Change-Id: I36da4d689a2aecf0cdd5e0549ede6d3e31f0e630
/frameworks/base/core/java/android/provider/Settings.java
99230126384ecbe545d1269e960b0da68eed9fe0 12-Jun-2017 Felipe Leme <felipeal@google.com> Expose USER_SETUP_COMPLETE as Test API.

Test: m -j90 update-api
Fixes: 62538627

Change-Id: I247d27341ce06b29f257d00a9058be4c0f662db0
/frameworks/base/core/java/android/provider/Settings.java
a915972995535b9e9a1fe209de99ecb1d5b94a24 08-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "Ensure only test print services enabled - framework" into oc-dev am: 053fb9120e am: 62031b8937
am: 454b310090

Change-Id: I31ec22ab63b9356353de8fa78b6d8600aacb9009
50859b50a628c1b6f7f2a85959cb2084028c5c08 08-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I70220ead15eabfe58727ab5c3b0a9c92e8c508a8
62031b89372bd1b9090573873c994e9f623ad106 08-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Merge "Ensure only test print services enabled - framework" into oc-dev
am: 053fb9120e

Change-Id: I5f07488ba286cb3d01c75d96e1003edba845daf8
4fddc9fa4d39d808bd23e9cf7b098587fa67c2a3 05-Jun-2017 Kevin Chyn <kchyn@google.com> Add setting and permission for assist gesture

Bug: 37427306

Test: manual
Merged-In: I659fa43fb085575df4d62e7765d88c6fd615fb7d
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
/frameworks/base/core/java/android/provider/Settings.java
2dcedc1276aee3e4e044b1d4ecafc34462fefb7c 08-Jun-2017 Svetoslav Ganov <svetoslavganov@google.com> Ensure only test print services enabled - framework

Test: cts-tradefed run cts-dev -m CtsPrintTestCas

bug:62232727

Change-Id: I1050272586d1c03dc1b1dfdb8b10e258912a249b
/frameworks/base/core/java/android/provider/Settings.java
cfd641e8dc65f1b1460f1cba9641b95cf99ad9e0 05-Jun-2017 Kevin Chyn <kchyn@google.com> Add setting and permission for assist gesture

Bug: 37427306

Test: manual
Change-Id: I659fa43fb085575df4d62e7765d88c6fd615fb7d
/frameworks/base/core/java/android/provider/Settings.java
d05b6252d3b53fe7a4df165a9c05b24699795ca9 07-Jun-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Introduce legacy settings restore whitelists"
1d0fca3b413267f114f542cbc184288659b84912 06-Jun-2017 Christopher Tate <ctate@google.com> Introduce legacy settings restore whitelists

On rare occasion we have settings keys that we no longer want to
back up, but which we *do* want to process at restore time for
support of legacy backup datasets. We now have a little bit of
machinery for the idea of restore-only key whitelists, paralling
the SETTINGS_TO_BACKUP dual-purpose whitelists.

Bug 62263757
Test: manual

Change-Id: Ic32ad679bc4b5028dd52dc71e9ab5836a76307c4
/frameworks/base/core/java/android/provider/Settings.java
834e5728e69030ab2fdc17e68d3febea5314dd38 30-May-2017 Daniel Sheng <dsheng@google.com> Changed camera lift trigger to default-on.

Bug: 62102062
Test: RunSettingsLibRoboTests
Change-Id: I312c07881b769968ca9fd01751778eeb947bba6e
/frameworks/base/core/java/android/provider/Settings.java
726fd9085cc21a61d8d2045bea905611de1e101e 01-Jun-2017 Erik Kline <ek@google.com> Merge "Add a tethering offload settings kill switch" am: 7cf3086f37 am: 503a6952b2 am: 03941982dc
am: 9d2abb4b40

Change-Id: Ibeddc103a63702096972fa505071dcad4bb47a28
9d2abb4b40f1c782280b35d8e225364624afb28d 01-Jun-2017 Erik Kline <ek@google.com> Merge "Add a tethering offload settings kill switch" am: 7cf3086f37 am: 503a6952b2
am: 03941982dc

Change-Id: I7e15919817c59579ff6e7b28e858f13c3090ee5c
03941982dc4709ea5d21b0b52591d95fb9d7b678 01-Jun-2017 Erik Kline <ek@google.com> Merge "Add a tethering offload settings kill switch" am: 7cf3086f37
am: 503a6952b2

Change-Id: I6be567bb315a5797bbc71f5f48efc522b947f678
92c4db04e54a7bb375df01ce6e3fd98d568c6990 31-May-2017 Erik Kline <ek@google.com> Add a tethering offload settings kill switch

Check for tether_offload_disabled (defaulting to false if not present)
before starting the OffloadController.

Test: as follows
- built
- flashed
- booted
- runtest frameworks-net passes
Bug: 29337859
Bug: 32163131
Bug: 34361337
Change-Id: Ifcc0eb1a41f09ad9e717c9252d2d55e69789669b
/frameworks/base/core/java/android/provider/Settings.java
5d1ea59573251be8fb0312d12b54245b875f6ea7 31-May-2017 Svet Ganov <svetoslavganov@google.com> Prune unused static libs and instant apps if space needed am: f36d53cbfc
am: a8505b5448

Change-Id: I27762e5bf5141f7cc14a43163e67fcef13785419
f36d53cbfc34dcadfe156f3037bf40b4908142a8 24-May-2017 Svet Ganov <svetoslavganov@google.com> Prune unused static libs and instant apps if space needed

We are caching unused static shared libs and instant apps
(installed and uninstalled) opportunistically. If space is
needed we delete these to free up space.

Test: manual

bug:62045000

Change-Id: Id992dee5c7c6e36b8e8b81050602dbc4eeafb0f9
/frameworks/base/core/java/android/provider/Settings.java
905df004ab365a110fe9b24e3cec948b64365633 25-May-2017 Suprabh Shukla <suprabh@google.com> Making action MANAGE_UNKNOWN_APP_SOURCES non-optional

Test: cts-tradefed run cts-dev -m ExternalSources

Bug: 62100940
Change-Id: I5807ab4ddc5711cab1dfc4c2dcbfafe4928a3149
/frameworks/base/core/java/android/provider/Settings.java
a216aa29e3a058cb4c3a699a16a6bbc8094a4427 26-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add a way to clear cached provider for tests in Settings class."
aa3c30dfa2459fb093ac5d7075b5066f41b49f2e 24-May-2017 Sudheer Shanka <sudheersai@google.com> Add a way to clear cached provider for tests in Settings class.

Bug: 38437704
Bug: 38433611
Test: manual
Change-Id: Id2803359644bd68a158294b6d801fc9cd316fc9f
/frameworks/base/core/java/android/provider/Settings.java
dff393339ba470d51433e549439abf80b8d558b3 20-May-2017 Jeff Davidson <jpd@google.com> Add setting to indicate whether the eUICC is provisioned.

This bit will only be set to true after a profile has been downloaded
to the eUICC. It will be used to suppress UI and messages about the
eUICC for users who have never used it.

Bug: 38460669
Test: TreeHugger
Change-Id: I056f131381ba4cb6f3fc32bc9915269337dd839d
/frameworks/base/core/java/android/provider/Settings.java
33a16a93f6e5050c428b69cde1f32e8292f61be4 18-May-2017 Christine Franks <christyfranks@google.com> Merge "Don't back up night display state settings"
61c68a71e26fda02968cb60dce5f57c81cfcd4a2 18-May-2017 Christine Franks <christyfranks@google.com> Don't back up night display state settings

Bug: 38352336
Test: Turn on night display, then run 'adb shell bmgr transport
android/com.android.internal.backup.LocalTransport && adb shell bmgr
backupnow com.android.providers.settings'. Turn night display off, then
run 'adb shell bmgr restore com.android.providers.settings'. Night display
should not turn back on.
Change-Id: I9ca9474cba9b195850af04ce9d89cbbbd200673b
/frameworks/base/core/java/android/provider/Settings.java
64766b86ab42d7e4da876dbaacf8d8eeb66b1cb3 17-May-2017 Lei Yu <jackqdyulei@google.com> Merge "Add settings constants for anomaly detection"
b6d00c3fd4648283d047598f6b3418022e0147cc 16-May-2017 Philip Quinn <pquinn@google.com> Remove unused settings.

Bug: 38164441
Test: make -j
Change-Id: I8194f1937c74b93c442153cea19c622877fb8a5b
/frameworks/base/core/java/android/provider/Settings.java
7a5e06f4562d9837460efccecec30148ac78908f 13-May-2017 jackqdyulei <jackqdyulei@google.com> Add settings constants for anomaly detection

Bug: 36924669
Test: Build
Change-Id: I7ca6745dedada8948ed0296cadb20b62a19c8fb3
/frameworks/base/core/java/android/provider/Settings.java
91c3d07fd9c75258a47fb25c59bc0cd5d2b638a4 12-Apr-2017 Jeff Davidson <jpd@google.com> Implement remaining core eUICC APIs.

Includes:

-getDefaultDownloadableSubscriptionList, which returns a list of
default subscriptions available for the device.
-getEuiccInfo, which returns an EuiccInfo object containing
non-sensitive information about the eUICC device.
-deleteSubscription, to delete a subscription.
-switchToSubscription, to switch to (or away from) a subscription.
-updateSubscriptionNickname, to update the nickname of a subscription
which is saved to the eUICC.
-eraseSubscriptions, to factory reset the eUICC.
-Settings.Global#DEFAULT_SM_DP_PLUS, a default SM-DP+ server which is
used to query for default subscriptions in
getDefaultDownloadableSubscriptionList.

These APIs follow the template of the APIs which have already been
implemented.

This completes the baseline implementation as designed; any additional
APIs or tweaks to the APIs will be tracked as separate bugs.

Fixes: 33075886
Test: Build/boot
Change-Id: I8057757c874f94e0c816af1ca071d656c8f145b9
/frameworks/base/core/java/android/provider/Settings.java
873b5708d14460360d32cfc98ee48cf62f1ebfa6 02-May-2017 Stanley Tng <stng@google.com> Add Save and Restore of BluetoothOn setting

This change will automatically save the Bluetooth On setting when
the user chooses to backup the phone settings into the cloud. This
setting is restored by the Setup Wizard (SUW) when configuring the
phone and this change will enable or disable the Bluetooth based
on this restored setting.

Bug: 35657817
Test: Manual test with Sailfish
Change-Id: Ie4518593af63f96f8c363f98941ca5260a3ec4bb
(cherry picked from commit 767f05feea67e642a76bd3e2e7633a8f5273f077)
/frameworks/base/core/java/android/provider/Settings.java
e96b36922f6244a6a791b1d3d280e713aea26cc8 12-May-2017 Chris Wren <cwren@android.com> Merge changes from topic 'b/36021111' into oc-dev am: 69ab8e1d56
am: 68c7ccc94d

Change-Id: Iaa6782cb3354c7ac0219ea18b254577ecf0d9733
68c7ccc94d726e96874e35c0ec758c0e5768ed86 12-May-2017 Chris Wren <cwren@android.com> Merge changes from topic 'b/36021111' into oc-dev
am: 69ab8e1d56

Change-Id: I4bf9b7425c86a8725e9d7c055ab4c4f389fe3a2b
89aa2261903fd09b08a2210a7a1b35d329f8330a 06-May-2017 Chris Wren <cwren@google.com> add a global control for badging

Content observer callbacks don't specify the user,
so scan all the users we know about. User switches
will also trigger an update which will explicitly
check the setting for the (now) current user.

Migrate tests to TestableContext to allow the test
to safely override secure settings.

Bug: 36021111
Test: runtest systemui-notification
Change-Id: I588068382912955da114cc351df7a1e7b4f0733f
/frameworks/base/core/java/android/provider/Settings.java
f4491b71037796f280026ff02a3b18a9fb620f7e 11-May-2017 Jeremy Joslin <jjoslin@google.com> Merge "Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev am: b569eedf37" into oc-dev-plus-aosp
am: 3f3a19183e

Change-Id: I01a5285918e355004d25cc9fbb04c70926a28cfa
70dfa834ee44d92ad3815248a053dc80447b1886 11-May-2017 Makoto Onuki <omakoto@google.com> Merge "Reconnect to DAService after binding is dead" into oc-dev am: ef5700667f
am: 0d9425e3e4

Change-Id: I597a3a5382ebf9798b322fc8bb3c88749d117170
09dae065c56dfaf0c66bcb0d1abb47807202317a 11-May-2017 Stanley Tng <stng@google.com> Merge "Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45 am: 6682651b2b" into oc-dev-plus-aosp
am: 4c47458094

Change-Id: I5a19fd8f898c726d8d94df7a15cfac0161fd28b0
fb94305b334529b6d67687366f0aa235126166f6 11-May-2017 Jeremy Joslin <jjoslin@google.com> Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev
am: b569eedf37

Change-Id: Id4e9f4644bc470d1a3b8813502eb3e1e2ca45f05
0d9425e3e47e45b3ab21f42237b2cf55395b506f 11-May-2017 Makoto Onuki <omakoto@google.com> Merge "Reconnect to DAService after binding is dead" into oc-dev
am: ef5700667f

Change-Id: I03049914406ed38f92c3a6a43a82f55504c6e518
b569eedf377fb0339a979d938839e99a735c3013 11-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding a new config and Setting for WiFi Wakeup." into oc-dev
508f9bcb9da572e3c5af964210d28f6e20505c83 11-May-2017 Stanley Tng <stng@google.com> Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317 am: 1755a4af45
am: 6682651b2b

Change-Id: I6dd36520e8a0cf09c75788eda2e03b4309acea9e
6682651b2b86360250781fd3a8fb2356e9b31a50 11-May-2017 Stanley Tng <stng@google.com> Merge "Add Save and Restore of BluetoothOn setting" am: bbcc641317
am: 1755a4af45

Change-Id: I6a143760d9acef0fb5f28680ca1538e346ebd81f
09c529a9bc85bfd0d50b65f447472ad064eac16c 01-May-2017 Makoto Onuki <omakoto@google.com> Reconnect to DAService after binding is dead

- When the DO/PO process crashes twice with a short interval, AM gives up
and the binding will be "died". Once binding is in this state it'll never
be re-connected.

(Still, DO/PO can disable and re-enable their DAS to force DPMS to bind again
though.)

- Detect this and re-connect after one hour.

- Back-off time will be exponentially increased and never reset until DPMS
explicitly re-connects, which happens when:
-- the device rebooted,
-- the user stopped and re-started, or
-- the DAS is disabled and re-enabled.

Test: adb shell am instrument -e class com.android.server.am.PersistentConnectionTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyConstantsTest -w com.android.frameworks.servicestests
Test: adb shell am instrument -e class com.android.server.devicepolicy.DevicePolicyManagerTest -w com.android.frameworks.servicestests
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceDeviceOwnerTest
Test: cts-tradefed run cts-dev --skip-device-info --skip-preconditions --skip-system-status-check com.android.compatibility.common.tradefed.targetprep.NetworkConnectivityChecker -a armeabi-v7a -l VERBOSE -m CtsDevicePolicyManagerTestCases -t com.android.cts.devicepolicy.DeviceAdminServiceProfileOwnerTest

Bug 37711907

Change-Id: Ie0b227a94e6ce85d72a969a4dea1020baf734e2f
/frameworks/base/core/java/android/provider/Settings.java
767f05feea67e642a76bd3e2e7633a8f5273f077 02-May-2017 Stanley Tng <stng@google.com> Add Save and Restore of BluetoothOn setting

This change will automatically save the Bluetooth On setting when
the user chooses to backup the phone settings into the cloud. This
setting is restored by the Setup Wizard (SUW) when configuring the
phone and this change will enable or disable the Bluetooth based
on this restored setting.

Bug: 35657817
Test: Manual test with Sailfish
Change-Id: Ie4518593af63f96f8c363f98941ca5260a3ec4bb
/frameworks/base/core/java/android/provider/Settings.java
45caa2538e1ef829dc2ac2d154485685d49266e8 04-May-2017 Jeremy Joslin <jjoslin@google.com> Adding a new config and Setting for WiFi Wakeup.

Created a new config for WiFi Wakeup (config_wifi_wakeup_available)
and defaulted it to NOT_AVAILABLE.

Also added a new global Settings constant (WIFI_WAKEUP_AVAILABLE)
and defaulted it to the value of the new config noted above.

Bug: 37987491
Bug: 38036968
Test: Built, flashed and confirmed proper config value.
Test: runtest --path frameworks/base/core/tests/coretests/src/android/provider/SettingsProviderTest.java
Change-Id: I0cdca4262a0ef473fcbbf7da8d960c41dfafb11f
/frameworks/base/core/java/android/provider/Settings.java
0a3411a29be3510ebf51299312369aae9b2360ae 05-May-2017 Ajay Panicker <apanicke@google.com> resolve merge conflicts of 06b8324d02a5 to master

Test: I solemnly swear I tested this conflict resolution.
Change-Id: I29b117df6803fd59faafe97a02b8ab2d34741f0e
4d1fb218f48a5170bfb01d9bc32dda6a7c1d2e80 05-May-2017 Ajay Panicker <apanicke@google.com> Merge "Limit btsnoop file size (3/9)" into oc-dev
4d71437598026627af85c576dd53a4247455b34a 18-Apr-2017 Ajay Panicker <apanicke@google.com> Limit btsnoop file size (3/9)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
/frameworks/base/core/java/android/provider/Settings.java
439d921955289faa839e2d1b91b46189aadd1ba6 04-May-2017 Geoffrey Pitsch <gpitsch@google.com> Merge "Developer setting to show toast for notifications without a channel" into oc-dev am: 3c0e3d8a36
am: 44448d640a

Change-Id: Ie2a407039d2df43da24f10047e91a7d98a85eaba
3c0e3d8a36b6dd797c636ecbd48e5656cb134e20 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Developer setting to show toast for notifications without a channel" into oc-dev
0f1972d6678ee8d6c0d4dfc1ddefe1d8c84e66c1 04-May-2017 Antony Sargent <asargent@google.com> Merge "Add persistent state for Bluetooth high quality audio support" into oc-dev am: d53a71f443
am: dc62fbe81b

Change-Id: I56c2eb9a3dca6e8dad1cbddeabe4ebbe471b4758
d53a71f443381508e45ff0abc27b8875428b68e0 04-May-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add persistent state for Bluetooth high quality audio support" into oc-dev
4c6eef21fd3cbb74df9d270d9c3f1dbbb33d59b5 19-Apr-2017 Geoffrey Pitsch <gpitsch@google.com> Developer setting to show toast for notifications without a channel

Bug: 37945054
Test: runtest systemui-notification
Change-Id: I264913c3d7ef6fcd83129b0692e96d3218bc7217
/frameworks/base/core/java/android/provider/Settings.java
3fcdfa1b96b796de9be559e3d6c8c143fb8e3e05 03-May-2017 Christine Franks <christyfranks@google.com> Merge "Night display status restores on reboot/user change" into oc-dev am: 78e03b44c3
am: 0bd001e95c

Change-Id: I83536aa49173091ed5fe8ad96e8f752a5313ef93
e5bb03e2ea8cf0d7ab98fb6e6f8db1007d8d48d2 11-Feb-2017 Christine Franks <christyfranks@google.com> Night display status restores on reboot/user change

Fixes: 30086742
Test: runtest -c com.android.server.NightDisplayServiceTest \
frameworks-services
Change-Id: I264be077e607baf8e19496f0c57549a907668005
/frameworks/base/core/java/android/provider/Settings.java
f5772c6121ee1f5f2aa06711e2762c0f07fb61cc 27-Apr-2017 Antony Sargent <asargent@google.com> Add persistent state for Bluetooth high quality audio support

Defines the flags used in code and the Settings.Global key names for
persisting the following state for Bluetooth A2DP Sink devices:
-Whether the device supports optional codecs or not
-Whether optional codecs should be turned on for the device

For each of these two properties we model the state in the code as
yes/no/unknown, so that we can tailor the UI and behavior
accordingly.

Bug=37441685
Test: manually

Change-Id: I6bcd02fd7c95bef989575f3b13d4788dab61971a
/frameworks/base/core/java/android/provider/Settings.java
316c9ce6949b8a3799227b20f3beecdbf049a9ee 01-May-2017 Colin Cross <ccross@android.com> Add missing symbol

Bug: 35998031
Test: builds
Change-Id: Ie085b4058c5714df9913ceb9fd03fb4658168520
/frameworks/base/core/java/android/provider/Settings.java
8a40a4ca2767ca2ffdeef8bf44a12e17933dd17f 30-Apr-2017 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #36891897: Need to ensure foreground services can't..." into oc-dev am: f1a4b50739
am: a766f1d1ec

Change-Id: I82c6b62af3d4eddbd4e97c83b2bb7d4a1657c63d
83b40f69bef4ba17bb63ac30d52f661a12d5b4f4 26-Apr-2017 Dianne Hackborn <hackbod@google.com> Work on issue #36891897: Need to ensure foreground services can't...

...hide themselves

The activity manager now keeps track of all apps that are running
foreground services and builds a notification showing them to the
user. We ensure they are shown to the user for at least 30 seconds
(configurable). If foreground services are executed while the
screen is off, their apps will be shown to the user for at least
30 seconds after the screen turns back on.

While doing this I am also adding a new process state to distinguish
between "important background" stuff that should bypass bg check vs.
ones that don't. By default, these now no longer bypass bg check,
which is really the expected (and documented) behavior. There is a
new bind flag to allow them to bypass bg check, which is currently
only used by the IME.

Also add some new job scheduler commands that will be used to
write new tests cases for jobs timing out.

Bug: 36891897

Test: manual

Change-Id: Ied3f7b56444254513fd776f06b88bc0e54704958
/frameworks/base/core/java/android/provider/Settings.java
9432516fe4a0820425f089916b5506a9867db745 29-Apr-2017 Philip P. Moltmann <moltmann@google.com> Merge "Add constant for autofill-service-add URL" into oc-dev am: 09d8db0381
am: b29e0906f9

Change-Id: I163d68c15984cf43aa07371a7ee07ee6e662c346
09d8db03810c6de6e4bebd2fff96aebabe4b1888 29-Apr-2017 Philip P. Moltmann <moltmann@google.com> Merge "Add constant for autofill-service-add URL" into oc-dev
a771ca7bab6740cfffb5aabbd615f1db854f8f36 29-Apr-2017 Lifu Tang <lifu@google.com> Merge "Throttle location update rate in proximity alert" into oc-dev am: 23a66d44ea
am: 2307be9c47

Change-Id: If946fae16c1db2038f752a4837d5fb9ac0e14a2e
c94ef4ddfd94f0445cd0e7bc1b1ebd0cf9868dcb 24-Mar-2017 Lifu Tang <lifu@google.com> Throttle location update rate in proximity alert

Bug: 36197768
Test: manual
Change-Id: I2427ed7e77e9153c20e7c65e8f861de4c7ffeac6
/frameworks/base/core/java/android/provider/Settings.java
5d614ad11f050fab38307ab4e3c5bc1c202073c5 28-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Expose missing accessibility settings to instant apps" into oc-dev am: 4108aa77e8
am: 29e4c12dca

Change-Id: Id715372c4e1d6da43576cecee8866aca11f917bb
3ad5340e5c1304af081afccf87a6785afdab075c 28-Apr-2017 Wei Wang <weiwa@google.com> Merge "Throttle wifi scan requests from background apps (1/2)." into oc-dev am: afd8d9e2b2
am: 5c1469e5cc

Change-Id: I0fb64287061f5323db066b484db7b96b5f1979ea
4108aa77e89f7188f3da5aa53afb1777ab475b3a 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose missing accessibility settings to instant apps" into oc-dev
afd8d9e2b289fe623118e849e0915f940a19bf2f 28-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Throttle wifi scan requests from background apps (1/2)." into oc-dev
a30d6e0d5bf17f0df941f29ff2e25364c23f83ff 28-Apr-2017 Philip P. Moltmann <moltmann@google.com> Add constant for autofill-service-add URL

Mimicing the behavior we have for adding a print service.

Bug: 37735998
Test: Started auto fill picker with add-service-settings set
and unset. Only if set, the preference is added

Change-Id: Ida298afc0cbbdf13bdbeb124f73a603bd39855c1
/frameworks/base/core/java/android/provider/Settings.java
d9285b5a196ee7294a17496135644b40620591b1 28-Apr-2017 Chad Brubaker <cbrubaker@google.com> Expose missing accessibility settings to instant apps

Fixes: 37631050
Test: EphemeralTest#testWebViewLoads
Change-Id: I9c4c6d5dd4b8f2c1e27009d77f6f11035d4f1667
/frameworks/base/core/java/android/provider/Settings.java
fc92b9ff8e9a79eaf00dd550932701035ed7c3b9 27-Apr-2017 Kevin Chyn <kchyn@google.com> Add setting to enable ES while sleeping

Also changed code so that our contentObserver updates relevant ES
variables when settings are changed

Fixes: 37719853

Test: manual
Change-Id: I624fd5e6cec728ccb01d01b6a8779764aa418a6a
/frameworks/base/core/java/android/provider/Settings.java
731a26666d0c357952989cf6fb7df1e376558e9b 18-Apr-2017 Ajay Panicker <apanicke@google.com> Limit btsnoop file size (3/8)

Limit btsnoop file size by rotating between snoop files. The rotation occurrs
when a fixed number of packets have been logged and will start overwriting
the older file.

Bug: 35998031
Test: Enable snoop logs from developer options and let logs get large
Merged-In: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
Change-Id: I40d5da4c1b1c9b45908e5790d130f1c5e804c773
/frameworks/base/core/java/android/provider/Settings.java
07856ab8dc1a61771aa3635d244568b2763192e5 26-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Make sure autofill service is backed up am: d8561a26da
am: 92e412dfb3

Change-Id: If46c616d922701493f797be1919b158707bc5574
d8561a26daa31ef2e617664f35ba82c363b5d498 26-Apr-2017 Svetoslav Ganov <svetoslavganov@google.com> Make sure autofill service is backed up

Test: manual

bug:36638606

Change-Id: I3367b9eb40a542267fb5d49f9a8bb7aa97ca57fa
/frameworks/base/core/java/android/provider/Settings.java
fb805e0fe69a958d2da4cae31cccfbd7d26a3a68 25-Apr-2017 Phil Weaver <pweaver@google.com> Merge "Merge "Remove a11y web flags and associated settings" into oc-dev am: cd68c334ba" into oc-dev-plus-aosp
am: b471a37b10

Change-Id: Ic6ccf5e38686d5169d70bece449c3c6ade3ab9fd
f3024d69ec137eba558974c0dee44533f255756b 25-Apr-2017 Amin Shaikh <ashaikh@google.com> Merge changes from topic 'experio-scoring' into oc-dev am: bad4573bd4
am: 592ecd0b5a

Change-Id: I4780e742c271df5e1c4d791c86ee77f697e46d6c
cd68c334bad676e4b29db77c78f61eb48fd75df1 25-Apr-2017 Phil Weaver <pweaver@google.com> Merge "Remove a11y web flags and associated settings" into oc-dev
bad4573bd459c7a0219f56ddc208e84ff45cb7c6 25-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic 'experio-scoring' into oc-dev

* changes:
Remove Settings.CURATE_SAVED_OPEN_NETWORKS
Remove request recommendation from AIDL files.
Remove the recommendation request impl and test code.
Deprecate the recommendation request code.
e6623e5b2fe53b3578bba1d27894fa407f4328bc 25-Apr-2017 Felipe Leme <felipeal@google.com> Merge "Added APIs that let AutofillService implementations set themselves as such." into oc-dev am: fc513f98d7
am: 535422c80b

Change-Id: I978f429f100af65df6483364a90e29fc26ae0379
db041188bc9ca03bed3c14a7ca1b3eb9524a9287 22-Apr-2017 Felipe Leme <felipeal@google.com> Added APIs that let AutofillService implementations set themselves as such.

Bug: 37576671
Test: manual verification
Test: CtsAutoFillServiceTestCases (with new tests) pass

Change-Id: I6fd61f8a2826dbf6b6fce831f3deadf6df025386
/frameworks/base/core/java/android/provider/Settings.java
09d4ff8960cd3d45988b0c3ff0835d281f0e16b5 31-Mar-2017 Phil Weaver <pweaver@google.com> Remove a11y web flags and associated settings

Bug: 35707622
Bug: 28322375
Test: Ran a11y cts. Updated those tests in linked CL to
ignore this feature.

Change-Id: I1dccb3ae4e1f4d6bb832ae1b0edd4dad4a54289e
/frameworks/base/core/java/android/provider/Settings.java
475cb57d80eef0e1502ad6e332be6b5f1ee922b5 21-Apr-2017 Suprabh Shukla <suprabh@google.com> Merge "Renaming intent action for unknown sources" into oc-dev am: f277ccbca6
am: de8f784bb2

Change-Id: Icaa3dc557f4a63250f22d334f57978e682830ab4
89aae4463a2af0166ef16c710c3bdf6a7d33b8fc 21-Apr-2017 Suprabh Shukla <suprabh@google.com> Renaming intent action for unknown sources

Renaming to maintain consistency with neighboring constants

Test: gts-tradefed run gts GtsExternalSourcesTestCases

Bug:37515311
Change-Id: I5e153d93fce01633ee69363c0725b026f1551b1e
/frameworks/base/core/java/android/provider/Settings.java
e0a8e5bcef921595124ce975a1aa9e49d5940d67 20-Apr-2017 Abodunrinwa Toki <toki@google.com> Merge "Merge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev am: 06a53d4729" into oc-dev-plus-aosp
am: 528adaed4f

Change-Id: If30d4f866655de89618d1afcb5560f9827691e11
1321dda19ff8c2c1cf7e16ae2b018f2f9497e4c5 14-Apr-2017 Amin Shaikh <ashaikh@google.com> Remove Settings.CURATE_SAVED_OPEN_NETWORKS

Bug: 37356724
Test: make
Change-Id: I2763b3cfc4e1ebe38135a35e8fd36fee9750ba6b
/frameworks/base/core/java/android/provider/Settings.java
b1a0139590448d706c778d22891efe80b05f11f2 14-Apr-2017 Jeremy Joslin <jjoslin@google.com> Remove the recommendation request impl and test code.

Removing most of the platform side request recommendation code and
its tests.

Test: adb shell am instrument -e class android.net.NetworkRecommendationProviderTest -w com.android.frameworks.coretests/android.support.test.runner.AndroidJUnitRunner
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 37357264
Change-Id: I36e592c5c82c38aa2174a51cf02c6e9825ef4f11
/frameworks/base/core/java/android/provider/Settings.java
696ab6b7ff3e8340b49de7dc86792225cd86f4da 20-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Change ANDROID_ID for Instant Apps" into oc-dev am: 904e6cad28
am: 97eecf8d09

Change-Id: Ibbea27ef27bfaa43649d0ff86e23f0ffd559d7f6
06a53d4729a679be5b3b716b31a62a112b45ff59 20-Apr-2017 Abodunrinwa Toki <toki@google.com> Merge changes from topics 'smartselectconfig', 'langidconfig' into oc-dev

* changes:
SmartSelection Config installer.
LangId Config installer.
cdbffa986dfa0a26ebcde6409f0131754889c88f 18-Apr-2017 Wei Wang <weiwa@google.com> Throttle wifi scan requests from background apps (1/2).

Bug: 37320631

Test: Manual test on Sailfish. Unit tests using runtest.sh.

Change-Id: If7c0206df29aea15089eba335d5b4e82f066eed9
/frameworks/base/core/java/android/provider/Settings.java
bb957d12ba96f3a1afcecbcdae8040dcaf35d35e 12-Apr-2017 Abodunrinwa Toki <toki@google.com> SmartSelection Config installer.

Test: none
Bug: 34780396
Change-Id: I9cb04e7b20b565ac5d128475a90bd065c805e95e
/frameworks/base/core/java/android/provider/Settings.java
51c4203ab4223b5cc601dbca2755bbe76082f455 02-Apr-2017 Abodunrinwa Toki <toki@google.com> LangId Config installer.

Test: none
Bug: 34780396
Change-Id: I6cdd608ea9a41041d03640997c076c6e6fea0129
/frameworks/base/core/java/android/provider/Settings.java
0d277a7b189c8807d142b69dd8d00b17978a49a5 13-Apr-2017 Chad Brubaker <cbrubaker@google.com> Change ANDROID_ID for Instant Apps

ANDROID_ID for Instant Apps now has the following properties:
1) per-app scoped
2) reset if the user clears the Instant App
3) remains the same if the Instant App gets upgraded to an installed
app.

Note that if the user goes instant -> installed_1 -> uninstall ->
installed_2 the ANDROID_ID at installed_1 will not be the same as
installed_2. This was deemed better than the id changing on the upgrade
step.

Test: manual
Change-Id: I532975c50049c94ff80902a897e001dd35a69f9f
/frameworks/base/core/java/android/provider/Settings.java
8a7b06d865571634374299fe83bfa8dd91fba5a5 19-Apr-2017 Felipe Leme <felipeal@google.com> Merge "Clone autofill service settings on managed profile." into oc-dev am: fad9b07e31
am: 0f3a9cf166

Change-Id: I24535dee497b3a4c0e7247f0cf5bb3e6054f62f0
aa00896b8dda3b73e8ce73b5caa9308af7e89fa8 18-Apr-2017 Felipe Leme <felipeal@google.com> Clone autofill service settings on managed profile.

Test: manual verification
Change-Id: I9d13e4230265b18444bfd30fd403c5fb98b88159
Fixes: 37351722
/frameworks/base/core/java/android/provider/Settings.java
45e0d34f45e628a08b9deb45bc5c743f7eb1df26 18-Apr-2017 Daniel Sheng <dsheng@google.com> Added Sesame camera lift gesture settings.
Test: make

Change-Id: I84ea9a8db0e09e0c02abc18a8f63e0b04efe8b7f
/frameworks/base/core/java/android/provider/Settings.java
21b9a64a2cad3b33798b41727f62154d231fc9ea 17-Apr-2017 Joe LaPenna <jlapenna@google.com> Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev am: 5b06dbd12b
am: feb382e926

Change-Id: I96de8a97ca2825ffa02cfce474025bc43b3c3331
5b06dbd12bcd28fbc051c88c3ea7f31bcf20d1f8 17-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make NETWORK_RECOMMENDATIONS_ENABLED hidden." into oc-dev
509352d475ddb120249f5b0626ff9071d20c22dc 14-Mar-2017 Joe LaPenna <jlapenna@google.com> Make NETWORK_RECOMMENDATIONS_ENABLED hidden.

This value is necessary to easily look up the availability of a
recommendation (nee, scoring) provider; however it is only used by
bundled apps to monitor its availability, so hide the setting itself.


Test: make update-api; make; flashall
Bug: 34715823

Change-Id: Idf4591fd03d90207ef525f584793db65a1f6597c
/frameworks/base/core/java/android/provider/Settings.java
f24e74942beb2bb4a5ca15b0d0f5a4db5d56a296 14-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge "Captive portal: rotate fallback urls" am: 76b3537dfd am: 605eafe0a5 am: 4479901ff3
am: 43cdbc943d

Change-Id: I4f3bd72a8cfa75853474039e7f6e44a5a89bf950
dc36701751c3a33c1628d8259b7cbfd4244376a5 14-Apr-2017 Jean-Michel Trivi <jmtrivi@google.com> Merge "Fix A11y volume persisting/restore" into oc-dev am: 076a0bd0bf
am: 350b39fbc8

Change-Id: I376101c1e68cdab01cdf3ee0db3bbe64b4bcd631
35025da6696d4eb69d6705441cabffa644c0c7f7 10-Apr-2017 Hugo Benichi <hugobenichi@google.com> Captive portal: rotate fallback urls

This patch introduces a new settings value to specify more than one url
for the fallback http probe in addition to the existing settings value.
If more than one url exists, a network will rotate urls for the fallback
probe one by one everytime the fallback probe is sent.

Test: built, flashed, tested manually with various portal networks.
Bug: 36532213
Merged-In: I3c010bfee5b99db03a500776fbf47959a29d0578

(cherry picked from commit eef918a66c984ac7bb1f541665f4dc9bb88ea7ac)

Change-Id: If4d9a091c3a04a33895032d9b0d05c1dc66968e7
/frameworks/base/core/java/android/provider/Settings.java
43cdbc943dd24367c625e99ad7868f56ed84426d 14-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge "Captive portal: rotate fallback urls" am: 76b3537dfd am: 605eafe0a5
am: 4479901ff3

Change-Id: I7d20b9f247a30920df1938b680e63bc1739e1fa9
eef918a66c984ac7bb1f541665f4dc9bb88ea7ac 10-Apr-2017 Hugo Benichi <hugobenichi@google.com> Captive portal: rotate fallback urls

This patch introduces a new settings value to specify more than one url
for the fallback http probe in addition to the existing settings value.
If more than one url exists, a network will rotate urls for the fallback
probe one by one everytime the fallback probe is sent.

(not like commit 0908daaaf00e6b56ebed0a0fce9c3e3fe183a06b, this patch
uses a comma to separate fallback urls, which works as expected with
Java's String.split())

Test: built, flashed, tested manually with various portal networks.
Bug: 36532213
Change-Id: I3c010bfee5b99db03a500776fbf47959a29d0578
/frameworks/base/core/java/android/provider/Settings.java
076a0bd0bf4be3cb9743365eef31911a82e7f8e5 13-Apr-2017 Jean-Michel Trivi <jmtrivi@google.com> Merge "Fix A11y volume persisting/restore" into oc-dev
a53b7051a2d2d2ff9bddba0a12d2e8dcd0d5c620 13-Apr-2017 Jean-Michel Trivi <jmtrivi@google.com> Fix A11y volume persisting/restore

When the accessibility volume is enabled, its value wasn't persisted
when changed because it was still using the persisting name from
its alias (music).
When enabled, notiify the volume controller that a11y volume has
changed so the UI also reflects the new value, now updated from
the persisted settings.
Do not persist volumes for streams that don't have a setting name.

Test: enable Talkback, set a11y volume at a different level than media \
then disable Talkback. Reboot and enable Talkback, verify a11y is \
restored.
Bug: 36286073

Change-Id: Ic6c30364e164b856fc10fbf6b22c09a7b5561be1
/frameworks/base/core/java/android/provider/Settings.java
c03829d362e0fcf7920519e247bb1d3f17334930 13-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge "Revert "Captive portal: rotate fallback urls"" am: 9ea45b6106 am: 4d47eba86a am: 4d47a6a26b
am: e90070d528

Change-Id: I4c26b3bf4ae6179193768783781aa8fbe0ac92cc
e90070d528370e43b17909fc02a86d036b601bf4 13-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge "Revert "Captive portal: rotate fallback urls"" am: 9ea45b6106 am: 4d47eba86a
am: 4d47a6a26b

Change-Id: Ib4dd12ee716fbc06e1fbfbb2e0445836b1e7c475
2e43e45e1e108fa4ac9ee66da7de7a4447e7bad7 13-Apr-2017 Hugo Benichi <hugobenichi@google.com> Revert "Captive portal: rotate fallback urls"

After discussion in the cl we agreed to use "|" as a separator. However String.split() input arg is a regex and not a literal string, so that "|" will actually split the urls characters per characters.

Will revert and resubmit with a comma.

This reverts commit 0908daaaf00e6b56ebed0a0fce9c3e3fe183a06b.

Change-Id: Ifab25e41bec806fbc1d2c13ffd81d4ad91598c89
/frameworks/base/core/java/android/provider/Settings.java
fd0b79fb4e0d941d50da5b714413261679161544 13-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge changes Ia15f77e2,Icaa1f95c am: c923752929 am: 8e5ebd9261 am: b98eee1f78
am: 54e288cc6d

Change-Id: I80446a6c334661fb87e1dabc0765e50e39443612
54e288cc6ddac7d6c29223f71dfe1e003e1e930c 13-Apr-2017 Hugo Benichi <hugobenichi@google.com> Merge changes Ia15f77e2,Icaa1f95c am: c923752929 am: 8e5ebd9261
am: b98eee1f78

Change-Id: I124e328fb64b03eac6808865bf02af8d7dd939cc
0908daaaf00e6b56ebed0a0fce9c3e3fe183a06b 10-Apr-2017 Hugo Benichi <hugobenichi@google.com> Captive portal: rotate fallback urls

This patch introduces a new settings value to specify more than one url
for the fallback http probe in addition to the existing settings value.
If more than one url exists, a network will rotate urls for the fallback
probe one by one everytime the fallback probe is sent.

Test: built, flashed, tested manually with various portal networks.
Bug: 36532213
Change-Id: Icaa1f95c5914e8840c83ccdf071047358a5b760f
/frameworks/base/core/java/android/provider/Settings.java
9e6bb31110d4674130c296a2d1e15c6f2a254e9d 13-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Expose more settings to Instant Apps" into oc-dev am: 055b51af28
am: a927a8c3ba

Change-Id: I3224b23298ad06cd6a75ae1a5d96f0690c7bccf3
055b51af2860c4457041582233c9cdf9b34e1487 13-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Expose more settings to Instant Apps" into oc-dev
93b7acddf844d000c699899f0da2db2e69fafc51 12-Apr-2017 Jesse Evans <jsje@google.com> Merge "Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED" into oc-dev am: 684b5381e9
am: 3d1676cfc4

Change-Id: I0cc0d165ad5bceb1d93cbe48030e347b53e3caf4
562afaf1e7f77120d05994ac99e46599c7e85270 10-Apr-2017 Chad Brubaker <cbrubaker@google.com> Expose more settings to Instant Apps

Test: Settings are accessible from an instant app
Change-Id: Ib6e5f603184bc94c8a47f010e1609b3021765403
/frameworks/base/core/java/android/provider/Settings.java
fc1bfc442cb52d4f904e6bf946f191bcf007277a 08-Apr-2017 Jesse Evans <jsje@google.com> Rename WEB_ACTION_ENABLED to INSTANT_APPS_ENABLED

Renames the instant apps setting to reflect what it is for.

Adds the SystemApi annotation to make this field visible
to the resolver and installer.

Test: existing tests

Change-Id: I1651bb101d69bdfdaa63c004435025c68a33cd8e
/frameworks/base/core/java/android/provider/Settings.java
4741e74b8a951c1c6e9584b31b448671cc5c5ac4 12-Apr-2017 Suprabh Shukla <suprabh@google.com> Merge "Renaming intent action for unknown sources" into oc-dev am: a609bbc9c4
am: 56fa529c28

Change-Id: I28f085f5ea2b2d94c23a42f69ce19ea6c8d5c94f
a609bbc9c4e1614eca7e70cb90739486f745e5c7 12-Apr-2017 Suprabh Shukla <suprabh@google.com> Merge "Renaming intent action for unknown sources" into oc-dev
84d19b3162fa4abb3ef045dbf566f559c02022a1 07-Apr-2017 Chad Brubaker <cbrubaker@google.com> Merge "Expose package_verifier_user_consent to Instant Apps" into oc-dev am: ca73ff016f
am: c6ef0585e8

Change-Id: I384d3f9d1e5a68426fd1ce69eb5dc6266891d84b
8d7b36f0ec49f615e061881ad15382d33ae07c4f 07-Apr-2017 Chad Brubaker <cbrubaker@google.com> Expose package_verifier_user_consent to Instant Apps

Test: manual
Bug: 37119785
Change-Id: I0a6deb96f1267f3f80bcf017d898fcf365515353
/frameworks/base/core/java/android/provider/Settings.java
a1300c84f63f6288616f8532f9cb3373ad130c7f 07-Apr-2017 Suprabh Shukla <suprabh@google.com> Renaming intent action for unknown sources

Renaming action MANAGE_EXTERNAL_SOURCES to MANAGE_UNKNOWN_APP_SOURCES to
be clearer about its purpose

Test: adb shell am instrument -w -e class \
com.android.settings.applications.ExternalSourcesSettingsTest \
com.android.settings.tests/android.support.test.runner.AndroidJUnitRunner

cts-tradefed run singleCommand cts -m ExternalSources

Bug: 35812498
Change-Id: If38349f349781541673f93638e536a4f2a184bf6
/frameworks/base/core/java/android/provider/Settings.java
5021918605020c44c7ee66fbc896955abdd1517f 05-Apr-2017 Artem Iglikov <artikz@google.com> Clone BackupManagerService and make Trampoline aware of the clone.

RefactoredBackupManagerService is an exact clone of
BackupManagerService. Trampoline chooses between these two based on
backup_refactored_service_disabled global setting, defaulting to true.

Test: manual: flashed the device, ran `settings put global
backup_refactored_service_disabled 1|0`, verified that correct class was
instantiated, ran bmgr backupnow command to make sure that it works.

Bug: 36850431

Change-Id: I8ef91b928a40aae022f88f07a4126a00b1d5e220
/frameworks/base/core/java/android/provider/Settings.java
46aa9c022ed059f1e38f4dbf54d8850e090bce13 24-Jan-2017 Lorenzo Colitti <lorenzo@google.com> Add an API hint for metered multipath traffic.

This allows an application that knows how to provide seamless
network connectivity (e.g., using QUIC multipath) to find out if
doing so is desired.

(cherry picked from commit 2de4925f5cc64aeb92e02a8f740d3ff20f36dddd)

Test: builds, boots, runtest frameworks-net passes.
Bug: 34630278
Change-Id: Ic7fd0b9e1cd879fdfaf84009d7125391895e9087
/frameworks/base/core/java/android/provider/Settings.java
91d2e2832ce01edb06ddf5631710d0f77cc0ee5f 03-Apr-2017 Chad Brubaker <cbrubaker@google.com> Expose animator settings to Instant Apps

Bug: 36861394
Test: Instant Apps can access the settings
Change-Id: I0e414cb068a47e9a6f62239ffcb922de54586a71
/frameworks/base/core/java/android/provider/Settings.java
9408d51fbe23a655b95aed639dfdd7e0df8ea0e4 29-Mar-2017 Chad Brubaker <cbrubaker@google.com> Expose ACCESSIBILITY_CAPTIONING_* to Instant Apps

Fixes settings issues seen in Webview startup.
Bug: 34087569
Test: SecurityExceptions go away

Change-Id: I0e3c55e7dc1c17f445d9dc514682e12dad9dc247
/frameworks/base/core/java/android/provider/Settings.java
15e3d0dba862d27ac8b55ff1da8f96b3c3b0e9f0 28-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove ACTION_CONFIGURE_WIFI_SETTINGS and ACTION_WIFI_SAVED_NETWORK_SETTINGS."
31417b3ebf8ccbfff990659bce6f62ec984b2228 28-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Deprecate Setting that is no longer used."
31484af10181a60785287b25bc3970446c3e3253 22-Mar-2017 Stephen Chen <stewchen@google.com> Remove ACTION_CONFIGURE_WIFI_SETTINGS and ACTION_WIFI_SAVED_NETWORK_SETTINGS.

ConfigureWifiSettings page will instead use WIFI_IP_SETTINGS intent.
Intent for SavedAccessPointsSettingsActivity is unused and can be
removed.

Bug: 34392691
Bug: 36516068
Test: make
Change-Id: I86547df387b41241d531e361014581d0763008ee
/frameworks/base/core/java/android/provider/Settings.java
d292c1555875e3e2c134f8d477b2a77d27df55d4 25-Mar-2017 Sudheer Shanka <sudheersai@google.com> Merge "Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid."
5e8b980c5d6bc282b51b3ddfc8722ff973c7e885 24-Mar-2017 Casey Burkhardt <caseyburkhardt@google.com> Target selection for Accessibility button

Allows for selecting a single accessibility service or feature
to be triggered by the accessibility button in the navigation bar

Bug: 34720082
Test: Manual
Change-Id: I320febede0398b1eff38a87d4db31fd7dfc53062
/frameworks/base/core/java/android/provider/Settings.java
3087e323eabc612e3ec4d3284cb68cae7e941bb2 25-Mar-2017 Amin Shaikh <ashaikh@google.com> Deprecate Setting that is no longer used.

Bug: 36526645
Test: make
Change-Id: I11cc75916c4721a8bfbe5e5f0b0f0e7baf0c4a90
/frameworks/base/core/java/android/provider/Settings.java
582fae1cf46dfe3ea63e1ba1123575467c70a221 24-Mar-2017 Phil Weaver <pweaver@google.com> Merge "Restructure a11y shortcut settings"
5918c6700bd8e660abbf2c8f78cac5ea6a947374 22-Mar-2017 Sudheer Shanka <sudheersai@google.com> Update AMS to use NetworkManagementInternal.isNetworkRestrictedForUid.

And add global setting WAIT_FOR_NETWORK_TIMEOUT_MS.

Bug: 27803922
Test: runtest -c com.android.server.am.ActivityManagerServiceTest frameworks-services
cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests -t com.android.cts.net.HostsideRestrictBackgroundNetworkTests
runtest -c android.provider.SettingsBackupTest frameworks-core
and manual

Change-Id: I6949cd517255670e2ce21ab2de24271082461b11
/frameworks/base/core/java/android/provider/Settings.java
3945202dc861cf0cadea3dbe22ccd37a31ae055b 21-Mar-2017 Amith Yamasani <yamasani@google.com> Some logging for settings reset

If settings db gets reset because it disappeared/got corrupted,
then write the Build.ID of the OTA, so we know when it was reset.

Bug: 36365648
Test: manual
Change-Id: I499a7f65f07a61c0e4651dbd046fc5b16408c09d
/frameworks/base/core/java/android/provider/Settings.java
ce687c5e4a0ce27e9190fb5c823ec4649fbc3712 15-Mar-2017 Phil Weaver <pweaver@google.com> Restructure a11y shortcut settings

Separating the shortcut on/off from the shortcut service.
Enabling the shortcut to work from the lock screen if the
user wants it to.

Bug: 35872328
Bug: 35219988
Bug: 35443593
Test: Adjusted tests for shortcut controller, manually
activated shortcut in a variety of conditions.
Change-Id: Id39d33ec62eb5f11b76b2972089167dc7d4c625b
/frameworks/base/core/java/android/provider/Settings.java
45030ba62bcf898aa3cf29a275b1b5b801f635a4 20-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose AIRPLANE_MODE_ON to Instant Apps"
c8076f164a1ce4c07dd16352d88635e08aaeacac 20-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose Android ID to Instant Apps"
1f6a266398930c4e8be4119c7d487bb7823b579c 20-Mar-2017 Chad Brubaker <cbrubaker@google.com> Expose AIRPLANE_MODE_ON to Instant Apps

Test: AIRPLANE_MODE_ON is accessible from Instant Apps
Bug:36444225
Change-Id: I9ab2c89844d2bd202924156a5e44ef40075fd467
/frameworks/base/core/java/android/provider/Settings.java
1bed93742fc06ee285dcce0af926336f7f484d9e 20-Mar-2017 Chad Brubaker <cbrubaker@google.com> Expose Android ID to Instant Apps

Android ID in O is scoped per-app but persistent across
installs. Since Instant Apps can use the cookie to implement similar
functionality its fine to expose.

In a follow up the Android ID generation will be made to depend on the
cookie so that clearing the cookie also breaks the persistence.

Bug: 36385889
Test: Manual
Change-Id: I09b993bb4153179b80eebe0da8dac3fad7b9c779
/frameworks/base/core/java/android/provider/Settings.java
6418d0b8905c0bbbe65f01d60d3925d197f26cd8 13-Feb-2017 Christine Franks <christyfranks@google.com> Add color temperature preference for Night Display

Bug: 32463283
Test: adb shell settings put secure night_display_color_temperature
XXXX, where XXXX is {0, 2900, 4000, 7000}, and the temperatures
outside the valid range are capped at the min/max, respectively.
Change-Id: I322c0a907b30742fc312a9938fd0c47f679e580b
/frameworks/base/core/java/android/provider/Settings.java
c74d85fee82d5b938f54f96d8ddadb555d1e7a05 16-Mar-2017 Robin Lee <rgl@google.com> Make SYNC_PARENT_SOUNDS a @SystemApi

Since there is a CTS test depending on it which is currently hardcoding
the string. Let's not do that.

Bug: 30658854
Test: make full -j30
Change-Id: I6f6b1044ac664589b8fe76ced9961e80024b0b29
/frameworks/base/core/java/android/provider/Settings.java
74922c63e1dfba074aa9219034e48a161bdfba5b 13-Feb-2017 Casey Burkhardt <caseyburkhardt@google.com> Display magnification via the nav bar Accessibility Button

Adds support for invoking display magnification by first selecting
the Accessibility Button, then touching an area of the screen to
magnify.

Bug: 30960346
Test: Manual
Change-Id: Ifd8a355562f204182e34bd37f71a3637d85cf0e1
/frameworks/base/core/java/android/provider/Settings.java
9e9f86199ae919ded4658999d9c79ae434c32311 14-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS"
f24d7255c299e9b94cd14dab8344b93f90aac19b 14-Mar-2017 Donghyun Cho <donghyun@google.com> Merge "CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED"
058760737f91ee2f6fafd6a0058d15de096156bd 16-Feb-2017 Justin Klaassen <justinklaassen@google.com> Unhide Settings#ACTION_NIGHT_DISPLAY_SETTINGS

Bug: 35356645
Test: adb shell am start -a "android.settings.NIGHT_DISPLAY_SETTINGS"
Change-Id: I8f725c4e4190e849d9160f09d2ca79f1987fc93a
/frameworks/base/core/java/android/provider/Settings.java
bcf631d48bed2da32b59d550ee6ea34179fc83c1 10-Mar-2017 Evan Laird <evanlaird@google.com> Move battery percent constant to Settings

This switch is moving to system settings so it should also be declared
by Settings. Also changed the constant's name to make sense in the
System context.

Test: runtest systemui
Bug: 32539932
Change-Id: I7cce21b50702f31465328dd8faed3fbac47528ea
/frameworks/base/core/java/android/provider/Settings.java
c1fa9afbcd1cafd205d46b2fd0bdaadccb7d29ea 27-Dec-2016 Donghyun Cho <donghyun@google.com> CEC: Revisit the behavior of HDMI_SYSTEM_AUDIO_ENABLED

Currently the system setting, HDMI_SYSTEM_AUDIO_ENABLED, is used to
store the latest system audio mode status so that TV can keep this
status over reboot. But because the name is a little confusing and the
behavior isn't intuitive, it is likely to use this in a wrong way.
This change renames this setting to HDMI_SYSTEM_AUDIO_CONTROL_ENABLED
and tweak the purpose of it. Now, it will act more like a switch for
System Audio Control feature, so user can disable or enable this feature
entirely. With this way, implementation of audio output option will
also become easier.

Bug: 31449672
Test: Tested on archer
Change-Id: Ice8717135272d4b86665a3452bfe7527c0d6c08b
(cherry picked from commit 7b7aa8fb31ccf0cd3f36162a52f080263dd89e77)
/frameworks/base/core/java/android/provider/Settings.java
80274caf49f0b0d204693318facde0e9feb779bf 03-Mar-2017 Philip Quinn <pquinn@google.com> Add Secure setting for the assist gesture's sensitivity.

Test: make
Change-Id: I458419fce5ef092780220cdef99621d5eb251623
/frameworks/base/core/java/android/provider/Settings.java
640f30a7763b0a4b80c767acb84c740aac04768b 07-Mar-2017 Felipe Leme <felipeal@google.com> Replaced auto-fill by autofill to keep it consistent with API style.

This change will affects 2 types of apps: autofill service implementations
and apps that use autofill APIs.

Since just the former is known to be used at the moment, we're not trying
to keep backward compatibility with the latter.

Bug: 35956626
Test: CtsAutoFillServiceTestCases pass
Test: android.provider.SettingsBackupTest pass

Change-Id: Ia720083508716deae9e887f9faa7ae7c5a82f471
/frameworks/base/core/java/android/provider/Settings.java
fe0103861684fcf883b13ce9fb75dc321881b77a 09-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Updated javadoc for ACTION_MANAGE_EXTERNAL_SOURCES"
30d69eaf868d2c8a9440f49b9a611c40a9f1ac1d 08-Mar-2017 Lei Yu <jackqdyulei@google.com> Merge "Add BatterySaverPolicy for power save mode"
455e90add22835d0744fc0f5c2feb5fcaf03b28f 10-Feb-2017 jackqdyulei <jackqdyulei@google.com> Add BatterySaverPolicy for power save mode

The BatterySaverPolicy is designed to consolidate all battery saver
knobs into a central location. Usually it is consistent to
mLowPowerModeEnabled unless it gets different data for specific
service. By adding these knobs, we can effectively tune the battery
saver.

This cl sets up the framework for BatterySaverPolicy and updates
following service to get battery saver data from BatterySaverPolicy

1. GnssLocationProvider
2. VibratorService
3. WindowManagerService
4. BackupManagerService
5. SoundTriggerService
6. NetworkPolicyManagerService

Screen brightness will come in a following cl.

Bug: 34693888
Test: FrameworksServicesTests

Change-Id: I6b040e93391614b44d136a485faa4a332c396e51
/frameworks/base/core/java/android/provider/Settings.java
84d11b4716818584d774b0100b5dc0cdcf04e1da 08-Mar-2017 Suprabh Shukla <suprabh@google.com> Updated javadoc for ACTION_MANAGE_EXTERNAL_SOURCES

Added an optional parameter that can be passed as data to directly open
the app specific page

Test: N/A

Bug: 35487166

Change-Id: Ib20fe902670d98d949c5776cd633c38a5332b751
/frameworks/base/core/java/android/provider/Settings.java
1966cccd321b9f7342226cb09f210cbdb083a1de 08-Mar-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Keep Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED updated."
9925c6a7e703a1267aef47d4b17c494d1fedb162 06-Mar-2017 Jeremy Joslin <jjoslin@google.com> Keep Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED updated.

Make sure Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED reflects
the current active scorer state. When valid the setting will have a
value of 1, when invalid it will be 0 (or more
accurately not 1, see below).

Introduced a new valid setting value, -1, which indicates the feature
has been forced off.

Test: runtest frameworks-services -c com.android.server.NetworkScorerAppManagerTest
Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 35896421
Change-Id: I271725f798e5d0acc7c08c79678dba5115f8faad
/frameworks/base/core/java/android/provider/Settings.java
25e333cb3ca65dde8d3b448d119180918d2f7356 06-Mar-2017 Santos Cordon <santoscordon@google.com> Merge "Add VR_DISPLAY_MODE settings to be backed up."
5bce494b93f83bec7fd59ce8e11774264631fcc4 27-Feb-2017 Santos Cordon <santoscordon@google.com> Add VR_DISPLAY_MODE settings to be backed up.

Test: use adb backup to backup/restore and verify value is carried over.
Bug: 34437367
Change-Id: Icefc6bb1ae2f6410580214d0fe4fe4bd40038f46
/frameworks/base/core/java/android/provider/Settings.java
a11d0b18ec9275ed8d633e4508074226b7372474 16-Feb-2017 Julia Reynolds <juliacr@google.com> Api review feedback.

Change-Id: I4628fcec43ec5dbacd208401d9ace2dbe658da64
Fixes: 35812235
Fixes: 35812334
Fixes: 35812179
Test: make
/frameworks/base/core/java/android/provider/Settings.java
8bd0af021002ea0a730e27dc80fd53202d8308c8 28-Feb-2017 Amin Shaikh <ashaikh@google.com> Merge "Setting for RecommendedNetworkEvaluator cache TTL"
am: 924878a752

Change-Id: I945898d88baa26f210cd0d86cdf064844af6f92e
21496f6ee1371f0bc35a6ac2b28adfc1166f5844 07-Feb-2017 Amin Shaikh <ashaikh@google.com> Setting for RecommendedNetworkEvaluator cache TTL

Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
Merged-In: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
/frameworks/base/core/java/android/provider/Settings.java
d3c8193093741bababda8ff3f0090d72a2860480 07-Feb-2017 Amin Shaikh <ashaikh@google.com> Setting for RecommendedNetworkEvaluator cache TTL

Bug: 19948759
Bug: 33694078
Test: runtest frameworks-core
Change-Id: Ic1820dc3d70170e6b7c740696abf87d284c6e2ea
/frameworks/base/core/java/android/provider/Settings.java
82c46d11f6a84ac34c0fb82ea6845db33e63a439 25-Feb-2017 Jack Yu <jackyu@google.com> resolve merge conflicts of e091985bb5b5 to stage-aosp-master

Test: Manual
Change-Id: Icaf4663abd3ad233afa3e31ff1939dbb7c07a2a5
a585180c75df228e3138a46eb8c7bef38603e6da 25-Feb-2017 Jack Yu <jackyu@google.com> Merge "Added a settings for CMAS message broadcast"
3902857290e1f32365a0945c0245f329d5d278db 23-Feb-2017 Jack Yu <jackyu@google.com> Added a settings for CMAS message broadcast

This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
/frameworks/base/core/java/android/provider/Settings.java
d1d64730b9e6e213b138ab155708ee668f67851c 23-Feb-2017 Jack Yu <jackyu@google.com> Added a settings for CMAS message broadcast

This is for sl4a automation to receive CMAS messages
broadcasdt. The automation should inject the settings
through 'adb settings'.

Test: manual
bug: 34393649
Merged-In: Ic29be11b641f185219146d7fbb05561f5907ea76
Change-Id: Ic29be11b641f185219146d7fbb05561f5907ea76
/frameworks/base/core/java/android/provider/Settings.java
798cccb659321dc60ef4dab87e64834b6c891620 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Don't copy ringtones when profile sync goes off"
7af9a7443162d78ea6b1df5fc7a6362d7e6e72b5 20-Feb-2017 Robin Lee <rgl@google.com> Don't copy ringtones when profile sync goes off

Experimentally, it makes more sense to more people to have the parent
setting as an overlay not a concrete thing.

Test: make cts -j30 && cts-tradefed run cts --module CtsDevicePolicyManagerTestCases --test 'com.android.cts.devicepolicy.ManagedProfileTest#testRingtoneSyncAutoDisableRingtone' </dev/null 2>&1
Bug: 34730524
Change-Id: I5f804713def9e54921b90e4f5cea742ba8aaa685
/frameworks/base/core/java/android/provider/Settings.java
0e9acb53bdd0386358218c798501b71e0d28d972 23-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add "Use open Wi-Fi automatically" setting."
5840f4238fa51442dcc87a651e4f7ac39171f29f 23-Feb-2017 Daniel Nishi <dhnishi@google.com> Merge "Add a flag to enable/disable the cache quota calc."
f764962b0d58008530955b70af1ebf68beb8d4ba 22-Feb-2017 Sudheer Shanka <sudheersai@google.com> Merge "Revert "Ensure network connectivity on app start.""
bc9a8e6f5ba404261c6a7a7e49a529661e05e910 03-Feb-2017 Amin Shaikh <ashaikh@google.com> Add "Use open Wi-Fi automatically" setting.

- Add constant in NetworkScoreManager for the meta-data key required
for NetworkRecommendationProviders to specify which package provides
this feature.
- Add Setting to specify which package is enabled for providing this
feature.

Bug: 34773276
Test: make
Change-Id: I3f8209c21b8b219c242650f97ba407b5985a5250
/frameworks/base/core/java/android/provider/Settings.java
c9d9407e8ec10a56a4caa3c84122d1c6a1fedaab 22-Feb-2017 Sudheer Shanka <sudheersai@google.com> Revert "Ensure network connectivity on app start."

This reverts commit 27e693158398059d00ff20e60640cb105e255625.

Change-Id: I4c41ce7c1839d3b91931bc8a8f117f32bf6cd381
/frameworks/base/core/java/android/provider/Settings.java
0f703e64e3e111048acb7abf5792d589ce1e3eb7 22-Feb-2017 Daniel Nishi <dhnishi@google.com> Add a flag to enable/disable the cache quota calc.

Bug: 34770259
Test: ServicesTests
Change-Id: I74155203c4802b1a3b89117859002bf40b1ca435
/frameworks/base/core/java/android/provider/Settings.java
fb924fa981f79dac7719a35b63fcfae81bdd421a 22-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'"
0b1356ff1f3cd2fd06d770af1ad466822173cc3a 21-Feb-2017 Suprabh Shukla <suprabh@google.com> Fix 'Modifying dpm.setSecureSetting call for install_non_market_apps'

The previous change was reverted as it broke work profile provisioning.
Clearing binder calling identity before calling into settings provider
should fix the issue.

Test: runtest managed-provisioning
Test: runtest -x services/tests/servicestests/src/com/android/server/devicepolicy/DevicePolicyManagerTest.java
Test: Manually tested that work profile is inflated with expected values
of install_non_market_apps

Bug: 33947615
Bug: 35590590

Change-Id: I3c31a73fef0c25c0e682e18f637272adad39b28d
/frameworks/base/core/java/android/provider/Settings.java
385912ee2d78e0e557704cfd5f8c7dbe2b7fd280 10-Feb-2017 Phil Weaver <pweaver@google.com> Deprecate "speak passwords" setting.

This will now be controlled by individual accessibility services.
We'll provide the password information to them, and they can
present or hide the information as it makes sense for their users.

Password information was anyway provided when a headset was
connected.

Bug: 28139568
Test: Manually verified that TalkBack now speaks passwords on the
lock screen and in text views. Since I'm removing functionality
that didn't have tests, it's tricky to have specific tests.
Change-Id: Ic3c724ccce5762ee9dcd9e7dcbd4eae6734dd05e
/frameworks/base/core/java/android/provider/Settings.java
830d4b422db2f2ae4af17403ccd1d34fd6f0bd6f 21-Feb-2017 Jeff Sharkey <jsharkey@google.com> Merge "Clear cache space when allocating bytes."
d5d5e926eb8ff2541a845d6a5657cee5e5c6e7b6 21-Feb-2017 Jeff Sharkey <jsharkey@android.com> Clear cache space when allocating bytes.

Fleshes out remainder of allocation implementation, where we offer
to clear cached data to satisfy the allocation request. To prevent
abuse, we never let apps allocate into either the minimum cache space
or low storage space.

Clean up quota APIs to require the caller to pass in the path they're
interested in, and we resolve the underlying filesystem for them.

Defines settings that can be used to tweak the minimum cache space.

Test: builds, boots
Bug: 34690590
Change-Id: I85bc07399f91ee4aa568a8a54c615646bf748ad4
/frameworks/base/core/java/android/provider/Settings.java
5663e051099cdf442bc3316a88e1a7600c58aaaa 20-Feb-2017 Victor Chang <vichang@google.com> Revert "Modifying dpm.setSecureSetting call for install_non_market_apps"

This reverts commit 2e7d6d64b9b16ea27634bc0e8843717a465142b4.

Bug: 35590590
Fix: 35590106
Test: runtest managed-provisioning
Test: manual verified that work profile can be inflated
Change-Id: Ie780b94053e65bca2f96b32055937c0c9e8beae8
/frameworks/base/core/java/android/provider/Settings.java
dd903d4f0ee4cebcef03e54f5b07f4bcc14c5dbc 18-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Modifying dpm.setSecureSetting call for install_non_market_apps"
2e7d6d64b9b16ea27634bc0e8843717a465142b4 10-Feb-2017 Suprabh Shukla <suprabh@google.com> Modifying dpm.setSecureSetting call for install_non_market_apps

Starting from O, install_non_market_apps is deprecated and will not be
checked by the package installer. Device admin apps should be using the
user restriction instead.
Since on managed profiles, the default value blocked install from
unknown sources, the system will set the user restriction on behalf of
the profile owners (if the profile has one).
For non-managed profiles, the user had access to the settings to change
the value of install_non_market_apps. So going forward, any request to
change it's value by dpm#setSecureSetting in such users is going to be
ignored.

Test: Manually tested that:
1. For a profile with PO, when install_non_market_apps was set to 0,
user restriction is set on upgrade
2. For a profile with PO, when install_non_market_apps was set to 1,
user restriction is not set on upgrade
3. After upgrade, newly created managed profiles with PO have user
restriction set

Bug: 33947615
Change-Id: I063e9ee608b52086ffdf8ed2b24e2928574c58cd
/frameworks/base/core/java/android/provider/Settings.java
8c9a6b0089ff712df4e06454ade1443b77a4a9f4 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Revert "Revert "Per user setting for instant app"""
a093a89b17d398ff2f32997ecaca13295485f35a 17-Feb-2017 Santos Cordon <santoscordon@google.com> Merge "Back up VR screen brightness setting."
bd9dd552e494c63bf8932443d2a0ab52c779fd88 13-Feb-2017 Santos Cordon <santoscordon@google.com> Back up VR screen brightness setting.

'adb help backup' to see how to do backup/restore to a file.

Verified value did not backup prior to change and that it did afterward.

Bug: 34437367
Testing: Set to 30%, do backup, set to 100%, do restore, should be 30%.

Change-Id: I43ce31bf50bc4608e8ce9b87ea0bdb83bac52e61
/frameworks/base/core/java/android/provider/Settings.java
d2bd42e736804aeed687fb82bba707ba8819b8a1 17-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add Secure setting for the assist gesture."
be0b8896d1bc385d4c8fb54c21929745935dcbea 15-Feb-2017 Todd Kennedy <toddke@google.com> Revert "Revert "Per user setting for instant app""

This reverts commit be9ffa15af9e1906e9ffb505768328d62d4a3793.

Test: cts-tradefed run commandAndExit cts-dev -m CtsAppSecurityHostTestCases -t android.appsecurity.cts.EphemeralTest
Change-Id: Ib21321cf157a79890de487060a093840f7182047
/frameworks/base/core/java/android/provider/Settings.java
0c09549ef45bf4a9ec3f6c83d2511023a4c67131 16-Feb-2017 Manu Cornet <manucornet@google.com> Merge "DO NOT MERGE - Ensuring that there are per-user last stack active times." into nyc-mr2-dev
am: e0e08f3f41

Change-Id: Iaeee64f2a6954be8560412f60f838e2483be01f0
512bbdde691fbfc53d8fe39c09b828704a7faa1b 16-Feb-2017 Manu Cornet <manucornet@google.com> DO NOT MERGE - Ensuring that there are per-user last stack active times.

- This fixes an issue where the last stack active time would be clobbered
when switching between users. With the policy in the phone/stack
recents, this is fine, but with the grid recents, it no longer only
applies when out of the historical window, so it is always wrong (it
would normally be wrong if switching back from another user after the
historical time of six hours).

This CL will migrate the last stack active time to a per-user secure
setting, which will be used going forward.

[This is a manual merge of change 1913535]

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
return to the original user

Change-Id: Idc72920240093d15f822f5d9e3ee11b12a56edae
/frameworks/base/core/java/android/provider/Settings.java
28217a4ca271c262dd00167728d510a60c2bdabf 15-Feb-2017 Winson Chung <winsonc@google.com> Ensuring that there are per-user last stack active times.

- This fixes an issue where the last stack active time would be clobbered
when switching between users. With the policy in the phone/stack
recents, this is fine, but with the grid recents, it no longer only
applies when out of the historical window, so it is always wrong (it
would normally be wrong if switching back from another user after the
historical time of six hours).

This CL will migrate the last stack active time to a per-user secure
setting, which will be used going forward.

Bug: 35375206
Test: On the Ryu, launch some tasks, switch users, launch more tasks, and
return to the original user

Change-Id: I9941526de5d1dd52d1f9003e795995389064b19d
/frameworks/base/core/java/android/provider/Settings.java
89c376ed66ba65b7878719efbbc0ec603441f520 14-Feb-2017 Ricky Wai <rickywai@google.com> Merge "Change "Long pressing work mode in quick settings" to managed profile settings"
c4cc308c85b8bc5cc97b7ab412c4b2ea30524527 14-Feb-2017 Philip Quinn <pquinn@google.com> Add Secure setting for the assist gesture.

Test: make
Change-Id: I21c88c0b91043db3de46830044c434a21a0e6cc0
/frameworks/base/core/java/android/provider/Settings.java
27e693158398059d00ff20e60640cb105e255625 23-Jan-2017 Sudheer Shanka <sudheersai@google.com> Ensure network connectivity on app start.

Bug: 27803922
Test: cts-tradefed run singleCommand cts-dev --module CtsHostsideNetworkTests
Change-Id: Ifd7a52924cd6bbc809c9a3f92d52fe2df09b7fe2
/frameworks/base/core/java/android/provider/Settings.java
e767e087d571d877ae16bf8b3f288ce76ad28eb0 10-Feb-2017 Daniel Nishi <dhnishi@google.com> Merge "Add storage management days to retain to settings for backup."
71b60b86e30e29d344747acf75f6098a99814343 10-Feb-2017 Julia Reynolds <juliacr@google.com> Merge "Let apps link to noti settings and vice versa."
c6ba07d3b68d6e451e65f402cdd7ea4201ec4cdb 09-Feb-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove downloads backup related Settings."
c9eb3c46511a80a7ad9d297d232c579886d55a97 08-Feb-2017 Jeremy Joslin <jjoslin@google.com> Add a new setting to store the network recommendation app.

Test: manual
Bug: 35095406
Change-Id: I3d0b7f3b977c0862969d61a4e46f12151eb15417
/frameworks/base/core/java/android/provider/Settings.java
2619b5e6633bce05422a40205811bdc55a7abb2c 09-Feb-2017 Julia Reynolds <juliacr@google.com> Let apps link to noti settings and vice versa.

Test: manual
Change-Id: I3536099fdea1c7a8ddbe38b223fc99b9fef9197a
/frameworks/base/core/java/android/provider/Settings.java
c12a9bd14858d241c46d148de026edcc3a2f9f47 08-Feb-2017 Daniel Nishi <dhnishi@google.com> Remove downloads backup related Settings.

Bug: 32338407
Test: Coretest doesn't fail
Change-Id: Idc28db30af9228e57c6bc775a15d703fbe25798a
/frameworks/base/core/java/android/provider/Settings.java
46d3d6d313647b5f5f54aba8fe1dd8af9a6dabfc 07-Feb-2017 Justin Klaassen <justinklaassen@google.com> Remove experimental twilight-based automatic brightness
am: 614f40ea01

Change-Id: I1b0ec1645f38892adb894900b3b3725fc0b23452
5483cea67a60d3c5012fa7120f62e6eacc6ad3ba 02-Feb-2017 Justin Klaassen <justinklaassen@google.com> Remove experimental twilight-based automatic brightness

Bug: 31602449
Test: verified adaptive brightness no longer varies with twilight with
"brightness_use_twilight" set to "1".

Change-Id: I6b5f7310020b2128c2b292414a205b6052270a0a
/frameworks/base/core/java/android/provider/Settings.java
614f40ea0183e0a70a4f2f1aa66503a28182ed6e 02-Feb-2017 Justin Klaassen <justinklaassen@google.com> Remove experimental twilight-based automatic brightness

Bug: 31602449
Test: verified adaptive brightness no longer varies with twilight with
"brightness_use_twilight" set to "1".

Merged-In: I6b5f7310020b2128c2b292414a205b6052270a0a
Change-Id: Ife9bf6d0f76df791cb7e6a22505d9f551da19731
/frameworks/base/core/java/android/provider/Settings.java
38bb832e7d1238d85760de75efa17e8bc2e2ccec 01-Feb-2017 Ricky Wai <rickywai@google.com> Change "Long pressing work mode in quick settings" to managed profile settings

Test: Long pressing work mode can go to managed profile settings now.

Bug: 34189626
Change-Id: Ic2260aa9dbf9e42f7e3c532aca329d2ba3cd1421
/frameworks/base/core/java/android/provider/Settings.java
2de4925f5cc64aeb92e02a8f740d3ff20f36dddd 24-Jan-2017 Lorenzo Colitti <lorenzo@google.com> Add an API hint for metered multipath traffic.

This allows an application that knows how to provide seamless
network connectivity (e.g., using QUIC multipath) to find out if
doing so is desired.

Test: builds, boots, runtest frameworks-net passes.
Bug: 34630278
Change-Id: Ic7fd0b9e1cd879fdfaf84009d7125391895e9087
/frameworks/base/core/java/android/provider/Settings.java
9deb6b5a3a1ee9ed0eaa646e918ac131fb50b19c 31-Jan-2017 William Mee <williamm@google.com> Merge "Added a new wifi_badging_thresholds setting to Settings.Global"
096d304ae3d85c1bfcda1a1d9cd4eb13d0815500 31-Jan-2017 Svetoslav Ganov <svetoslavganov@google.com> Add instant cookie APIs

This change adds APIs for instant apps to store cookie data
that is presisted across instant installs and across the
upgrade from an instant to a standard app. Standard apps
can use the cookie APIs but when they are uninstalled the
cookie is also deleted. The cookies are kept longer than
the instant apps as they are much smaller - 16KB by default.
We can change the cookie size via a system setting i.e.
after we ship we can increase size if needed.

We also add internal APIs to surface information about
installed and uninstalled instant apps which should be
used for showing them in the UI. For this puporse we store
the icon, permissions, and label of uninstalled apps. If
the app is re-installed we drop this meta-data but keep
the cookie around. If we have cookie data stored and the
signing cert of the app changes when it gets re-intalled
we wipe the cookie.

Test: CTS tests pass; hiddent APIs tested manually

Change-Id: If145c0440cc61a5303e2cbb70228d235d36037a5
/frameworks/base/core/java/android/provider/Settings.java
ad3190beccf2369947bfb8b3cf8a33eccd6819ad 30-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Allow ephemeral apps to access SOUND_EFFECTS_ENABLED"
bb656a2dbeb05ca6a395ed6fde60cb10fe01fc77 30-Jan-2017 Chad Brubaker <cbrubaker@google.com> Allow ephemeral apps to access SOUND_EFFECTS_ENABLED

Test: Manual
Change-Id: I9e574f35b5f007cf62665a60f075fc8ee5096158
/frameworks/base/core/java/android/provider/Settings.java
eb70ad490aaa84d1707de86655671a1af93accc6 27-Jan-2017 Daniel Nishi <dhnishi@google.com> Add storage management days to retain to settings for backup.

Bug: 34440059
Test: None
Change-Id: I308e9c6c4536f11ab55e7b3d367b6cee5c5a5bea
/frameworks/base/core/java/android/provider/Settings.java
6321bdce1846f5fd20a7add51d53639a1a175e33 27-Jan-2017 Daniel Nishi <dhnishi@google.com> Add a flag to enable/disable the diskstats logging service. am: 88e45dcd1f
am: 2297fd2946

Change-Id: I15391057ae632e36f05231a1d188dd01c1e5da90
2297fd29462c73045a2902d53a36f9488015cb56 27-Jan-2017 Daniel Nishi <dhnishi@google.com> Add a flag to enable/disable the diskstats logging service.
am: 88e45dcd1f

Change-Id: Ie822eea68dc0a02c8fad1a838ff9bf23f738106f
6c72a326bb944840bdf587a11dc4ce54855c821e 26-Jan-2017 Soonil Nagarkar <sooniln@google.com> Merge "Add background location throttling whitelist support."
88e45dcd1f8827f1eec399b7a0e1b38d44dd7747 25-Jan-2017 Daniel Nishi <dhnishi@google.com> Add a flag to enable/disable the diskstats logging service.

Bug: 34704947
Test: Service tests
Change-Id: I224cfb38682f1fd2bd33750b664bd3aacdaa4bde
/frameworks/base/core/java/android/provider/Settings.java
5c7700f8b73e7076de738605621359bfd577a9b0 26-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Create Settings Flags to Disable Scoring UI changes."
b3ecbe1fa108d21b3daec789b4186a5fe4b56ff8 26-Jan-2017 Jeff Schumacher <jeffschu@google.com> Merge "Make ACTION_APP_NOTIFICATION_SETTINGS a @SystemApi"
e869d83ea8558e70682c4c42674097040c7eb966 26-Jan-2017 Sundeep Ghuman <sghuman@google.com> Create Settings Flags to Disable Scoring UI changes.

When disabled, this will prevent badges from being shown in the status
bar or wifi picker as well as prevent access points in the picker from
being rearranged based on ranking scores.

Fix missing permission dropped from previous CL to run
NetworkControllerWifiTest and refactored tests to enable new setting.

Bug: 34712533
Test: runtest --path
frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/WifiTrackerTest.java
and runtest --path
frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/NetworkControllerWifiTest.java

Change-Id: I79c97f2205ebb70c0f7f5b1f66f7207055e5769b
/frameworks/base/core/java/android/provider/Settings.java
825f69a5e6204c2cb8c6cfc58ad00336770e3027 19-Jan-2017 songchenxi <songchenxi@google.com> Add a hidden flag to control Settings UI

This flag is to enable link to permission in location settings UI
Test: A new string value added

Bug: 34400189
Change-Id: Ie2adeba9634a0e2426b28683da09ad1765b25a3d
/frameworks/base/core/java/android/provider/Settings.java
bcf3b70371a98878bcad088914a886df4217f555 26-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding an api for apps to check whether they can install apps"
dc53009845037adb721126889ce37d41fab046fa 26-Jan-2017 Jeff Schumacher <jeffschu@google.com> Make ACTION_APP_NOTIFICATION_SETTINGS a @SystemApi

Bug:33022750
Test: Manual
Change-Id: Ia01a5ac3ea4ca0c59516ec47185740869aeb984a
/frameworks/base/core/java/android/provider/Settings.java
aef2513c7157a28236d097a81fe74d7ba6b710c9 24-Jan-2017 Suprabh Shukla <suprabh@google.com> Adding an api for apps to check whether they can install apps

Some apps may want to check whether they are trusted to install apps on
the device, so they can prompt the user to go to settings and mark them
as trusted before they do an intensive operation like downloading an
apk.

Test: cts-tradefed run cts -m CtsExternalSourcesTestCases

Bug: 31002700
Change-Id: Icd9d04daa157e6733decba245ec251ce4acd4122
/frameworks/base/core/java/android/provider/Settings.java
cd62f3aed68b35ac6e1f4f7b0594c695663fc8ba 25-Jan-2017 William Mee <williamm@google.com> Added a new wifi_badging_thresholds setting to Settings.Global

Requirement is to have a defined default, to be able to override
using GServices, and to access from both platform and GMSCore.

Bug: 34052475
Test: compiles
Change-Id: I1aaa146ea654c3fcef3fdad5084f7bea9fd341ed
/frameworks/base/core/java/android/provider/Settings.java
c5d458930ca4f69cf2d976ffd65a8679328de62c 25-Jan-2017 Dianne Hackborn <hackbod@google.com> Merge "Add some new experiment constants for activity and power manager."
142cbdd474539626db7e4cb875c055df158b467b 25-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Expose intents for launching channel settings."
2f1f7e8d68a5408b0fd1967b15b0766ba3318f5d 24-Jan-2017 Soonil Nagarkar <sooniln@google.com> Add background location throttling whitelist support.

Test: manually

Change-Id: I6754fbb8f5eaf7bec3e469a9f25ac4a77965ea50
/frameworks/base/core/java/android/provider/Settings.java
9ba0c613a5ee23d70b87bb65cb4638c5afeec6b1 25-Jan-2017 Julia Reynolds <juliacr@google.com> Expose intents for launching channel settings.

Test: manual
Change-Id: I86e12b0ed6b60660b9f6bd1015c186897418560e
/frameworks/base/core/java/android/provider/Settings.java
0ef403e53e2762d077750dd0a50b73c2125cadb0 25-Jan-2017 Dianne Hackborn <hackbod@google.com> Add some new experiment constants for activity and power manager.

Activity manager now has constants, starting with two: bg check
and process limit.

Power manager now has constants, starting with one: controlling
disabling of wake locks from cached processes.

Test: manual

Change-Id: I05db42e2104e9d31584f85251412df2d5efb34b6
/frameworks/base/core/java/android/provider/Settings.java
13c8c869d209e540e5c41f3be43ece77e784efa9 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings."
42f5f2943952bf849b8e31484afe3a9b7d9aeebe 20-Jan-2017 Stephen Chen <stewchen@google.com> Enabled backup/restore of Wifi Wakeup and Network Recommendations Settings.

Bug: 34430370
Test: make
Change-Id: I8838eace4cac6a02d580d73a5700ca4e3f368bf6
/frameworks/base/core/java/android/provider/Settings.java
e4910cc70aa5cfffd5cd4c57b89c6123bbc50e27 24-Jan-2017 Andrew Sapperstein <asapperstein@google.com> Add Settings.Global configs to high temp warning.
am: 63db9254cf

Change-Id: I63de4c9648158d8b19ed5d7eac1e75ca9b68d355
d2b93464da0e45a6acadb2e8effc74ecf263d05a 24-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Adding AppOps setting for entering PiP when hidden."
59fda9e2175742d86fa982600dd1cf09d8151180 21-Jan-2017 Winson Chung <winsonc@google.com> Adding AppOps setting for entering PiP when hidden.

- In O, apps can request to enter picture-in-picture when the user
effectively leaves their activity for another task by default. To
prevent this from being abused, we need to add a setting for the
user to disable this behavior per-package in the system level.
When disabled, any activity from that package will only be able
to enter picture-in-picture when it is visible and resumed.

Bug: 34520451
Test: android.server.cts.ActivityManagerPinnedStackTests
Test: #testAppOpsDenyPipOnPause
Change-Id: Ib3a993e99ffb071706c6b7d3fb1c882b74acc5d7
Signed-off-by: Winson Chung <winsonc@google.com>
/frameworks/base/core/java/android/provider/Settings.java
63db9254cf29236517b7493a6167022050f38939 21-Jan-2017 Andrew Sapperstein <asapperstein@google.com> Add Settings.Global configs to high temp warning.

Test: manual
Bug: 34480261
Merged-In: Icfd08c1c7dae456920b3978918ee01469e1dec95
Change-Id: I9ed444dfb89f86d94f3a0db699324318f5bf78d0
/frameworks/base/core/java/android/provider/Settings.java
e33525615e890f13e242bf55f5c220f117ba6250 21-Jan-2017 Andrew Sapperstein <asapperstein@google.com> Add Settings.Global configs to high temp warning.

Test: manual
Bug: 34480261
Change-Id: Icfd08c1c7dae456920b3978918ee01469e1dec95
/frameworks/base/core/java/android/provider/Settings.java
086ab84878b4439576c147792595aafb283beff3 23-Jan-2017 Soonil Nagarkar <sooniln@google.com> Merge "Add background location throttling to LocationManagerService"
17a040d48e4879a7f1304ff01e631710f8f24184 21-Jan-2017 Amin Shaikh <ashaikh@google.com> Merge "Add Setting for curating saved open networks." am: b3b665de22 am: 2aec2f7a9c
am: 835db7f6b6

Change-Id: I5a8e3a4fc0198dbb7bf88e2bbcf0152b0b82a7fc
835db7f6b62b8417b0facbe018c8fe610ef4acd4 21-Jan-2017 Amin Shaikh <ashaikh@google.com> Merge "Add Setting for curating saved open networks." am: b3b665de22
am: 2aec2f7a9c

Change-Id: If61be9f8e71bb89a8714c3f4a5eb10b04982cdf7
2aec2f7a9c0c8240fab29a43bff16cfa73a627ae 21-Jan-2017 Amin Shaikh <ashaikh@google.com> Merge "Add Setting for curating saved open networks."
am: b3b665de22

Change-Id: I3c65f39dc4f38f1c6c00a240f519cb0b0cf1a916
8533622ae7dfced7f33909cb206d78b9035f2476 20-Jan-2017 Amin Shaikh <ashaikh@google.com> Add Setting for curating saved open networks.

Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
Merged-In: Icd17753af6b0efdb35d1060b16029a53fdf4e605
/frameworks/base/core/java/android/provider/Settings.java
885019151dd3749d9c461970cbe92d9534a1c12f 21-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add Setting for curating saved open networks."
6ba5dccd50d098d8ae1c5fac8e83be7f61c70018 20-Jan-2017 Chad Brubaker <cbrubaker@google.com> Merge "Add ephemeral whitelist for SettingsProvider"
97bccee6d640a62c78676b5e2a1eb3bbe29072af 06-Jan-2017 Chad Brubaker <cbrubaker@google.com> Add ephemeral whitelist for SettingsProvider

Currently the list is small, only whats required to launch a basic
ephemeral app. It will expand in followup CLs.

Note that the goal of this is not to completely shut down all ways that
an ephemeral app could learn the value (or part of) of a setting not in
the set. The goal is to limit the raw access to settings to a small set that
includes settings that ephemeral apps should have access to directly
System APIs that are exposed to ephemeral apps may allow for
ephemeral apps to learn the value of settings not in the directly
exposed set and that is OK and _not_ a security issue.

This contains a hack to support code in system system server that in
the process of a binder transaction reads a setting using a
ContentReceiver with a system package name. This was previously not an
issue but causes an exception to be thrown from getCallingPackage which
reading a setting now calls.

Bug: 33349998
Test: Boots, functions as normal for regular apps.
Test: cts-tradefed run cts -m CtsProviderTestCases -t
android.provider.cts.SettingsTest

Change-Id: Icc839b0d98c725d23cdd395e8cb76a7b293f8767
/frameworks/base/core/java/android/provider/Settings.java
2f34b1a67835307c9d8b6d966e0ae216ce4cc6ca 16-Dec-2016 Suprabh Shukla <suprabh@google.com> Adding app op and intent action for external sources

Added an app op to control which package and uid can install apps on the
device and an intent action to launch the settings fragment.

Test: Will include in follow up CL, tracked in b/33792674

Bug: 31002700
Change-Id: Ic073495759d9867f8001a6c712e402398c53dfc9
/frameworks/base/core/java/android/provider/Settings.java
0027121964eae632309980cb9ae5f2173e491f43 20-Jan-2017 Amin Shaikh <ashaikh@google.com> Add Setting for curating saved open networks.

Bug: 34392914
Test: make
Change-Id: Icd17753af6b0efdb35d1060b16029a53fdf4e605
/frameworks/base/core/java/android/provider/Settings.java
9971919b6403161a1a9ba81f0e343bebce46c0e8 20-Jan-2017 Jeremy Joslin <jjoslin@google.com> New setting for recommendation request timeout. am: 44e2b84b27 am: 820ad03ba8
am: 00ccf31dbd

Change-Id: If14705a0e4c41dbd40ae90b46b37e5ad2b6e5c4b
00ccf31dbdd8e6837f087cfe932337234264caf9 20-Jan-2017 Jeremy Joslin <jjoslin@google.com> New setting for recommendation request timeout. am: 44e2b84b27
am: 820ad03ba8

Change-Id: Ib4999e09073c74bb4594ce2e744032d3349dce94
820ad03ba8c91cd7647a11edc3df2fe51ec55e0e 20-Jan-2017 Jeremy Joslin <jjoslin@google.com> New setting for recommendation request timeout.
am: 44e2b84b27

Change-Id: I8fd6e0c75d22d0f83db414a389c4d8caaf745469
7decfb6b76f73505946a3da32faa7b36d77e87c4 18-Jan-2017 Soonil Nagarkar <sooniln@google.com> Add background location throttling to LocationManagerService

Test: manual tests
Change-Id: I27f060d2f5338a8750dcbe5cbe4cfadb4edb0464
/frameworks/base/core/java/android/provider/Settings.java
44e2b84b27dea139796299528e5cdd3abc4640f7 04-Jan-2017 Jeremy Joslin <jjoslin@google.com> New setting for recommendation request timeout.

Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I6ff80178440794e4a5da39ee7b5164621316e7bd
Merged-In: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
/frameworks/base/core/java/android/provider/Settings.java
106fe732050f3d75a08c3bc48fdbcf84cac20b41 23-Nov-2016 Phil Weaver <pweaver@google.com> New accessibility shortcut.

Removing accessibility gesture from power dialog.

Adding new accessibility shortcut activated by holding both volume
buttons down. This shortcut is configurable by OEMs and users to
work with any installed accessibility service.

Bug: 30160335

Test: Added automated testing for the EnableAccessibilityController.
Manually toggled various services on and off.
Change-Id: I546bd29a2ab1ba64a0cbfd11e2004cdf85ee6cfd
/frameworks/base/core/java/android/provider/Settings.java
cb594f363dd10a203a90fd5ee2a02f44dbc40454 04-Jan-2017 Jeremy Joslin <jjoslin@google.com> New setting for recommendation request timeout.

Added a new global setting, NETWORK_RECOMMENDATION_REQUEST_TIMEOUT_MS,
to control the maximum amount of time a recommendation request can
take.

Updated the NetworkScoreService to monitor the value and to update
its cached copy on observed changes.

Test: runtest frameworks-services -c com.android.server.NetworkScoreServiceTest
Bug: 34060959
Change-Id: I7650ee024e53dbc856cf20d7520a6eb252c73bdf
/frameworks/base/core/java/android/provider/Settings.java
7d13f29b128b1cc572025a5f248559bb50c4be3a 17-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add constant for package verifier state."
9343f57d8e0a53014a373de3af5e9fe9433b8493 12-Jan-2017 Shahriyar Amini <samini@google.com> Add constant for package verifier state.

Add a constant to be used as the key to obtain package verifier state from
Settings.Secure.

Bug: 31002801
Test: runtest --path frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java

Change-Id: I57b635e212dfb2906eb439afeca0647b4781c087
/frameworks/base/core/java/android/provider/Settings.java
fac595ae56badaee5ad52f1d47aaa98d8bafb432 13-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add activity action for Configure Wi-Fi settings."
f85ab8306f21f1cf62a1083a7f4caedc1bcff7cf 11-Jan-2017 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.
am: d6a5660a2c

Change-Id: If371f485471eb1ab0a3e07964c197cb9b8ef1c9f
a00c2356009e1f93c1f86974048e49b69e4ab7a4 11-Jan-2017 Santos Cordon <santoscordon@google.com> Merge "Add Brightness setting for VR Mode." into nyc-mr2-dev
e89ba5222c0fb84da85adabcb0d98e3a60180a04 11-Jan-2017 Santos Cordon <santoscordon@google.com> Merge "Add Brightness setting for VR Mode."
3107d29c8f6f40b98533978a7e19e5c328f73d24 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Test: runtests frameworks-core
Test: Turn vr mode on and change brightness (should remain separate from
normal brightness)

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
/frameworks/base/core/java/android/provider/Settings.java
d6a5660a2c9f70c9a363d388a091542a378d57d1 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: If3c3e81b592e0c6fd037e5783559683e5cb58379
/frameworks/base/core/java/android/provider/Settings.java
30162889e9cd29bf416b915d3cea63c066a075e7 07-Jan-2017 Amin Shaikh <ashaikh@google.com> Add activity action for Configure Wi-Fi settings.

Bug: 34135303
Test: manual
Change-Id: Ib9e36b614534f3c45c9261cb328850be4ee25ab1
/frameworks/base/core/java/android/provider/Settings.java
3a1ff62e5a7d885a7fa84b469a276b6ec5a39510 29-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings.

Bug: 32881476
Test: Manual; backup, change settings, restore

Change-Id: Ibc31b23f632c50a2c7120734fc96e7d855df062e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/base/core/java/android/provider/Settings.java
bc1d78606c40470e6064a1323d64489535d5553b 06-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Merge "nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings." am: cc4203221b am: 388980d88f am: c1db6c05d0
am: bbc00c877f

Change-Id: I1a84b4ce4215136f30ce7936581ee80230c8abbc
bbc00c877f61252eff29c7545c298811fc4f58db 06-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Merge "nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings." am: cc4203221b am: 388980d88f
am: c1db6c05d0

Change-Id: I874bc8b70d34ce2b579ff34eda0fd90c0284661d
c1db6c05d03cb6e6b81bb23cc7869b4034df6883 06-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Merge "nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings." am: cc4203221b
am: 388980d88f

Change-Id: I8d5498492cae8ffe9048422720427855eaad5ca8
388980d88f4ac3fcafc582ebb151095cc6ed3ad1 06-Jan-2017 Ruchi Kandoi <kandoiruchi@google.com> Merge "nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings."
am: cc4203221b

Change-Id: I4add3ce1cf3170aff887865302964b4425094692
104e0b43995bc30c30aad1d76e12fe5e58b81e53 29-Dec-2016 Ruchi Kandoi <kandoiruchi@google.com> nfc: Adds NFC_PAYMENT_DEFAULT_COMPONENT to the backed up settings.

Bug: 32881476
Test: Manual; backup, change settings, restore

Change-Id: Ibc31b23f632c50a2c7120734fc96e7d855df062e
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/base/core/java/android/provider/Settings.java
bb983d20d2cacebdf81efe88f8ff4aa7304fbff7 06-Jan-2017 Julia Reynolds <juliacr@google.com> Use internal volume controller and status bar.

Remove code that let these components be replaced by external
processes.

Bug: 33006669
Bug: 34106436
Test: manual. reboot device, play music, change volume,
view notifications
Change-Id: I458f11537ab9db6f23735487513815553004613f
/frameworks/base/core/java/android/provider/Settings.java
7e5cff01679ad79e037e0694a6290db4a1d3fcce 27-Dec-2016 Selim Cinek <cinek@google.com> DO NOT MERGE Revert "Add Brightness setting for VR Mode."
am: 966045d070

Change-Id: Ib1be78a47f5947f4fcc6eabc2f6af76523690ed9
cbb057d3daee8e784a4bf2909f7a39033cb7b479 27-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "DO NOT MERGE Revert "Add Brightness setting for VR Mode."" into nyc-mr2-dev
966045d0702ca36df6e8c1e4597aaeb37436ca2f 27-Dec-2016 Selim Cinek <cinek@google.com> DO NOT MERGE Revert "Add Brightness setting for VR Mode."

This reverts commit 84980c7a93e93e7134c0198212e222e11eb5ccbd.

Bug: 33895226
Bug: 30984614
Change-Id: I2652e77512bc870190e2172a629abac9341b2c4f
/frameworks/base/core/java/android/provider/Settings.java
7e96654f1b2e7c97f52cdc68d343139a5186d54d 27-Dec-2016 Ian Pedowitz <ijpedowitz@google.com> Revert "Add Brightness setting for VR Mode."

This reverts commit c7e853f51110b9b6893d526f1f7340b2966f928a.

Bug: 33895226
Bug: 30984614
Change-Id: Icca320e02651b7dd7b8db84ab414f41edee32760
/frameworks/base/core/java/android/provider/Settings.java
84334e25cd96916b5497a584748d0dc8e8968280 23-Dec-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.
am: 84980c7a93

Change-Id: I4a9c3db7bdf73e673cf8b2409404339df94086c2
cfdf27f24bf58c6dce0ed842b351edc032511a7c 23-Dec-2016 Santos Cordon <santoscordon@google.com> Merge "Add Brightness setting for VR Mode." into nyc-mr2-dev
84980c7a93e93e7134c0198212e222e11eb5ccbd 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Merged-In: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
/frameworks/base/core/java/android/provider/Settings.java
21f8870abc5aae673fc4d2ae683151b84f430b21 22-Dec-2016 pkanwar <pkanwar@google.com> DO NOT MERGE: Add UI toggle to control connections to carrier networks.
am: 57f383709b

Change-Id: Ieb3aa3a0755bcd16759d91852980bcdf5373eaa8
c7e853f51110b9b6893d526f1f7340b2966f928a 21-Sep-2016 Santos Cordon <santoscordon@google.com> Add Brightness setting for VR Mode.

This change saves and loads a different brightness setting when the user
goes in and out of VR Mode.

Bug: 30984614
Change-Id: Ie5578bbd6ea346f0eb34fe4abbfd604a5d7c0c93
/frameworks/base/core/java/android/provider/Settings.java
57f383709b765e531f9bf7f521d93d2a2fee9f4a 22-Dec-2016 pkanwar <pkanwar@google.com> DO NOT MERGE: Add UI toggle to control connections to carrier networks.

Bug: 31003437
Change-Id: I6cf32ae4d376eb65f80492da0922dbecb762c9da
/frameworks/base/core/java/android/provider/Settings.java
37d37f0fa9f033d74b3c8d01bd0a0538359e2071 22-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Settings recovery support"
e080da9ee027fcd030aa92ea26fd0ed9f031674f 22-Dec-2016 Svetoslav Ganov <svetoslavganov@google.com> Settings recovery support

This change allows the system to perform iterative reset
of changes to settings in order to recover from bad a
state such as a reboot loop.

To enable this we add the notion of a default value. The
default can be set by any package but if the package that
set it is a part of the system, i.e. trusted, then other
packages that are not a part of the system, i.e. untrusted,
cannot change the default. The settings setter APIs that
do not take a default effectively clear the default. Putting
a setting from a system component always makes it the
default and if the package in not trusted then value is
not made the default. The rationale is that the system is
tested and its values are safe but third-party components
are not trusted and their values are not safe.

The reset modes from the least intrusive are: untrusted
defaults - reset only settings set by untrusted components
to their defaults or clear them otherwise; untrusted clear
- clear settings set by untrusted components (or snap to
default if provided by the system); trusted defaults - reset
all settings to defaults set by the system or clear them
otherwise.

Also a package can reset to defaults changes it made to
the global and secure settings. It is also possible to
associate a setting with an optional token which can then
be used to reset settings set by this package and
associated with the token allowing parallel experiments
over disjoint settings subsets.

The default values are also useful for experiment (or
more precisely iterative tuning of devices' behavior in
production) as the stable configuration can be set to
the "graduated" safe defaults and set the values to the
experimental ones to measure impact.

Test: tests pass

Change-Id: I838955ea3bb28337f416ee244dff2fb1199b6943
/frameworks/base/core/java/android/provider/Settings.java
1bf4a521443543779afbf540709244eb1c736bea 21-Dec-2016 Fyodor Kupolov <fkupolov@google.com> Merge "Revert "Settings recovery support""
457608986ca2e44cbe1677523d1892f1d8c8f985 21-Dec-2016 Fyodor Kupolov <fkupolov@google.com> Revert "Settings recovery support"

This reverts commit aa31697424064f823019c068d66fac704e5a2fc1.

Fixes: 33799277
Change-Id: I438e97c6a81512c673f20f6a01d3b9715c2dbf8a
/frameworks/base/core/java/android/provider/Settings.java
c8ae220ea574be60c98e40650fa245c31c04d21c 21-Dec-2016 Julia Reynolds <juliacr@google.com> Merge "Expose hidden constant."
e886405dbee28726eca4d4fcb5dd73a6aaa68c12 20-Dec-2016 Julia Reynolds <juliacr@google.com> Expose hidden constant.

Change-Id: If86f23ada967047dc63256d9c2675e1c2b229e48
Fixes: 29103412
Test: n/a
/frameworks/base/core/java/android/provider/Settings.java
aa31697424064f823019c068d66fac704e5a2fc1 07-Nov-2016 Svet Ganov <svetoslavganov@google.com> Settings recovery support

This change allows the system to perform iterative reset
of changes to settings in order to recover from bad a
state such as a reboot loop.

To enable this we add the notion of a default value. The
default can be set by any package but if the package that
set it is a part of the system, i.e. trusted, then other
packages that are not a part of the system, i.e. untrusted,
cannot change the default. The settings setter APIs that
do not take a default effectively clear the default. Putting
a setting from a system component always makes it the
default and if the package in not trusted then value is
not made the default. The rationale is that the system is
tested and its values are safe but third-party components
are not trusted and their values are not safe.

The reset modes from the least intrusive are: untrusted
defaults - reset only settings set by untrusted components
to their defaults or clear them otherwise; untrusted clear
- clear settings set by untrusted components (or snap to
default if provided by the system); trusted defaults - reset
all settings to defaults set by the system or clear them
otherwise.

Also a package can reset to defaults changes it made to
the global and secure settings. It is also possible to
associate a setting with an optional token which can then
be used to reset settings set by this package and
associated with the token allowing parallel experiments
over disjoint settings subsets.

The default values are also useful for experiment (or
more precisely iterative tuning of devices' behavior in
production) as the stable configuration can be set to
the "graduated" safe defaults and set the values to the
experimental ones to measure impact.

Test: tests pass

Change-Id: I8c23b145d4f8ee0de2f29dedaa4641ac59343d6a
/frameworks/base/core/java/android/provider/Settings.java
fbbf03a3c2c5132423e84a5d5b19efe836db8139 13-Dec-2016 Hugo Benichi <hugobenichi@google.com> DO NOT MERGE IpConnectivityMetrics reads buffer size in settings
am: ff0b58627f

Change-Id: I5c433faa0d43202ae1169fdba4c42c09dd9c17dd
ff0b58627f8a0c54c057d828eaee36dd0cc68d76 19-Oct-2016 Hugo Benichi <hugobenichi@google.com> DO NOT MERGE IpConnectivityMetrics reads buffer size in settings

Test: IpConnectivityMetricsTest passes. Also manually changed the new
setting and verified the buffer size is as expected after flushing the
buffer.
Bug: 32198637

(cherry pick from commit 05686dbb6b965eb1a54591d2ed2334337886c6ee)

Change-Id: Ie7ca1638533479601c5983bb6e54705003561b6c
/frameworks/base/core/java/android/provider/Settings.java
ea93fe75396465b26429cfe1c1dcfadf7351354f 02-Dec-2016 Steve McKay <smckay@google.com> Replace ContentProvider SQL args w/ Bundle & Constants.

Test: cts-tradefed run cts-dev -m CtsContentTestCases
Bug: 30927484
Change-Id: Idb9dbc2b80896e9f8474a0db71353b7a3810d597
/frameworks/base/core/java/android/provider/Settings.java
8c9e4b68f09c92f7f1d26916bbac7014c45f5d49 19-Oct-2016 Hugo Benichi <hugobenichi@google.com> DO NOT MERGE: IpConnectivityMetrics reads buffer size in settings

Test: IpConnectivityMetricsTest passes. Also manually changed the new
setting and verified the buffer size is as expected after flushing the
buffer.
Bug: 32198637

(cherry picked from commit 05686dbb6b965eb1a54591d2ed2334337886c6ee)

Change-Id: Iefbeac3a688b260fb3f92dfe0bfd9db28e26749d
/frameworks/base/core/java/android/provider/Settings.java
b92aa5bdfde63e56f1e1e63fbe913638c440ffba 08-Dec-2016 Lorenzo Colitti <lorenzo@google.com> Merge changes from topic 'framework-net-aosp'

* changes:
DO NOT MERGE: [CS] Remove timeout event after first available
DO NOT MERGE: ApfTest: tag tests with @SmallTest or @MediumTest
DO NOT MERGE: Unbreak TetherInterfaceStateMachineTest.
DO NOT MERGE: Move the connectivity tests to frameworks/base/tests/net.
DO NOT MERGE: De-guava BroadcastInterceptingContext and move it to testutils.
DO NOT MERGE: Move FakeSettingsProvider to a common location.
DO NOT MERGE: ConnectivityServiceTest: mark flaky test as such
DO NOT MERGE: Add option to skip and avoid captive portals.
DO NOT MERGE: ApfFilter: use elapsedRealTime for RA lifetime
DO NOT MERGE: Do not synchronize boolean reads/writes
DO NOT MERGE: ApfFilter: systematically use u8, u16, u32 getters
DO NOT MERGE: Add fuzzing tests to ApfFilter RA processing
DO NOT MERGE: Support timeouts for requestNetwork() invocations.
DO NOT MERGE: Silence the obnoxious MTU 0 error message that occur when no MTU is specified for a given network.
1f64f3fd14caca5ace9bfdbb036e3711d5484de3 12-Oct-2016 Calvin On <con@google.com> DO NOT MERGE: Add option to skip and avoid captive portals.

Test: ConnectivityServiceTest updated with test cases.
Test: Manually tested against att-wifi in B42.
Bug: 30222699

(cherry picked from commit be96da11ccb5dd500f920c3ba90d350857293b3d)

Change-Id: I90c0f97fe0e41de4059bceae7b56ab3a70145696
/frameworks/base/core/java/android/provider/Settings.java
4aef203cb84ea81eca5e24814a298c9a912b094a 08-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Clarify doc on NETWORK_RECOMMENDATIONS_ENABLED and WIFI_WAKEUP_ENABLED." am: faf3aa697f am: fe9a20c980 am: 609711bbd5
am: 357483f41e

Change-Id: I4cb930396651b86d9a786b9b0abe807c300cd526
609711bbd5379a01f701d736d48964537a5a50df 08-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Clarify doc on NETWORK_RECOMMENDATIONS_ENABLED and WIFI_WAKEUP_ENABLED." am: faf3aa697f
am: fe9a20c980

Change-Id: I7bba392e349525dd55bb8b251554e81967424136
faf3aa697fc569180cc029c09affe08ade9c5e82 08-Dec-2016 Treehugger Robot <treehugger-gerrit@google.com> Merge "Clarify doc on NETWORK_RECOMMENDATIONS_ENABLED and WIFI_WAKEUP_ENABLED."
f1b75647a3d8b51abdc3064445db4f6e40617cb8 07-Dec-2016 Stephen Chen <stewchen@google.com> Clarify doc on NETWORK_RECOMMENDATIONS_ENABLED and WIFI_WAKEUP_ENABLED.

Bug: 32913919
Test: n/a
Change-Id: Ied075bdcc1ebb8f0a4bc0d3bf9758fa6719ce0b9
/frameworks/base/core/java/android/provider/Settings.java
79046ce039b973025180eac2d19ec5e72bdaa55b 06-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED flag." am: 70ae1bf4db am: 45fdf32038 am: e70ef235fb
am: 70889ff69f

Change-Id: If076123dc3874615b058bbddfd3c4810f54b303d
e70ef235fbe4f38ab2c76da45027b16fe4635210 06-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED flag." am: 70ae1bf4db
am: 45fdf32038

Change-Id: I141248962fc0ce710b6860f3f67ca156ecdab46e
45fdf320381637ed60b6a78a0af58c8e9ce8f60a 06-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED flag."
am: 70ae1bf4db

Change-Id: If3d13f94a131188ddbebc7a35c82ea357b37e022
46bea2e685915fe45d372389b0a90815e6067feb 06-Dec-2016 Bartosz Fabianowski <bartfab@google.com> Link from Quick Settings to Enterprise Privacy page

This CL updates the information shown in Quick Settings when a device
is managed by a Device Owner and adds a "learn more" link that takes
the user to the Enterprise Privacy page in Settings.

Bug: 32692748
Bug: 25779452
Test: runtest --path frameworks/base/packages/SystemUI/tests &
runtest --path frameworks/base/core/tests/coretests

Change-Id: I8cbb6f2bb5c6da29ae581b6dcf7a01b1a4f2af2b
/frameworks/base/core/java/android/provider/Settings.java
6a0c879de30e8e1a3ad23748a4ba9dde10bba75c 17-Nov-2016 Stephen Chen <stewchen@google.com> Add Settings.Global.NETWORK_RECOMMENDATIONS_ENABLED flag.

This flag enables the NetworkScoreService.requestRecommendations API,
defined in b/32909424.

Bug: 32913919
Bug: 32909424
Test: runtest --path
frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java

Change-Id: If592e4a2ec574929aa0c829c39ad4ce9b0317805
/frameworks/base/core/java/android/provider/Settings.java
c837ebb2c155bd2e0cd6a3203051770c7746ce4b 03-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.WIFI_WAKEUP_ENABLED flag." am: d758ce1586 am: d738140b8d am: a4d7d45df9
am: 50905a474f

Change-Id: Idc7bc3e35343b06adebb035cc00b555db54289c5
a4d7d45df936ec35e9663e15da8abc0e6432ceb5 03-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.WIFI_WAKEUP_ENABLED flag." am: d758ce1586
am: d738140b8d

Change-Id: Icb8eb81b2021ee12eccd9158974353120228e7c0
d738140b8d8868c0c295fdab97b3a5998c9aa2f7 03-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add Settings.Global.WIFI_WAKEUP_ENABLED flag."
am: d758ce1586

Change-Id: I1bf1effbb635d57980728555587e8056f630edb9
8ca96c1f3c89181119919eaab3b81322d3988e66 17-Nov-2016 Stephen Chen <stewchen@google.com> Add Settings.Global.WIFI_WAKEUP_ENABLED flag.

Set the flag default to false. This addition is for the
Android Wi-Fi Snooze project:
https://docs.google.com/document/d/1zewDZ6Ne-qH7zKFDtcSx55f9jPauZwT5VvOs1uVNXf8/edit#

Bug: 32920000
Bug: 32913119
Test: runtest --path
frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/SettingsProviderTest.java

Change-Id: I597d5dd643e8044315cc6d7553ae5740485a0552
/frameworks/base/core/java/android/provider/Settings.java
6d7e85cb6b21e027a677ed2e207c8ff73ed35e24 01-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings." am: 6e54c31f0a
am: 6ef2ec0d80

Change-Id: I2f36c6d7dc284605b490f9793f17d713bc622063
6ef2ec0d80fc7a02e61f2847f77736ce7b271437 01-Dec-2016 Stephen Chen <stewchen@google.com> Merge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."
am: 6e54c31f0a

Change-Id: Ie3b4a3ed5e2858ce2b3446c300c984875201205c
afd52a7ad42d36e04cfc2a1d3d1e717d4a58169d 30-Nov-2016 vinodkrishnan <vinodkrishnan@google.com> Revert "DO NOT MERGE Wear Fwk: Disable Animations for A11y"
am: 7b62df8556

Change-Id: I7c8d922fb125bf786990642679ebdd17ba589a54
7b62df8556ff6febd8137b9a8bcd755b1f93a1f9 30-Nov-2016 vinodkrishnan <vinodkrishnan@google.com> Revert "DO NOT MERGE Wear Fwk: Disable Animations for A11y"

This reverts commit 8500f26d51e2ba0de7b6cd18bec5f85e5ca40e1d.

Change-Id: I6408fa3f307d7611443e26b24d3876c1a1f92fdc
/frameworks/base/core/java/android/provider/Settings.java
767e453cdfd1a8acbab526536675f8b09c9dbcc2 15-Nov-2016 Stephen Chen <stewchen@google.com> Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings.

Exposes an activity that deep links into saved network Settings.

Bug: 32738882
Test: gts test
Change-Id: Ic639b7543439bbe52941fa58a74a767a4a0f8a76
/frameworks/base/core/java/android/provider/Settings.java
b1df48d32632d0ba5a2389fb9fad2943dcb55562 23-Nov-2016 Baligh Uddin <baligh@google.com> Merge remote-tracking branch 'goog/cw-f-dev' into fix_merger

Bug: 32849428

* goog/cw-f-dev: (98 commits)
Revert "Catch KeyStoreException for setting profile lock"
Fix createConfirmDeviceCredentialIntent for wear for CTS.
Fix default dialog background colour for watch devices.
Catch KeyStoreException for setting profile lock
Add cross-links between FINE and COARSE location permissions. bug: 25371600
Fixed a bug with the emergency affordance in multi user
Zygote: Additional whitelists for runtime overlay / other static resources.
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Zygote : Block SIGCHLD during fork.
colors: add missing accent_material_{700,50} resources.
Import translations. DO NOT MERGE
Import translations. DO NOT MERGE
Zygote : Block SIGCHLD during fork.
DO NOT MERGE ANYWHERE Revert "DO NOT MERGE ANYWHERE libhwui: make setSurface asynchronous"
...

Change-Id: I63468da5bfa21ed9ac5985bbdbf3a61d4c389aa0
fdd3cb50815bfa58d3a2dde12fa88cddb7a3d314 22-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings."
28d89393140143dc5c7847b10fcbd3aa741e2eab 15-Nov-2016 Stephen Chen <stewchen@google.com> Add ACTION_WIFI_SAVED_NETWORK_SETTINGS to Settings.

Exposes an activity that deep links into saved network Settings.

Bug: 32738882
Test: gts test
Change-Id: Idfd45a8ab424a5508012675058e3498ebbc5e228
/frameworks/base/core/java/android/provider/Settings.java
2250d56a0b47b93016018340c8f4040325aa5611 08-Nov-2016 Sudheer Shanka <sudheersai@google.com> Rename MountService to StorageManagerService.

Bug: 30977067
Test: Existing tests pass
Change-Id: Ieac0f11c2b249dcd60441b14c1f391e6f8131d42
/frameworks/base/core/java/android/provider/Settings.java
e07641d4fbdd0528c18305213e861a6e1aff4a3b 10-Nov-2016 Dianne Hackborn <hackbod@google.com> Start implementing background restrictions for eph apps.

This implements the additional intended path for checking
allowed background operations, APP_START_MODE_DISABLED, which
doesn't allow an app to launch in the background at all.

Also change the semantics of delivering broadcasts to manifest
receivers to always restrict those, not changing based on
whether the app is currently idle. This is the desired intended
behavior for apps as they explicitly update to work with
bg check.

And now that we have ephemerality associated with the uid state
in the activity manager, we can propagate this through the
relevant callbacks in IUidObserver so things watching these
changes can immediately determine whether they should do their
more aggressive shut down work for the uid rather than having
to walk through all their state looking for package associated
with that uid and whether they should be shut down.

Also remove the "lenient" bg check mode, since that was
just an early experiment that we won't actually use.

Add a new "make-idle" activity manager command to immediately
put a uid into the idle state (if possible) to make it easier
to test.

Test: manually against an eph app
Change-Id: I43a138ff281f69a9251d3f29ab6e13f48cff8ad6
/frameworks/base/core/java/android/provider/Settings.java
67c8e1e61f289ff51382c372452071eebca2104c 09-Nov-2016 Julia Reynolds <juliacr@google.com> Merge "Ranker --> Assistant."
00f42c3b28b6535274ff94fa6ed1a076d5f1d734 09-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Initial implementation of the Auto-Fill Framework classes."
77b2cc920fb27adaa156b463dccb0bd1b5c87eb9 08-Nov-2016 Julia Reynolds <juliacr@google.com> Ranker --> Assistant.

Rename ranker to assistant and make some of the methods public.
Delete the ext services ranker and restore the listener-type
lifecycle to the assistant.

Test: manual. add a notification assistant and verify it gets
assistant and listener callbacks.

Change-Id: Ia3406c8c14d923426c1b8a6d8b5187efe64c31c3
/frameworks/base/core/java/android/provider/Settings.java
5381aa4b585f3fa2a315d88e910111173e2ef77d 13-Oct-2016 Felipe Leme <felipeal@google.com> Initial implementation of the Auto-Fill Framework classes.

This CL provides the initial, skeleton implementation of the Auto-Fill
Framework classes:

- Defines the system service and app-based
AIDL (IAutoFillManagerService.aidl and IAutoFillService.aidl respectively).
- Defines the 'adb shell cmd' interface.
- Defines the permission required to access the service.
- Registers the service on SystemServer.
- Adds the code to bind the app-specified service to system_server.
- Defines the service class (AutoFillService) required by providers.
- Implements the initial startSession() method.

This is still a very early, "work-in-progress" change:
- It has many TODOs.
- It does not have unit or CTS tests yet.
- It does not provide a callback method to auto-fill the fields.
- In fact, it has a lot of TODOs.

Despite these adversities, it can be tested by following the steps
below:

1.Create an app with a service extending AutoFillService

2.Implement the onNewSession() method

3.In the manifest:
- Listen to android.service.autofill.AutoFillService intents.
- Require the android.permission.BIND_AUTO_FILL permission.

4.Explicitly set the app as an autofill-service by running:
adb shell settings put secure auto_fill_service MY_APP/.MY_SERVICE

5.Start a session against the top activity:
adb shell cmd autofill start session

BUG: 31001899
Test: manually built and ran it

Change-Id: I00f4822159b31ddddba8f513e57c4474bc74eb89
/frameworks/base/core/java/android/provider/Settings.java
e5195dd17c5e1d8538049a5282c0d988988f63c8 20-Oct-2016 Todd Kennedy <toddke@google.com> Implement new API

This is the first swack at the new, 2-phase API. Adds the new methods
to the resolver service and makes the split name explicit on the
installer intent.

The 2nd phase will not yet be invoked; that's coming in a follow-on
change.

Bug: 25119046
Test: build & install the sample resolver and run 'adb shell am start -a android.intent.action.VIEW -c android.intent.category.BROWSABLE -d "https://www.tripadvisor.com/Tourism-g33020-San_Jose_California-Vacations.html"'
Change-Id: I2df6fa64d46f17a86a2e32b19417632c594fb10f
/frameworks/base/core/java/android/provider/Settings.java
a46f009bbfc693319290c273b4e647dea2eebe10 04-Nov-2016 Phil Weaver <pweaver@google.com> Merge "Add tests for MagnificationController."
89e3ffc66c5a05f188ff9748b48abebc247f664b 19-Sep-2016 Phil Weaver <pweaver@google.com> Add tests for MagnificationController.

Also refactoring the class to make it easier to test and
chaning behavior where the current behavior seemed poorly
defined.

Refactoring:
- Combined all handlers into one.
- Simplified animation to use a ValueAnimator.
- Eliminated ACCESSIBILITY_DISPLAY_MAGNIFICATION_AUTO_UPDATE
setting. Move rest of settings reading into mockable class.
- Move callbacks from WindowManager into the main class.
- Pulled out my instrumented Handler from the
MotionEventInjectorTest into its own class so I can reuse
it.

Behavior changes:
- Always constraining out-of-bounds values rather than
refusing to change them.
- Constraining offsets on bounds changes. We previously
left them alone, even if they were out of bounds.
- Keeping track of the animation starting point. We were
interpolating between the current magnification spec
and the final one. This change means the magnification
animates to a different profile.

Test: This CL adds tests. I've also run a11y CTS.

Bugs: 31855954, 30325691

Change-Id: Ie00e29ae88b75d9fe1016f9d107257c9cf6425bb
/frameworks/base/core/java/android/provider/Settings.java
fe9368afe82f3009c7653e97df931073860b42ec 02-Nov-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE am: 631768d814 am: d94c280a7f am: c412914520
am: fb70d77f64

Change-Id: Ia56f6ca01a4d92b24f192102917950a10b6cb05d
fb70d77f64da2cb36035eb6ac61ed36011990eb7 02-Nov-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE am: 631768d814 am: d94c280a7f
am: c412914520

Change-Id: Ia56d131194075795c55c899dfbebbe3c2feb1584
c4129145203039072541e4415cb20c2103ca34f2 02-Nov-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE am: 631768d814
am: d94c280a7f

Change-Id: I6a765b9a07204afca2763fb98fdb2e92e08292e5
d94c280a7f28f0f87ccd2a72b5814f5962756007 02-Nov-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE
am: 631768d814

Change-Id: I155fd0e8b44539bf79cec2c6ddb2a4d71b0c23d9
631768d81469f83552de05bf0ec839d1cd6eab04 01-Sep-2016 Joseph Pirozzo <pirozzoj@google.com> MAP MCE

Add MAP client code into packages/apps/Bluetooth. Changes here are to
define the MAP MCE interface and enable its selection when running on a
device that is also running a PBAP client (Car Kitt).

Bug: 30467210
Change-Id: Ifa2cdea7d67f63a2b5f3d971df8ec6d321dc5fee
(cherry picked from commit 433b3054847951e8e7b3864d11990604a66b8651)
/frameworks/base/core/java/android/provider/Settings.java
166b0ad28f03806112a2385dee9bca27576c089b 02-Nov-2016 Vinod Krishnan <vinodkrishnan@google.com> DO NOT MERGE Wear Fwk: Disable Animations for A11y am: 8500f26d51
am: 305187983b

Change-Id: Ifb4eea689ded623034d5f8aa3158c814620e9de9
ebea7a7e56937fbbb18cb0bfcd871af2ee4605fe 26-Oct-2016 Adrian Roos <roosa@google.com> AmbientDisplay: Add always on prototype

Test: adb shell settings put secure doze_always_on 1
Change-Id: I3f293b3ef43847b7848af416b44f212fc40514d4
/frameworks/base/core/java/android/provider/Settings.java
1a845e3637ef1d246a7c49c2e313919c21346146 31-Oct-2016 Sanket Agarwal <sanketa@google.com> Merge "Configuration for priority/auto-connection for PAN." am: ba63f32ed5 am: 50cc13cc18 am: 9e33f453a3
am: 502e3e53ec

Change-Id: I8211babdceb7228c74232c15dfbc51d9f771d674
9e33f453a3af6700c20f1503aa7714ef91fbbea1 31-Oct-2016 Sanket Agarwal <sanketa@google.com> Merge "Configuration for priority/auto-connection for PAN." am: ba63f32ed5
am: 50cc13cc18

Change-Id: I6725098623dba530db325f6b12d5193f9f2629e7
50cc13cc18935745968987ca20e62cbffba9cb95 31-Oct-2016 Sanket Agarwal <sanketa@google.com> Merge "Configuration for priority/auto-connection for PAN."
am: ba63f32ed5

Change-Id: I00ecde6e7f1c64f704341c7a96e476f1a11bdaea
773297a83e4fe09be911fcf4598e030cc4b72e68 05-Aug-2016 Sanket Agarwal <sanketa@google.com> Configuration for priority/auto-connection for PAN.

We protect the auto-connection via a flag so that it is only enabled on
some devices.

Bug: b/30679978
Change-Id: I5b7f273e09a659b561913d5c6f3a76feb245e6ce
(cherry picked from commit 1f09d5f255980488cabd55a5c44a5737e24541d8)
/frameworks/base/core/java/android/provider/Settings.java
8500f26d51e2ba0de7b6cd18bec5f85e5ca40e1d 27-Oct-2016 Vinod Krishnan <vinodkrishnan@google.com> DO NOT MERGE Wear Fwk: Disable Animations for A11y

- When Accessibility is turned on, Android Wear devices become unusable.
Add an option to disable animations, will be disabled in an overlay.

Bug: 24985771

Change-Id: If5fc44705d56579b305abd48a0d820f306b9be10
/frameworks/base/core/java/android/provider/Settings.java
03db8e4b58342d5ada64f29b049cf30da0ba9369 24-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I1a544a8d,Ie78d3fb0

* changes:
IpConnectivityMetrics: rate limit ApfProgramEvents
IpConnectivityMetrics reads buffer size in settings
05686dbb6b965eb1a54591d2ed2334337886c6ee 19-Oct-2016 Hugo Benichi <hugobenichi@google.com> IpConnectivityMetrics reads buffer size in settings

Test: IpConnectivityMetricsTest passes. Also manually changed the new
setting and verified the buffer size is as expected after flushing the
buffer.
Bug: 32198637
Change-Id: Ie78d3fb03cea7883585549dac4f2063f0a8d9f4b
/frameworks/base/core/java/android/provider/Settings.java
909bbd31177ebc131f91453a9aa206baec4afb9a 21-Oct-2016 Vinod Krishnan <vinodkrishnan@google.com> Fwk: Only chime when docked and accessbility is on am: cf11ceab65
am: ccf3baf6c5

Change-Id: I685dc2ef179087600e4d3c5776448ece338901b7
ccf3baf6c5ee78dd19290591408025e116c5c97e 21-Oct-2016 Vinod Krishnan <vinodkrishnan@google.com> Fwk: Only chime when docked and accessbility is on
am: cf11ceab65

Change-Id: Ief29ef6f325a8248843faa9fbe9ae6ff893a6918
088f73a9e903ef7127d70b24176b4d44b79176b9 21-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fwk: Only chime when docked and accessbility is on" into cw-f-dev
cf11ceab652a146c72fde1fef53d69ceee9bf651 21-Oct-2016 Vinod Krishnan <vinodkrishnan@google.com> Fwk: Only chime when docked and accessbility is on

Bug: 32036947

Change-Id: I5786abe827735cc3a4bc1d52baacaa19bccaae77
/frameworks/base/core/java/android/provider/Settings.java
4a048f99649c425a8fa5acfab0d9f46d2623530e 20-Oct-2016 Calvin On <con@google.com> Add option to skip and avoid captive portals.
am: 4bc78eba6f

Change-Id: Id38d5c03d06822f9b20abd65db9dd04c90110b63
4bc78eba6f16ef84206aaed9edd5ca4bb4f6c420 12-Oct-2016 Calvin On <con@google.com> Add option to skip and avoid captive portals.

Test: ConnectivityServiceTest updated with test cases.
Test: Manually tested against att-wifi in B42.
Bug: 30222699
Change-Id: Ibe63942da04748ab0406e24e0f44be31d47710a0
(cherry picked from commit be96da11ccb5dd500f920c3ba90d350857293b3d)
/frameworks/base/core/java/android/provider/Settings.java
be96da11ccb5dd500f920c3ba90d350857293b3d 12-Oct-2016 Calvin On <con@google.com> Add option to skip and avoid captive portals.

Test: ConnectivityServiceTest updated with test cases.
Test: Manually tested against att-wifi in B42.
Bug: 30222699
Change-Id: Ibe63942da04748ab0406e24e0f44be31d47710a0
/frameworks/base/core/java/android/provider/Settings.java
f38aac7fc0033a0b2227638fe4a6ccf985a59579 13-Oct-2016 Greg Plesur <plesur@google.com> DPM.isProvisioningAllowed(ACTION_PROVISION_MANAGED_DEVICE) should return 'false' for Wear devices after pairing/upgrade. am: 3514404984
am: 43ed3a5b6a

Change-Id: I20248c835034935c25ee6fa25f8eeeb9125f121e
43ed3a5b6af89da9a89c5876fde6e4d343bd2652 13-Oct-2016 Greg Plesur <plesur@google.com> DPM.isProvisioningAllowed(ACTION_PROVISION_MANAGED_DEVICE) should return 'false' for Wear devices after pairing/upgrade.
am: 3514404984

Change-Id: I8d24007831ba030af0d84f717802c79172db970f
216ee1f0e76f6a36bebb5490c951db2a5513ae03 13-Oct-2016 Greg Plesur <plesur@google.com> Merge "DPM.isProvisioningAllowed(ACTION_PROVISION_MANAGED_DEVICE) should return 'false' for Wear devices after pairing/upgrade." into cw-f-dev
35144049846e115b7d1e03fb6c935ed497d83cb2 10-Oct-2016 Greg Plesur <plesur@google.com> DPM.isProvisioningAllowed(ACTION_PROVISION_MANAGED_DEVICE) should
return 'false' for Wear devices after pairing/upgrade.

BUG: 32019375
Change-Id: I2563efe58c98c5dd8440891e478c89e093d8d9ac
/frameworks/base/core/java/android/provider/Settings.java
44761c81eb16ec6b8ecdd8b047e67d92e837c1a1 11-Oct-2016 Nick Kralevich <nnk@google.com> Delete "Show CPU usage" am: fc4a5c2d85 am: f0c0188a8a
am: 34547a8dc2

Change-Id: I410846d3ff6856e5f9dee2efd551af8b9d1d94dc
34547a8dc216b2a9aabb1a6bf9ed016dbde415a0 11-Oct-2016 Nick Kralevich <nnk@google.com> Delete "Show CPU usage" am: fc4a5c2d85
am: f0c0188a8a

Change-Id: If33e6687d3ec83904ab6ddbeb008c7b9c8130e7a
f0c0188a8a7732a0acc3822ddde0a2c19b25639b 11-Oct-2016 Nick Kralevich <nnk@google.com> Delete "Show CPU usage"
am: fc4a5c2d85

Change-Id: I4da784d136601fb3458b8697a0a27a232cd89111
fc4a5c2d85eea5650cc722c1f3e7ab026accd624 11-Oct-2016 Nick Kralevich <nnk@google.com> Delete "Show CPU usage"

This functionality hasn't worked since Lollipop.

Bug: 21388590
Change-Id: Ie4388d88f6e06f3e2d2e84e9c4515b3ebc6a0ea5
/frameworks/base/core/java/android/provider/Settings.java
e0c3c660a78350e0c3946efd11121a0231e51aab 14-Sep-2016 Selim Cinek <cinek@google.com> DO NOT MERGE - Added Emergency affordance feature

Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Bug: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
/frameworks/base/core/java/android/provider/Settings.java
502fd881a7b1edad9645a80c6ed13c6b8f36ebd7 01-Oct-2016 Suprabh Shukla <suprabh@google.com> Adding a setting to toggle WAL mode for contacts

Bug: 1492819
Change-Id: I577b4950c57fb4cd85bd6cfc9d3ae05fdcbefda5
/frameworks/base/core/java/android/provider/Settings.java
76982f55881597bae97f46deb281f58e6b25591a 29-Sep-2016 Hugo Benichi <hugobenichi@google.com> New Settings symbols for captive portal detection am: 92eb22fdd2 am: 5e666029f9
am: 9cd1a35660

Change-Id: Iad6840b4edd243a77fe65a69a2f4dcba28e0a7cb
587a5f9c7f4f16d671d032f3f08abed2af9d0e18 29-Sep-2016 Meng Wang <mewan@google.com> resolve merge conflicts of 68b84f73 to master

Change-Id: If4d5647d199050846aaf250c4341657440dafb78
9cd1a3566035d3e6f84d236e5fdac638f5665bd1 29-Sep-2016 Hugo Benichi <hugobenichi@google.com> New Settings symbols for captive portal detection am: 92eb22fdd2
am: 5e666029f9

Change-Id: I6e965696ed03b0eb4a49db3b21ad6a382ba1d081
5e666029f97b95ad674285a4ac0b199432c62427 29-Sep-2016 Hugo Benichi <hugobenichi@google.com> New Settings symbols for captive portal detection
am: 92eb22fdd2

Change-Id: Id8c19f16c50b22034278c00b55c5431d892f8a95
3fc76c4669f083ef46b122ec59279803ca3cf184 29-Sep-2016 Hugo Benichi <hugobenichi@google.com> Merge "New Settings symbols for captive portal detection" into nyc-mr1-dev
68b84f7301f394e50bf9dfdbf154eb111fb3a90c 29-Sep-2016 Meng Wang <mewan@google.com> Support WFC roaming preference am: 2c25e4a96b
am: 6db4fbecf8

Change-Id: Idff74a470e26b6c14ba1203290f533813740e192
6db4fbecf8872cf82d54208b06972645be41a46f 29-Sep-2016 Meng Wang <mewan@google.com> Support WFC roaming preference
am: 2c25e4a96b

Change-Id: I8a1af9756ddf5a4359cfd94aa6eebfdcb87b9e13
cfe950f6bedee35f20e38c6374a873fc3ba0166c 29-Sep-2016 Meng Wang <mewan@google.com> Merge "Support WFC roaming preference" into nyc-mr1-dev
92eb22fdd2e5e2d99ca0b2c14e68dfd632323a90 27-Sep-2016 Hugo Benichi <hugobenichi@google.com> New Settings symbols for captive portal detection

This patch defines new Settings symbols for
- setting the probe urls for captive portal detection.
- setting which User-Agent to use for captive portal detection.

The existing default values for these settings are not changed, i.e:
- HTTP and HTTPS probes urls are unchanged.
- the fallback probe is not used.
- User-Agent is empty by default.

Bug: 29367974
Change-Id: I6e4b3b172e56b8b67fffa4b51f776d68d5851f25
/frameworks/base/core/java/android/provider/Settings.java
2cae5760c69cfdba0e20a0bd0e58bcce6e3d0cbf 26-Sep-2016 Selim Cinek <cinek@google.com> Added Emergency affordance feature am: 705442fa7d am: 0e1f78da65
am: 10691456b8

Change-Id: Ieb3a0da5d5693a186c92ab1c21ba189558207ae3
e58d2a72b30391665a273a5775250db6515b6302 21-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a hidden action to trigger the storage manager settings.

Bug: 31621740
Change-Id: I3ad0b65b0810d468e1f297c7ad312ea8a919ea2a
(cherry picked from commit 4bd88df1fbe2840f584cee2d426d2e6805967fa9)
/frameworks/base/core/java/android/provider/Settings.java
3ece845253feb0dac947bd804684e0b3642413fb 24-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a hidden action to trigger the storage manager settings. am: 4bd88df1fb
am: c5cd99dd09

Change-Id: Ic89ef70c64b3841beaab6e039f3b5c5fa1f7cc82
c5cd99dd091d36b26223f29774308cb05ba9b4de 24-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a hidden action to trigger the storage manager settings.
am: 4bd88df1fb

Change-Id: Iad3223793afb9ee0fe3de65baf91373160f163a9
83479600cb524f677ce7e547e711000daed547ee 24-Sep-2016 Daniel Nishi <dhnishi@google.com> Merge "Add a hidden action to trigger the storage manager settings." into nyc-mr1-dev
10691456b8ac6e3f6d7821cdb9f99936cffbd2c7 24-Sep-2016 Selim Cinek <cinek@google.com> Added Emergency affordance feature am: 705442fa7d
am: 0e1f78da65

Change-Id: I6f8220b18bce7889e3b9efe1b075a680a0ae7187
0e1f78da65eb57f249e00a6af4d6ad9298cca803 24-Sep-2016 Selim Cinek <cinek@google.com> Added Emergency affordance feature
am: 705442fa7d

Change-Id: I03ebb84119f9cb310882ba9ea90ee1e1d7118d03
a05719a27878cf7184af848cac16d98ca0211e2b 23-Sep-2016 Selim Cinek <cinek@google.com> Merge changes If7c3a55e,I68dcba41,Ib96a15da into nyc-mr1-dev

* changes:
Fixed a bug where the dimmed background could be invisible
Fixed an issue where the inline controls where not usable
Added Emergency affordance feature
2c25e4a96bf5fd4439f11ab1c4319c8fc2240247 19-Sep-2016 Meng Wang <mewan@google.com> Support WFC roaming preference

Added keys in CarrierConfig and Settings.Global

Bug: 31492826
Change-Id: Ice33f6ee5c42b92ed2f7258ff8b28c50510cde31
/frameworks/base/core/java/android/provider/Settings.java
20cb45c465532dfbe0e597371b60a2a4d754cc71 23-Sep-2016 Todd Kennedy <toddke@google.com> Add remote control of Instant Apps am: d15bb75af6 am: f308ffc915
am: 6f38e68456

Change-Id: I4e2344f16a82008023c63f278bce7e215d0874b8
6f38e684567c640fb9dbac55e1b3aab2b78c7a95 22-Sep-2016 Todd Kennedy <toddke@google.com> Add remote control of Instant Apps am: d15bb75af6
am: f308ffc915

Change-Id: If7a6884bb896c1bab38c7d0fe963c06125a44c26
f308ffc915254644f339df23fb300c961c14e84a 22-Sep-2016 Todd Kennedy <toddke@google.com> Add remote control of Instant Apps
am: d15bb75af6

Change-Id: I0433b101966f65daeb5d1d2ea04cf648572a8e58
705442fa7dcbf1bf92595fdaca6cc888810931d8 14-Sep-2016 Selim Cinek <cinek@google.com> Added Emergency affordance feature

Added a service that listens whether emergency affordances
are necessary.

If the they are needed, it adds an option to the
global actions dialog that directly launches the
emergency call and also adds a long-press listener
to the keyguard emergency button.

Test: adb shell settings put global force_emergency_affordance 1 && adb shell settings put global emergency_affordance_number 111112
Fixes: 30404490
Change-Id: Ib96a15da2ef4b568a8d77140ebca6aa6f20f5ddb
/frameworks/base/core/java/android/provider/Settings.java
03779f227af426058760fdc3cc40bedefaaa6179 22-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add remote control of Instant Apps" into nyc-mr1-dev
458ea2c05be80b7b47d6be76eec4cf93c1b06579 21-Sep-2016 Doris Ling <dling@google.com> Add secure settings for Ambient Display pick up and double tap gestures. am: 6403b4050f am: 6591ac6381
am: 4c25818533

Change-Id: I7e956c18c51eb1db10324ebb5f4d6b8ae9630c2d
f700a6e87fe4d2e6657f98953b56afa0bdecbe25 21-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Support "don't ask again" in the avoid bad wifi dialog. am: 165c51c0eb am: aab02df195 am: 63275aba54
am: 3f67cbec46

Change-Id: I60ebe27ec892658c5a051457b13506e59ba33824
4bd88df1fbe2840f584cee2d426d2e6805967fa9 21-Sep-2016 Daniel Nishi <dhnishi@google.com> Add a hidden action to trigger the storage manager settings.

Bug: 31621740
Change-Id: I3ad0b65b0810d468e1f297c7ad312ea8a919ea2a
/frameworks/base/core/java/android/provider/Settings.java
4c25818533567da4f2b4ad3511cf733e4f9a5789 20-Sep-2016 Doris Ling <dling@google.com> Add secure settings for Ambient Display pick up and double tap gestures. am: 6403b4050f
am: 6591ac6381

Change-Id: I67f40251da88b4e2161a1ff591cc1383079013c0
6591ac6381e753da6d3f9ff6a09863ab284922db 20-Sep-2016 Doris Ling <dling@google.com> Add secure settings for Ambient Display pick up and double tap gestures.
am: 6403b4050f

Change-Id: I35832dc785c1570b5243910309d029ce3c8af2bc
b4b96040e0b2c0e2b05cfdbd44229cbdfe7abd2b 20-Sep-2016 Doris Ling <dling@google.com> Merge "Add secure settings for Ambient Display pick up and double tap gestures." into nyc-mr1-dev
3f67cbec46dea1134bca4d7985dc7d8a15ee267d 20-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Support "don't ask again" in the avoid bad wifi dialog. am: 165c51c0eb am: aab02df195
am: 63275aba54

Change-Id: I7d8d9f91208bcbe3ff625acf20d943b13f813d8e
63275aba540111a7e3c5964c35f17711f4158fd2 20-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Support "don't ask again" in the avoid bad wifi dialog. am: 165c51c0eb
am: aab02df195

Change-Id: Id9c694b14085b1959348ddfa91127cbb33f5e785
aab02df1957927797ba745e5a2b42df0722f076b 20-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Support "don't ask again" in the avoid bad wifi dialog.
am: 165c51c0eb

Change-Id: Ic6a1917a83e2d847bd673790e2c36f7316ca7acd
165c51c0eb9834a3d95ce0b31b07c7c8975a54d7 18-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Support "don't ask again" in the avoid bad wifi dialog.

This contains the following changes:

1. Make NETWORK_AVOID_BAD_WIFI a tristate: 0 means never avoid
bad wifi, unset means prompt the user, 1 means always avoid.
2. Look at NETWORK_AVOID_BAD_WIFI only if the carrier restricts
avoiding bad wifi (previously, we relied on the setting being
null and defaulting to the value of the config variable).
3. Add an avoidUnvalidated bit to NetworkAgentInfo to track
whether the user has requested switching away from this
unvalidated network even though avoiding bad wifi is generally
disabled. This is set to true when the user selects "switch"
in the dialog without setting the "Don't ask again" checkbox.
4. Add a hidden setAvoidUnvalidated API to ConnectivityManager to
set the avoidUnvalidated bit.
5. Additional unit test coverage.

Bug: 31075769
Change-Id: I1be60c3016c8095df3c4752330149ce638bd0ce1
/frameworks/base/core/java/android/provider/Settings.java
d15bb75af67df53f7335bdb7d7468f387848d6fe 14-Sep-2016 Todd Kennedy <toddke@google.com> Add remote control of Instant Apps

Bug: 31470039
Test: manual
Change-Id: I82eb47f4d24fb88d0f264eca1176aec55364867c
/frameworks/base/core/java/android/provider/Settings.java
744c370b7c58c33d9bfd15e331142879eb72449e 15-Sep-2016 Hugo Benichi <hugobenichi@google.com> Support ignoring penalty for bad wifi networks am: c8e9e1229a am: c53b5964f8 am: edabb8e617
am: 9ae080aa9d

Change-Id: I995c1adc61263a0536704fd32bd89efe1a8ec42b
9ae080aa9d42add3d57d8fa5b3c7cfd2c0648403 15-Sep-2016 Hugo Benichi <hugobenichi@google.com> Support ignoring penalty for bad wifi networks am: c8e9e1229a am: c53b5964f8
am: edabb8e617

Change-Id: Ib9a60eb528eb62ebf26d5d5a1941bfed0bb21163
edabb8e617333a31e8623b6e0e78731b6bb19a6f 15-Sep-2016 Hugo Benichi <hugobenichi@google.com> Support ignoring penalty for bad wifi networks am: c8e9e1229a
am: c53b5964f8

Change-Id: Ideee96cc5fc1631cfbc90cd9a59f34a2d5fde160
c53b5964f8ef8a583dfa0f7bf537804b8d84ea65 15-Sep-2016 Hugo Benichi <hugobenichi@google.com> Support ignoring penalty for bad wifi networks
am: c8e9e1229a

Change-Id: I6666ee45e9a08c02444c6268b2232bbe8aa2adec
c8e9e1229a91e22d6ab32d491d4c60086fbc9199 15-Sep-2016 Hugo Benichi <hugobenichi@google.com> Support ignoring penalty for bad wifi networks

This patch adds a way to configure devices so that a validated network
that becomes unvalidated is not penalized in the network scoring and
selection logic.

The intent is to prevent devices configured to do so from switching to a
lower scoring network such as cellular networks when a higher scoring
network such as wifi networks loses internet connectivity.

Bug: 31075769
Change-Id: Ie7e0f2607d214a178367fedfbef6c44768fa00a4
/frameworks/base/core/java/android/provider/Settings.java
6d5ad4c0ebe070308de4e94710acb97684c28263 14-Sep-2016 Bryce Lee <brycelee@google.com> Support telecom related operations for watch back button usage. am: db776ce7f9
am: 9b2027a71c

Change-Id: I62a31f771ea390c59a4fafc4763a9ca3ec7c3228
9b2027a71cf53751538808c7bd65aa5f89900603 11-Sep-2016 Bryce Lee <brycelee@google.com> Support telecom related operations for watch back button usage.
am: db776ce7f9

Change-Id: I713a2c9b5c1a1bfb5bd498997ff6680f1e89764d
a480d0d81f18e5e945f9c0c18db3ae7b00c2d9f6 11-Sep-2016 Bryce Lee <brycelee@google.com> Merge "Support telecom related operations for watch back button usage." into cw-f-dev
6403b4050f057659bd22f8e7d76d2d0978d9d296 09-Sep-2016 Doris Ling <dling@google.com> Add secure settings for Ambient Display pick up and double tap gestures.

Splitting Ambient Display pulse configuration to have separate control
for incoming notification, pick up gesture, and double tap gesture.
Adding separate secure settings for the separate control.

Test: make SettingsTests and verify read/write of the new settings.

Bug: 30595437
Change-Id: Ic301c3234689d9132c283edf86962d1cfb640a28
/frameworks/base/core/java/android/provider/Settings.java
9bf04523b49bd4493b5bb1dcdfb3bfcc60e62e41 09-Sep-2016 Winson <winsonc@google.com> Merge commit 'e0b767153ef978a4ca841c9891074717fd979400' into manual_merge_e0b7671

Change-Id: I6b6810db33e4b244cc872abd69d5b18a90547b35
e0b767153ef978a4ca841c9891074717fd979400 09-Sep-2016 Winson Chung <winsonc@google.com> Revert "Fixing issue with old tasks being visible in Overview" am: 36f3f0337d
am: 4a8a09d1ab

Change-Id: Iac7a2c68ffcb154d2009e5700c2d12958374f549
4a8a09d1aba286a36eceaad62f33a57727974e58 09-Sep-2016 Winson Chung <winsonc@google.com> Revert "Fixing issue with old tasks being visible in Overview"
am: 36f3f0337d

Change-Id: Ic89b6a3b204a6f55667df5c1459449092930d859
99cf874cc37727d0a4f5d167a9f0c730860e5ebd 09-Sep-2016 Winson Chung <winsonc@google.com> Merge "Revert "Fixing issue with old tasks being visible in Overview"" into nyc-mr1-dev
36f3f0337de86baf8cf8a5fdd67a95e61dff4bcd 09-Sep-2016 Winson Chung <winsonc@google.com> Revert "Fixing issue with old tasks being visible in Overview"

Bug: 28908500

This reverts commit b258f6a4bd685e5efcb36c02d5817f659e10479b.

Change-Id: I9b3c04358d6ca693ed3fdcd9220af13f81eb704e
/frameworks/base/core/java/android/provider/Settings.java
db776ce7f9f19341f31c6623fdd24fbae28f3091 04-Sep-2016 Bryce Lee <brycelee@google.com> Support telecom related operations for watch back button usage.

This change allows for the back button to hang up or silence calls when
set through accessibility.

Bug: 30039247
Change-Id: Iff0e67180e1180c9bb8b27df023d7a7a64783543
/frameworks/base/core/java/android/provider/Settings.java
70f21570bfeae8ac7b6d5e670be1e20d144f7805 03-Sep-2016 Winson <winsonc@google.com> Fixing issue with old tasks being visible in Overview am: b258f6a4bd am: f4806c80ca
am: 2a4cd1518e

Change-Id: I8a229f3515bebca4cd8456afae963bb97dac96d6
2a4cd1518e088099840abe41a79c0751860be2ce 03-Sep-2016 Winson <winsonc@google.com> Fixing issue with old tasks being visible in Overview am: b258f6a4bd
am: f4806c80ca

Change-Id: I87bb9656b8d766ea4b2763f529bbf1d8873479f4
f4806c80ca1d9f8d275f7c81cd339c27b9c9635a 03-Sep-2016 Winson <winsonc@google.com> Fixing issue with old tasks being visible in Overview
am: b258f6a4bd

Change-Id: I27ba3d057147b5200ac75b9f079d26423c9d0b05
a8c0fe6606dcd5f494cfb7963f12bf2301a2c8a0 02-Sep-2016 Winson Chung <winsonc@google.com> Merge "Fixing issue with old tasks being visible in Overview" into nyc-mr1-dev
e22143e85544295ff518c3977161f71bdcc358a8 01-Sep-2016 Lorenzo Colitti <lorenzo@google.com> Network switch notifications: rate & daily limits am: 84e6f1232c am: 858499b2c0 am: 2c535a4f7c
am: 98ed392cf7

Change-Id: I0c067ec355eb2a50af3c828b1fe3ee8a78e44536
8402d225c0ef0ff7088c18d603c68c58edc844f6 31-Aug-2016 Todd Kennedy <toddke@google.com> Enable web action apps based on system setting am: efc1c4d501 am: 742f4de6cf
am: 66db34fbe2

Change-Id: Ic1726786e0baeaf758381f3a9a9324ea39b921be
b258f6a4bd685e5efcb36c02d5817f659e10479b 26-Aug-2016 Winson <winsonc@google.com> Fixing issue with old tasks being visible in Overview

- This CL does two things, firstly, it ensures that all first & last
active times are monotonically increasing and independent of the
current system time. This allows us to better keep track of which
tasks are historical and should be hidden, and which are not.
Secondly, this CL moves the tracking of the last visible active time
into the system (per user) where it can be adjusted along with the
task active times when they are loaded.
- Following this CL, all active times in the future will be adjusted on
boot such that old tasks are made relative to the current boot time.
It’s not important exactly what time they are, only that they are
adjusted along with the last visible task active time so that we
always keep track of what is visible.

Bug: 28908500
Change-Id: I4f789df3a6bd825517cf3a70e26fb60deff89d06
/frameworks/base/core/java/android/provider/Settings.java
98ed392cf714e66e8c011bb89d11655600de0da9 30-Aug-2016 Lorenzo Colitti <lorenzo@google.com> Network switch notifications: rate & daily limits am: 84e6f1232c am: 858499b2c0
am: 2c535a4f7c

Change-Id: I166dd693345ed9a63411f5f1ed6bdf33015b1957
2c535a4f7c9a17decf5e42db0f6d67e77291f3cb 30-Aug-2016 Lorenzo Colitti <lorenzo@google.com> Network switch notifications: rate & daily limits am: 84e6f1232c
am: 858499b2c0

Change-Id: I9cf27874626c3034ef4fb4fc23ec75f3e1ac5f3f
858499b2c017d9df23a54c7dd058314f59bcab72 30-Aug-2016 Lorenzo Colitti <lorenzo@google.com> Network switch notifications: rate & daily limits
am: 84e6f1232c

Change-Id: Ibf6fa695c5f8ef11c99fe075b59a36f52c5c177b
84e6f1232c92988617a1155fd7356f90e6c84b4e 29-Aug-2016 Lorenzo Colitti <lorenzo@google.com> Network switch notifications: rate & daily limits

This patch adds a daily limit to the maximum number of notifications
shown when switching networks.

It also adds a rate limit to prevent rapid successive notifications in
flapping scenarios.

Bug: 31132499
Change-Id: Iccb6d0899646ea6df3cfad32a421922263e0eb85
/frameworks/base/core/java/android/provider/Settings.java
90a788e29bc940dd12bcdc2c7e40192292223273 30-Aug-2016 Jason Monk <jmonk@google.com> resolve merge conflicts of d70ed99 to master

Change-Id: I3a8d3708e050b3fb963dd057c0be9d2d249d037a
f0963f82fa8b116327f344c96f4d1f2efe245af6 29-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Polish MemoryIntArray"
9d723d3d573a53173bd8210be20f0ec622eef8fd 27-Aug-2016 Svet Ganov <svetoslavganov@google.com> Polish MemoryIntArray

1. Add close guard
2. Adopt instead of clone the ahsmem fd to fix a dangling fd
3. Clear only the return flag when writing fd to parcel
4. Immediately destroy remote MemoryIntArray if stale
5. Throw Java exception if someone closed the fd under us

Change-Id: I85533fec336c40e3380e10d5448e18c9616ec341
/frameworks/base/core/java/android/provider/Settings.java
66db34fbe25ad1759c27af2ecc721e24adcf62ca 27-Aug-2016 Todd Kennedy <toddke@google.com> Enable web action apps based on system setting am: efc1c4d501
am: 742f4de6cf

Change-Id: I86aef56f2cf9caf8a7e5b54e78a3ec7de855c796
742f4de6cffc6b49b317756c8e48dbadf8d3bee4 27-Aug-2016 Todd Kennedy <toddke@google.com> Enable web action apps based on system setting
am: efc1c4d501

Change-Id: I2c8c12aebddecb920d1924c4a04f96acdcd3cc02
046249d9dcfd79e7013b9c17438849b3df910f3b 27-Aug-2016 Svetoslav Ganov <svetoslavganov@google.com> Store the event of settings db downgrade am: 264c7a90c7 am: f813a5a1c4
am: 11bd5718a1

Change-Id: I8831eac6d99ba00a80f6e9064b0cc09143b3f9d8
5fafa3cb86afc746926a67c2138cf1c1f14b380c 27-Aug-2016 Doris Ling <dling@google.com> resolve merge conflicts of 7eeeb0d to master

Change-Id: I11a7b51612a4cfb98b5776d098ca0ec43a75259b
efc1c4d50104e9b9a7581c9b60703727805897f0 21-Jul-2016 Todd Kennedy <toddke@google.com> Enable web action apps based on system setting

Bug: 28140107
Change-Id: I4cff49165be6432404b9a616ca35bee249daab2a
/frameworks/base/core/java/android/provider/Settings.java
d70ed997cd11b62739510efa5c5d938a71821ba5 26-Aug-2016 Jason Monk <jmonk@google.com> Backup system QS tiles am: baade7573f am: 9813cb61dd
am: 8ed8f1e6a1

Change-Id: I74b572422c0e3b3b90c85df036c8593e49db58f7
8ed8f1e6a1e6637516a56e98e539ccf7ffa667f4 26-Aug-2016 Jason Monk <jmonk@google.com> Backup system QS tiles am: baade7573f
am: 9813cb61dd

Change-Id: Ia0ba996f6b0a889ba7469a2272a6fe0c235b15d5
9813cb61dd07e7d59f88a554d9a05c5b779fa8d8 26-Aug-2016 Jason Monk <jmonk@google.com> Backup system QS tiles
am: baade7573f

Change-Id: Ie601a706cbdcfdb1e836117d02fec914b4acbab1
baade7573f35a5de0779dbe052c9963a8d447422 25-Aug-2016 Jason Monk <jmonk@google.com> Backup system QS tiles

Add QS tiles to the backup list. Non-system tiles will get removed
since they won't be installed when restore happens.

Change-Id: Iccf6e773384c45bd4d1f10c21aa8af356b3920d2
Bug: 28782938
/frameworks/base/core/java/android/provider/Settings.java
11bd5718a139e3917f720b713761dedb3bd21f99 25-Aug-2016 Svetoslav Ganov <svetoslavganov@google.com> Store the event of settings db downgrade am: 264c7a90c7
am: f813a5a1c4

Change-Id: I21a6ebdde23a0df93872105d91a54d64a2e6adf4
f813a5a1c4e155dd238ea1661f2d0de20f959d07 25-Aug-2016 Svetoslav Ganov <svetoslavganov@google.com> Store the event of settings db downgrade
am: 264c7a90c7

Change-Id: I5b9d5a9bd3c2df337776921a34960ceef8fda1ce
49af952a92d204ef48a285c00fe13d8aa33e2e62 25-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Store the event of settings db downgrade" into nyc-mr1-dev
7eeeb0d90e4c02bb1ec0a90134533d0d0154f074 25-Aug-2016 Doris Ling <dling@google.com> Add the Moves setting values to the backup list. am: 8a33273620 am: cdc758d555
am: b790a1e6ab

Change-Id: I440af4d5aafdc48e4d4333a5f708c86f97ffe556
b790a1e6abe4e5ec41092d37b8f342d7e8c37064 25-Aug-2016 Doris Ling <dling@google.com> Add the Moves setting values to the backup list. am: 8a33273620
am: cdc758d555

Change-Id: I8fd42b0b5e9f9471a659f6ae0205482ad0c800e8
cdc758d555db2f3085cd3f0e4ace64dee3bf4a77 25-Aug-2016 Doris Ling <dling@google.com> Add the Moves setting values to the backup list.
am: 8a33273620

Change-Id: I8f64074acbe6d85a0f2402695925e7f75c20569b
8a332736202338a1a3c3021f9e4e78dcebf26980 25-Aug-2016 Doris Ling <dling@google.com> Add the Moves setting values to the backup list.

Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED,
Secure.CAMERA_DOUBLE_TAP_POWER_GESTURE_DISABLED, and
Secure.SYSTEM_NAVIGATION_KEYS_ENABLED (used by Settings->Moves)
to Secure.SETTINGS_TO_BACKUP, so that they will be backed up and
restored automatically.

Fixes: 31023788

Test: Manual - Setup device using "Copy your data", verify that
Settings->Moves toggles are set to previous selected values.

Change-Id: I509c997641bb693009bec703e5272b5aad517f0f
/frameworks/base/core/java/android/provider/Settings.java
264c7a90c7c18acb8e884f2fcd63759a030eb141 25-Aug-2016 Svetoslav Ganov <svetoslavganov@google.com> Store the event of settings db downgrade

bug:30561721

Change-Id: I8f2252bbf99603976c7efc32c54aa88b314ba815
/frameworks/base/core/java/android/provider/Settings.java
8fdf26ecfb3be5254ddebd61ff7ededfe6f37b7a 24-Aug-2016 Adrian Roos <roosa@google.com> Merge "Ambient: Pulse for every noisy notification exactly once" into nyc-mr1-dev am: bd43552975 am: 24eaf0c700
am: 7dd485d858

Change-Id: I6854beaa24a24fff06523ae76fd207d5783f77e9
7dd485d858c2c22948b18480e283a5e34508d049 23-Aug-2016 Adrian Roos <roosa@google.com> AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set am: 6a7e08920c
am: 5a461b65d0

Change-Id: I2915c6ee2408dbe5942e77d26acdf47e478ee8c0
5a461b65d001736efd2dc1e8352486ea25bd66de 23-Aug-2016 Adrian Roos <roosa@google.com> AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set
am: 6a7e08920c

Change-Id: I0a3713010a0c6e487257995bd34165348f5fc2a4
374f9a690b89a0b0f6ca5db68cf189ddb687db03 23-Aug-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set" into nyc-mr1-dev
6a7e08920c6c7d88352f66df6ba923b9156feb36 23-Aug-2016 Adrian Roos <roosa@google.com> AppErrors: Don't suppress dialogs when ANR_SHOW_BACKGROUND is set

Change-Id: Ie6013013ff4e23e51e471e97d15e113cc759657e
Fixes: 30929056
/frameworks/base/core/java/android/provider/Settings.java
3fa139c7b2fc638424955d0bb07d692f576cccb5 04-Aug-2016 Andre Lago <andrelago@google.com> [media] Separate ringtones for managed profiles

Separate the default system ringtone settings for managed profiles,
which previously used the same default ringtones as the personal profile
they belong to

Bug: 30658854
Change-Id: I22c69c7b8d31c7c424f5e00a3d9febac98b93d74
/frameworks/base/core/java/android/provider/Settings.java
ea35e07e1b71dd22309baefdd1d621f6f91ad2f0 04-Aug-2016 Andre Lago <andrelago@google.com> [Settings] Added setting SYNC_PARENT_SOUNDS

Added a setting that specifies wether a managed profile's ringtones
should be the same as its parent

Change-Id: I90e20cee111640404c3758030f41d5b2b5af1c28
/frameworks/base/core/java/android/provider/Settings.java
1fafcc6f64a2decba39ddf399923839914923949 14-Aug-2016 Adrian Roos <roosa@google.com> Assist: Allow disabling the disclosure animation am: 2335bd6787 am: 57d1601849
am: ae96089711

Change-Id: I3d086e48a7ea312ae972495a157f18b62bc36e13
ae96089711131337b3d66add9a4b4dc1db09ae75 13-Aug-2016 Adrian Roos <roosa@google.com> Assist: Allow disabling the disclosure animation am: 2335bd6787
am: 57d1601849

Change-Id: I5954913f4f210e47d5e3a297f25d3f646cdd2a4b
57d16018497592746be7b1acde5b13ee0470a145 12-Aug-2016 Adrian Roos <roosa@google.com> Assist: Allow disabling the disclosure animation
am: 2335bd6787

Change-Id: I2a88e088da3062b7bd10581650de526629973c67
2335bd67876e5346acef8db2fc2f58fb2adb465e 12-Aug-2016 Adrian Roos <roosa@google.com> Assist: Allow disabling the disclosure animation

Change-Id: I6e7ed00f066fda7cc268119e7aa4133010aa69c1
Fixes: 30809067
/frameworks/base/core/java/android/provider/Settings.java
f0976121d91744ea98651de073b6eee2b55ede18 05-Aug-2016 Anthony Hugh <ahugh@google.com> Add panic detection to back button am: 96e9cc5700
am: c1de1b6dde

Change-Id: I523e7719483840c4fb4fe39827b3a6652bdc1a39
c1de1b6dde21dda28176a4e0b086ad71c2c122f5 05-Aug-2016 Anthony Hugh <ahugh@google.com> Add panic detection to back button
am: 96e9cc5700

Change-Id: I60553d88e1e1c42c11dae92d35c4ad761d188fda
87c7fad58017499d1bae9fd896aefabd4896281c 04-Aug-2016 Tom O'Neill <tomo@google.com> Resign ourselves to using legacy storage of location setting

- Too many apps assume the storage is based on the legacy storage
mechanism, it's not worth changing.

- Bug: 10491283

Change-Id: I287b1c70c30e74f3f1140b6ee3398900ebf305bb
/frameworks/base/core/java/android/provider/Settings.java
96e9cc5700c63c872f29f488129daf34f95292d2 13-Jul-2016 Anthony Hugh <ahugh@google.com> Add panic detection to back button

Adds "panic" detection to the back button. Implemented solution
uses 4x button presses in a short duration to detect for "panic".
The value used to determine the duration between key up and key down
that still count as a multi-button press is configurable via the
Settings Provider.

BUG: 28027764

Change-Id: Ibf1370ff3cb539a9a54002a8704922744a3ca5d7
/frameworks/base/core/java/android/provider/Settings.java
539d36f23ba3e34a9bfada8d5fffba62ed0053a0 28-Jul-2016 Fyodor Kupolov <fkupolov@google.com> Set secure setting when all preloaded apps are installed

Bug: 30280710
Change-Id: Id87b51c53b1e553a6ab0a257be93baf7d31b6fe5
/frameworks/base/core/java/android/provider/Settings.java
892f55e7ad77bf8e81c6b90c2b0b419de26acb16 29-Jul-2016 Fyodor Kupolov <fkupolov@google.com> Set secure setting when all preloaded apps are installed am: 51ce8ee3b1
am: 65d5e75895

Change-Id: I0413cdb3dd7139066712caab59a5593d866ac2a7
51ce8ee3b1b95dfca1da05dbce74ba0096dd988f 28-Jul-2016 Fyodor Kupolov <fkupolov@google.com> Set secure setting when all preloaded apps are installed

Bug: 30280710
Change-Id: Id87b51c53b1e553a6ab0a257be93baf7d31b6fe5
/frameworks/base/core/java/android/provider/Settings.java
2862ed2541411ea864505b8234da3e789dd104db 27-Jul-2016 Jeff Davidson <jpd@google.com> Add support for carrier \\"associated\\" apps. am: 24b9d96007
am: 19af77d2cb

Change-Id: I089db772e37b7d07a5423793aced78f2b3a9a1ae
19af77d2cb3d96cd5ef1c3c157522e9f05fe979d 27-Jul-2016 Jeff Davidson <jpd@google.com> Add support for carrier \"associated\" apps.
am: 24b9d96007

Change-Id: I1de92977f3a0635d88e6517210f6bbb06ab3d0f0
94ae1e739fd84a308609fff3b913d0963900ed6e 27-Jul-2016 Jeff Davidson <jpd@google.com> Merge "Add support for carrier "associated" apps." into nyc-mr1-dev
b91285fd326e731ac0d6cbf10cc1095682b7da47 27-Jul-2016 Daniel Nishi <dhnishi@google.com> Merge "Add a flag to toggle how much downloads to retain."
24b9d960071ecf24f1b7edf799f6a4edf20f2b95 21-Jul-2016 Jeff Davidson <jpd@google.com> Add support for carrier "associated" apps.

The platform currently supports the notion of default carrier apps.
These apps are set to DISABLED_UNTIL_USED until a SIM is inserted
which grants them carrier privileges, at which point they are enabled.
Apps are not touched if they have been updated from the version on
/system or if their state has been modified externally (e.g. by the
user).

This CL extends this notion to associated apps, which may not have
carrier privileges themselves, but should be enabled/disabled
alongside a particular carrier app. This should include helper apps
that should not be visible to users who don't use the given carrier
unless the user explicitly enables the app.

As additional protection, we add a check to ensure that we never
disable apps after the first time we've run. Since we need to store
this information in secure settings, we also move the call site from
PackageManagerService#main() to PackageManagerService#systemReady(),
which enables use of secure settings but still occurs before
third-party apps can be started.

Bug: 30141427
Change-Id: Iee72ba4e70e5ca97999c9147a65af82c670a23e8
/frameworks/base/core/java/android/provider/Settings.java
fc9243b60ff72af10f367b4cd891999327c67584 23-Jul-2016 Justin Klaassen <justinklaassen@google.com> Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS am: 06c0cb7acd
am: 194b3c49cb

Change-Id: Ic9a2a904d8ccb0a8ec807c045efca82bf525f6d9
194b3c49cb25cb6172c63ceda33f3551297e9ff9 23-Jul-2016 Justin Klaassen <justinklaassen@google.com> Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS
am: 06c0cb7acd

Change-Id: I7ea6ce28be43d519144ec9311e15334d35e2702f
237c7072c2c879d6f6a83ce590d81ee87289eb31 22-Jul-2016 Daniel Nishi <dhnishi@google.com> Add a flag to toggle how much downloads to retain.

This flag will be used to set how many days of downloads the storage
manager will retain while clearing data.

Bug: 30304998
Change-Id: I188f4ed3aaebde62d0bf4fe2838d171f0594895c
/frameworks/base/core/java/android/provider/Settings.java
06c0cb7acdc07344463d8b9022c69125b14adb16 22-Jul-2016 Justin Klaassen <justinklaassen@google.com> Add Settings#ACTION_NIGHT_DISPLAY_SETTINGS

- The ACTION_NIGHT_DISPLAY_SETTINGS action can be used to launch
Night display settings directly.
- Updated NightDisplayTile to use ACTION_NIGHT_DISPLAY_SETTINGS.

Bug: 30291948
Change-Id: I6d912cf481f72ef5b52f53fa23942071fc795452
/frameworks/base/core/java/android/provider/Settings.java
06b8aa7199830464a5f9256dfd6ecdd7aca8dcbf 22-Jul-2016 Allison Babick <ababick@google.com> Merge "Add user-modifiable downloads backup conditions."
3fac1a8c5cac31fb4cb92aa826a1b389f8ffbcd5 19-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \\"Cleanup TwilightService\\" into nyc-mr1-dev am: e5aeca3dc9
am: 6c02076e73

Change-Id: Ib3aad9f409c01338ce9be5d433db55d87d511daf
6c02076e738a82b46281c8397554a4965eaec7c0 19-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \"Cleanup TwilightService\" into nyc-mr1-dev
am: e5aeca3dc9

Change-Id: Iac61d988c3432b8f78eb7d06dd3bb8d706fec621
6384878d69d3deb4a7c314f611ee62a634f21411 12-Jul-2016 Justin Klaassen <justinklaassen@google.com> Cleanup TwilightService

TwilightService now just reports the current twilight state, it's up to
clients to provide their own locking mechanism (e.g. always day or
night).

Bug: 29620105
Change-Id: I2a8bb544eab0f44d269c59f36a53fbdf842b423a
/frameworks/base/core/java/android/provider/Settings.java
b933b9acd63154de9a8d1d864ab490045aedea1e 16-Jul-2016 Mike Tsao <miket@google.com> Merge \\"Back up Night Light settings\\" into nyc-mr1-dev am: 9a0e444c22
am: d4584a8fb5

Change-Id: I15db4e270c6306fc666c9f33914f242e9e21a1fd
d4584a8fb5d09dab4e7c416632f14223e7a5d009 15-Jul-2016 Mike Tsao <miket@google.com> Merge \"Back up Night Light settings\" into nyc-mr1-dev
am: 9a0e444c22

Change-Id: I4bc968dfced4671fecb140c50ce759b02d78c4a1
fc47ba75e47bae52894aa7d973470e544f9dc2bd 15-Jul-2016 Mike Tsao <miket@google.com> Back up Night Light settings

Bug: 30150787
Change-Id: I79697b41b68e0f123de20e7b8782c6058bef7977
/frameworks/base/core/java/android/provider/Settings.java
f0bc8660d2b2e746f884f89324104a8420818d80 12-Jul-2016 Allison Babick <ababick@google.com> Add user-modifiable downloads backup conditions.

Add the user-modifiable fields to Settings.Secure.

Bug: 29829743
Change-Id: Ic56523948974974b11b114fb5fca1517414f3728
/frameworks/base/core/java/android/provider/Settings.java
290c38567e48ba960e05da4d4ef5648c89e224ff 14-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \\"Refactor display color transforms\\" into nyc-mr1-dev am: 94673f0b7c
am: 5f3bf63121

Change-Id: I06a60ef4a1fa23e0c1f5b6ab97462811b6aaf239
5f3bf63121e5cd6ceb4e8924986bf021987141aa 14-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \"Refactor display color transforms\" into nyc-mr1-dev
am: 94673f0b7c

Change-Id: I7fdf83db6cbf26cdc5b8a9971fa48b7f8458474d
22eb19939d815856887f1329f41aa04b397505ff 12-Jul-2016 Justin Klaassen <justinklaassen@google.com> Refactor display color transforms

- Removed Secure.ACCESSIBILITY_DISPLAY_COLOR_MATRIX, it's not desirable
to persist the actual color transformation matrix.
- Refactored all SurfaceFlinger transforms to DisplayTransformManager,
which allows color transforms to be set independently from the a11y
manager service.

Bug: 30042357
Change-Id: Iefa477dedb66aac90e1218e327802a3fab6899ed
/frameworks/base/core/java/android/provider/Settings.java
e4ffde9cacfefb6d3e93ed07497d245c476cb1bc 13-Jul-2016 Mahaver Chopra <mahaver@google.com> Merge \\"Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.\\" into nyc-mr1-dev am: 695a1c50a2
am: e64f60a455

Change-Id: Iedc9544179d3c3de8616375e51f7a60ddd1c8c3b
e64f60a455f19180a56577ed2d55cc01578657a9 13-Jul-2016 Mahaver Chopra <mahaver@google.com> Merge \"Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.\" into nyc-mr1-dev
am: 695a1c50a2

Change-Id: I8976511deb994983abbb17b2830b98878c92631b
3d9805d50281882b4420ee2d4ede8a8bdd94d455 07-Jul-2016 Mahaver Chopra <mahaver@google.com> Added UM.DISALLOW_OEM_UNLOCK, Removed Global.OEM_UNLOCK_DISALLOWED.

Currently we used global setting to restrict user from enabling oem
unlock. As global settings can be chagned using adb, using user
restrictions instead.

Bug: 29893399
Change-Id: Ic83112a4838b8279bf50408a29ae205e0b8639ee
/frameworks/base/core/java/android/provider/Settings.java
531eb4e9f6a12b7246acd0fe5a9b12f7908fade6 12-Jul-2016 Doris Ling <dling@google.com> Merge \\"Add a secure setting for double twist gesture for camera flip.\\" into nyc-mr1-dev am: 3e869587e8
am: b8d3caf4b8

Change-Id: I9265956ac2253f8a19c3a7f4dc8e6d9ada97f931
f3fbe392d4b7f67ce09e482e62a69cd504415c60 11-Jul-2016 Jorge Gil <jorgegil@google.com> Merge "Add DOWNLOADS_BACKUP_ENABLED key to SettingsSecure"
b8d3caf4b899908d620ad93a6330d8c3a3208b82 09-Jul-2016 Doris Ling <dling@google.com> Merge \"Add a secure setting for double twist gesture for camera flip.\" into nyc-mr1-dev
am: 3e869587e8

Change-Id: If64a188d45beea48d264219df8a9c7bce63bcecf
029c2f4e3f9be621d7f82361decbbcdabeff9861 08-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \\"Add Night display feature\\" into nyc-mr1-dev am: 76262b8e14
am: 1228803cde

Change-Id: I855bf48a271b15f671957b1451caab24d08d8293
a60d31d70f3b9c2a08e38b3487b6c9a6314e0b5b 06-Jul-2016 Doris Ling <dling@google.com> Add a secure setting for double twist gesture for camera flip.

Add Secure.CAMERA_DOUBLE_TWIST_TO_FLIP_ENABLED to control whether the
double twist gesture should flip the camera between front and back mode
is enabled or not. Also move SYSTEM_NAVIGATION_KEYS_ENABLED from
Global to Secure.

Bug: 29869445
Change-Id: I614289e6de7b1ee4221de7047a5e0dd784607bed
/frameworks/base/core/java/android/provider/Settings.java
1228803cde9fa6bbcf69880aab74d2787ddb7f58 08-Jul-2016 Justin Klaassen <justinklaassen@google.com> Merge \"Add Night display feature\" into nyc-mr1-dev
am: 76262b8e14

Change-Id: I03912016390820f61fb515b1f206edd9bfea9ccf
911e88939cbe5a8607c230e061ba1da5f187cf69 22-Jun-2016 Justin Klaassen <justinklaassen@google.com> Add Night display feature

Bug: 28615069

Tints the display at night automatically according to your schedule or
using the sunrise/sunset corresponding to your current location.

Change-Id: Ie56b4eed88cc2fcbae88002492b1edad5820b6b1
/frameworks/base/core/java/android/provider/Settings.java
8a6b090fd49789a63775f52dc4966a82bae76747 08-Jul-2016 Suprabh Shukla <suprabh@google.com> Merge \\"Making timeouts configurable through Settings\\" into nyc-mr1-dev am: 33fa5dfa1d
am: 087d33febf

Change-Id: If1bb99b356d4b6fdf3471e1ccccc2c6ebf8ace43
087d33febffdd28d85021800aa42a51b94b64f4a 08-Jul-2016 Suprabh Shukla <suprabh@google.com> Merge \"Making timeouts configurable through Settings\" into nyc-mr1-dev
am: 33fa5dfa1d

Change-Id: Ife69e438d83ddfb75433f92c6c5521ae4c3f82cc
33fa5dfa1d0bcd27ac3a2db8ce72f430c5a3204b 08-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Making timeouts configurable through Settings" into nyc-mr1-dev
6825a77f6651bbdfa88dea8752038726462c0bbd 30-Jun-2016 Jorge Gil <jorgegil@google.com> Add DOWNLOADS_BACKUP_ENABLED key to SettingsSecure

Bug: 29829743
Change-Id: I3883015a615191bb6d737989b24c485c3c6b6256
/frameworks/base/core/java/android/provider/Settings.java
dbbc7af06363435492410227c3c2b703ebda80e4 07-Jul-2016 Suprabh Shukla <suprabh@google.com> Making timeouts configurable through Settings

Adding a global setting for timeouts used in retail demo mode.
Also renaming the protected intent ACTION_RESET_DEMO to reflect proper
owner package.

Bug: 29917613
Change-Id: I9a174503626ab28cceb5024a8e63d27612439b92
/frameworks/base/core/java/android/provider/Settings.java
f1d788adee4ee2242e36e76072be290466b00b63 07-Jul-2016 Svet Ganov <svetoslavganov@google.com> Merge \"Merge \\"Merge \\\"Use proper lock when accessing the generation registry\\\" into nyc-dev am: dcf2e205bf\\" into nyc-mr1-dev am: d0302f579b\" into nyc-mr1-dev-plus-aosp
am: f910dab5f7

Change-Id: I86bda42056b6af37febccf48ebe09ee6363b50d0
eabaf266f8156fe95fe532a820320701296d02bd 07-Jul-2016 Svet Ganov <svetoslavganov@google.com> Merge \"Merge \\"Use proper lock when accessing the generation registry\\" into nyc-dev am: dcf2e205bf\" into nyc-mr1-dev
am: d0302f579b

Change-Id: I8cd55faa5e8c788752ae411f29f29d9261f327c0
84954568db33c36572833f0eba4a2e2e32ade6f1 07-Jul-2016 Svet Ganov <svetoslavganov@google.com> Merge \"Use proper lock when accessing the generation registry\" into nyc-dev
am: dcf2e205bf

Change-Id: I00b1a6aba01fd9155e4b0db17e9bd65d31425489
51b839544b7bc8f7285baa3b405ab7b28172b470 06-Jul-2016 Svet Ganov <svetoslavganov@google.com> Use proper lock when accessing the generation registry

We use 'this' for synchronization in NameValueCache but some code
that accesses the generation registry uses 'this' in a different
context ending up syncing on the wrong instance. This is why
sync on this is just a bad idea.

bug:29956424

Change-Id: Ide2d4f07a5f40cb3f0e8f50e4c8de216d15a31ee
/frameworks/base/core/java/android/provider/Settings.java
eeabaa9394f44d356bed01e99aaaad2a6ba91c30 30-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \\"Add counters for the automatic storage manager.\\" into nyc-mr1-dev am: d9f0e37dc1
am: f38d4bb413

Change-Id: Ia595b77f85f4b665cf7b20930544f046ea22b919
f38d4bb413eb36bed211d06094f6da2eccdc5905 30-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \"Add counters for the automatic storage manager.\" into nyc-mr1-dev
am: d9f0e37dc1

Change-Id: I00bcd2808aba694d66f1db689acebea26ed5eeee
d9f0e37dc108c018843d3e7d68c636c3313e98d9 30-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge "Add counters for the automatic storage manager." into nyc-mr1-dev
f06f1b81807337ea4551afb9241c552a71fa75bf 29-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \\"Use the Deletion Helper when system storage is low.\\" into nyc-mr1-dev am: 6401217532
am: b8a7ddad7e

Change-Id: I3d51bb6934e4a42ec8e9d7f37d460b780a5941fe
b8a7ddad7e4e611edabf3e75618a53135488c061 29-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \"Use the Deletion Helper when system storage is low.\" into nyc-mr1-dev
am: 6401217532

Change-Id: I9d8645a32185a8749edeeee654ee81bdd00f240f
6401217532e5357549988182b90bea28a86691e2 29-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge "Use the Deletion Helper when system storage is low." into nyc-mr1-dev
690346b145b77b13951fbf27cbc792195f975b6a 17-Jun-2016 Daniel Nishi <dhnishi@google.com> Use the Deletion Helper when system storage is low.

A notification is posted when the system storage gets too low.
Currently, it redirects into the Storage Settings. Instead,
it should redirect into the Deletion Helper to directly let the
user clear out their storage.

Bug: 29437277
Change-Id: I4e35adf300d5e479d4171f1e6f090f2a757400f2
/frameworks/base/core/java/android/provider/Settings.java
f678cc9c2bcee846b67a9b345fc88002b0e58981 25-Jun-2016 Daniel Nishi <dhnishi@google.com> Add counters for the automatic storage manager.

In order to attribute storage savings, we log how much data has
been freed and the last time that the automatic storage manager
has run.

Bug: 29643106
Change-Id: Ibb57b44b5e7550d4ab11e95b47db2f5d6599a96f
/frameworks/base/core/java/android/provider/Settings.java
abcc4392e9c085ff1c28c7849e2d2aa7a9a4aa29 24-Jun-2016 Dmitri Plotnikov <dplotnikov@google.com> Merge \\"Unhiding DEVICE_NAME\\" into nyc-mr1-dev am: b1ca092db8
am: 89858c58af

Change-Id: Id7ccc6d627574bb1a1d0198f72ab70f921d8c9d9
89858c58af8ed0c606f2f03bcd1dea9a1afa9e8b 24-Jun-2016 Dmitri Plotnikov <dplotnikov@google.com> Merge \"Unhiding DEVICE_NAME\" into nyc-mr1-dev
am: b1ca092db8

Change-Id: Icdb1cef5802c4d2b22292874ab3139a132fe7bd0
b1ca092db8766c8819f0c99feede8c8d63907ad5 24-Jun-2016 Dmitri Plotnikov <dplotnikov@google.com> Merge "Unhiding DEVICE_NAME" into nyc-mr1-dev
e18f55e2ac03ea6c808bd605b52b8847ce0f6631 23-Jun-2016 Chris Manton <cmanton@google.com> Merge \\"Add global settings for cell radio state\\" into nyc-mr1-dev am: d4ac4c7786
am: 8bfefbbb53

Change-Id: I44d2ab2580ebbb395ebc511a1be61fc46a2c1d4f
8bfefbbb53914fc5667c0ca5f73179edc7c2da83 23-Jun-2016 Chris Manton <cmanton@google.com> Merge \"Add global settings for cell radio state\" into nyc-mr1-dev
am: d4ac4c7786

Change-Id: I5698d08dcc6854ceffb08debecf3fa443750fab0
95a6c899d6625ec2b1a0cdca4934debff88da86d 15-Mar-2016 Chris Manton <cmanton@google.com> Add global settings for cell radio state

Provide persistable state for cell radio
to handle airplane mode similar to any
other radio in the system.

Change-Id: I87398fe84de3f6a10b0e1002e9e5bf7e61f9441f
/frameworks/base/core/java/android/provider/Settings.java
f19b6ec8bb6ef65b889e40572e6eedc16e571a9a 22-Jun-2016 Dmitri Plotnikov <dplotnikov@google.com> Unhiding DEVICE_NAME

Bug: 28439637
Change-Id: Iea9efbaf18b2110c21f0d27a3e44fd6590f2d372
/frameworks/base/core/java/android/provider/Settings.java
1b288ed19771dbbb4f5c8695a46c42e8d4efb34e 18-Jun-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge \\\"Fix a race in local settings caches\\\" into nyc-dev am: f4ddb7ce30 am: ee4c0a3c7e
am: 235411a3bc

Change-Id: Id4d016ea2963b000d0a401eeb22a1740f012794b
8011f5ed1ce3374bf6ce0d4952df54dc923a2b2e 18-Jun-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge \"Fix a race in local settings caches\" into nyc-dev
am: f4ddb7ce30

Change-Id: If28342d6deab7d0b7e89029229bad060ce7c8a8d
235411a3bcc57aab979bdc7e8102602dcce66154 18-Jun-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge \\"Fix a race in local settings caches\\" into nyc-dev am: f4ddb7ce30
am: ee4c0a3c7e

Change-Id: If795ce9ea8fe36c9919170d0ded12bf488fb8a49
ee4c0a3c7eeeb459aed6d24bb3745a8e53fd97c5 18-Jun-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge \"Fix a race in local settings caches\" into nyc-dev
am: f4ddb7ce30

Change-Id: Ia973ef68382ac359908b83be3dbca485c91d5cd6
8c35dcc7ae956394a6513f4ced8359f56260fbc4 18-Jun-2016 Svetoslav Ganov <svetoslavganov@google.com> Fix a race in local settings caches

We send a handle to the generation tracker along with the first accessed
setting but don't send the generation id of when the setting was
actually looked up. So by the time the client gets the setting with the
generation tracker from which to get and cache the last generation the
setting may have changed. We need to pass the generation id along with
the value and the generation tracker.

bug:29458487

Change-Id: I0ac4955ba5b10b547f8fe653a7c28e048a4691eb
/frameworks/base/core/java/android/provider/Settings.java
20c0209e2f2b54a412331a673eb728ed6e03ed6a 15-Jun-2016 Todd Kennedy <toddke@google.com> Merge \\"New API w/ multiple prefixes\\" into nyc-mr1-dev am: d07b87cb1c
am: 162b74a6fd

Change-Id: I81d79930c6d3d42be61a9ab1cdb5f29d677cd3de
162b74a6fdaa3cd4da58f307eff08fd98b0a3222 15-Jun-2016 Todd Kennedy <toddke@google.com> Merge \"New API w/ multiple prefixes\" into nyc-mr1-dev
am: d07b87cb1c

Change-Id: I3296ac4343cfedb5b88470963cb4671e9e3427f6
a97045b2456b63a9c699a8cc8af66b0e8e95c519 11-Jun-2016 Todd Kennedy <toddke@google.com> New API w/ multiple prefixes

Use the new API that contains multiple hash prefixes and a mask. Also
do some small refactoring necessary to handle multiple prefixes and
use a common implementation of the hash generation

Change-Id: Ib52f767ea6aadc30c67c5bdee949e9f9c5f04e44
/frameworks/base/core/java/android/provider/Settings.java
8cdceba0dc7b921ff7c83512ebe287353f4b6004 15-Jun-2016 Doris Ling <dling@google.com> Merge \\"Added config system navigation keys.\\" into nyc-mr1-dev am: 32300db186
am: 4be6c44ee2

Change-Id: I45ff845e5cf67d738c1f25b26bcd7acfe50ea9eb
4be6c44ee2eeb38f383d1d34090cccd5e7e3ae76 15-Jun-2016 Doris Ling <dling@google.com> Merge \"Added config system navigation keys.\" into nyc-mr1-dev
am: 32300db186

Change-Id: I9de582c7ae95aa36fbae75be6b72b4ffc01ae695
32300db1862432644c61bb9d21618e0da154daa9 15-Jun-2016 Doris Ling <dling@google.com> Merge "Added config system navigation keys." into nyc-mr1-dev
b382bb2c2fdd1df87ee3e1147c60c0c45fa0daf4 14-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \"Merge \\"Add a flag to toggle how much the storage manager should retain.\\" into nyc-mr1-dev am: 7374971c28\" into nyc-mr1-dev-plus-aosp
am: 5fdb94ce1e

Change-Id: I30188ebb95237cc3fa43533d1b5c1df08f8cf4dc
d630a5b9a411cae35e7c76fa5842ac0cac68bc80 14-Jun-2016 Daniel Nishi <dhnishi@google.com> Merge \"Add a flag to toggle how much the storage manager should retain.\" into nyc-mr1-dev
am: 7374971c28

Change-Id: I17595b0268e73d9b3193eb81f6779278d2502efa
c535be179a06916ee12c7d1184ef70129d6ba76a 10-Jun-2016 Daniel Nishi <dhnishi@google.com> Add a flag to toggle how much the storage manager should retain.

This flag is used to set how many days of storage the automatic
storage manager will retain when clearing data.

Bug: 28965462
Change-Id: I87afafb7d3252d8c390ea43b7c45fd923f911e4e
/frameworks/base/core/java/android/provider/Settings.java
628cea45e231a6bdda0e66940f5059b8b3b8fadd 09-Jun-2016 Doris Ling <dling@google.com> Added config system navigation keys.

1. Added config_supportSystemNavigationKeys to config and symbols
2. Added SYSTEM_NAVIGATION_KEYS_ENABLED to Settings.Global
3. Updated PhoneWindowManager to check for the system navigation keys enabled
flag before expanding or collapsing the notification panel.

Bug 29120082

Change-Id: Ia73078520474ce5a1cbf2256c0d793ed74bbf589
/frameworks/base/core/java/android/provider/Settings.java
0a86dd61209c3bef46336717bb570f9c7b411cbd 02-Jun-2016 Makoto Onuki <omakoto@google.com> Merge "ShortcutManager: Implement max # of shortcuts" into nyc-mr1-dev am: a9f262d649
am: 4169184518

* commit '416918451846518d1ff42d45ad361a7b9df19934':
Don't back up/restore the "automatically restore app data" setting

Change-Id: Ie88b05c3997045bed66fc72b115f6f7e48b5d970
416918451846518d1ff42d45ad361a7b9df19934 02-Jun-2016 Chris Tate <ctate@android.com> Merge "Don\'t back up/restore the "automatically restore app data" setting" into nyc-dev am: 453951d077
am: 4872e3df96

* commit '4872e3df962a386576b51e03a26add0ceb700698':
Don't back up/restore the "automatically restore app data" setting

Change-Id: Idabd2988d6b63e06a018c24c1b3a9e17514596b3
0cd6ca14eb8fbfbca9602067c93a4c6bd619ddbe 02-Jun-2016 Christopher Tate <ctate@google.com> Merge "Don\'t back up/restore the "automatically restore app data" setting" into nyc-dev
am: 453951d077

* commit '453951d0777b1421e95bbcac501fb8b091c0f6a3':
Don't back up/restore the "automatically restore app data" setting

Change-Id: Ia950b6992e76d05bccd5773cdda04308ddb054c0
4872e3df962a386576b51e03a26add0ceb700698 02-Jun-2016 Christopher Tate <ctate@google.com> Merge "Don\'t back up/restore the "automatically restore app data" setting" into nyc-dev
am: 453951d077

* commit '453951d0777b1421e95bbcac501fb8b091c0f6a3':
Don't back up/restore the "automatically restore app data" setting

Change-Id: Ia04215f6597dc3221bda438feb4921d53c1725fc
453951d0777b1421e95bbcac501fb8b091c0f6a3 02-Jun-2016 Chris Tate <ctate@android.com> Merge "Don't back up/restore the "automatically restore app data" setting" into nyc-dev
3a716c735b40280f8f585738bafb22aac96607de 02-Jun-2016 Chris Wren <cwren@android.com> resolve merge conflicts of 43c3a7e5 to nyc-mr1-dev am: d958f83a01
am: be2da62d11

* commit 'be2da62d11227c564817906c5df0ceb151ed2436':
make the notification enqueue rate threshold a setting

Change-Id: I499087166d900cfbd4675e54382117c530e0e3ed
be2da62d11227c564817906c5df0ceb151ed2436 02-Jun-2016 Chris Wren <cwren@android.com> resolve merge conflicts of 43c3a7e5 to nyc-mr1-dev
am: d958f83a01

* commit 'd958f83a017dde230203d91c8daedf36d40c22a6':
make the notification enqueue rate threshold a setting

Change-Id: I5172c1a0f0832f3b93d05f0ab7b7b1ab7233d334
d958f83a017dde230203d91c8daedf36d40c22a6 02-Jun-2016 Chris Wren <cwren@android.com> resolve merge conflicts of 43c3a7e5 to nyc-mr1-dev

Change-Id: I85619e6d8176bf23b6f4090c4573e5d9c248b585
35f49c5968775ea30fdcb859e94e1c816edfcb0d 02-Jun-2016 Chris Wren <cwren@android.com> Merge "make the notification enqueue rate threshold a setting" into nyc-dev
am: 43c3a7e5a7

* commit '43c3a7e5a781640b862cf6f51805b3823f46fd02':
make the notification enqueue rate threshold a setting

Change-Id: I3e8c37aead7e1f2d5dc9fc89b72f82294bd16cfe
43c3a7e5a781640b862cf6f51805b3823f46fd02 02-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "make the notification enqueue rate threshold a setting" into nyc-dev
763a9bb09518884c42abe90c1553bc07c0872879 31-May-2016 Chris Wren <cwren@android.com> make the notification enqueue rate threshold a setting

Bug: 28693065
Change-Id: I08bd2ed342d5347c0075183b239558c50ada4a0a
/frameworks/base/core/java/android/provider/Settings.java
5101b957105570b43ac7d5eea826871517266200 01-Jun-2016 Dianne Hackborn <hackbod@google.com> resolve merge conflicts of e174476 to master

Change-Id: I4005cf91b8a6bf3faa2301d8ce97ab1ad5eed94f
e174476b70c2416ef7ce45d3e8bff68d5807da67 01-Jun-2016 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #28942589: Tune job scheduler" into nyc-dev am: 438693dd6c
am: 576430f36a

* commit '576430f36ac04843fed5697ecae1716489c164bb':
Work on issue #28942589: Tune job scheduler

Change-Id: I101010ff1d7d88c2ccac14d095df7722569cf549
576430f36ac04843fed5697ecae1716489c164bb 01-Jun-2016 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #28942589: Tune job scheduler" into nyc-dev
am: 438693dd6c

* commit '438693dd6cc4e3fe2ffb336d551c0d69e9546102':
Work on issue #28942589: Tune job scheduler

Change-Id: I9e4ddcc64d84a8d943128d8bd8ebf158743c5549
0e443c132092fc028227297aa71ed4a35729c71c 01-Jun-2016 Dianne Hackborn <hackbod@google.com> Merge "Work on issue #28942589: Tune job scheduler" into nyc-dev
am: 438693dd6c

* commit '438693dd6cc4e3fe2ffb336d551c0d69e9546102':
Work on issue #28942589: Tune job scheduler

Change-Id: I8264ce4204762358ccbf893e7846434eed258a22
e9a988caca733d2f292991a52a0047685a69812f 28-May-2016 Dianne Hackborn <hackbod@google.com> Work on issue #28942589: Tune job scheduler

We now have a new settings key that provides all of the existing
tuning parameters, plus some newly redone ones for dealing with
different memory levels.

Changed the minimum batching for overall jobs from 2 to 1, so
we will never get in the way of immediately scheduling jobs
when the developer asks for this. We should now be able to rely
on the doze modes to do better batching of jobs for us when it
is really important.

Also work on issue #28981330: Excessive JobScheduler wakeup alarms.
Use a work source with scheduled alarms to blame them on the app
whose job they are being scheduled for, and add a check for whether
a job's timing constraint has been satisfied before considering it
a possible candidate for the next alarm. (If it is satisified,
the time is in the past, so we should not schedule an alarm for it.)

Finally clean up a bunch of the dumpsys output to make it easier
to understand.

Change-Id: I06cf2c1310448f47cf386f393e9b267335fabaeb
/frameworks/base/core/java/android/provider/Settings.java
1d7d9404e0e4b75c98a6999fc4de1f1c786fee2d 31-May-2016 Christopher Tate <ctate@google.com> Don't back up/restore the "automatically restore app data" setting

It stomps on the Setup Wizard intended [or user-supplied!] behavior.

Bug 29030834

Change-Id: Iabb0ff88b7f8b9130abb59af68872d02e5534140
/frameworks/base/core/java/android/provider/Settings.java
6afa2e1d1d4ba9bae912c675f018ba78a7d86804 28-May-2016 Felipe Leme <felipeal@google.com> Merge "Allow apps to bypass Power Save restrictions when launched from a Notification\'s PendingIntent." into nyc-dev am: efa291a860 am: 8c8ea506d9
am: d786355405

* commit 'd786355405dfb50b1e6eb0bb8628276b9b2823c6':
Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.

Change-Id: Ic8f6cbfce572c54d7124a508af12043a58d5bc66
d786355405dfb50b1e6eb0bb8628276b9b2823c6 27-May-2016 Felipe Leme <felipeal@google.com> Merge "Allow apps to bypass Power Save restrictions when launched from a Notification\'s PendingIntent." into nyc-dev am: efa291a860
am: 8c8ea506d9

* commit '8c8ea506d91db44de1d312612a8f63ab107af799':
Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.

Change-Id: Iaffe5981b299eca5756666bd03c67a84c8e15283
feaa8982fcd19ec9dbaa2eb5cd19dcfd349dfebf 27-May-2016 Felipe Leme <felipeal@google.com> Merge "Allow apps to bypass Power Save restrictions when launched from a Notification\'s PendingIntent." into nyc-dev
am: efa291a860

* commit 'efa291a8605e91d775faf46ada349ec7f81fcdb9':
Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.

Change-Id: I11bf96280ac5e143d5260cb20238da38b4e0eaa3
8c8ea506d91db44de1d312612a8f63ab107af799 27-May-2016 Felipe Leme <felipeal@google.com> Merge "Allow apps to bypass Power Save restrictions when launched from a Notification\'s PendingIntent." into nyc-dev
am: efa291a860

* commit 'efa291a8605e91d775faf46ada349ec7f81fcdb9':
Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.

Change-Id: Ibd09b082140b66d25bd8583040761581bb20af76
a1b79bfd7a15006a93da933695359765e0fee495 24-May-2016 Felipe Leme <felipeal@google.com> Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.

This scenario typically happens when the device is on Doze Mode and a
notification action is triggered from a Wear device.

In a nutshell, the workflow is:

- ProcessRecord has a flag telling whether a process has "whitelist
management" privileges.
- When NotificationManager binds a new NotificationListenerService, it
sets the BIND_ALLOW_WHITELIST_MANAGEMENT flag.
- On bind(), ActiveService asserts that only system apps can set that
flag.
- On computeOomAdjLocked(), ActivityManagerService sets the
ProcessRecord flag if necessary.
- Upon creating a notification, NotificationManager calls AM to mark its
PendingIntents as coming from a notification.
- When PendingIntentRecord sends it to the target, it checks if it's
from a notification and if so calls AM to do the temp whitelist.
- On unbind(), ActiveService removes the ProcessRecord flag if necessary.

Fixes: 28818704

Change-Id: I00d46036a2cbb73f7f733fd35bf0b743a02807a1
/frameworks/base/core/java/android/provider/Settings.java
a0cb2c49316ed518377ed638ddf7364d0b31c425 26-May-2016 Seigo Nonaka <nona@google.com> Merge "Fix system locale propagation during user creation." into nyc-dev am: ce9f5e3657 am: b03e7217f3
am: d34ca400c6

* commit 'd34ca400c6f8cd25827e0278dd9062d82b0fbf08':
Fix system locale propagation during user creation.

Change-Id: I41229dce52266d59c3b3334e2d4ae390b75bbe20
d34ca400c6f8cd25827e0278dd9062d82b0fbf08 26-May-2016 Seigo Nonaka <nona@google.com> Merge "Fix system locale propagation during user creation." into nyc-dev am: ce9f5e3657
am: b03e7217f3

* commit 'b03e7217f3fa3144f69119a4e109cce934d6065a':
Fix system locale propagation during user creation.

Change-Id: I6955bad489926525f6b50709bcf14b829ca9392d
b03e7217f3fa3144f69119a4e109cce934d6065a 26-May-2016 Seigo Nonaka <nona@google.com> Merge "Fix system locale propagation during user creation." into nyc-dev
am: ce9f5e3657

* commit 'ce9f5e3657b7a8fb68c6c65a2cd5a27eaf556cc8':
Fix system locale propagation during user creation.

Change-Id: If31dcbe28d108ec12aa9f4aef4382dcb2da90aaf
005ef10518adb9768ad6569f0c6b42db949083d4 26-May-2016 Seigo Nonaka <nona@google.com> Merge "Fix system locale propagation during user creation." into nyc-dev
am: ce9f5e3657

* commit 'ce9f5e3657b7a8fb68c6c65a2cd5a27eaf556cc8':
Fix system locale propagation during user creation.

Change-Id: I020babcf2ce1aa632099457f2baf3497f5ac2946
ce9f5e3657b7a8fb68c6c65a2cd5a27eaf556cc8 26-May-2016 Seigo Nonaka <nona@google.com> Merge "Fix system locale propagation during user creation." into nyc-dev
e1b53d7caba4e6c8e0367e4d33f5dd3b816a6606 25-May-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add missing @Deprecated annotations."
15d6c4bf7c5feb1e77a50ae014e3e2c27740c898 25-May-2016 Daniel Nishi <dhnishi@google.com> Merge "Add a flag to toggle the automatic storage manager on and off." into nyc-mr1-dev
am: 9746deefbb

* commit '9746deefbbfa3f6561bdf27e7d697cc352853f13':
Add a flag to toggle the automatic storage manager on and off.

Change-Id: Icd5688b8ea9c72c6bab9dbb0eedd895bd0b09aca
514c5ef8d5774d8820ed1bf90fe53af1606cf106 25-May-2016 Aurimas Liutikas <aurimas@google.com> Add missing @Deprecated annotations.

Add missing @Deprecated annotations for methods with @deprecated tag
in javadoc.

Change-Id: I35b78ccb97832d86b914c21a300444ba29e33844
/frameworks/base/core/java/android/provider/Settings.java
395d387c2cf6f92b3758262349be8a59a7850126 23-May-2016 Daniel Nishi <dhnishi@google.com> Add a flag to toggle the automatic storage manager on and off.

This flag will be used in both Settings and Setup Wizard to enable
and disable the automatic storage manager.

Bug:28905328
Change-Id: Iafc374448d96171ad0a4c36f6fea5e0118105a8c
/frameworks/base/core/java/android/provider/Settings.java
461e71472df1942936c27fb65f46b72c3eb4ab1b 20-May-2016 Roozbeh Pournader <roozbeh@google.com> Merge "Clear locales without changing layout direction." into nyc-dev am: 6686711ba2
am: 18bf0e2ad2

* commit '18bf0e2ad22a28060e9cbd1516b1c36236c5b557':
Clear locales without changing layout direction.

Change-Id: Ia3925ac1adbf3e5cdaa45c1d88f9fc50483765cb
18bf0e2ad22a28060e9cbd1516b1c36236c5b557 20-May-2016 Seigo Nonaka <nona@google.com> Merge "Clear locales without changing layout direction." into nyc-dev
am: 6686711ba2

* commit '6686711ba289740a20dc15133aed4a2b5bac5d44':
Clear locales without changing layout direction.

Change-Id: Ifa6124e9b772b54355b696aa4df1ca94950c64c5
5ac2c3b4a0e646884b6998fbccf538145cf70e7a 20-May-2016 Seigo Nonaka <nona@google.com> Merge "Clear locales without changing layout direction." into nyc-dev
am: 6686711ba2

* commit '6686711ba289740a20dc15133aed4a2b5bac5d44':
Clear locales without changing layout direction.

Change-Id: I5c7714d3ef54fc7caf6580837d48a1b79e56a892
6686711ba289740a20dc15133aed4a2b5bac5d44 20-May-2016 Roozbeh Pournader <roozbeh@google.com> Merge "Clear locales without changing layout direction." into nyc-dev
bd5cac67b8b3087c030cb9068e4db8ea19a3d72a 13-May-2016 Seigo Nonaka <nona@google.com> Clear locales without changing layout direction.

Calling Configuration.setLocales with emtpy LocaleList may change the
layout direction to LTR. To clear the locales in Configuration without
layout direction change, introduce hidden API to Configuration.

Bug: 28695661
Change-Id: I47c339dffb83099bd329ddb60237dab27b05f593
/frameworks/base/core/java/android/provider/Settings.java
1500a27af2e4daede64b938cf4207748c283654a 20-May-2016 Chris Tate <ctate@android.com> Merge "Back up / restore the \'mono audio\' setting" into nyc-dev am: a3aaa5ee25
am: 36b03ec9f0

* commit '36b03ec9f0cd6466f2bd9517a72438e446033685':
Back up / restore the 'mono audio' setting

Change-Id: I0947760de027c0dfa1fd5f66ea7adfcae9d965a0
d33151bf4fe0da6b64abb995deedaa6622560545 20-May-2016 Christopher Tate <ctate@google.com> Merge "Back up / restore the \'mono audio\' setting" into nyc-dev
am: a3aaa5ee25

* commit 'a3aaa5ee2558ac5a6b6ca0b309dc9eea4c51bf14':
Back up / restore the 'mono audio' setting

Change-Id: Ieb242d2d382218b6090acf0e72c33c865fb0994b
36b03ec9f0cd6466f2bd9517a72438e446033685 20-May-2016 Christopher Tate <ctate@google.com> Merge "Back up / restore the \'mono audio\' setting" into nyc-dev
am: a3aaa5ee25

* commit 'a3aaa5ee2558ac5a6b6ca0b309dc9eea4c51bf14':
Back up / restore the 'mono audio' setting

Change-Id: Ie20918c1a8306342de7a5e2201d3e55fff39500c
ea2d6e8e891a1fa2fc007593254794d6d8c04c10 20-May-2016 Christopher Tate <ctate@google.com> Back up / restore the 'mono audio' setting

Bug 28437565

Change-Id: I6028886eb1aa424edabca65ad9d11d984b82d198
/frameworks/base/core/java/android/provider/Settings.java
ea906b37dfd6f84a74ab15f85f5f13d41cda6bb6 18-May-2016 Seigo Nonaka <nona@google.com> Fix system locale propagation during user creation.

Since Android N, the system locale is stored in Settings.System. Because
of this change, we need to propagate the previous user's system locale
to the newly created user.

When the user switch happens, updateUserConfigurationLocked is called
for the next user. Usually, some configuration values (font scale and
system locale) are overwritten by the next user's settings. However,
the first time the next user logs in (and only the first time), the
settings value is empty. So, we need to decide between keeping the
passed configuration's value or resetting to the default. For the
fontScale, it is reset to the default (issue 27187556). For the system
locale, the previous user's locale should be used. This CL addresses
this.

At the same time, the inherited configuration should be stored to the
settings, otherwise the inherited configuration is lost the next time
the second user logs in.

Bug: 27803966
Change-Id: I4632671316d26e00ab6fe80ff3433f097f0e0954
/frameworks/base/core/java/android/provider/Settings.java
22e9213a1c903a4eda75fb09603735753a131c05 19-May-2016 Robin Lee <rgl@google.com> Merge "Lock down networking when waiting for always-on" into nyc-dev am: d171df660e
am: 77ab7fc8d4

* commit '77ab7fc8d4f4596b1275a7065f05380e22da3a1a':
Lock down networking when waiting for always-on

Change-Id: I4160a61ca437d20df4342a44ed24fc6ad47962c6
77ab7fc8d4f4596b1275a7065f05380e22da3a1a 19-May-2016 Robin Lee <rgl@google.com> Merge "Lock down networking when waiting for always-on" into nyc-dev
am: d171df660e

* commit 'd171df660e19bdba4d188beeb8b6023874712413':
Lock down networking when waiting for always-on

Change-Id: I7be0a85597936421750d1da0fde3d55d7d4fabc5
43fbfbf94c5b8ae4353b73c36d85ff02fd36fc67 19-May-2016 Robin Lee <rgl@google.com> Merge "Lock down networking when waiting for always-on" into nyc-dev
am: d171df660e

* commit 'd171df660e19bdba4d188beeb8b6023874712413':
Lock down networking when waiting for always-on

Change-Id: I34fffb119eecef0052be673f307ef63c94fc58ee
d171df660e19bdba4d188beeb8b6023874712413 19-May-2016 Robin Lee <rgl@google.com> Merge "Lock down networking when waiting for always-on" into nyc-dev
17e6183b85ba3038acb935aaa01415058b2e6ddd 09-May-2016 Robin Lee <rgl@google.com> Lock down networking when waiting for always-on

Fix: 26694104
Fix: 27042309
Fix: 28335277
Change-Id: I47a4c9d2b98235195b1356af3dabf7235870e4fa
/frameworks/base/core/java/android/provider/Settings.java
1ab19ea6e6575a578244eecbae61d46150bec392 18-May-2016 Amith Yamasani <yamasani@google.com> Merge "Retail mode flag and some clients for it" into nyc-mr1-dev
am: dbf0dbd8c2

* commit 'dbf0dbd8c216e801b3d95f83d13ae05c1ba0ea39':
Retail mode flag and some clients for it

Change-Id: I5f9e7c49759154925c6f20ab3fd647d84259b1bb
dbf0dbd8c216e801b3d95f83d13ae05c1ba0ea39 18-May-2016 Amith Yamasani <yamasani@google.com> Merge "Retail mode flag and some clients for it" into nyc-mr1-dev
bf4c8f730b167e5ee65ed7c59dfa1d7867b63fcc 18-May-2016 Yohei Yukawa <yukawa@google.com> Merge "Move LocaleList to avoid layering violation." into nyc-dev am: 31884efd13
am: ddaf3f4681

* commit 'ddaf3f468195e5aa47617317c08e9e2c35bcfeee':
Move LocaleList to avoid layering violation.

Change-Id: I7dbe5c3d552a7350ab61c929f431e2a3cffdee5b
ddaf3f468195e5aa47617317c08e9e2c35bcfeee 18-May-2016 Yohei Yukawa <yukawa@google.com> Merge "Move LocaleList to avoid layering violation." into nyc-dev
am: 31884efd13

* commit '31884efd13b3ac60078edaa0b7e8a4b75d995538':
Move LocaleList to avoid layering violation.

Change-Id: I9132fe456a8d79569c651dac0a0bce0153444767
13fa6b7c4811ca19f86c40ad7bfab86abafa4887 18-May-2016 Yohei Yukawa <yukawa@google.com> Merge "Move LocaleList to avoid layering violation." into nyc-dev
am: 31884efd13

* commit '31884efd13b3ac60078edaa0b7e8a4b75d995538':
Move LocaleList to avoid layering violation.

Change-Id: I45e9b7e834d2c5e515eb6c60885296358e7d786e
eb437d4dffb310857e19bb619778dc5b6b7febff 29-Apr-2016 Amith Yamasani <yamasani@google.com> Retail mode flag and some clients for it

Bug: 27280140
Change-Id: Ide33e941b9c71eb925b5977d0b0d62198537ca14
/frameworks/base/core/java/android/provider/Settings.java
23cbe85610f780134cc77dd4a54732a22ed6e86e 18-May-2016 Yohei Yukawa <yukawa@google.com> Move LocaleList to avoid layering violation.

Since LocaleList needs to depend on android.os.Parcelable, we cannot let
that class belong to "android.util" package, which causes layering
violation.

Bug: 28819696
Change-Id: Ia8de2ee9df3dd0a42b1fe84574439519b680fe18
/frameworks/base/core/java/android/provider/Settings.java
057a101453ea46a6207588b53952d78c2a80898c 14-May-2016 Daniel Nishi <dhnishi@google.com> Merge "Add an Activity action to go into the Deletion Helper." into nyc-mr1-dev
am: e8ed2ed331

* commit 'e8ed2ed331a056fe2262ac649f71d781df25f363':
Add an Activity action to go into the Deletion Helper.

Change-Id: I09b09f645b455c8a2cde7bd0eadb34b2cc704178
ac62b4b3605062bb46873b0f69dd940d09884fad 05-May-2016 Daniel Nishi <dhnishi@google.com> Add an Activity action to go into the Deletion Helper.

Applications may want to jump to the Deletion Helper to free up
storage when the device is under storage pressure.

Bug: 28675265
Change-Id: I709c39f3e699ab5f51f4ad1272468583276ff050
/frameworks/base/core/java/android/provider/Settings.java
7cd6a970c047c06c196cb351d00584180806351e 14-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make settings cahches generation mechanism robust." into nyc-dev am: b35301e421
am: d361bbd0db

* commit 'd361bbd0dbb87d00c6e4abbe32c7866f90ff56bd':
Make settings cahches generation mechanism robust.

Change-Id: I5c3d4e6b0998396b37506d6842f8b37bb5d76460
d361bbd0dbb87d00c6e4abbe32c7866f90ff56bd 14-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make settings cahches generation mechanism robust." into nyc-dev
am: b35301e421

* commit 'b35301e421bb08c28425c49ad46a277c96ccb411':
Make settings cahches generation mechanism robust.

Change-Id: I59566be20a76084f409f0dd57c70337b60339c87
1ba77621c6a802b7f243846a1e6ffa2fb4042dcf 14-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make settings cahches generation mechanism robust." into nyc-dev
am: b35301e421

* commit 'b35301e421bb08c28425c49ad46a277c96ccb411':
Make settings cahches generation mechanism robust.

Change-Id: Ided07e935f83e96edfec9217bfad9ae2da1fc6fb
b35301e421bb08c28425c49ad46a277c96ccb411 14-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Make settings cahches generation mechanism robust." into nyc-dev
04df738bcb6584dd82b731a67f4cf8d6925b061e 11-May-2016 Svetoslav Ganov <svetoslavganov@google.com> Make settings cahches generation mechanism robust.

Settings is using a MemoryIntArray to communicate the settings table
version enabling apps to have up-to-date local caches. However, ashmem
allows an arbitrary process with a handle to the fd (even in read only
mode) to unpin the memory which can then be garbage collected. Here we
make this mechanism fault tolerant against bad apps unpinning the ashmem
region. First, we no longer unpin the ashmem on the client side and if
the ashmem region is purged and cannot be pinned we recreate it and
hook up again with the local app caches. The change also adds a test
that clients can only read while owner can read/write.

bug:28764789

Change-Id: I1ef79b4b21e976124b268c9126a55d614157059b
/frameworks/base/core/java/android/provider/Settings.java
a62fc512dae936ec1d8573cacbd4e649ecd9be1f 13-May-2016 Steven Ng <stevenckng@google.com> Merge "Add a Global setting for disabling OEM unlocking setting" into nyc-mr1-dev
am: e333b2eb81

* commit 'e333b2eb81958cc8d27eb687ebd84844a84919ea':
Add a Global setting for disabling OEM unlocking setting

Change-Id: I625b51c1e257afa095dfacb3bcf481fb2068b56f
e333b2eb81958cc8d27eb687ebd84844a84919ea 13-May-2016 Steven Ng <stevenckng@google.com> Merge "Add a Global setting for disabling OEM unlocking setting" into nyc-mr1-dev
2fc6bf3936951764569bef3256bf41823f3986d4 12-May-2016 Tingting Wang <tingtingw@google.com> Merge "Rename CONTACT_METADATA_SYNC GService Flag." into nyc-dev
am: 752129929f

* commit '752129929fcbe8d7740d25014f7878e835d4f4ef':
Rename CONTACT_METADATA_SYNC GService Flag.

Change-Id: Ibef9e072b3ff5216de1802558d93e66661bd7764
e0cbda454cdf0c78f08be1c5cfec4d02bbb55867 11-May-2016 Tingting Wang <tingtingw@google.com> Rename CONTACT_METADATA_SYNC GService Flag.

Rename it to CONTACT_METADATA_SYNC_ENABLED.

BUG 28295805

Change-Id: Ib1f735b082a2ff6cca93e377b3eaaaf7cd396b8d
/frameworks/base/core/java/android/provider/Settings.java
eb435a3a4cd186ada82fae4dcd3083d65ceab603 05-May-2016 Jason Monk <jmonk@google.com> Merge "Add action to launch webview implementation settings" into nyc-dev
am: c91f5e2971

* commit 'c91f5e297135f9601c7fa6ebe3f4bdc9ad9af112':
Add action to launch webview implementation settings

Change-Id: I26fb9e07522ed522ad551e7f39a66b2f9ad93748
c91f5e297135f9601c7fa6ebe3f4bdc9ad9af112 05-May-2016 Jason Monk <jmonk@google.com> Merge "Add action to launch webview implementation settings" into nyc-dev
dc20ba69bf5f6e1017202555b6159abaf67b855c 26-Apr-2016 Steven Ng <stevenckng@google.com> Add a Global setting for disabling OEM unlocking setting

+ By default, OEM unlocking setting is enabled.
+ Add a check to prevent oem unlock being flipped if the setting isn't
enabled.

Bug: 28163088
Change-Id: I087d8d5a1d99a611a8f66ff71a92ec9ea1da4e9f
/frameworks/base/core/java/android/provider/Settings.java
aded4dbf5e27abf6c9a0245dce56f4b2b2608a02 04-May-2016 Tony Mak <tonymak@google.com> New settings key and policy transparency for managed profile settings
am: c820cc5fb1

* commit 'c820cc5fb1eb036e76d60a25f151cbd91485feb3':
New settings key and policy transparency for managed profile settings

Change-Id: I5e5d30e39e1ba3c25a589fd6123f3a926b5745ba
c820cc5fb1eb036e76d60a25f151cbd91485feb3 03-May-2016 Tony Mak <tonymak@google.com> New settings key and policy transparency for managed profile settings

Bug: 28281560
Change-Id: I38d0c202088df410a28e78800de4e74377ec3216
/frameworks/base/core/java/android/provider/Settings.java
42d012144113b9da815c3803dcfcd8891e569010 03-May-2016 Jason Monk <jmonk@google.com> Add action to launch webview implementation settings

Bug: 28554048
Change-Id: I5ccdf5350c216949890d79b2b306b935a5949824
/frameworks/base/core/java/android/provider/Settings.java
617c9a3625585c25f26e03aa9456adde1e7243cc 02-May-2016 Pierre Imai <imaipi@google.com> Merge changes I86257bc8,I5c2221c5 into nyc-dev
am: 4a992cbde8

* commit '4a992cbde834fdf3770e34b21361b47f4786f65f':
Use Netd's binder interface to set resolver configuration.
Add Gservices settings for resolver configuration.

Change-Id: I80fdc381bd3ff33a8efa6624d7115c346789ca17
4a992cbde834fdf3770e34b21361b47f4786f65f 02-May-2016 Lorenzo Colitti <lorenzo@google.com> Merge changes I86257bc8,I5c2221c5 into nyc-dev

* changes:
Use Netd's binder interface to set resolver configuration.
Add Gservices settings for resolver configuration.
8e48e67827dd2da40e0b28977a9afca0f43de73d 21-Apr-2016 Pierre Imai <imaipi@google.com> Add Gservices settings for resolver configuration.

BUG: 25731675

Change-Id: I5c2221c5a2478fe2fa0fdf9ceeb13a932d758d33
/frameworks/base/core/java/android/provider/Settings.java
52e5f2e5ec20cbda0f1ea05ae2294acb25950f44 29-Apr-2016 Lorenzo Colitti <lorenzo@google.com> Merge "The legacy DHCP client is gone. Delete the settings." into nyc-dev
am: a4daf16b57

* commit 'a4daf16b578c456104f59f05ac374101426d1376':
The legacy DHCP client is gone. Delete the settings.

Change-Id: Ib9f1352386ebe667ec5d3d110f64e080c04c103d
fb628c078c149dcc2d44253f3538f30133eb88db 29-Apr-2016 Lorenzo Colitti <lorenzo@google.com> The legacy DHCP client is gone. Delete the settings.

Bug: 27192644
Change-Id: I5bc23f3e269e17d50fa2531a57fb0e2049ae18bf
/frameworks/base/core/java/android/provider/Settings.java
40ead811e0b3eeb08b2034fa49ea36a3a12ddbb7 28-Apr-2016 Lorenzo Colitti <lorenzo@google.com> Merge "Make isCaptivePortal perform both HTTP and HTTPS probes." into nyc-dev
am: 1d3c594

* commit '1d3c59457c9bcf30e6ecb898e64d9d9725e7803e':
Make isCaptivePortal perform both HTTP and HTTPS probes.

Change-Id: Ic58f5be8dce42c17213ef261f348eda31c6c11e7
c5be12e7ac43cbe8c68219fa702c6fb7f06183c3 19-Apr-2016 Lorenzo Colitti <lorenzo@google.com> Make isCaptivePortal perform both HTTP and HTTPS probes.

Also a couple of minor cleanups and logging tweaks.

Bug: 26075613
Change-Id: I67b09e96d72764179339b616072bb2ce06aabf33
/frameworks/base/core/java/android/provider/Settings.java
89ba9ddf26ca15e86ce615995115773adad93727 27-Apr-2016 Felipe Leme <felipeal@google.com> Merge "Update background data restrictions intent javadoc." into nyc-dev
am: 8b5e9f1

* commit '8b5e9f1bcf25ae38f812dc750772cf19abba6638':
Update background data restrictions intent javadoc.

Change-Id: Iaa01becc95debb5aa68cd8308bbe69936e769508
8b5e9f1bcf25ae38f812dc750772cf19abba6638 27-Apr-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update background data restrictions intent javadoc." into nyc-dev
2850b56b9ebd475996c63a43ec43b4f75d5a886e 22-Apr-2016 Felipe Leme <felipeal@google.com> Update background data restrictions intent javadoc.

BUG: 26820898
Change-Id: Ib2ed6835708ec77926fe49264ccf65a0aaf9a984
/frameworks/base/core/java/android/provider/Settings.java
d4bc15b66be44af031f5e78574781b8f21923404 26-Apr-2016 Svet Ganov <svetoslavganov@google.com> Merge "Ensure local settings caches are not stale" into nyc-dev
am: f71d7fe

* commit 'f71d7feef22db9e0cab2f32edc7440aedb86fdfe':
Ensure local settings caches are not stale

Change-Id: I356b9ad0b6dc1e91bfad140de1b9fc79ab6efef3
f71d7feef22db9e0cab2f32edc7440aedb86fdfe 26-Apr-2016 Svetoslav Ganov <svetoslavganov@google.com> Merge "Ensure local settings caches are not stale" into nyc-dev
53a441ca8eda5a3e6209a952b1bbd32a39e19a1c 20-Apr-2016 Svet Ganov <svetoslavganov@google.com> Ensure local settings caches are not stale

We used the system proterties as a shared memory mechanism
to propagate information to local settings caches when the
content has changed and the cache should be cleared. The
system properties are unfortunately updated asynchronously
leading to cases where clients may read stale data.

This change adds a simple int array data structure backed
by shared memory which guarantees individual values are
atomically read and updated without memory tear. Multi-
index opearations are not synchronized between each other.

The settings provider is using the new data structure to
propagate the settings generation which drives when caches
are purged.

We have a single memory array keeping the generation for
different settings tables per user. Since memory array is
not a compact data structure and the user space exceeds
the memory array size we use an in-memory map from keys
to indices in the memory array where the generation id of
a key is stored. A key is derived by the setting type in
the 4 most significant bits and the user id in the 28 least
significant bits.

The mapping from a key to an index is cleared if the user is
removed and the corresponding index in the memory arry is
reset to make it available for other users. The size of the
memory array is derived from the max user count that can be
created at the same time.

bug:18826179

Change-Id: I64009cc5105309ef9aa83aba90b82afc8ad8c659
/frameworks/base/core/java/android/provider/Settings.java
d72d5823b8b698717480a1338af6bde742c109f2 26-Apr-2016 Julia Reynolds <juliacr@google.com> Merge changes from topic \'api_review\' into nyc-dev
am: a0676c9

* commit 'a0676c92078b3d5abd850052db80e3b619ce1c5f':
Api review: Settings.
Reduce spacing.

Change-Id: I53898c0378b124a6b44872493e481d10dfd6518f
0aa7d615c28c85b0189b8314645db45b3bccc8a9 25-Apr-2016 Julia Reynolds <juliacr@google.com> Api review: Settings.

Hide notification policy setting.

Bug: 28295513
Change-Id: Ic117285c3eb07cb4bf399e233adad835772b9673
/frameworks/base/core/java/android/provider/Settings.java
2988b8f641e9d9602cc6ebdd1fad388a57a5f6ec 21-Apr-2016 Adam Lesinski <adamlesinski@google.com> Merge "Doze settings example not matching real keys" am: 570a13f
am: 790699d

* commit '790699db64ee18d143cd9813e91044fcc5a26713':
Doze settings example not matching real keys

Change-Id: I5c1a0757f5db2ba3ca2fcf37e77641ac820fbe6f
6ada702993227233fd362e98de93cc9e798dc75d 20-Apr-2016 Ruben Brunk <rubenbrunk@google.com> Merge "Add settings for altering VR display behavior." into nyc-dev
59c9a93fc268e226495d4ee8cf7c507c2ea2c433 20-Apr-2016 Trevor Johns <trevorjohns@google.com> Merge changes from topic 'merge_docs_nyc-dev' into nyc-dev

* changes:
Remove links to createAndInitializeUser() and createUser()
Resolve merge conflicts of a5060ee to nyc-dev
49506e089103e8fe38d10e0589688e51cceacaf2 19-Apr-2016 Ruben Brunk <rubenbrunk@google.com> Add settings for altering VR display behavior.

Bug=28208992

Change-Id: I31fcda8b846e7dd62f98151020f2bff2be52d521
/frameworks/base/core/java/android/provider/Settings.java
682c24e22811d4ee17ae1cd61bf255c3f7e722b7 12-Apr-2016 Trevor Johns <trevorjohns@google.com> Resolve merge conflicts of a5060ee to nyc-dev

This undoes the automerger skip which occured in
commit e740c84dc32180214a7fd157105d6c18d30408ee and
replays it as a standard (NOT -s ours) merge.

Change-Id: If5a47be26f73d6a0735c425cd66310a3e2a89086
/frameworks/base/core/java/android/provider/Settings.java
eac10ab5f491f6906588604371c49672e5932af6 19-Apr-2016 Henrik Baard <henrik.baard@sonymobile.com> Doze settings example not matching real keys

The keys used in the example for the Doze timeouts does
not match any real key. To avoid confusion the example
should match the existing keys.

Change-Id: I0306c542dac9e38aea7d172a3e0f7472d327c73c
/frameworks/base/core/java/android/provider/Settings.java
caf566a5372b05230885b787997b98ff4508eadd 13-Apr-2016 Victor Chang <vichang@google.com> Merge "Update display text in cert notification" into nyc-dev
1d616f0d880d0a4109e811221f3c3ff2e016013b 13-Apr-2016 Makoto Onuki <omakoto@google.com> Merge "ShortcutManager: Address API review feedback." into nyc-dev
b6d3523dfb5d73ddda4b750a82c059cdc42acf8e 05-Apr-2016 Makoto Onuki <omakoto@google.com> ShortcutManager: Address API review feedback.

- "delete" -> "remove"
- add/deleteDynamicShortcut() now takes a list.
- Throttling default settings is now 2 calls / hour.

- Add categories to ShortcutInfo.
- getIconResourceId() is now public

Bug 27923857
Bug 27548047

Change-Id: I8457b30e4b2f7c63ab2988648b37178fd16ea45b
/frameworks/base/core/java/android/provider/Settings.java
04fd67cb8ef02fb006aea9aeaa7bf9fe28da5226 12-Apr-2016 Alan Viverette <alanv@google.com> Default font scale is 1 if not otherwise specified

Prevents the previous user's font scale from being used as the default.

Bug: 27187556
Change-Id: I51a66ddf2d6272bd74d433158db1c8cc54b45b6d
/frameworks/base/core/java/android/provider/Settings.java
6e1e880f001ab3663fba3a7b6d292387efaf7b8f 11-Apr-2016 Robert Greenwalt <rgreenwalt@google.com> Merge "Add settings for SUW data control." into nyc-dev
355d47697c346ad4c7f41a8af1febcdf4ff95988 07-Apr-2016 Victor Chang <vichang@google.com> Update display text in cert notification

- Show DPC app name for PO
- Check user id for DO
- Update notification title for all cases
- update symbols for private resource ssl_ca_cert_warning changed from string to plural
- Pass number of certificate to MonitoringCertInfoActivity

Bug: 25772443
Bug: 18224038
Change-Id: I68db06f55a24879c1d5f532e38b97e2932bf990e
/frameworks/base/core/java/android/provider/Settings.java
6474f0e02b9a00c1f69f985c0d73cf7f8c0fb073 24-Mar-2016 Lenka Trochtova <ltrochtova@google.com> Put disallow-safe-boot restriction to system settings
to make it accessible during boot.

BUG: 26251884

Change-Id: I1dee58dfc2aa746e0e97a6675c611c6e313ec91c
/frameworks/base/core/java/android/provider/Settings.java
94ba4017669c0fab675f3d756d95bc63fe543db5 04-Apr-2016 Svet Ganov <svetoslavganov@google.com> Use proper package name and UID when checking write settings access

bug:26941229

Change-Id: I338fe6dd7c1b97f273909672cdd7d4fa207185ce
/frameworks/base/core/java/android/provider/Settings.java
29589fcd8a1d87e1c4654d6765f15c6f2f6ce7ba 31-Mar-2016 Nathan Harold <nharold@google.com> Add Settings.Global.WIFI_VERBOSE_LOGGING_ENABLED

Bug: 27878903
Change-Id: Ie0974cfb8abbb34275b846c288465a4c3e090eda
/frameworks/base/core/java/android/provider/Settings.java
43b5d980d89f4badfe89008febf5fcd6e1ae9d49 30-Mar-2016 Joseph Pirozzo <pirozzoj@google.com> Merge "PBAP client Settings profile." into nyc-dev
563c700f7025d2f792a52b7483725b3d58eaa7a6 21-Mar-2016 Joseph Pirozzo <pirozzoj@google.com> PBAP client Settings profile.

Add content to Settings and SettingsLib to add a checkbox for PBAP
client profile, and remove the box for PBAP server profile when the
client profile is enabled.

Bug: 27642222
Change-Id: I125559904a8e017a01ae90b1f6425129a87cbee3
/frameworks/base/core/java/android/provider/Settings.java
beb482cf890315c9f517b9224e7078e6e5f75e0b 29-Mar-2016 Robert Greenwalt <rgreenwalt@google.com> Add settings for SUW data control.

While the device is being provisioned we can default to
mobile-data-off and let the provisioning app turn mobile
data back on if the user wants it. After provisioning
control is restored.

Settings in play:
Settings.Global.DEVICE_PROVISIONED (existing)
SystemProperty ro.com.android.mobiledata (existing)
Settings.Global.MOBILE_DATA (existing)

SystemProperty ro.com.android.prov_mobiledata (new)
Settings.Global.DEVICE_PROVISIONING_MOBILE_DATA_ENABLED (new)

If the new settings aren't used, the old behvior is used.

bug:26638209
Change-Id: I92617ed6e588a5c50cf39054412a15273a9e03ff
/frameworks/base/core/java/android/provider/Settings.java
009938c98424670d22de358644803aa888468de5 28-Mar-2016 Christopher Tate <ctate@google.com> Don't back up / restore "we're in night mode"

Bug 27880039

Change-Id: Ida59c9e602b939038e4bb3f55a6bf96db8897348
/frameworks/base/core/java/android/provider/Settings.java
363e70dd004e08d43f9908e913e48f2ae4fe1a28 24-Mar-2016 Robin Lee <rgl@google.com> Merge "Declare provider.Settings intent for VPN fragment" into nyc-dev
a249aee10b621a94c986f4823d840e33c2a7d480 03-Feb-2016 Robin Lee <rgl@google.com> Declare provider.Settings intent for VPN fragment

Currently used for a number of tests. May also be useful for 3rd-party
apps using VPN in some manner or another.

Bug: 27700919
Bug: 26887434
Change-Id: I4d269954265a2590499e20150f009fe437c8078f
/frameworks/base/core/java/android/provider/Settings.java
f33b5bffeeca2ec56a9edda71d4401a9b96153c5 23-Mar-2016 Joe LaPenna <jlapenna@google.com> Allow setting doze timeouts based on system feature

BUG: 25678232
Change-Id: Ic9c8e5001a9202242308effb38de879b5f30bd36
/frameworks/base/core/java/android/provider/Settings.java
07177140e408c67fead0f00d243c60d04a3f279d 22-Mar-2016 Abodunrinwa Toki <toki@google.com> Replace Settings.ACTION_KEYBOARD_LAYOUT_SETTINGS with Settings.ACTION_HARD_KEYBOARD_SETTINGS

Bug: 26943892
Change-Id: I1eb6bd7a9e816190b96dc1516d5874eb966385a4
/frameworks/base/core/java/android/provider/Settings.java
d403151f3df7c23f516f54566b59ef5f7697b64b 17-Mar-2016 Seigo Nonaka <nona@google.com> Stop layout reset by setting empty locale list.

Do not call Configuration.setLocales(empty LocaleList) if the locale
list is empty since Configuration.setLocales calls setLayoutDirection
which resets the layout to LTR.

Bug: 27411138
Change-Id: I7fa9693cdb7ed90267f074812c26ea50314ad839
/frameworks/base/core/java/android/provider/Settings.java
495defd74f9a47dec33eb27ca25f5e390bd3fb4a 16-Mar-2016 Eric Laurent <elaurent@google.com> Merge "AudioService: do not persist mic mute and master mute" into nyc-dev
c02324864f3bab4baffb3ebbbd78ccee4b065e56 16-Mar-2016 Eric Laurent <elaurent@google.com> AudioService: do not persist mic mute and master mute

Master mute and mic mute are fully managed by user restrictions so there
is no need to persist their states.

Bug: 27486437
Change-Id: I7e58d1ddf409f6c80af371c7f5a5f305ee996386
/frameworks/base/core/java/android/provider/Settings.java
00958ac3807e0c791610b7fcd3e2604b59dcfe4c 07-Mar-2016 Anna Galusza <agalusza@google.com> Remove Intent to start screen reader tutorial. Reverts ag/867242.
Bug: 27218687

Change-Id: I5709f4393b2f1467757140c306c30aa88dfcc7f4
/frameworks/base/core/java/android/provider/Settings.java
4362a66dba0b4cfa9fadb6c8af10c590e4ba880d 09-Mar-2016 Makoto Onuki <omakoto@google.com> ShortcutManaegr: load config from settings, also...

support "cmd override-config" and "cmd reset-config" to help CTS.

Bug 27548047

Change-Id: Id6c9e6f41a2238856dd3470d88d88d0e7e686f26
/frameworks/base/core/java/android/provider/Settings.java
be3696d42552ad55ae0a41e9dd9fe81f5b17d3e7 08-Mar-2016 Chris Wren <cwren@android.com> Merge "rename the asisstant service for the ranker" into nyc-dev
d517e6aeed993cb5467e2997c1ab2edd90bbc133 08-Mar-2016 Daichi Hirono <hirono@google.com> Merge "Add a new key to Settings.Global to obtain the number of boot." into nyc-dev
e24b9a6cfa4d565d7f49c9ae8f3aeca737d93312 17-Feb-2016 Ruben Brunk <rubenbrunk@google.com> Add a VR listener service.

Bug: 22855417
Bug: 26724891
Bug: 27364145

- Add an API for VrListenerService, which is bound/unbound
from the framework when the system VR mode changes.
- Allow only a single bound VrListenerService at a time.
- Monitor allowed VrListenerService implementations from
VrManagerService and evict services as needed when packages,
users, or settings change.
- Remove previous VR functionality in NotificationListenerService.
- Add component target to Activity#setVrMode to allow
explicit selection of the running VrListenerService from
the current VR activity.

Change-Id: I776335f4441be0e793d3126f2d16faf86a8c621a
/frameworks/base/core/java/android/provider/Settings.java
e0ba7eb365ac19fdc11c3f820349f0352761b9f4 04-Mar-2016 Chris Wren <cwren@android.com> rename the asisstant service for the ranker

Bug: 22960980
Change-Id: Ibe57933303a488b01c43a7621a488d425d6f707d
/frameworks/base/core/java/android/provider/Settings.java
82ab9801ebebe8e4783ad327ad02686b44ab87f1 02-Mar-2016 Daichi Hirono <hirono@google.com> Add a new key to Settings.Global to obtain the number of boot.

BUG=26212981

Change-Id: I5ca51ca624a30dc2d96e547a85a712e273af1931
/frameworks/base/core/java/android/provider/Settings.java
ba24409033241e680d111e7dea6501e760d972c5 25-Feb-2016 Michal Karpinski <mkarpinski@google.com> Rework of remote bugreports UX

New notifications, that open dialogs.

Bug: 26226230
Change-Id: I50f9ab23b6c6d03892889d9081cabb0a3d858f91
/frameworks/base/core/java/android/provider/Settings.java
d193c6729f5f1d02088623286d03a1fbc7ce250f 01-Mar-2016 Ido Ofir <iofir@google.com> checking additional metadata and completed categories before displaying
suggested actions in settings.

Bug: 27271616
Change-Id: I855bc03337b04c5ff685c102f44dfc0d6638592b
/frameworks/base/core/java/android/provider/Settings.java
bd5cbdd6389f384873951877c5dffbb0403f01d5 25-Jan-2016 Seigo Nonaka <nona@google.com> Make system locale persistent.

Configuration values are not persistent.
To make system locale persistent, use Settings.System entry.

During start up, the configuration is filled from Settings.
When the system locale is changed by Settings, the locale list in
configuration is copied to Settings value.

Bug: 26732134
Change-Id: If57e13cc4179ff6299c71b4ab030f9d856748dea
/frameworks/base/core/java/android/provider/Settings.java
8dcdaaf11fe3b12a3d82f68287aa4f6119aafaa4 25-Feb-2016 Phil Burk <philburk@google.com> Merge "Settings: add ENCODED_SURROUND_OUTPUT" into nyc-dev
deaa8d94fd386490f67473dbd6eb660d7cbbcf47 24-Feb-2016 Phil Burk <philburk@google.com> Settings: add ENCODED_SURROUND_OUTPUT

Support AUTO, ALWAYS or NEVER preference for using AC3 and DTS.

Bug: 24541671
Change-Id: I423969882d18d99ce93bea57d10bdb1da7063b7a
Signed-off-by: Phil Burk <philburk@google.com>
/frameworks/base/core/java/android/provider/Settings.java
074d630f9e7a4dfd8acf3fa4fa1dfcb500184156 24-Feb-2016 Gustav Sennton <gsennton@google.com> Merge "Add fallback packages to be enabled iff no webview packages are valid" into nyc-dev
598255ae02752f06acf86db30f4e0f5655d2ea96 24-Feb-2016 Fyodor Kupolov <fkupolov@google.com> Merge "Disable switching users until user 0 is unlocked" into nyc-dev
1ce5c28ba54f31c0013542df81975148657b8229 23-Feb-2016 Jeff Sharkey <jsharkey@google.com> Merge "Offer to cache ringtones in system DE storage." into nyc-dev
413573ac59bb9904c3bd28c03843054fee7478a6 23-Feb-2016 Jeff Sharkey <jsharkey@android.com> Offer to cache ringtones in system DE storage.

Ringtones often live on shared media, which is now encrypted with CE
keys and not available until after the user is unlocked. To improve
the user experience while locked, cache the default ringtone,
notification sound, and alarm sound in a DE storage area.

Bug: 26730753
Change-Id: Ie6ad7790af4c87dd25759df3ed017e3b91a2fb87
/frameworks/base/core/java/android/provider/Settings.java
07140f7ffd56bf9d4946eba4e48b21a748125659 17-Feb-2016 Fyodor Kupolov <fkupolov@google.com> Disable switching users until user 0 is unlocked

Switching with user0 locked can be re-enabled by setting
allow_user_switching_when_system_user_locked flag to a non-zero value

Bug: 26933989
Change-Id: I0958058f1cc8a059db9c20930e07183c14c8460a
/frameworks/base/core/java/android/provider/Settings.java
c83e3fa35a5736a1778d241abd18dffa5953f416 18-Feb-2016 Gustav Sennton <gsennton@google.com> Add fallback packages to be enabled iff no webview packages are valid

This patch makes it possible to declare a WebView package as a fallback
which means that the package will be enabled iff there exist no other
valid and enabled (and available-by-default) webview packages.

The enabled-state of a fallback package is updated at boot and if a
webview package is changed (it it's been up/downgraded or has had its
enabled-state changed).

This patch also adds 'webviewupdate' shell commands for enabling and
disabling this mechanism.

Bug: 26375524, 26375860
Change-Id: I151915e5d6d932697dab10aeb593687e6b9c817e
/frameworks/base/core/java/android/provider/Settings.java
adfded10729011e23db65a25ffc2523d87616c41 22-Feb-2016 Tobias Sargeant <tobiasjs@google.com> add @SystemApi to WEBVIEW_MULTIPROCESS to enable it to be used in WebView glue

Change-Id: Ib6431c4e4c2bcbcfc6f986f97fcf58ad5fa3dbc7
/frameworks/base/core/java/android/provider/Settings.java
b2117d15d196dc29e4fc50d70cd8a10a04492e9c 17-Feb-2016 Dianne Hackborn <hackbod@google.com> Implement lenient background check option.

Which really means, make background check much more
strict, with an option to revert to the more lenient
behavior.

In this strict version, an app can't have services
started or receive broadcasts at any point when it is
not foreground. Also, it doesn't matter the importance
of a caller trying to start a service, it only depends
on the state of the app whose service is being started.

A new activity shell command allows you to control
whether to use the strict or lenient behavior.

Change-Id: I7f5a50b52881b5c8f9d8b6c8c622d3652a769fd7
/frameworks/base/core/java/android/provider/Settings.java
76c67aa361f65dfb2f5e03d06cc1ccebce9cecd9 19-Feb-2016 Jason Monk <jmonk@google.com> Add QS long-press -> Settings

Bug: 27269699
Change-Id: I861cb65dbb6609d9c95d5341f5f5aebc3cc519f3
/frameworks/base/core/java/android/provider/Settings.java
ea168d229d316c84652e88ad0f19adbaa884d731 19-Feb-2016 Jason Monk <jmonk@google.com> Merge changes Ie427a2d8,I213f1f76 into nyc-dev

* changes:
SysUI Tuner: UI cleanup and grouping
SysUI Tuner: Night mode v3
a7000fa8648af2457ab07cc736e2314bbc7eba22 19-Feb-2016 Toby Sargeant <tobiasjs@google.com> Merge "add developer setting for multiprocess webview" into nyc-dev
82a94d98e74b6ba0f816c675486a0672d473ecf5 14-Jan-2016 Andre Eisenbach <eisenbach@google.com> Read Bluetooth interop database entries from settings (1/2)

Interop database entries are stored in the system settings entry
"BluetoothInteropDatabase". The format is a list of entries separated by
";". An entry consists of a BDA fragment, followed by a comma and an
integer representing a feature from interop.h.

Example:
To disable LE secure connections for devices starting with BDA 11:22:33,
use "11:22:33,0".

Bug: 26548845
Change-Id: I6a9fd34f6af4d3bdfcaa0e051eafebdfbf2a4949
(cherry picked from commit 3bc623be8dd8b83d0a22c5cc5b5a8955001f6fc7)
/frameworks/base/core/java/android/provider/Settings.java
5dbd4aad809e6fec51df62280bcc1bfe05cc7df5 07-Feb-2016 Jason Monk <jmonk@google.com> SysUI Tuner: Night mode v3

TwilightService:
- Add support for locking on/off twilight globally
- Change twilight state to have float amount rather than
having clients calculate it using the sunrise/set values
- State controlled through secure setting
- Override mode which locks to a state for a couple hours then
resets
- Add broadcast for SysUI to listen to

Brightness/Power:
- Updates to handle TwilightService changes
- Added secure setting to control whether or not to use
twilight when calculating brightness.

Tuner:
- UI Overhall
- NightModeController will set the values of the custom color matrix
taking into account the current twilight service state and any
custom calibration set by the user.
- Probably other stuff.

Change-Id: I213f1f76a143e711c507b2ba7d784f581bfc32b4
/frameworks/base/core/java/android/provider/Settings.java
af9c30aa741b0b385840ffcd60040d8524b95f89 18-Feb-2016 Sudheer Shanka <sudheersai@google.com> Merge "Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden." into nyc-dev
aebd5dd786c38ca03995a22e3c219547c60d58d4 18-Feb-2016 Sudheer Shanka <sudheersai@google.com> Update ACTION_SHOW_ADMIN_SUPPORT_DETAILS action to be hidden.

Bug: 27225657
Change-Id: I85ad8bf88845e9164011b303ec9ca90d993fc20e
/frameworks/base/core/java/android/provider/Settings.java
da857108f98374a0f00b99c228735d00124843c3 11-Feb-2016 Tobias Sargeant <tobiasjs@google.com> add developer setting for multiprocess webview

Change-Id: Ia6e7a1219b3324e9c8e8cee43f1c4d8cd217e725
/frameworks/base/core/java/android/provider/Settings.java
c86f234c51ebcb78164d850177eb2143112f9f65 17-Feb-2016 Tao Bao <tbao@google.com> Merge "Add a Settings option of "Disable automatic update"." into nyc-dev
2528fcdfbd5d674c00387ed4ce93546ea5581ede 17-Feb-2016 Bill Yi <byi@google.com> Merge commit '26ada7e78993241d702a908eae93d174cbb3c8b3' into HEAD

Change-Id: Ifc45930160cf01ee78ecfbfdc48697055f82e0a7
a77ef3c83ef63250dd8e5f5ab931bac98a722684 16-Feb-2016 Anna Galusza <agalusza@google.com> Expose Intent for launching screen reader tutorial.

Change-Id: Iad479b3f3dc7d1ca23fa044946a93544067adee3
/frameworks/base/core/java/android/provider/Settings.java
fdf7c5d31fee113cb4602bfc159cbd90ecd9dc48 16-Feb-2016 Tao Bao <tbao@google.com> Add a Settings option of "Disable automatic update".

Bug: 27193001
Change-Id: Ibd205a749ebd674ca4500fd3b701888ac3ee8721
/frameworks/base/core/java/android/provider/Settings.java
3aec638a7b7f7200f7c82bca527e6aec75440d82 05-Feb-2016 Adrian Roos <roosa@google.com> Add setting for allowing remote input from keyguard

Bug: 26440855
Change-Id: I539b1c7ee6a874283df1104fe0743ef0495f9510
/frameworks/base/core/java/android/provider/Settings.java
239f248280f0d44e2cfd1279baa0819633a36156 12-Feb-2016 Shweta Chahar <shwetachahar@google.com> Merge "Remove higher speech rate settings." into nyc-dev
14c033c76b00fa1f59c4198e0e50f07387a0f3e9 11-Feb-2016 Gustav Sennton <gsennton@google.com> Move current WebView provider from Settings.Secure to Settings.Global

The current WebView provider is not user-specific and should therefore
be stored as a Global rather than a Secure setting.

Also do some code cleaning including a fix in WebViewProviderInfo to
always fetch up-to-date information about whether a webview
implementation package is enabled.

Bug: 27142972
Change-Id: I4d4b8fca775e97980fb5c34313be6d82472e7d33
/frameworks/base/core/java/android/provider/Settings.java
4bad4fa1521600d224fa1b9568bac3d8c980baf2 08-Feb-2016 shwetachahar <shwetachahar@google.com> Remove higher speech rate settings.

Higher speech rate setting used to increase the max text to speech output
rate to 6x from the default 4x. The default max speech rate is now
set to 6x, thereby, rendering the higher speech rate setting irrelevant.

Bug:24527715
Change-Id: I3777e63e6ddff797c18bf17fcefa3e262ea822d1
/frameworks/base/core/java/android/provider/Settings.java
1a2941541a78b42f8181a37df6cd5623c38525f6 05-Feb-2016 Alan Viverette <alanv@google.com> Merge "Multi-user support for display density changes"
5f5d707bad1ac89d2d7d04cdc0f20b9de14a604b 27-Jan-2016 Felipe Leme <felipeal@google.com> Defined an intent to let apps launch the Data Saver settings screen.

BUG: 26451391
BUG: 26820898
Change-Id: Ie9dbe2d08d362aa548e385967d101faafb87c9b7
/frameworks/base/core/java/android/provider/Settings.java
5e8d837894d38151c943677c8323860de1438bd0 03-Feb-2016 Alan Viverette <alanv@google.com> Multi-user support for display density changes

Bug: 26942569
Change-Id: Ie44aed00619c5e5604b3d48a3a9d0fc38b0ef0eb
/frameworks/base/core/java/android/provider/Settings.java
0c35fbcf08085545fbcbbbf155bb998e981cae36 20-Jan-2016 Junda Liu <junda@google.com> Add strings/setting for carrier app install dialog.

Bug: b/22863855
Change-Id: I34e2ff5997e14afe70a64edb055dc876e26d7946
/frameworks/base/core/java/android/provider/Settings.java
6b6c5a2035da51a22226051f1a287ac77b29899e 28-Jan-2016 Clara Bayarri <clarabayarri@google.com> Make Notification Redaction independent for work profiles

Bug: 26709332
Change-Id: Ifc13c3c5a62110a3dfc44c2a02df9db11d92b431
/frameworks/base/core/java/android/provider/Settings.java
f3e5d1d483231d615f5e77032f787fcd8047488b 29-Jan-2016 Anna Galusza <agalusza@google.com> Merge "Add API for IME control by Accessibility Services."
9b278112467581e2b8d99f29cf48b9fbef9cc53f 04-Jan-2016 Anna Galusza <agalusza@google.com> Add API for IME control by Accessibility Services.

Change-Id: I3bb806cf420e0551a2c9ef97d95613f73e362df9
/frameworks/base/core/java/android/provider/Settings.java
d8701bfed0a7f9e00604011bc760af59464a0da1 28-Jan-2016 Yohei Yukawa <yukawa@google.com> Add ACTION_KEYBOARD_LAYOUT_SETTINGS.

This CL adds ACTION_KEYBOARD_LAYOUT_SETTINGS so that IME developers can
navigate users to the settings to configure the hardware keyboard layout
as needed, as we have exposed ACTION_INPUT_METHOD_SETTINGS and
ACTION_INPUT_METHOD_SUBTYPE_SETTINGS.

Bug: 25752827
Change-Id: I8f371702904b3354043cd6d23fc9a8ff8be9b537
/frameworks/base/core/java/android/provider/Settings.java
369a94a4130577718de3fbd7aabece9277233bb1 27-Jan-2016 Shweta Chahar <shwetachahar@google.com> Merge "Add setting to enable higher text-to-speech rate."
41604bcba5a3a1b7fbea77b681725bbbf8e10275 27-Jan-2016 shwetachahar <shwetachahar@google.com> Add setting to enable higher text-to-speech rate.

Change-Id: I1e3c78870a5c083bed9dfc6d13601b7874b86583
/frameworks/base/core/java/android/provider/Settings.java
15f3d215992175a9c731b518534a9fc612417feb 25-Jan-2016 Jeremy Klein <jlklein@google.com> Implement ui-based provisioning for the new tether api.

This is dependent on ag/850648 and the Settings changes under the
uiprovisioning topic id.

BUG: 26247383
Change-Id: Ib151d56a1ece5ca3a55219abed965286eac5dd60
/frameworks/base/core/java/android/provider/Settings.java
86b867fd45ce97f7ebe374396e91e679adf8633d 30-Dec-2015 Casey Burkhardt <caseyburkhardt@google.com> Adds Settings.System.FONT_SCALE observer to ActivityManagerService

Changes to Settings.System.FONT_SCALE were not being handled by any service,
which required a device reboot for any changes to take effect. Changes to
this field by the Settings app worked as expected only because it is able to
poke ActivityManager with an updated configuration, whereas unbundled
applications cannot.

This also ensures the setting value is backed up and doesn't conflict with
a configured value from accessibility onboarding during restore.

Bug:23033258
Change-Id: I98d4aed2f9f5893d054e6b10c4dfda406de8eba2
/frameworks/base/core/java/android/provider/Settings.java
ba12af516722bd559e19f9b3e8618dc4359e617b 22-Oct-2015 Sanket Agarwal <sanketa@google.com> Add support for AVRCP 1.3.

* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
/frameworks/base/core/java/android/provider/Settings.java
1bec6a5b0d67f120b7013572f6b1a4f1e1b3c584 22-Oct-2015 Sanket Agarwal <sanketa@google.com> Add support for AVRCP 1.3.

* Add metadata support.
* Add player settings support.
* Add playback support.

A2DP Settings App support.

Bluetooth: A2DP Sink support for Settings App

- add support for A2DP Sink in Settings App. This will enable connection
initiation and updation on Settings App
- add framework Apis to support A2DP Sink. Any third party Apps can access
A2DP Sink priority of device and playing state of device
- add support for key to set priority. This manages priority of device for
A2DP Sink profile

Change-Id: If5f9139f37cdb9d200387877c7801075205c78a0
/frameworks/base/core/java/android/provider/Settings.java
b68d2d5b68dc58fb7b75ce94af74de58a1b9d3f9 14-Jan-2016 Robin Lee <rgl@google.com> Merge "Always-on app VPNs"
89a697a7e78de121a228b5a8d08a86ee76a40f1c 14-Jan-2016 Adam Lesinski <adamlesinski@google.com> Merge "UsageStats: Use new settings key idle_duration2 for app idle" into mnc-dr1.5-dev am: d2e215978b am: a5c7106017
am: 6a8c328d73

* commit '6a8c328d7386d19f4590dfbfc71338b1ec208fb7':
UsageStats: Use new settings key idle_duration2 for app idle
f0ef3c112683e4e04406f0355de34f4f1ac20386 13-Jan-2016 Adam Lesinski <adamlesinski@google.com> UsageStats: Use new settings key idle_duration2 for app idle

Ignores the old, re-appropriated key "idle_duration" which is now
set to a high value in order to force disable app idle on devices
with bug b/26355386

Bug:26355386
Change-Id: Iff9de843ad6e547d29c1583687fc7f7ce7e15090
/frameworks/base/core/java/android/provider/Settings.java
eb80f7c6d6d813af92512f62c109f6065bbfb07e 12-Jan-2016 Kweku Adams <kwekua@google.com> Fix documentation typo.

Change-Id: Ia40d67069f4789d8f8d0a7cb5dcf447cedec9950
/frameworks/base/core/java/android/provider/Settings.java
244ce8ef5f201cf403bab43df8281671a9e94512 05-Jan-2016 Robin Lee <rgl@google.com> Always-on app VPNs

Bug: 22547950
Change-Id: I46b204170bfac58d944f39b22f815b080de71a58
/frameworks/base/core/java/android/provider/Settings.java
9d46b3efd71f98063d050d087533020680e93d25 11-Jan-2016 Tingting Wang <tingtingw@google.com> Merge "Remove @hide for CONTACT_METADATA_SYNC."
e1055217360d45b6b1f907867af5b3085f128eda 11-Jan-2016 Tingting Wang <tingtingw@google.com> Remove @hide for CONTACT_METADATA_SYNC.

Make Contacts App access this flag.

BUG 26491409

Change-Id: I440cb540fbcc5dd3722ecb6e335dd40914cc30b5
/frameworks/base/core/java/android/provider/Settings.java
867b3396605421708dbcb0595b8954a3f96858ed 09-Jan-2016 Andy Hung <hunga@google.com> Merge "Add setMasterMono and getMasterMono"
f04b84d4c66ea377ec6fe2b36f3a0994f3e94eba 19-Dec-2015 Andy Hung <hunga@google.com> Add setMasterMono and getMasterMono

Bug: 15283594
Bug: 22700363
Change-Id: I5d0552938ec2a54be4450512974d92ff8c77b1e9
/frameworks/base/core/java/android/provider/Settings.java
fa7786cbe7e846841c2828d8143325144b75f619 22-Dec-2015 Anna Galusza <agalusza@google.com> Add remaining Accessibility Settings to backup
list. Note additional settings that should not be
restored if they are already set (on account of
the new Setup Wizard, which allows critical
Accessibility Settings to be set before restore).

Change-Id: I95524abbef20ab12e529a2b1e6165adc7294c3db
/frameworks/base/core/java/android/provider/Settings.java
918343b5f9c530f9e6d1fddb72b87487c91b5952 07-Jan-2016 Sudheer Shanka <sudheersai@google.com> Merge "Add an intent for ShowAdminSupportDetailsDialog in settings."
8141bdfa56f13c3946bed12ba7801e492ec25c11 22-Dec-2015 Philip P. Moltmann <moltmann@google.com> Store which print services are disabled instead of which are enabled

This make services that appreared while the print manager was not active
by default enabled.

In the case we upgrade from pre-N we convert the enabled-list into a
disabled-list.

Bug: 26249649
Change-Id: Iae783a8dd19f1a9d75d675710ea4348fdfbd34f3
/frameworks/base/core/java/android/provider/Settings.java
a73b8fd1f4faaad00d8a49d6e496aaf249fa7003 07-Jan-2016 Jeff Sharkey <jsharkey@android.com> Add some TestApis to fix build.

Change-Id: Icf0d8d63f3a41d99e46ebe96003863bae637bd9d
/frameworks/base/core/java/android/provider/Settings.java
6f2efd3d8c114f9a4b472ef699bbd844323cd82c 23-Dec-2015 Jorim Jaggi <jjaggi@google.com> Add developer option for freeform window support (1/2)

Also disable default force-resizable on non-user builds.

Bug: 25276672
Bug: 24815256
Bug: 26294625
Bug: 26294534
Change-Id: I5b31e494c993d2d9dad175b94b4f30637e8f3718
/frameworks/base/core/java/android/provider/Settings.java
410e6bd3cc948d283a2ce68c13e88679a2e9c67d 31-Dec-2015 Sudheer Shanka <sudheersai@google.com> Add an intent for ShowAdminSupportDetailsDialog in settings.

Bug: 26362585
Change-Id: Ia3adfcde50f2f5d4fd3df924d56d970d67339094
/frameworks/base/core/java/android/provider/Settings.java
bd17928afcbead00b498a75a92a0a32a6cca7fee 18-Dec-2015 Bryce Lee <brycelee@google.com> resolve merge conflicts of 6b9e5bf0c2 to master.

Change-Id: Idada49313619533bfeb375ee232c942589457fa4
ec85f34812b0f66715ad5ae4d1485f98a690746c 16-Dec-2015 Bryce Lee <brycelee@google.com> Add setting for declaring disabled bluetooth profiles.

Bug: 25900899
Change-Id: I420a7c590d72ba10f3e466d15dccfdbb520e810a
/frameworks/base/core/java/android/provider/Settings.java
7eba593b8d88a9b087f06ef146d82c4c77a92473 11-Dec-2015 Julia Reynolds <juliacr@google.com> Aidl it all!

Change-Id: Ic12e2305a947749a714102a8133321ae07599950
/frameworks/base/core/java/android/provider/Settings.java
6258dcd7ea5450726bc7bcb1fbd50e99f62f38fb 30-Oct-2015 Gustav Sennton <gsennton@google.com> Add functionality for changing WebView provider.

Make it possible to change WebView provider (through a Developer
setting) and kill all apps using the old provider.
This includes checking the signatures of the WebView providers to make
sure they are valid.

Now that we can change WebView provider through a setting it is possible
to change provider while some provider is being updated. Because of this
we now keep track of which provider should be in use in
WebViewUpdateService to make sure we use the correct provider at all
times.

We now also read WebView package meta data (name, package name, and
signature) from a separate xml file.

Main bug: crbug.com/546185

Bug: 25338573

Change-Id: I660fd1a40a5388f6569a06a7f0d029e8ff65945a
/frameworks/base/core/java/android/provider/Settings.java
d263163e4ecfddc1296ac5c279e1b1cc0eb188a5 10-Dec-2015 Svetoslav Ganov <svetoslavganov@google.com> Allow white-listed apps to change VIBRATE_WHEN_RINGING

We don't allows apps white-listed to write to system
settings to change settings that aren't a part of the
public APIs. Now that we made VIBRATE_WHEN_RINGING it
should be moved from the list of private settings to
the public list which apps can modify.

bug:25941020

Change-Id: Ice91f782aeca4785fa0aed300b22d9ecdbb51bd3
/frameworks/base/core/java/android/provider/Settings.java
58d9cefdd34bdceeb32e3bc036cffe3b0b6c0db9 09-Dec-2015 Jason Monk <jmonk@google.com> Merge "Allow color matrix to be controlled by secure setting"
2acf063da08dfff69f184c9a6a90a7a5fe60d818 25-Nov-2015 Svet Ganov <svetoslavganov@google.com> Ephemeral cookie API

Add APIs for an ephemeral app to set a cookie which is a small
peice of data cached longer than the app itself. This is useful
for avoiding the user to login every time they use the ephemeral
app. The cookie is stored after an ephemeral app is uninstalled.
Normal apps or ephemeral apps upgraded to full apps can also use
these APIs with the difference that once they are uninstalled
the cookie is deleted.

The cookie size defaults to 16KB and is configurable by a global
settings which can be adjusted via gservices. Also eviction policy
is time based with a default of one month and is configurable by
a global setting which can be adjusted via gservices. If the cert
of the app cahnges (when ephemeral is installed, uninstalled and
installed again) the cooke is wiped to prevent data leaks.

This cahange also adds an API for apps to know whether they run in
an ephemeral mode since it this mode some APIs will not be available.
Another API exposed by this change is private for the system and
exposes all ephemeral apps - installed and uninstalled. Only the
system can call this API. When an ephemeral app is uninstalled the
system stores its name, icon, and permissions. When the app is
reinstalled or a full version is installed the permissions are
propagated.

Change-Id: Id4a73a7750bfbabda0bfcb9bf9018d2062e94367
/frameworks/base/core/java/android/provider/Settings.java
08e7fa9b6918f442669970aa0dc048625424c07b 08-Dec-2015 Jason Monk <jmonk@google.com> Allow color matrix to be controlled by secure setting

Change-Id: Ia5518ad79fae502e814034edd7ae8d7a57b3eaeb
/frameworks/base/core/java/android/provider/Settings.java
c87a3a2c0aaa8f7c371ebd795bdbc9ffd991d031 05-Dec-2015 Tyler Gunn <tgunn@google.com> Merge commit '109e9c449d5a0070df793c63383e474a03242ba5' into tgunn-mncvtdev-to-master-2015-12-04
e56a3449d8319e3a361991952625c73ff1dce468 04-Dec-2015 Jun Mukai <mukai@google.com> Merge "Introduce accessibility large pointer icons."
19a560197950425f7e1856d5bd1216fbc680bf70 24-Nov-2015 Jun Mukai <mukai@google.com> Introduce accessibility large pointer icons.

This patch does the following things:
- add new graphic assets of large icons for accessibility needs
(imported from ChromeOS data)
- add the logic to choose the set of normal icons or accessibility icons
- make InputManagerService to observe the settings change, so that
it can reload the new resources

This patch misses non-1x graphic though, because ChromeOS doesn't
have such data.

Bug: 25778857
Change-Id: Ia5f95d47f50b3f6eea555c3af8069bc6bae0b400
/frameworks/base/core/java/android/provider/Settings.java
d1fa1d6ebe50e49010bd1cb473236c8d865e68e2 26-Nov-2015 Lifu Tang <lifu@google.com> Remembers previous location mode when location off

Multipart CL. Must be submitted together with ag/821657

Bug: 25608291
Change-Id: I0cceed27fcf51537b6ac39b0411fbbc44c165070
/frameworks/base/core/java/android/provider/Settings.java
f8f121330e573127b6ebc4bc08ac32321f64215e 20-Nov-2015 Ritesh Reddy <riteshr@google.com> Enabled backup/restore of Charging Sounds

Included the charging_sounds key in the Settings to backup/restore

Bug: 25694355
Change-Id: I4a8653f32b58ab326019698784b8cf60c6c0220e
/frameworks/base/core/java/android/provider/Settings.java
cb15d66f1c7e0175acdf0c0a71d774e841e0b21b 10-Nov-2015 Amith Yamasani <yamasani@google.com> Once system is provisioned, lock the screen on system user

If the device provisioning is complete, check if we need to show
the keyguard. We don't want it to show launcher after finishing
with setupwizard in the system user.

Bug: 25326078

Change-Id: I326069e29122ebf19a59fc00a9120cd5de70f231
/frameworks/base/core/java/android/provider/Settings.java
e2549af1b88a26af15e8a545ccbe073154628200 02-Nov-2015 Julia Reynolds <juliacr@google.com> Unhide setting for CTS testing.

Change-Id: I56a7970a3613eb930f565befcfa86cf33702c74c
/frameworks/base/core/java/android/provider/Settings.java
c279b996f13e644782633853612452860e596308 30-Oct-2015 Julia Reynolds <juliacr@google.com> Use preexisting DND access setting for condition providers.

So that apps that are already whitelisted don't have to be whitelisted
again if they add a CP.

Bug: 22977552
Change-Id: I4042d531178ab63d5d1e5b963fc081e3ed523835
/frameworks/base/core/java/android/provider/Settings.java
8ccdf3ac49b658737b8106bc921347a3d3e3bbbc 22-Oct-2015 Jorim Jaggi <jjaggi@google.com> Add development option to force everything resizable

Add a development setting to force all activites to be
resizable. Currently, a restart is required after changing
this setting. Also remove all the code that forced a single
task to be resizable, as we have a global option now.

Bug: 24815256
Change-Id: I3237c9b6ce96ff9aa9819592ab0c2807fde88dc4
/frameworks/base/core/java/android/provider/Settings.java
67fb3d7358f01c1bea429b680db54629d6ff4a19 22-Oct-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Reinstate CHANGE_NETWORK_STATE as a normal permission." into mnc-dr-dev am: 809dcade99 am: bdc458048a am: bb8f652372
am: 8ecad265b6

* commit '8ecad265b6db57f78dd142e974057c91f69489ed':
Reinstate CHANGE_NETWORK_STATE as a normal permission.
bdc458048abee78a945a26cd13a71245e7d4a2e5 22-Oct-2015 Lorenzo Colitti <lorenzo@google.com> Merge "Reinstate CHANGE_NETWORK_STATE as a normal permission." into mnc-dr-dev
am: 809dcade99

* commit '809dcade9906001f6aa51a68aa783e20bb1d7c0d':
Reinstate CHANGE_NETWORK_STATE as a normal permission.
d54270506669e474b5b8d1703212c77780a04ae9 15-Oct-2015 Lorenzo Colitti <lorenzo@google.com> Reinstate CHANGE_NETWORK_STATE as a normal permission.

This is a partial revert of http://ag/738523 , but not a full
revert because M apps that have gone through the WRITE_SETTINGS
route to obtain permission to change network state should
continue to have permission to do so.

Specifically:

1. Change the protection level of CHANGE_NETWORK_STATE back from
"signature|preinstalled|appop|pre23" to "normal". This allows
apps that declare CHANGE_NETWORK_STATE in their manifest to
acquire it, even if they target the M SDK or above.
2. Change the ConnectivityManager permission checks so that they
first check CHANGE_NETWORK_STATE, and then ask Settings
if the app has the WRITE_SETTINGS runtime permission.
3. Slightly simplify the code in the Settings provider code that
deals specifically with the ability to change network state.
4. Make the ConnectivityService permissions checks use the
ConnectivityManager code to avoid code duplication.
5. Update the ConnectivityManager public Javadoc to list both
CHANGE_NETWORK_STATE and WRITE_SETTINGS.

Bug: 21588539
Bug: 23597341
Change-Id: Ic06a26517c95f9ad94183f6d126fd0de45de346e
/frameworks/base/core/java/android/provider/Settings.java
cd86ebf1c965c191f46b6480145c9d217a7d841e 30-Sep-2015 Fyodor Kupolov <fkupolov@google.com> Check multi-user support in isUserSwitcherEnabled

isUserSwitcherEnabled now returns false if multi-user is disabled(
supportsMultipleUsers() returns false).

Removed GUEST_USER_ENABLED setting and replaced with DPM.getGuestUserDisabled
check. It currently always returns false, but will be replaced with an actual
policy check.

Bug: 17571233
Change-Id: I41853e8b321b2537952cac5d92e88bfdb8cbd9a8
/frameworks/base/core/java/android/provider/Settings.java
ceca82296687323a54637fdf210375768c5db3d7 16-Sep-2015 Chris Tate <ctate@android.com> am 9bf4d765: am e46bf3f7: am ee16be69: am 3290f5dd: Merge "Do not back up/restore the "pulse LED for notifications" setting" into mnc-dr-dev

* commit '9bf4d76579152fce4c045c78347a164d1b7305cd':
Do not back up/restore the "pulse LED for notifications" setting
ee16be69f1c3b3a9d6cdcb8bde70be3f7a0dbb65 16-Sep-2015 Chris Tate <ctate@android.com> am 3290f5dd: Merge "Do not back up/restore the "pulse LED for notifications" setting" into mnc-dr-dev

* commit '3290f5dd067557727f166ff7a51ad2b5209622f6':
Do not back up/restore the "pulse LED for notifications" setting
9cecf1478315a833cbd900ed2a841ce51b67aa20 15-Sep-2015 Christopher Tate <ctate@google.com> Do not back up/restore the "pulse LED for notifications" setting

Bug 24103790

Change-Id: I69a6a85e5282f9ca50fc2655bda4695757b92e74
/frameworks/base/core/java/android/provider/Settings.java
386f8349709380143f9bf38b41d8dffe736075bf 09-Sep-2015 Toni Barzic <tbarzic@google.com> Introduce settings for Automatic click when mouse pointer stops

Settings in question are:
- accessibility_autoclick_enabled -> Whether the feature is enabled
- accessibility_autoclick_delay -> Amount of time mouse pointer has to
stay still before performing click

Enable/disabled AutoclickController event stream transformation (which
implements the feature) based on the accessibiilty_autoclick_enabled
value

BUG=23113412

Change-Id: I8178d10c09d86713bb4c725c95268a7c5f432eb4
/frameworks/base/core/java/android/provider/Settings.java
00cd47a2d2147eaba031771fd7e8b6fdbf25cf46 10-Sep-2015 Jorim Jaggi <jjaggi@google.com> resolved conflicts for 0fb3f695 to master.

Change-Id: I679920313a872f8eb81cf00ffb6ffe037b8d0a3a
5a9bb9516d016549730d49cddcc2b2ee0e7a4e93 10-Sep-2015 Jorim Jaggi <jjaggi@google.com> resolved conflicts for 5d0e02b6 to cw-e-dev

Change-Id: Id974d29581304dc644659d1c470b5413d847944b
5941c98c641e64a26bf68816faf967d25cc8f256 04-Sep-2015 Adrian Roos <roosa@google.com> Add double-tap power button to open camera 1/2

Bug: 23787555
Change-Id: I052b64748f155c59fbb649b32265f559423a8845
/frameworks/base/core/java/android/provider/Settings.java
06db906b1d34930e4218cb920a312084d38650ec 14-Aug-2015 Wei Liu <luciferleo@google.com> am b8a1747b: am ddd3e323: am d6fb8958: Merge "Add a setting to enable cellular on boot." into cw-e-dev

* commit 'b8a1747b6dd3936bc10834f4c3aa1674bfe1bfb6':
Add a setting to enable cellular on boot.
a181770f3516c514cb3413f0a61e2645974c4414 12-Aug-2015 Wei Liu <luciferleo@google.com> Add a setting to enable cellular on boot.

b/22804423

Change-Id: Ifcee3a2a8bfbfab366c3f9dcd8926d500851bd32
/frameworks/base/core/java/android/provider/Settings.java
47c8244e4e5c3093522fd1aa13dfbc20bd565dd1 12-Aug-2015 Todd Kennedy <toddke@google.com> Merge "Override package storage constraint"
ec5563ffa34ed5aa98cfad49c05c0bd6f8949ac6 11-Aug-2015 Jason Monk <jmonk@google.com> am 1ef95dc5: am 413493b5: am c7789c3e: am 36052477: Merge "Add setting to disable camera gesture" into mnc-dr-dev

* commit '1ef95dc59cf5b151a9d55f0d8e55f5be1934c3cd':
Add setting to disable camera gesture
36052477465f51a4c690e4e8dfb290fb15ce88b0 11-Aug-2015 Jason Monk <jmonk@google.com> Merge "Add setting to disable camera gesture" into mnc-dr-dev
60d18aba1d0ad32147367ab30313ca5b9f0645cb 11-Aug-2015 Dianne Hackborn <hackbod@google.com> am b44cdfdd: am afacdbe1: am 09e77852: am 5cf89a01: am b2b02092: Merge "Fix issue #23037899: Support for Battery Optimization permission + Dialog" into mnc-dev

* commit 'b44cdfdd10ffa861492d044a058cfbaa167d71db':
Fix issue #23037899: Support for Battery Optimization permission + Dialog
c7b57b1e65b487defad4967cf42cf076b499cbee 10-Aug-2015 Dianne Hackborn <hackbod@google.com> Fix issue #23037899: Support for Battery Optimization permission + Dialog

New permission, new Intent action.

Change-Id: I1d9ba55be8f72074e29d33ad7a0a12a820bbac39
/frameworks/base/core/java/android/provider/Settings.java
f39ca8f5e5f43f130b4590921087a63f88bb8286 07-Aug-2015 Todd Kennedy <toddke@google.com> Override package storage constraint

We want to be able to move arbitrary packages to external storage,
regardless what they specify in their manifest. This is a developer
option and should be used with care. Trouble may ensue if an
application is moved when it really doesn't want to be moved

Bug: 22282121
Change-Id: I7664816a7fd122e6cdf3070fe50ce5464f325380
/frameworks/base/core/java/android/provider/Settings.java
e37acf3256c107da2a9c4892225aa7238d148669 08-Aug-2015 Billy Lau <billylau@google.com> am 4a10b66d: am 99271a39: am 9751afcf: am 26ab6ed3: am 70f998e5: Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev

* commit '4a10b66df364092cdc42a3cfaa990c877b389624':
Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS
70f998e57df2b3ed79331669a93a0ba314f25e7d 08-Aug-2015 Billy Lau <billylau@google.com> Merge "Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS" into mnc-dev
a7238a397d5c3431eeb19b5b77e8c7c2bf0e608f 01-Aug-2015 Billy Lau <billylau@google.com> Bug: 21588539 Move CHANGE_NETWORK_STATE to be in SYSTEM_SETTINGS

Merge the CHANGE_NETWORK_STATE permission with WRITE_SETTINGS.

AndroidManifest.xml:
Raised the protection level of CHANGE_NETWORK_STATE permission from
normal to signature|appops and pre23|preinstall for compatibility

provider/Settings:
Wrote new helper methods to check if app is allowed to change network
state.

ConnectivityManager.java & ConnectivityService.java:
Replace enforcement checks for CHANGE_NETWORK_STATE with
checkAndNoteChangeNetworkStateOperations instead.

Change-Id: If8c2dd3c76a5324ca43f1d90fa17973216c2bcc5
/frameworks/base/core/java/android/provider/Settings.java
de28e2c4551b516f56d840c3c33b39a4e0601640 06-Aug-2015 Julia Reynolds <juliacr@google.com> am 5452a0df: am 4b74d669: am 48d146c9: am c694ab32: am a3b5a612: Merge "Store ringer mode on entering DND mode so it can be restored on exit." into mnc-dev

* commit '5452a0df668dc48a1170dcfcb55e069c246bb5d1':
Store ringer mode on entering DND mode so it can be restored on exit.
9b11fdb56dd8b0250e077c1713434b388d8cd523 31-Jul-2015 Julia Reynolds <juliacr@google.com> Store ringer mode on entering DND mode so it can be restored on exit.

Store the value in Settings now, so it's not lost on reboot.
Bug: 22338093

Change-Id: Icc843ef2bf735c23aabf9ceddd82283d51424220
/frameworks/base/core/java/android/provider/Settings.java
5a5e7d64bb3c52f9910f49d912a59047f0ab32ba 04-Aug-2015 Jason Monk <jmonk@google.com> Add setting to disable camera gesture

Bug: 22183841
Change-Id: Ibafc5b74cd5cc708e3f884a6d7b2b5c354e04d4a
/frameworks/base/core/java/android/provider/Settings.java
476910fd82d5ebd33bd01ccd7f176356f3afc78a 03-Aug-2015 Billy Lau <billylau@google.com> am b4cb66cd: am 0e7b3420: am 8b095b1c: am f83e8526: am 5680f9f6: Merge "Bug: 22879202 App compatibility with WRITE_SETTINGS failing" into mnc-dev

* commit 'b4cb66cdca3a5e179ba6382ac281285adbdeb040':
Bug: 22879202 App compatibility with WRITE_SETTINGS failing
3b67b2b217b9b411c8b6ee62714fbfd5e360da54 01-Aug-2015 Deepanshu Gupta <deepanshu@google.com> am a34e6579: am 2535171f: am 92a59d8e: am 92385030: am e836a229: Fix build.

* commit 'a34e65796f3c62275879b35e3e309d0a6f5ea7d9':
Fix build.
7c19f4cf20b8549870b1d570988f47fc1276f176 01-Aug-2015 Billy Lau <billylau@google.com> Bug: 22879202 App compatibility with WRITE_SETTINGS failing

Fix a bug in the app ops protected permission check that broke backwards
compatibility.

Change-Id: Ic73759edd29a479a670fb31407e36aa50d09b6c3
/frameworks/base/core/java/android/provider/Settings.java
e836a229aefb0ff3b82e19a422590fb7c4bd5148 31-Jul-2015 Deepanshu Gupta <deepanshu@google.com> Fix build.

Change-Id: I82295b758e5ceb42e260d3c36ea2310a9def5190
/frameworks/base/core/java/android/provider/Settings.java
a91dccdf576eeed67e160036f00d8fba58c1a524 30-Jul-2015 Billy Lau <billylau@google.com> am bafb5130: am ee2ee0f9: am be6bfb4c: am 83749ac9: am a6706627: Merge "Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)" into mnc-dev

* commit 'bafb51305731fd837b12878fffabe8885239ea10':
Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check changes)
6ad2d66072795dd9836350b273dcde52910ab4c3 18-Jul-2015 Billy Lau <billylau@google.com> Bug: 21589105 Rescope WRITE_SETTINGS permission (framework services perm check
changes)

AppOpsManager:
Changed the default operating mode for WRITE_SETTINGS to MODE_DEFAULT from
MODE_ALLOWED.

packages/SettingsProvider:
We no longer do static permission checks for WRITE_SETTINGS in early checks and
defer that to app op when MODE_DEFAULT is returned. For some operations,
checking against WRITE_SECURE_SETTINGS is sufficient.

ActivityManagerService & PowerManagerService:
Incorporated app op checks and handled the MODE_DEFAULT case.

provider/Settings:
Added helper function to do checks on whether app ops protected operations
can be performed by a caller. This includes checks for WRITE_SETTINGS and
SYSTEM_ALERT_WINDOW.
Also added a public API (with javadocs) for apps to query if they can modify
system settings.
Changed the javadocs description for ACTION_MANAGE_WRITE_SETTINGS and
ACTION_MANAGE_OVERLAY_PERMISSION.
Added public API (with javadocs) for apps to query whether they can draw overlays or not,
and also javadocs description on how to use that check.

Change-Id: I7b651fe8af836c2074defdbd6acfec3f32acdbe9
/frameworks/base/core/java/android/provider/Settings.java
6086a25eb7721d7a59445796b73ee4c3f2e87701 30-Jul-2015 Adrian Roos <roosa@google.com> am 5334b265: am aeda904f: am 4371922d: am 8e9b33f8: am 726d47b7: Merge "Fix and deprecate lock pattern related settings" into mnc-dev

* commit '5334b265af71a31b0cf428b97b437ac040c067dc':
Fix and deprecate lock pattern related settings
93184eef410da6bb958d22e1dc90f3fddabc9369 29-Jul-2015 Alan Viverette <alanv@google.com> Merge "DO NOT MERGE: Don't backup night mode setting" into mnc-dev
ec9bea7eebd2c3fb423a54fa50a231c4abd76bd5 29-Jul-2015 Alan Viverette <alanv@google.com> DO NOT MERGE: Don't backup night mode setting

Bug: 22824325
Change-Id: I7a244f416e1aa258735eea09858e3c202e8c8945
/frameworks/base/core/java/android/provider/Settings.java
9069fab8bca535a33501a75bc8f61b23dcdcaffd 01-May-2015 Amit Mahajan <amitmahajan@google.com> Changes to update APN db via Gservices and ConfigUpdater.

- Adding settings that are updated by Gservices.
- Changes to handle UPDATE_APN_DB intent.
- UPDATE_APN_DB intent triggers update of apns-conf.xml and carriers db.

Change-Id: I65a63f3015da1b827b974d17e48bee4c747544ff
/frameworks/base/core/java/android/provider/Settings.java
7811d9f5095a343acd218f4bb0a0e9e8f480b401 28-Jul-2015 Adrian Roos <roosa@google.com> Fix and deprecate lock pattern related settings

Bug: 22557690
Change-Id: Ib4b3ef7cebe815ba9d9d2284f945a9ec746b216c
/frameworks/base/core/java/android/provider/Settings.java
859551f7c0acdc8fa9f9d5ffaf0efc69441d5e47 23-Jul-2015 Junda Liu <junda@google.com> Merge "Remove volte_feature_disabled as carrier config handled it." into mnc-dev
d5f0f4132c4779aa946023ee48d001d70db7ac12 22-Jul-2015 Junda Liu <junda@google.com> Remove volte_feature_disabled as carrier config handled it.

Bug: b/22602876
Change-Id: Ib1948c93eae6b563846563f1353bab24c4c687a0
/frameworks/base/core/java/android/provider/Settings.java
22b3f4cb15207239e203d5ec8b72ec6bc90fef35 08-Jul-2015 Billy Lau <billylau@google.com> Bug: 21589105 Rescope WRITE_SETTINGS and SYSTEM_ALERT_WINDOW permission

Raised the protection level of WRITE_SETTINGS permission to appop and also
allowed backwards compatibility with pre23 flag. Also made sure that this
permission is not added as RuntimePermission in DefaultPermissionGrantPolicy as
that breaks a lot of gmscore stuff.

Introduced new action to manage write system settings as a new API and
renamed the string that describes the managing of overlay permission.

Change-Id: Ifd25a6ddc06de68ee37015cb9fb23452e4ef10f4
/frameworks/base/core/java/android/provider/Settings.java
937edac8e8583023019b625dd426ebf65169e30d 07-Jul-2015 Ian Pedowitz <ijpedowitz@google.com> Revert "Bug: 21589105 Rescope WRITE_SETTINGS and SYSTEM_ALERT_WINDOW permission"

This reverts commit d6b404c72da7e2475508c7d5948494b2e9b1a262.

This CL seems to have broken the build, causing GMSCore to continuously
crash.

Bug: 22313634
Bug: 22312938
Bug: 22314605
Bug: 22308392
Bug: 22307889
/frameworks/base/core/java/android/provider/Settings.java
d6b404c72da7e2475508c7d5948494b2e9b1a262 07-Jul-2015 Billy Lau <billylau@google.com> Bug: 21589105 Rescope WRITE_SETTINGS and SYSTEM_ALERT_WINDOW permission

Raised the protection level of WRITE_SETTINGS permission to appop and also
allowed backwards compatibility with pre23 flag.

Introduced new action to manage write system settings as a new API and
renamed the string that describes the managing of overlay permission.

Change-Id: I939a95b9a8b1ae75bf67aa6d8190c92a8d2001d3
/frameworks/base/core/java/android/provider/Settings.java
e8a4b66960056c2dc2c8dbb5f8df00710645cc64 28-Jun-2015 Jeff Sharkey <jsharkey@android.com> Better handling of trim/benchmark results.

Request benchmarking of devices once per week during normal fstrim
maintenance window. Tunable parameter gives us the ability to change
frequency through global setting.

Track individual benchmark and trim results for each volume, and
use scrubbed volume identifier (based on adoptiong age) when logging
stats to drop box. Track last benchmark and trim time for each
volume separately.

Bug: 21831325
Change-Id: I53b3ed788f7820c2e5bceb2840339f5b4aada3f0
/frameworks/base/core/java/android/provider/Settings.java
f62f4c94a36f5c2f7ad3c70316dc585ea3fd721a 30-Jun-2015 Billy Lau <billylau@google.com> Merge "Bug: 21589105 Rescoping the SYSTEM_ALERT_WINDOW permission to an explicit toggle to be manually enabled in Settings." into mnc-dev
a133f0b522f66b45d4105f6d514a8a17120833ad 27-Jun-2015 Jorim Jaggi <jjaggi@google.com> Add setting to disable screenshot separately (1/2)

Bug: 22063668
Change-Id: Ief704004a8ab0a65d34753f9098003ba695726df
/frameworks/base/core/java/android/provider/Settings.java
cbe540f94691b595ca2eaede2871d885c38a845c 25-Jun-2015 Billy Lau <billylau@google.com> Bug: 21589105 Rescoping the SYSTEM_ALERT_WINDOW permission to an explicit toggle
to be manually enabled in Settings.

Raised the protection level of SYSTEM_ALERT_WINDOW from dangerous to
system|signature|appop. Added a new API in Settings for developers to invoke
the main configuration setting. Also added a new metrics in MetricsLogger.
Finally, also made changes to PhoneWindowManager to check the permission to draw
overlay properly.

Change-Id: I4a073e6f038b8b8d2fa5bd6ad60abda496be9701
/frameworks/base/core/java/android/provider/Settings.java
2c3c66a2cf06b4d081f539a1fa01b44780cc65dc 23-Jun-2015 Zoltan Szatmary-Ban <szatmz@google.com> Merge "Introduce Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN" into mnc-dev
a750a63d639f6936af456df904fa6b9ba941885e 17-Jun-2015 Dianne Hackborn <hackbod@google.com> Fix issue #21814207 and issue #21814212 (alarm manager)

Issue #21814207: AlarmManager.setAndAllowWhileIdle should also allow wake locks.

Introduce a whole new infrastructure for providing options when
sending broadcasts, much like ActivityOptions. There is a single
option right now, asking the activity manager to apply a tempory
whitelist to each receiver of the broadcast.

Issue #21814212: Need to allow configuration of alarm manager parameters

The various alarm manager timing configurations are not modifiable
through settings, much like DeviceIdleController. Also did a few
tweaks in the existing DeviceIdleController impl.

Change-Id: Ifd01013185acc4de668617b1e46e78e30ebed041
/frameworks/base/core/java/android/provider/Settings.java
a11ffa64366e39899bcda7448e5b5ffe727bea48 17-Jun-2015 Junda Liu <junda@google.com> Merge "Remove hide_carrier_network_settings from Settings." into mnc-dev
297da6ffb996460cce8efcf8fa920ea54e99731d 16-Jun-2015 Junda Liu <junda@google.com> Remove hide_carrier_network_settings from Settings.

No longer needs this as carrier config manager handles it now.

Bug: b/21347654
Change-Id: I26d34cde0d31ae53a6e5a25cd555ed2ff7600f38
/frameworks/base/core/java/android/provider/Settings.java
1958e5e7870579337f1d1d3e6c6fae096ba3abb9 13-Jun-2015 Dianne Hackborn <hackbod@google.com> Fix issue #21813831: Need API for asking to be added to power whitelist

Add the API. Clean up a few related things.

Change-Id: I190adad1812f36f6095b98a1001fedb94874e8b5
/frameworks/base/core/java/android/provider/Settings.java
a6232df053cdc2df9d8a1d97a5c81d55cce7a1e2 12-Jun-2015 Adam Lesinski <adamlesinski@google.com> App Standby: Convert constants to Settings.Global

Use settings instead of hardcoded constants, and listen for their changes.

Bug:21640379
Change-Id: Id8305bb234f93f7c64c1a5e82e26b31504624324
/frameworks/base/core/java/android/provider/Settings.java
31c05d13612205f6a48460d23135695b267e506c 10-Jun-2015 Adam Lesinski <adamlesinski@google.com> Doze: Use Settings.Global.DEVICE_IDLE_CONSTANTS instead of hardcoded constants

This will allow gservices to tweak the settings and experiment
with different values for various doze constants.

The values are encoded in a string as a key=value list. Ex:

inactive_to=5000,idle_factor=0.01

Bug:21640379
Change-Id: Ie98a0e4893f9b46a64d961d6c5c5169b8b8ad742
/frameworks/base/core/java/android/provider/Settings.java
287b889f93abc830fad59607072f5f4b7d674c8a 10-Jun-2015 Jason Monk <jmonk@google.com> Add action for reaching ignore battery optimizations

Bug: 21375688
Change-Id: I1477192371aae2f3497fd49ad704de183ed836a3
/frameworks/base/core/java/android/provider/Settings.java
e6de8b9ad4e646fc741b4907b86f1b5a5532257d 07-Jun-2015 Xiyuan Xia <xiyuan@google.com> Add setting for assistant

- Add assistant setting in Settings.Secure;
- If the assistant setting is missing, start assistant as current behavior;
- If the setting is present, start assistant use the setting value;

Bug:20210110
Change-Id: I946fbb504452e445879ad688130a1570b857b9c5
/frameworks/base/core/java/android/provider/Settings.java
7c74f78a85283912d7239214024ccca702622f21 04-Jun-2015 John Spurlock <jspurlock@google.com> Zen: New user flow for requesting DND access.

- User flow is now similar to requesting access to notification
content, namely prompting the user to visit a settings page
for enabling/disabling apps access.
- New ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED intent
for apps to listen to this state change.
- Removed obsolete request method and associated internal callback
aidl.
- Added new android.permission.ACCESS_NOTIFICATION_POLICY permission
for apps to include as a signal that they want to request this access
(and therefore appear in the list on the settings page).
- Improve javadocs, outline the user flow in NotificationManager#isNotificationPolicyAccessGranted
and link to this method elsewhere.
- NoManService now persists the user-enabled package list across reboots
and does so per-user.
- Rename public settings intent to correspond with the noman api.

Bug: 21621663
Change-Id: I72cbc21cd736e6a157b6be5d1d0ba0b4a8e7ef4e
/frameworks/base/core/java/android/provider/Settings.java
4045d24971fea4f1506ac8f16d4deeb76ac415fe 27-May-2015 Zoltan Szatmary-Ban <szatmz@google.com> Introduce Settings.Global.WIFI_DEVICE_OWNER_CONFIGS_LOCKDOWN

This setting controls whether WiFi configurations created by a Device Owner app
should be locked down (that is, editable or removable only by the Device Owner).

Bug: 21427528
Change-Id: I0f8fb72bf9da1597e08d3dfc631d37b6b4178ff5
/frameworks/base/core/java/android/provider/Settings.java
109e9c449d5a0070df793c63383e474a03242ba5 22-May-2015 Etan Cohen <etancohen@google.com> Merge commit '93bbf27' into merge
9d91083034654b37461c891308a1d426054170a8 19-May-2015 Jorim Jaggi <jjaggi@google.com> Add setting to disable assist data (1/2)

Bug: 20944446
Change-Id: I8050df3177b6d540829c3f0989a4e4b1381c87ec
/frameworks/base/core/java/android/provider/Settings.java
b1918a05684ee11073a6ced379a3cffb9f4007c4 15-May-2015 Svet Ganov <svetoslavganov@google.com> Fix easter egg setting validator to accept valid values

bug:21188928

Change-Id: I5f6d445aad7231a907026c552c87f9cdfe024d32
/frameworks/base/core/java/android/provider/Settings.java
67b7ec28872dcb0ba09ef01bb87f7d558cbd19fc 14-May-2015 Svet Ganov <svetoslavganov@google.com> Merge "Access mock location is no longer a runtime permission - framework" into mnc-dev
f7e9cf4fb48ea80cbc5088204ac3f898109623f7 13-May-2015 Svet Ganov <svetoslavganov@google.com> Access mock location is no longer a runtime permission - framework

The access mock location is no longer a runtime permission. It is a
signature protected one that apps cannot get but the fact they request
it means they want to inject location into the system. Now the user
gets to choose the current mock location app in developer options from
the apps that request the mock location permission. The access to mock
location is no longer guarded by the permisson but from a new app op
which is off by default and the settiings UI sets it to enabled only
for the currently selected mock location app.

bug:21078873

Change-Id: I19e3f9dc7c7de82eab46b30fec1abfbca54a0e59
/frameworks/base/core/java/android/provider/Settings.java
ee77cebc1a54a0bee1a1d538db0abed00aa9cb4e 13-May-2015 Jorim Jaggi <jjaggi@google.com> Persist fingerprint names

Bug: 20469328
Change-Id: I8f4a988687bfb78c36cc7cf187103a9d93ed4535
/frameworks/base/core/java/android/provider/Settings.java
27bbb2d0a1c8a3bb38768511ac840c3388b0fb03 31-Mar-2015 Jason Monk <jmonk@google.com> Add control for double tap to wake setting

Bug: 16875464
Change-Id: Ic1ad910dd38acbc68ef040b2acdf3696ec2c2e4e
/frameworks/base/core/java/android/provider/Settings.java
807749301fcbda892dfc8a5832b19acf7d1cf53b 07-May-2015 John Spurlock <jspurlock@google.com> Zen: Simplify notification policy api, add zenmode api.

- Remove the concept of a notification policy management token
in favor of a simple grant/deny per app. Currently, all requests
are immediately granted.
- Add zen mode getter/setting, limit to apps that have been granted
policy access.
- Add intent for zen mode changes.
- Public name for zen mode = "interruption filter", moved from
NotificationListenerService to NotificationManager.
- Add settings metadata for new DND access Settings screen.
- Add the split sender settings for calls vs messages to the public
Policy api.
- This change is meant to finalize the public api, persisting
granted app status and showing the user-visible dialog will be
done as followups.

Bug: 18298798
Change-Id: I511be98d69939f057c0c7dc1a6dfe63d1c468193
/frameworks/base/core/java/android/provider/Settings.java
da4bfa81cdaccdc65d4812c81c892926cd0c9884 29-Apr-2015 Erik Kline <ek@google.com> Optionally add a default MOBILE request.

This enables persisting the mobile internet data connection, even
when Wi-Fi is enabled and serving as the default network (for faster
network switching).

Change-Id: I9d1512b3a8413c4f163c63d57e66bded017101e4
/frameworks/base/core/java/android/provider/Settings.java
4244ce6a17063fd67fa174f7e551830c4df7d5bf 05-May-2015 Jeff Brown <jeffbrown@google.com> Replace WIFI_DISPLAY_SETTINGS with CAST_SETTINGS.

Bug: 20641986
Change-Id: I137dfc7ef41bdda2ce3e81c164767319c88159f1
/frameworks/base/core/java/android/provider/Settings.java
c05c1aeedf44b7019b6749758dffc03df7632225 05-May-2015 Jeff Brown <jeffbrown@google.com> Revert "Initial draft of new MediaRouter APIs."

This reverts commit 1a937b04e63539cb1fab1bde601031d415c7156f.

Bug: 20641986
Change-Id: I035d945d1561e5fc7c914aa9362635f763c83cfd
/frameworks/base/core/java/android/provider/Settings.java
51a871d48a9f4d912b2c12c29bbddcc5ec175825 06-May-2015 John Spurlock <jspurlock@google.com> Add setting to mute wireless charging sound.

Bug: 19538553
Change-Id: I1af971b35ae9eeb38d8ec38c57b22152095e2725
/frameworks/base/core/java/android/provider/Settings.java
93bbf2774d934e08919f9996cf9daf402ddb9407 05-May-2015 Etan Cohen <etancohen@google.com> Add VT over IMS global setting.

Bug: 20750301
Change-Id: Ifb6e832aa67e50aef247a19ef7a7f64096a67dd6
/frameworks/base/core/java/android/provider/Settings.java
d60258f2d33214077a22c1a682944fa9e47c0461 30-Apr-2015 John Spurlock <jspurlock@google.com> Zen: New event condition data model.

- Add system condition provider for calendar event-based rules.
- Add stub condition provider for handling event conditions.
- Add various shared items to support new settings subpage.

Bug: 20064962
Change-Id: I6f5afe0f1444976f0dc6807048e0580e8a28070e
/frameworks/base/core/java/android/provider/Settings.java
6446d97942b6b5b3108d4c8e53410b38497049d8 23-Apr-2015 Yorke Lee <yorkelee@google.com> Merge "Add hidden class in framework for managing the default dialer settings"
014de02dd2e050c36f7e0d4f57690bd5d023b4f2 22-Apr-2015 Yorke Lee <yorkelee@google.com> Add hidden class in framework for managing the default dialer settings

Bug: 20303635
Change-Id: I7e7318086ade9531fb85f08b8e3f1f001ee0a8d9
/frameworks/base/core/java/android/provider/Settings.java
6f909783e91113a7dc6b8532ed991356a0cb5e82 17-Apr-2015 Jason Monk <jmonk@google.com> Add constants for usage access settings

Bug: 20290386
Change-Id: I216ad25b94de739449941a8b4e965329fe324f66
/frameworks/base/core/java/android/provider/Settings.java
f647832bd4ca9c083aa2748f2a21bc433cb26be3 17-Apr-2015 Jeff Brown <jeffbrown@google.com> Merge "Add support for disabling display scaling for development."
2a5f608e7a5765db3b91165dac5b6280b26da26c 19-Mar-2015 Casper Bonde <c.bonde@samsung.com> Add support for Bluetooth Sim Access Profile (2/4)

Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
/frameworks/base/core/java/android/provider/Settings.java
d46747a1c64b6ca3282e8841833980ab91829436 16-Apr-2015 Jeff Brown <jeffbrown@google.com> Add support for disabling display scaling for development.

Added two new options to the wm command.

1. Set the screen size based on dips rather than pixels using the
current screen density.

eg. adb shell wm size 320dpx320dp

2. Disable automatic scaling of the contents of the display.
When combined with the previous command, this is useful for seeing
how the UI would behave if the screen remained at its current density
but changed physical size.

eg. adb shell wm scaling off

Bug: 19899223
Change-Id: I545f893ba4861494e995cf0457ebeba1050d28dc
/frameworks/base/core/java/android/provider/Settings.java
31ce78c62e882ecb830dbd0826c0677994fd970e 16-Apr-2015 Zheng Fu <zhengfu@google.com> Add setting flag to enable contact metadata syncing in CP2

Bug:20269816
Change-Id: Ie0906c03d888f57bb0a09a2bebd7b161c797792e
/frameworks/base/core/java/android/provider/Settings.java
1cf9b6bec12c027a0d551540a6e01f3ac2d0a9d4 10-Apr-2015 Jay Shrauner <shrauner@google.com> DO NOT MERGE Make Telecom/InCallUI APIs public

Bug:20260870
Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
/frameworks/base/core/java/android/provider/Settings.java
55b97525f0f50857f1ab0acd2608053fd0f3416c 10-Apr-2015 Jay Shrauner <shrauner@google.com> Make Telecom/InCallUI APIs public

Bug:20260870
Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
/frameworks/base/core/java/android/provider/Settings.java
d05bd467ba191833522e5b78da54bc5eab7bab2c 19-Mar-2015 Casper Bonde <c.bonde@samsung.com> Add support for Bluetooth Sim Access Profile (2/4)

Change-Id: I6c634aa38d31a7b5a98c9089840557257fd58209
/frameworks/base/core/java/android/provider/Settings.java
5929b7b8f0d97ac30404ee699e4da7ad444314a9 14-Apr-2015 Zheng Fu <zhengfu@google.com> Merge "Add setting flag to enable new contact aggregator"
b218ff49fd2f6b53dcf6a740fba1550a986a25f8 14-Apr-2015 Zheng Fu <zhengfu@google.com> Add setting flag to enable new contact aggregator

Bug:20055573
Change-Id: I5482c4a028a1bec91461c495805c5378093ae776
/frameworks/base/core/java/android/provider/Settings.java
39581cc16d3c44acc8f0881d8e63afe53acaa1c1 10-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Support external condition providers.

- Manage provider subscriptions for external condition providers
within ZenModeConditions.
- Move "is automatic rule active" check into common location.
- Add constant for external rule setting configuration page.
- Consolidate log tags.
- Reset rule snoozing on boot.

Bug: 20064962
Change-Id: Ida207dbf363f61e1727974e611f43f27c23accfb
/frameworks/base/core/java/android/provider/Settings.java
b2278d65714c0dd0a6f94d1913db1ebc8bfc8b06 07-Apr-2015 John Spurlock <jspurlock@google.com> An update on Downtime.

The update is that Downtime is obsolete. Replaced by the
ability to define multiple named schedule calendars.

- Make changes to ZenModeConfig to properly model manual
and automatic rules.
- Refactor the zen mode helper (and supporting classes) to
properly handle / report multiple claims on zen mode.
The "manual" rule (specified by the user in the UI) vs
one or more automatic rules.
- Automatic rules are still backed by condition providers,
but the layering is now cleaner. ConditionProviders is now
completely generic, has no ties to zen mode.
- Specifically, the new layering for zen mode (below noman) is:
ZenModeHelper: Source of truth for zen state
ZenModeFiltering: Subhelper dedicated to filtering rules.
ZenModeConditions: Subhelper dedicated to managing automatic rules.
ConditionProviders: Underlying engine for reporting named boolean state.
- Migration story for users with existing downtime config, migrated
to a single new calendar named downtime.
- For users with no existing downtime, two default calendars are created
for weeknights + weekends (icu4j for all locales will be done in a followup).
- Remove obsolete DowntimeConditionProvider/NextAlarmConditionProvider and tracking.
- Clean up obsolete resources.
- Add common zen summary description string computation.
- Add proper noman wrappers for the new model.
- Change the semantics of the global zen setting. It is now read-only. Setters
must call noman, added a "reason" to all calls for better attribution.
- Update zenmodepanel + volumedialog to the new model.
- Display the one or more automatic rules in the new zen footer summary.
- "Snooze" the automatic rules when the user explicitly turns zen off.

Bug: 20064962
Change-Id: Idd9deb865a6035ad0cfae660198dccb517e6d7cc
/frameworks/base/core/java/android/provider/Settings.java
b3006d38c6fdb964d9101f38e596e01de3591e56 03-Apr-2015 Barnaby James <bjames@google.com> Intents for Voice controlled settings actions.

Add new voice interaction intents for battery saver mode, airplane mode and do not disturb.

Change-Id: Id5bd4e4f23a798eef91d797ffcd17df482b30c08
/frameworks/base/core/java/android/provider/Settings.java
552d56348f0e942d240b8de41581d49cc05113c0 04-Apr-2015 John Spurlock <jspurlock@google.com> Merge "Zen: Changes to support new automation settings sub-section."
092f038d502e49ae91db6f5af5a34344704fcae2 03-Apr-2015 Amith Yamasani <yamasani@google.com> Merge "Throttle jobs for idle apps"
b0ff32245cb6b51e43dd3ee40b86d683c62de2b9 04-Mar-2015 Amith Yamasani <yamasani@google.com> Throttle jobs for idle apps

First pass at delaying jobs from apps that are idle.

TODO: Throttle syncs
TODO: Provide a periodic point at which apps are checked for idleness.

Apps that switch to foreground process state are tracked by UsageStats
as an INTERACTION event that affects the last-used timestamp.

JobScheduler's logic for when an app is ready is trumped by the idleness
of the app, and only if the battery is not charging. When charging state
changes, we update the idle state of all the tracked jobs.

android package is whitelisted.

Bug: 20066058
Change-Id: I0a0acb517b100a5c7b11e3f435f4141375f3451f
/frameworks/base/core/java/android/provider/Settings.java
7af10188c0525d5a3ab8a1883ce621fe4d333070 03-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Changes to support new automation settings sub-section.

Bug: 20064962
Change-Id: I1da5bd1f8ef52a070b8225da4b761979f290df77
/frameworks/base/core/java/android/provider/Settings.java
fc746f8ac5ea74747a502d4a75161a46f9cb892d 03-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Changes to support new priority settings.

Bug: 20064962
Change-Id: Iac3444c0a55830d5e5459e26c2172d974db600d6
/frameworks/base/core/java/android/provider/Settings.java
4f1163c83e79da52b2be7ff6b10163441895bc26 02-Apr-2015 John Spurlock <jspurlock@google.com> Zen: Add a new level: alarms-only.

Like no-interruptions, but allows alarms.

Bug: 19260237
Change-Id: I36bf0a333362256c8e54cd83992cb46c3bcb7f69
/frameworks/base/core/java/android/provider/Settings.java
36711e0e2cee9181a328718a349454dbd834f4e2 02-Apr-2015 Etan Cohen <etancohen@google.com> Merge changes from topic 'mwd-merge-040115'

* changes:
Merge (manually) pag/209446: Increase allowed duration to connect to HOGP profile
Merge commit 'd91f193' into merge2
Merge commit '5718646' into merge2
Merge commit '7aa0345' into merge2
eb864d4000dacad94d5135a10ed7bdeb29f31881 01-Apr-2015 Etan Cohen <etancohen@google.com> Merge commit 'd91f193' into merge2
1c1b47125da018b44240739db75f8898e064a948 20-Nov-2014 Fabrice Di Meglio <fdimeglio@google.com> Add IntentFilter auto verification

The purpose of this feature is to prompt the Disambiguation dialog
to Users as less as possible.

- add the new "autoVerify" property to the IntentFilter class
- add new APIs to PackageManager:
verifyIntentFilter(int, int, List<String>),
getIntentVerificationStatus(String, int),
updateIntentVerificationStatus(String, int, int),
getIntentFilterVerifications(String)
for supporting IntentFilter verification
- add support for multi-user
- update PackageManager for IntentFilter verification:
basically when we are installing a new package, ask for verification
of all domains from the IntentFilters that have the "autoVerify" to true.
This means that the PackageManager will send a well defined protected
broadcast (with a new INTENT_FILTER_NEEDS_VERIFICATION action) to
an IntentFilter verifier to do the real job of verification.
We are passing in the broadcast Intent all the necessary data for
doing the verification. The PackageManager will receive as response
the result code of the domain verifications and, if needed, the list
of domains that have failed the verification.
- add a new INTENT_FILTER_VERIFICATION_AGENT permission that needs to
be set by an intent filter verifier to be considered as a trustable
party by the PackageManager.
- add also a new BIND_INTENT_FILTER_VERIFIER permission for securing
the binding between the PackageManager and a service doing the
intent filter verifications.
- add ResolveInfo filterNeedsVerification which is a boolean
to knows if the IntentFilter is of a type that needs a verification
(action VIEW, category BROWABLE, HTTP/HTTPS data URI)
- add new "domain-preferred-apps" / "d" dump command for listing the
prefered Apps for all domains
- add new "intent-filter-verifiers" / "ivf" command for listing the
IntentFilterVerifier used
- introduce the IntentVerificationService which is a basic service
for verifying IntentFilters. This service will send HTTPS requests
to the domain declared in the IntentFilter(s) for doing the
verification. This service has a low priority level so that it
can be replaced by a more sophisticated one if needed. This service
is updating the PackageManager intent verification states thru
the updateIntentVerificationStatus(...) API.
- update MockPackageManager

Change-Id: I0bfed193d0bf1f7c7ac79f6c1b160b7ab93b5fb5
/frameworks/base/core/java/android/provider/Settings.java
943eb8654ff64ad854adada782ab911421a649a0 26-Mar-2015 Adrian Roos <roosa@google.com> Add emergency assistance API and setting

Bug: 19841649
Change-Id: I5bc99df6d85eb84b253456e32ce52afd7592a95e
/frameworks/base/core/java/android/provider/Settings.java
d91f19354d628e48577128f670afb0f5587e15e8 19-Mar-2015 Wei Wang <weiwa@google.com> Add API for BLE_SCAN_ALWAYS_AVAILABLE feature.

Change-Id: I83e966d4db076db367ded71bfb50c39e57568156
/frameworks/base/core/java/android/provider/Settings.java
7b9a28c7f0a7b88ed1ea777edc05002d2d2b38b7 18-Mar-2015 Christopher Tate <ctate@google.com> Back up and restore the set of enabled IMEs

The restored set of enabled IMEs/subtypes is merged into the
current state of the system, rather than simply replacing it.
This is because we do not want to accidentally disable or
reconfigure something that the user is currently relying on.

There's a certain amount of repetitive activity here, rebuilding
the enabled-state data structures in a different format, but it's
important for maintainability that the restore code be able to
rely on the core InputMethodUtils implementation of reading/writing
the settings element.

Bug 19822542

Change-Id: If0104151b3526da6ecc669adde3119a239ecafeb
/frameworks/base/core/java/android/provider/Settings.java
06d7e5301d0d60e153e6bed9ef7710abca19bec8 16-Mar-2015 Lorenzo Colitti <lorenzo@google.com> DHCP: Add a hidden setting to use the legacy DHCP client.

Change-Id: I5505bd2c20ddc895df0e9b176e1ed770ad74a3f4
/frameworks/base/core/java/android/provider/Settings.java
cac9a63cf1709ea86745e921609b847abfc73744 16-Mar-2015 Lorenzo Colitti <lorenzo@google.com> DHCP: Add a hidden setting to use the legacy DHCP client.

Change-Id: I5505bd2c20ddc895df0e9b176e1ed770ad74a3f4
/frameworks/base/core/java/android/provider/Settings.java
bb41a5f6def031b99f5569b192425b9edbdce7cc 17-Mar-2015 Christopher Tate <ctate@google.com> Merge "Back up / restore spell checker configuration"
06cbaddb87cf1922eb437c4282590667f8f620d0 17-Mar-2015 Christopher Tate <ctate@google.com> Back up / restore spell checker configuration

Bug 19779845

Change-Id: Ib8382f0296f0726b64494d3b1fd8237e13adb540
/frameworks/base/core/java/android/provider/Settings.java
6597e3435f8abfedbb9a4f1bfb10cc17ea7f38bf 17-Feb-2015 Christopher Tate <ctate@google.com> Notification listener backup & restore

We now back up & restore the set of enabled notification listeners. Post-
restore, a listener that had been enabled on the ancestral device will be
enabled on the current device as soon as it's installed, matching the
user's previous configuration. After this has happened the enable/disable
state for that app is not "sticky"; disabling it again will work as
expected.

The infrastructure for accomplishing this is general: it can be leveraged
by any ManagedServices derivative. There's a bit of extra wiring in the
settings provider to support the restore-time information flow as well.
This is because ManagedServices -- like many other parts of the system --
monitors writes to the settings provider and does work in response to new
writes of the elements that it cares about. Unfortunately this means that
there is no way to use the BackupAgent's restoreFinished() hook to post-
process the restored data: by the time it is run, the ManagedService's
observers have already executed and culled any unknown components from
the description that was just pushed into settings.

As of this patch, the settings provider's restore logic knows that a
particular settings element will require a message to interested observers
about the restore-driven change. The message is delivered as a broadcast,
and is sent after the new value has been committed to the settings db.
Adding other system ManagedService handling that parallels this will only
require adding a new corresponding entry to the table of individual settings
for which the relevant "this settings element is being restored" broadcast
is sent, found in SettingsHelper.

(It isn't sent for all settings elements because very few settings elements
have semantics that require it; 3rd party code won't be running yet during
platform restore anyway; and sending up to hundreds of broadcasts during
setup & restore is far from ideal.)

Bug 19254153

Change-Id: Ib8268c6cb273862a3ee089d2764f3bff4a299103
/frameworks/base/core/java/android/provider/Settings.java
7e05b6770c20612428c888dc4752034f92f94812 15-Mar-2015 Vinit Deshpande <vinitd@google.com> am "WFC configuration: add carrier and device support configurations."

merged from goog/mirror-m-wireless-internal-release
9c8f21b WFC configuration: add carrier and device support configurations.
dbbeeb3f44793798f129f25eb3e62f4cfe709d26 19-Feb-2015 Svetoslav <svetoslavganov@google.com> Remove unused settings constants from the SDK (framework).

The settings constants for various volumes do nothing and are
used by nothing since API version 2. These are however backed
up in the cloud which is a waste of resource. This change
removes these constants from the SDK while keeping them hidden
to avoid breaking released apps and also prevents unnecessary
backup.

Change-Id: I2e91863115f5a4b997a14f8d0f57b4dc9689cfab
/frameworks/base/core/java/android/provider/Settings.java
08c7116ab9cd04ad6dd3c04aa1017237e7f409ac 28-Feb-2015 John Spurlock <jspurlock@google.com> Remove unused imports in frameworks/base.

Change-Id: I031443de83f93eb57a98863001826671b18f3b17
/frameworks/base/core/java/android/provider/Settings.java
9c8f21b5efb8e7311731d04eb25c5c1ecff46361 24-Dec-2014 Etan Cohen <etancohen@google.com> WFC configuration: add carrier and device support configurations.

Add keys for global storage of user settings.

Change-Id: Ie1e31b34fa2ad5f970dcd3d97c1bfa9bd5a77427
/frameworks/base/core/java/android/provider/Settings.java
1b71ea9b094539bd22ba83c637a866e6f3bf1535 18-Feb-2015 Svetoslav <svetoslavganov@google.com> Remove unnecessary volume validators

Change-Id: I5f13016fa23978c8d35e9b85ec0ebecdf40a3d74
/frameworks/base/core/java/android/provider/Settings.java
b25334ca3c2c4f792254bf8e628788d0b7c4775a 13-Feb-2015 John Spurlock <jspurlock@google.com> Merge "Allow sysui-managed remote volume controllers."
cdb57aeb0e2c83a887c86da0ca2a890df7f02f41 12-Feb-2015 John Spurlock <jspurlock@google.com> Allow sysui-managed remote volume controllers.

- Relax restriction on audio service calls that assume the volume
ui is systemui, allow calls from a blessed component app.
- Blessed component app service saved in secure settings.
- SystemUI mediates requests to replace the volume dialog, prompts
the user on activation.
- Show a low pri ongoing notification when the volume dialog is
being replaced, to allow user restoration at any time.
- Replace the controller management code in VolumeUI to use a
ServiceMonitor, backed by the new blessed app component setting.
- Add proper zen-related noman client wrappers, make avail to the
registered volume controller.
- Everything is still @hidden, no api impact.

Bug: 19260237
Change-Id: Ie1383f57659090318a7eda737fdad5b8f88737d4
/frameworks/base/core/java/android/provider/Settings.java
64d6e9ceec5967489547725ff77a00334f5fe3b5 12-Feb-2015 Svetoslav <svetoslavganov@google.com> Fix a reversed condition in the next alarm validator

bug:19361375

Change-Id: Ib5ac90503842aafd994423632fd1f463e49088a0
/frameworks/base/core/java/android/provider/Settings.java
683914bfb13908bf380a25258cd45bcf43f13dc9 15-Jan-2015 Svetoslav <svetoslavganov@google.com> Rewrite of the settings provider.

This change modifies how global, secure, and system settings are
managed. In particular, we are moving away from the database to
an in-memory model where the settings are persisted asynchronously
to XML.

This simplifies evolution and improves performance, for example,
changing a setting is down from around 400 ms to 10 ms as we do not
hit the disk. The trade off is that we may lose data if the system
dies before persisting the change.

In practice this is not a problem because 1) this is very rare;
2) apps changing a setting use the setting itself to know if it
changed, so next time the app runs (after a reboot that lost data)
the app will be oblivious that data was lost.

When persisting the settings we delay the write a bit to batch
multiple changes. If a change occurs we reschedule the write
but when a maximal delay occurs after the first non-persisted
change we write to disk no matter what. This prevents a malicious
app poking the settings all the time to prevent them being persisted.

The settings are persisted in separate XML files for each type of
setting per user. Specifically, they are in the user's system
directory and the files are named: settings_type_of_settings.xml.

Data migration is performed after the data base is upgraded to its
last version after which the global, system, and secure tables are
dropped.

The global, secure, and system settings now have the same version
and are upgraded as a whole per user to allow migration of settings
between these them. The upgrade steps should be added to the
SettingsProvider.UpgradeController and not in the DatabaseHelper.

Setting states are mapped to an integer key derived from the user
id and the setting type. Therefore, all setting states are in
a lookup table which makes all opertions very fast.

The code is a complete rewrite aiming for improved clarity and
increased maintainability as opposed to using minor optimizations.
Now setting and getting the changed setting takes around 10 ms. We
can optimize later if needed.

Now the code path through the call API and the one through the
content provider APIs end up being the same which fixes bugs where
some enterprise cases were not implemented in the content provider
code path.

Note that we are keeping the call code path as it is a bit faster
than the provider APIs with about 2 ms for setting and getting
a setting. The front-end settings APIs use the call method.

Further, we are restricting apps writing to the system settings.
If the app is targeting API higher than Lollipop MR1 we do not
let them have their settings in the system ones. Otherwise, we
warn that this will become an error. System apps like GMS core
can change anything like the system or shell or root.

Since old apps can add their settings, this can increase the
system memory footprint with no limit. Therefore, we limit the
amount of settings data an app can write to the system settings
before starting to reject new data.

Another problem with the system settings was that an app with a
permission to write there can put invalid values for the settings.
We now have validators for these settings that ensure only valid
values are accepted.

Since apps can put their settings in the system table, when the
app is uninstalled this data is stale in the sytem table without
ever being used. Now we keep the package that last changed the
setting and when the package is removed all settings it touched
that are not in the ones defined in the APIs are dropped.

Keeping in memory settings means that we cannot handle arbitrary
SQL operations, rather the supported operations are on a single
setting by name and all settings (querying). This should not be
a problem in practice but we have to verify it. For that reason,
we log unsupported SQL operations to the event log to do some
crunching and see what if any cases we should additionally support.

There are also tests for the settings provider in this change.

Change-Id: I941dc6e567588d9812905b147dbe1a3191c8dd68
/frameworks/base/core/java/android/provider/Settings.java
b10e33ff804a831c71be9303146cea892b9aeb5d 04-Feb-2015 Jorim Jaggi <jjaggi@google.com> Split up android.policy into framework.jar and services.jar 1/3

Change-Id: Ifd69f1f3dd308a7e17a1442e2f3950da8b03cec4
/frameworks/base/core/java/android/provider/Settings.java
cdfebd60fad097fa58d45f13104990cd323be61b 02-Feb-2015 Bryce Lee <brycelee@google.com> Make THEATER_MODE_ON a System API.

Bug: 19043538
Change-Id: Ibf0d6b45868ca90eb792a40c5d1b1395774486b8
/frameworks/base/core/java/android/provider/Settings.java
c0086ea9501a5c409364b1bbb0b27d5af6f205cf 28-Jan-2015 Bryce Lee <brycelee@google.com> am 263987f6: am 2a8ccd4b: am 1061652a: Merge "Revert "Make THEATER_MODE_ON setting a system api."" into lmp-mr1-dev

* commit '263987f6268439af69fcfa66a278103e1efe1343':
Revert "Make THEATER_MODE_ON setting a system api."
263987f6268439af69fcfa66a278103e1efe1343 28-Jan-2015 Bryce Lee <brycelee@google.com> am 2a8ccd4b: am 1061652a: Merge "Revert "Make THEATER_MODE_ON setting a system api."" into lmp-mr1-dev

* commit '2a8ccd4b1f82086f6e38ec32ad084306400dcf93':
Revert "Make THEATER_MODE_ON setting a system api."
034dc3839f2dced12d89e6ebbb93e6e288cfa9bf 28-Jan-2015 Bryce Lee <brycelee@google.com> Revert "Make THEATER_MODE_ON setting a system api."

This reverts commit 35dafda1b0357eb0f2eef766427a2b473967a918.

Change-Id: I76e72592791682e0dbee719fbd518962a1bdcd11
/frameworks/base/core/java/android/provider/Settings.java
293465a75c1346ae1c0e32570344fb9423177eea 28-Jan-2015 Bryce Lee <brycelee@google.com> am f2d5253b: am fdb8dff5: am d8cb4040: Merge "Make THEATER_MODE_ON setting a system api." into lmp-mr1-dev

* commit 'f2d5253bce5ef69cb6cb4da7697a228a47b55904':
Make THEATER_MODE_ON setting a system api.
f2d5253bce5ef69cb6cb4da7697a228a47b55904 28-Jan-2015 Bryce Lee <brycelee@google.com> am fdb8dff5: am d8cb4040: Merge "Make THEATER_MODE_ON setting a system api." into lmp-mr1-dev

* commit 'fdb8dff54cf9327089e5ee4d5bf461ef42020fcd':
Make THEATER_MODE_ON setting a system api.
35dafda1b0357eb0f2eef766427a2b473967a918 26-Jan-2015 Bryce Lee <brycelee@google.com> Make THEATER_MODE_ON setting a system api.

This will allow an unbundled home to continue accessing this property.

Bug: 19043538
Change-Id: I845a8726e617ca7b6f7f7347a0ac5aa0620d6658
/frameworks/base/core/java/android/provider/Settings.java
4e106cedfecd1f6026a79870c2e427853cba7491 15-Jan-2015 Dianne Hackborn <hackbod@google.com> Bring back voice interaction APIs.

Change-Id: I6039d7c0b188ac342441c56f7d19994b9a80ba17
/frameworks/base/core/java/android/provider/Settings.java
9dd16ebcf2a25c189a39b72847d3db2b1189cb4d 08-Jan-2015 Adrian Roos <roosa@google.com> LockPatternUtils clean up continued

- Deprecate Settings.Secure.LOCK_PATTERN_ENABLED
- Remove unused permanent lock out
- Disallow empty/null arguments to saveLockPattern and saveLockPassword
- Refactor repeated quality checks

Change-Id: I6f369eb60f8f6bb1e33384cd06534c713ab52e79
/frameworks/base/core/java/android/provider/Settings.java
230635efe7ffb09d6dc56bfd9193aa1d89c8a898 07-Jan-2015 Adrian Roos <roosa@google.com> Purge biometric weak and keyguard widgets

Bug: 18931518
Change-Id: I5da41908b1d6895a69f981e139f2d268327fafcd
/frameworks/base/core/java/android/provider/Settings.java
3ce2d52789d02529c58784e2e8b7e535d91fb719 26-Dec-2014 Elliott Hughes <enh@google.com> am f9f41951: am ee435b16: Merge "telephony: Update comments for preferred network mode"
automerge: 38cba11

* commit '38cba11ba98831b0d6a005b7929d49f52259c564':
telephony: Update comments for preferred network mode
38cba11ba98831b0d6a005b7929d49f52259c564 26-Dec-2014 Elliott Hughes <enh@google.com> am f9f41951: am ee435b16: Merge "telephony: Update comments for preferred network mode"

* commit 'f9f41951701f5e47b454b7c3f4e7d4654a9c4a3e':
telephony: Update comments for preferred network mode
ee435b16d89ee9cb65eead9ac7507693342c15b3 26-Dec-2014 Elliott Hughes <enh@google.com> Merge "telephony: Update comments for preferred network mode"
e099ab18e6b54abffd89791f847b810f2f1907fd 09-Jun-2014 Sungmin Choi <sungmin.choi@lge.com> telephony: Update comments for preferred network mode

Change-Id: I4718674ff73116cc6bbec4540c3450ed14663c0d
/frameworks/base/core/java/android/provider/Settings.java
1eb5ca609a02eaa6ddd86273e60f58782c10f42b 17-Dec-2014 Jeff Davidson <jpd@google.com> am 0b3718d6: Merge "Add global setting for ephemeral network timeout." into lmp-mr1-dev automerge: cc4f183
automerge: 38e8763

* commit '38e8763df55ebedcf65178f8acced806113af4a5':
Add global setting for ephemeral network timeout.
a20ca67d944a8a015206dcdec41eb87f55165358 16-Dec-2014 Jeff Davidson <jpd@google.com> Add global setting for ephemeral network timeout.

Bug: 18637384
Change-Id: I6bde3c9eef12caf2cc51c449abffc1c69f60c17f
/frameworks/base/core/java/android/provider/Settings.java
0bf20bea81a9d3218c0c10999a47efe3c30b2725 10-Dec-2014 Erik Kline <ek@google.com> am 34b3b53f: am 33cd463b: Merge "Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions." into lmp-mr1-dev automerge: 56d2e8f

* commit '34b3b53f9c21346282cb889363024fa4c7bb558d':
Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions.
902cc578a440eb957bc5ef387b8fd0f1c0640bff 09-Dec-2014 Jeremy Joslin <jjoslin@google.com> am d4753450: am c4b2ec1a: am 1edc73aa: Merge "Don\'t send the same PendingIntent more than once." into lmp-mr1-dev

* commit 'd4753450f37d88fec11d1405250529ca794ae70c':
Don't send the same PendingIntent more than once.
0cec63a2832d322ed2dd9345d211d1e02b0a9497 09-Dec-2014 Pavel Zhamaitsiak <pavelz@google.com> am 913c9895: am d89f0d3d: am b81ce34a: Merge "Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"" into lmp-mr1-dev

* commit '913c9895466c6749aa1c41b875d69d5de3e3b66b':
Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"
8f29dcfb53350cf687112ac79a806e4d34dfa22b 08-Dec-2014 Erik Kline <ek@google.com> Re-remove CONNECTIVITY_CHANGE_DELAY and supporting functions.

Since optimistic addresses are useable upon kernel notification
there is no need for this extra connectivity delay.

---

This functionality was originally submitted in ag/572619. Owing
to issues with bind()ing to optimistic addresses (see b/18609055)
this was reverted in ag/598673.

This reverts the revert. :-)

Bug: 17769720
Change-Id: Ibee490b2af72050693b6bd748193f51e312ca527
/frameworks/base/core/java/android/provider/Settings.java
7929484dbf0f6eda75641f8b965d3ed5fa1fed52 04-Dec-2014 Jeremy Joslin <jjoslin@google.com> Don't send the same PendingIntent more than once.

Fixing a bug where a NetworkRequest's PendingIntent can be sent more
than once when networks are rematched before the intent completes.

Added a small delay before removing the request to give the receiving
client an opportunity to put in its own request. The delay value is
configurable via Settings.Secure.

Bug: 18614074
Change-Id: Iac7c5e5a04f42f2b6794e9e22349cc631bebeab7
/frameworks/base/core/java/android/provider/Settings.java
e660e27603e93579b645544ceb9606ded81cea82 05-Dec-2014 Erik Kline <ek@google.com> Revert "Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev"

This is the revert of ag/572619.

This reverts commit 9261d9d64548f0221de50eb99f3675488a4176a4, reversing
changes made to 32b61ab28f54e5b00f472b2166f9b1100375e4ff.

Bug: 18609055
Bug: 17769720
Change-Id: I122eba200f2071d4e5777ec34c1d04fb567345a8
/frameworks/base/core/java/android/provider/Settings.java
0f3c0704c5d5e92f6ccb75404982fa7587ac364d 04-Dec-2014 Erik Kline <ek@google.com> am 180a30aa: am 95b5ca90: am 9261d9d6: Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev

* commit '180a30aa57e0790453944533dc442704f7596f65':
Remove CONNECTIVITY_CHANGE_DELAY and friends.
9261d9d64548f0221de50eb99f3675488a4176a4 04-Dec-2014 Erik Kline <ek@google.com> Merge "Remove CONNECTIVITY_CHANGE_DELAY and friends." into lmp-mr1-dev
64d3c1402aa6abfc9772e8c93a7f0a5b9a9c6c9d 03-Dec-2014 Etan Cohen <etancohen@google.com> am a2ab707c: am 89b55fc5: am 7ab0ad1f: Add a global override for VoLTE calls (which leaves user setting in place)

* commit 'a2ab707c87b8129873078dcea8effdd970de67c3':
Add a global override for VoLTE calls (which leaves user setting in place)
7ab0ad1ffe858dbf82d5c3b540c02488f31c51f0 24-Nov-2014 Etan Cohen <etancohen@google.com> Add a global override for VoLTE calls (which leaves user setting in place)

Bug: 18446228
Change-Id: I7d07f066e5933c2aeecf9222bb54da69975099bc
/frameworks/base/core/java/android/provider/Settings.java
d198c3269aac50397c4f284feb99c524a1c8434c 01-Dec-2014 Narayan Kamath <narayan@google.com> am 53651b99: am ff45e7df: am 1d184ace: resolved conflicts for merge of 7377998d to lmp-mr1-dev

* commit '53651b9982f53236b767d766e85ec0ce3acc6f0f':
Be increasingly aggressive about fstrim if it isn't being run
1d184acefa7105592134edebf7de4d77843d5791 27-Nov-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of 7377998d to lmp-mr1-dev

Change-Id: I21870e241de7d992e97d7b91e0058f85b5a25fbe
7377998dac67ce8d486e11b9bd2f159fe0ca501d 26-Nov-2014 Narayan Kamath <narayan@google.com> resolved conflicts for merge of a42f7c1d to lmp-sprout-dev

Change-Id: I8e53c9d7e0014b4ffc621c561b737aa2dae5460c
7265abe77a76f848a316640b5da106e882bdbc8a 21-Nov-2014 Christopher Tate <ctate@google.com> Be increasingly aggressive about fstrim if it isn't being run

The current heuristics depend on devices being alive at midnight+ in
order to run periodic background fstrim operations. This unfortunately
means that people who routinely turn their devices off overnight wind
up with their devices *never* running fstrim, and this causes major
performance and disk-life problems.

We now backstop this very-friendly schedule with an increasingly
aggressive one. If the device goes a defined time without a background
fstrim, we then force the fstrim at the next reboot. Once the
device hits the midnight+ idle fstrim request time, then we already
aggressively attempt to fstrim at the first available moment
thereafter, even if it's days/weeks later without a reboot.

'Available' here means charging + device idle. If the device never
becomes idle then we can't do much without rendering an in-use device
inoperable for some number of minutes -- but we have no evidence of
devices ever failing to run fstrim due to this usage pattern.

A new Settings.Global element (type 'long', called
"fstrim_mandatory_interval") is the source of the backstop time. If
this element is zero or negative, no mandatory boot-time fstrim will
ever be performed. If the element is not supplied on a given device,
the default backstop is 3 days.

Adds a new string to display in the upgrading dialog when doing
the fstrim. Note it is too late for this to be localized, but since
this operation can take a long time it is probably better to have
it show *something* even if not localized, rather than just sit there.

Bug 18486922

Change-Id: I5b265ca0a65570fb8931251aa1ac37b530635a2c
/frameworks/base/core/java/android/provider/Settings.java
5ed01f6427d9dccaa95bac8c02bd88b83897652b 19-Nov-2014 Amit Mahajan <amitmahajan@google.com> am bb35bbf1: am 6f10d1c3: am b22462c5: Merge "Adding new setting LTE_SERVICE_FORCED." into lmp-mr1-dev

* commit 'bb35bbf198201fc00858ea56cdf97eae8f2cfdbb':
Adding new setting LTE_SERVICE_FORCED.
4fea0923be8d961312908aded2f72011a044903c 18-Nov-2014 Amit Mahajan <amitmahajan@google.com> Adding new setting LTE_SERVICE_FORCED.

Bug: 18328639
Change-Id: Icbf9d7987d27af34cbe4ee1b4e9df19e139c2fc7
/frameworks/base/core/java/android/provider/Settings.java
47acc8f535107a7ed9fd98afc3b07d79a0f43604 18-Nov-2014 Dianne Hackborn <hackbod@google.com> am dde2ecc1: am 7ff92f42: am 9522055f: Merge "Add time estimates to batterystats dump." into lmp-mr1-dev

* commit 'dde2ecc118a56cd4100a29a1dd1c1697b6f56353':
Add time estimates to batterystats dump.
ad6a99b32a0d062c967019e5cd9858071a9c6617 18-Nov-2014 Dianne Hackborn <hackbod@google.com> Add time estimates to batterystats dump.

Also fix some java docs.

Change-Id: Ie705f236db6f06e34fa5581c20852e5c8f7c2c17
/frameworks/base/core/java/android/provider/Settings.java
5b7dbca7ca3dc82dc6267eead409e5a2a876c8c5 12-Nov-2014 Junda Liu <junda@google.com> am 829519df: Merge "Add HIDE_CARRIER_NETWORK_SETTINGS global setting." into lmp-mr1-dev automerge: 2eb5a5f automerge: 5716ebe

* commit '829519dfaab9f2c13492d97556a95300a6908ea4':
Add HIDE_CARRIER_NETWORK_SETTINGS global setting.
2eb5a5f727d4692b70b68cb4b1b7e31bf74f13a4 12-Nov-2014 Junda Liu <junda@google.com> Merge "Add HIDE_CARRIER_NETWORK_SETTINGS global setting." into lmp-mr1-dev
bbdc1c0e044a505d5a200963319a683e4ef1f967 07-Nov-2014 Junda Liu <junda@google.com> Add HIDE_CARRIER_NETWORK_SETTINGS global setting.

Also remove hidden APIs to get/set the preference.

Bug: b/17673255
Change-Id: I8957b0380bf617c953f6665cbfdcc77c3be78411
/frameworks/base/core/java/android/provider/Settings.java
0aba408a8148359a6a7505263f7a659e3e7fe2d6 07-Nov-2014 Ignacio Solla <igsolla@google.com> am ad87ec5b: am cf045ea8: am 803908b0: Merge "[WebView] Remove WEBVIEW_DATA_REDUCTION_PROXY setting." into lmp-mr1-dev

* commit 'ad87ec5bbaa911c364a1b9626c7e89de71e47552':
[WebView] Remove WEBVIEW_DATA_REDUCTION_PROXY setting.
803908b0db0139a2bc3eca2868cad67c9a274d97 07-Nov-2014 Ignacio Solla <igsolla@google.com> Merge "[WebView] Remove WEBVIEW_DATA_REDUCTION_PROXY setting." into lmp-mr1-dev
52eb811a441f6d9342e6cd8a039c02058eb55b2f 03-Nov-2014 Jason Monk <jmonk@google.com> am 8efeae7e: am 2e647efe: Merge "Move LOCK_TO_APP_EXIT_LOCKED from System to Secure" into lmp-mr1-dev automerge: 5c69f5b

* commit '8efeae7eb4da19bd3dcf1a5013e3011d50f2ca42':
Move LOCK_TO_APP_EXIT_LOCKED from System to Secure
2e647efe01dcdb82d2d7f8a23540ba6b690a95d6 03-Nov-2014 Jason Monk <jmonk@google.com> Merge "Move LOCK_TO_APP_EXIT_LOCKED from System to Secure" into lmp-mr1-dev
b9a7f37e71d1e75344c64cfe8e6f31be9da67153 31-Oct-2014 Amith Yamasani <yamasani@google.com> am 84df64d4: am 8079a812: Merge "Backup and restore battery saver trigger level" into lmp-mr1-dev automerge: 80e5f45

* commit '84df64d4009aa42ccca1bb4c4b03396fe441f990':
Backup and restore battery saver trigger level
94cfd9d7c42287c18bde29aa1ae34944eb448f45 31-Oct-2014 Jason Monk <jmonk@google.com> Move LOCK_TO_APP_EXIT_LOCKED from System to Secure

To prepare for controlling from settings.

While here, add lock to app settings to backups.

Bug: 16957435
Change-Id: I059140cd07a7a0d5ceb4e0bfe5e0176cb96629d3
/frameworks/base/core/java/android/provider/Settings.java
94005240ec21792b96e156f12c19a82d09e77e67 31-Oct-2014 Amith Yamasani <yamasani@google.com> Backup and restore battery saver trigger level

Bug: 17836827
Change-Id: Icb6bf071a0966a8fb9a03fadd0f8b3daa5ad11f8
/frameworks/base/core/java/android/provider/Settings.java
c418f07993d2aa91010f226cede47b9e62a4faa8 31-Oct-2014 Ignacio Solla <igsolla@google.com> [WebView] Remove WEBVIEW_DATA_REDUCTION_PROXY setting.

BUG:18152150

Change-Id: Id5c788bc766d7c45c3f9c96837d5b2824a601f9e
/frameworks/base/core/java/android/provider/Settings.java
8e3f4fbdf6e562f4f5731b98e327e8af33b75c4c 22-Oct-2014 Erik Kline <ek@google.com> Remove CONNECTIVITY_CHANGE_DELAY and friends.

Once optimistic addresses become useable upon kernel notification
there will be no need for a connectivity delay.

This change requires kernel changes like:
https://android-review.googlesource.com/#/c/109934

Bug: 17769720
Change-Id: I8510c540aa655aad6a82ee322d591331357ee272
/frameworks/base/core/java/android/provider/Settings.java
57177c75ea83755a31d3e2fbca2d5c3547b285eb 31-Oct-2014 John Spurlock <jspurlock@google.com> am 68fdbd01: am a0adb0bd: am fc2b9039: Merge "Unhide Settings.ACTION_BATTERY_SAVER_SETTINGS." into lmp-mr1-dev

* commit '68fdbd01798dad380581d02c5b9d229aecb10ef0':
Unhide Settings.ACTION_BATTERY_SAVER_SETTINGS.
e9b498fb41476bd44e8fcb80c5099c33ded3f26d 30-Oct-2014 Chris Wren <cwren@android.com> am e52d0d68: am 402152d6: Merge "Reveal notification listener settings APIs." into lmp-mr1-dev automerge: b3239da

* commit 'e52d0d68c4c192340ef48a2c750babfd48c090e3':
Reveal notification listener settings APIs.
734666657f1bb8a74b62cbf13758d8ac5ac98b1d 30-Oct-2014 John Spurlock <jspurlock@google.com> Unhide Settings.ACTION_BATTERY_SAVER_SETTINGS.

Bug: 18186862
Change-Id: I685934118a53ba2135eaf0872564e58069de2a30
/frameworks/base/core/java/android/provider/Settings.java
402152d6736839d89a9179cd4371201020074797 29-Oct-2014 Chris Wren <cwren@android.com> Merge "Reveal notification listener settings APIs." into lmp-mr1-dev
8326a8a9453be1fa401f187994f7c8fabe68e489 22-Oct-2014 Chris Wren <cwren@android.com> Reveal notification listener settings APIs.

Fix the value of the ACTION_NOTIFICATION_LISTENER_SETTINGS constant
to be the actual value to which the settings app responds.

Bug: 10023397
Change-Id: I80a0ff76406a3b0b893793f9a63ffa563dae103b
/frameworks/base/core/java/android/provider/Settings.java
6007da7b73e9f8a058ef160e79a568c9c30bb2db 28-Oct-2014 Jeff Sharkey <jsharkey@android.com> am a148a0dc: Merge "Drop DEV network stats to save RAM." into lmp-mr1-dev automerge: 49c1527 automerge: a5921b9

* commit 'a148a0dc667ac35599a35a46f2232f0128269d78':
Drop DEV network stats to save RAM.
5274dcc85dc18b524b729ae9a2148c651dc1a654 24-Oct-2014 Jeff Sharkey <jsharkey@android.com> Drop DEV network stats to save RAM.

We migrated to pure XT stats a long time ago, so we no longer need
to keep the DEV stats cached in RAM. This saves ~250KB on a typical
device.

Bug: 18118003
Change-Id: I3d84ba47073fa3500454784afc956c8e53404492
/frameworks/base/core/java/android/provider/Settings.java
7c06f9b5e1b6dc46d5415f39f06e92e0d65a8217 24-Oct-2014 Pavel Zhamaitsiak <pavelz@google.com> am 34e4dc4b: am b01a5979: am c8a09d54: Merge "Separate VoLTE and VT configurations to enable devices/carriers to have VoLTE without VT." into lmp-mr1-dev

* commit '34e4dc4b09045c882ad7a30b26d78d787d74c264':
Separate VoLTE and VT configurations to enable devices/carriers to have VoLTE without VT.
e41a9cf9f71785ec3271f11265cffb4438b26f91 22-Oct-2014 Etan Cohen <etancohen@google.com> Separate VoLTE and VT configurations to enable devices/carriers to have VoLTE without VT.

Change-Id: I233b003af57a550f2f51b12213700ab0451039e5
/frameworks/base/core/java/android/provider/Settings.java
fb9ac4c2d358278f9387b9518d5d1321f20c0e8c 23-Oct-2014 Bryce Lee <brycelee@google.com> am 1d918403: am 477fa012: am 49cb52e2: Merge "resolved conflicts for merge of f03ba4f1 to lmp-mr1-dev" into lmp-mr1-dev

* commit '1d9184035d5d74c850d688cd269e97ea3f77953e':
[Theater Mode] framework implementation through global setting
fb1cf36aa739da5dbebc64e61900e9ff96134e26 23-Oct-2014 Bryce Lee <brycelee@google.com> resolved conflicts for merge of f03ba4f1 to lmp-mr1-dev

Change-Id: I9e4cabd2d8a34a348ae888f096c8d3c35226e960
584a44517950204a04ef01345be70b33d8ba43f9 22-Oct-2014 Bryce Lee <brycelee@google.com> [Theater Mode] framework implementation through global setting

Bug: 17684570
Change-Id: I64a9c9c0620049cdfcca0150648fa201281f7178
/frameworks/base/core/java/android/provider/Settings.java
0841572b99205680cb1366636af8182424edbb8a 16-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> am c2814749: am 4798bca2: am 0499bb5d: IMS:change enhanced 4g setting to store in setting db.

* commit 'c28147490a0f7c5cceaaa4d0746ffa0d4842e8b6':
IMS:change enhanced 4g setting to store in setting db.
0499bb5de45cf5542db7ac42406cd856d3386f1f 10-Oct-2014 Libin.Tang@motorola.com <w16529@motorola.com> IMS:change enhanced 4g setting to store in setting db.

Change-Id: I2ec37478e2bef5b15b157e490f75d5dda5f97117
/frameworks/base/core/java/android/provider/Settings.java
97f66f6754fc1dd574b3aaca634004aaea712a3e 15-Oct-2014 Jim Miller <jaggies@google.com> am 26e4de2f: am 1a02efb1: am ce711c6d: am 09ba0da8: am e7c32555: Merge "Add a checkbox option to \'require password to decrypt\'" into lmp-dev

* commit '26e4de2ff11c6e055a163fe20249e7f202629cb3':
Add a checkbox option to 'require password to decrypt'
ce711c6d57732c3582da0828c0361f55381f4223 15-Oct-2014 Jim Miller <jaggies@google.com> am 09ba0da8: am e7c32555: Merge "Add a checkbox option to \'require password to decrypt\'" into lmp-dev

* commit '09ba0da87fa56eac91da5eb2d0a20b7799df66d5':
Add a checkbox option to 'require password to decrypt'
6848dc8e3b54fb27047836d8026c4c9971754607 14-Oct-2014 Jim Miller <jaggies@google.com> Add a checkbox option to 'require password to decrypt'

Fixes bug 17881324

Change-Id: Id94e593a172d686339c736473226fece1bb749ee
/frameworks/base/core/java/android/provider/Settings.java
084cd5cdf4c37adba8f89b03eeeab13b2523097e 11-Oct-2014 Tom O'Neill <tomo@google.com> am 2a30585a: am 58d0b623: am 1db0cce0: Merge "Fix a race where NLP consent dialog can be shown unnecessarily" into lmp-mr1-dev

* commit '2a30585a4fa086089478d5068fbf354a8a967c19':
Fix a race where NLP consent dialog can be shown unnecessarily
7731a99807728298cd4bbfdc8b577183199bc47e 09-Oct-2014 Tom O'Neill <tomo@google.com> Fix a race where NLP consent dialog can be shown unnecessarily

- Bug: 17908111

Change-Id: If94570861f38b922478d490599ab02cfb86adea6
/frameworks/base/core/java/android/provider/Settings.java
fcdd68709296ab084436b34b381578d57c5d3f87 02-Oct-2014 Erik Pasternak <roboerik@android.com> am c7cbbe8e: am d68362b9: am c6646b0c: am 739bf81d: am 4d82c46e: Merge "Implement auto-sleep functionality." into lmp-dev

* commit 'c7cbbe8e82b2dda4889a6663a83586f1e6759282':
Implement auto-sleep functionality.
4299ae9f50483596fcf55b07b4f1f169234524a4 02-Oct-2014 Hui Shu <hush@google.com> am 0fdb1651: am 724fe35e: am 5f961157: am 888fd710: am 4e0ad44f: Merge "Revert "Remove WebView DRP Setting from Developer Settings"" into lmp-dev

* commit '0fdb165193a032ced17c319eebe6a3b2617b2852':
Revert "Remove WebView DRP Setting from Developer Settings"
9db0d62d96243447960e0d9732e8033ba183b5ce 02-Oct-2014 Hui Shu <hush@google.com> am 30c284fc: am 03e73745: am 7ce8d27f: am 9cd616e0: am aee5c9e7: Merge "Remove WebView DRP Setting from Developer Settings" into lmp-dev

* commit '30c284fc460218652ffa89aed3da41225ad9b7cc':
Remove WebView DRP Setting from Developer Settings
05af6adb8d4fd5ea069c9aead5a877da9085daa8 01-Oct-2014 Jeff Brown <jeffbrown@google.com> Implement auto-sleep functionality.

Added a new SLEEP_TIMEOUT setting which governs how long the device will
remain awake or dreaming without user activity. By default this
value is set to -1 which maintains today's existing behavior.

We basically represent the time we are allowed to be dreaming as a new
kind of user activity summary state called DREAM, similar to BRIGHT
and DIM. When the sleep timeout expires, the state is cleared and
the dream ends.

Bug: 17665809
Change-Id: I59aa7648dcec215f1285464fc1134934a09230e5
/frameworks/base/core/java/android/provider/Settings.java
2267177279326b6d499830a2d177eacff6ea50a8 01-Oct-2014 Hui Shu <hush@google.com> Revert "Remove WebView DRP Setting from Developer Settings"

This reverts commit eb487c63017ae5cb0f3f35bf8b17c5f3bbb0f456.

Change-Id: Ie38a24efe2ea015b971cb0a05eca321299898538
/frameworks/base/core/java/android/provider/Settings.java
eb487c63017ae5cb0f3f35bf8b17c5f3bbb0f456 01-Oct-2014 Hui Shu <hush@google.com> Remove WebView DRP Setting from Developer Settings

BUG: 17730990
Change-Id: Ic4fde9affb2f887329d6b3d2dbe8945959c016d8
/frameworks/base/core/java/android/provider/Settings.java
d42c1f40225d3701d859ab0dda857d3cf86a5614 26-Sep-2014 Michael Wright <michaelwr@google.com> am 3f0da0bc: am 7d766833: am b5344ce5: am 57bb094b: am 233bbabf: Merge "Specify a device identifier for keyboard layout notification." into lmp-dev

* commit '3f0da0bcb07ed1c7a544cc3cd88b084a42044295':
Specify a device identifier for keyboard layout notification.
c93fbd1fae3d461f2f8a7c039b15f953ed6a8b50 23-Sep-2014 Michael Wright <michaelwr@google.com> Specify a device identifier for keyboard layout notification.

Bug: 17614683
Change-Id: If53489b09212bfa487d7dc3a7f9b000731d949ac
/frameworks/base/core/java/android/provider/Settings.java
056c6d0e9535d380f23f519880dd87588756e334 12-Sep-2014 Julia Reynolds <juliacr@google.com> am b5f388f8: am a098030f: am 086bf8e1: Merge "Allow device owners to update LOCATION_MODE." into lmp-dev

* commit 'b5f388f8f6b94dae5b8a4d4eb68316d52df4cdcd':
Allow device owners to update LOCATION_MODE.
d86734b4695a92359ed38d6053ed1ce16a470634 11-Sep-2014 Julia Reynolds <juliacr@google.com> Merge "Allow device owners to update LOCATION_MODE." into lmp-dev
b6b356c07e92b4d01596be297575dd27d6a25b9e 11-Sep-2014 Adrian Roos <roosa@google.com> am c52a9597: am 99006f6c: am be125380: Merge "Add system trust agents on first boot or when adding user" into lmp-dev

* commit 'c52a95973ebacd5afcd6b2ae4937983726493d25':
Add system trust agents on first boot or when adding user
3870d451f7d3913a05ffa144d03167bde9221adb 05-Sep-2014 Adrian Roos <roosa@google.com> Add system trust agents on first boot or when adding user

While we're in there also call listeners when they're added
so they know the state immediately.

Bug: 17258031
Change-Id: I5f1186314795f3fafd78e1b3e2d5102cdaec65d6
/frameworks/base/core/java/android/provider/Settings.java
82735bcb1400cb5ab2da763a236a55927d87ab00 04-Sep-2014 Julia Reynolds <juliacr@google.com> Allow device owners to update LOCATION_MODE.

Bug: 17388933
Change-Id: If3267aa52c2611cf764a19bee019c312f6ebf5d1
/frameworks/base/core/java/android/provider/Settings.java
392f24dc8d2a20a8cf5c302528b4c7363ef3da3f 02-Sep-2014 Tyler Gunn <tgunn@google.com> am 51023e0e: am a8c7d1bc: am 78c0d4ab: Merge "Remove "ask each time" SIP call setting. (1/2)" into lmp-dev

* commit '51023e0e394d33773a4dd4650190fd1b41131303':
Remove "ask each time" SIP call setting. (1/2)
43f75b4db15dc6f7bc2f8a4afedeefb51bab3779 02-Sep-2014 Dianne Hackborn <hackbod@google.com> am 347a8167: am 4e784a50: am 4b9a934c: Merge "Hide the interaction part of VoiceInteractionService." into lmp-dev

* commit '347a81674350d3848e513f678cbf689074b935fd':
Hide the interaction part of VoiceInteractionService.
4b7498d81fd6bd44eeb77a05d7c3ceccf155ea01 02-Sep-2014 Tyler Gunn <tgunn@google.com> Merge "Remove "ask each time" SIP call setting. (1/2)" into lmp-dev
76a65d5f00679e3a4f40c9509213c49990d60a1c 02-Sep-2014 Dianne Hackborn <hackbod@google.com> Merge "Hide the interaction part of VoiceInteractionService." into lmp-dev
d7c0395d26694c594c3e64b16ab647c971aeb422 30-Aug-2014 Dianne Hackborn <hackbod@google.com> Hide the interaction part of VoiceInteractionService.

Also the ability to start voice activities is turned off,
though for testing purposes it can be turned back on with a system
property.

Change-Id: I867704d32c53beeb851ceea9b45c28bf5c01ef61
/frameworks/base/core/java/android/provider/Settings.java
2c830a2905b07639984499529f9a19aeb779a539 02-Sep-2014 Tyler Gunn <tgunn@google.com> Remove "ask each time" SIP call setting. (1/2)

1. Removed setting from Settings.System class.
2. Added settings database migration step to change "SIP_ASK_ME_EACH_TIME"
to "SIP_ADDRESS_ONLY" as the "ask me each time" option no longer makes
sense given the new phone accounts settings.

Bug: 17321422
Change-Id: I3df1be4fcda44f2097c49af44508ac1fce72a24b
/frameworks/base/core/java/android/provider/Settings.java
d6c6cd80f063ff08ceeed123cc98baf0d3cebe9f 02-Sep-2014 Chris Wren <cwren@android.com> am 7c528397: am a69ad7a3: am 7d0a2a7f: Merge "Disable lockscreen notifications for secure users on upgrade." into lmp-dev

* commit '7c528397b54ca5b6cb865e7ba37754f3a831830c':
Disable lockscreen notifications for secure users on upgrade.
4775109ec1e08092befa836078ecc76eee773e33 29-Aug-2014 Chris Wren <cwren@android.com> Merge "Disable lockscreen notifications for secure users on upgrade." into lmp-dev
cd8f4f71fc75b4f57d21c4e9f80f1107101ca369 28-Aug-2014 Chris Wren <cwren@android.com> Disable lockscreen notifications for secure users on upgrade.

Add a notification for those users that teaches them how to re-enable
the notifications.

Bug: 15934899
Depends-On: Ie0bcc207c4f331def207e588bbad36b8986fe114
Change-Id: I4a169e268042cfcaa4ad80cdf205904f9c90e76d
/frameworks/base/core/java/android/provider/Settings.java
5fd5d461d2ab2746f1833ff0419de04c4d71f4d2 28-Aug-2014 Julia Reynolds <juliacr@google.com> am e7472cec: am fa39108f: am d266bd44: Merge "Audio/Micrphone user restriction/multiuser updates." into lmp-dev

* commit 'e7472cec1f01174c6dfdbbbd1287dcde56c1a21e':
Audio/Micrphone user restriction/multiuser updates.
b53453fae037d67e421011936c8fdffe7ba43922 22-Aug-2014 Julia Reynolds <juliacr@google.com> Audio/Micrphone user restriction/multiuser updates.

1. Persist microphone mute state.
2. Set mute state for correct user.
3. Check for settings restrictions as the correct user.

Bug: 17177502
Bug: 16701642
Change-Id: Id8b6cd90c5caceb67fbec862f90aac7ec7a00b3c
/frameworks/base/core/java/android/provider/Settings.java
e9c13a60c0a32cec42543611f1122547cc609869 26-Aug-2014 Dianne Hackborn <hackbod@google.com> am 11bba84c: am f1bb15d2: am 55953caa: Merge "Fix issue #16311398: Limit number of documents a process can open" into lmp-dev

* commit '11bba84c2da1c30e0d3b67456c04995d16a5db52':
Fix issue #16311398: Limit number of documents a process can open
89ad456ea49cb62615ebdcac83a2515743bbe5fa 25-Aug-2014 Dianne Hackborn <hackbod@google.com> Fix issue #16311398: Limit number of documents a process can open

In application processes, monitor for when we start getting close
to the Dalvik heap limit, and ask the activity manager to try to
prune old activity instances in that case.

Add an explicit API for apps to ask that they have their own
activity instances cleaned up, if they want.

Fix some bugs in launching activities that were not correctly
applying the "multi task" behavior in the appropriate situations
of document-centric recents.

Clean up the activity manager's process removal code to all share
a common path.

Add a new "Spam" option to ActivityTests, which continually creates
new tasks, checking that the activity manager will now prune old
tasks rather than letting the app run out of RAM.

And while I was was doing this, I found problems with the path
for bringing an empty task to the foreground -- it could make
a new task instead of re-starting the root activity in the
existing task. This is fixed, and some code in the recents
UI for working around the bug is removed.

And as long as I am doing that, we now have nice hooks in to
the activity manager for AppTask to give some APIs for better
managing the task, so add those along with more tests for these
APIs in ActivityTests.

We should look at also having the activity manager try to prune
old tasks when it sees app processes being killed, to better balance
memory use across multiple processes when some processes may host
many documents. That however is for another CL...

Change-Id: I2bb81c3f92819350c868c7a7470b35817eb9bea9
/frameworks/base/core/java/android/provider/Settings.java
c8600f9f123d3d954e11096bf03e3d79f2944c28 21-Aug-2014 Jaewan Kim <jaewan@google.com> am fc2dccca: am 48f09811: am 1ca0c4f0: Merge "TIF: Accept any character for custom label." into lmp-dev

* commit 'fc2dcccab58adf2fb6a750e499cec42180806cb2':
TIF: Accept any character for custom label.
c616bcc5cc994303bbd6f5e6111e0609c34b27b8 21-Aug-2014 Kenny Guy <kennyguy@google.com> am c18eec1c: am 676fedb0: am 87c29bd1: Merge "Replicate text and sounds settings for managed profile." into lmp-dev

* commit 'c18eec1c2848c7fab2693de7138034de316eb0fb':
Replicate text and sounds settings for managed profile.
edaece1f30290ac51b478908c80ce24211614ec6 21-Aug-2014 Jaewan Kim <jaewan@google.com> Merge "TIF: Accept any character for custom label." into lmp-dev
f0e530e4eb1d4af7df76fa8d8e75e6783d6e7c29 21-Aug-2014 Jaewan Kim <jaewan@google.com> TIF: Accept any character for custom label.

Bug: 16874696
Change-Id: Idc42853ea7f4b12a2eda1f45319bc31ee1a8c6b7
/frameworks/base/core/java/android/provider/Settings.java
6460657d0eed0d3a011e9cb273724d3b1f13f13a 21-Aug-2014 Kenny Guy <kennyguy@google.com> Replicate text and sounds settings for managed profile.

Replicate touch sound / vibrate setting and show password
setting between managed and parent user.

Bug: 17064707,17157511
Change-Id: I70ea9f2ac57ba5a8f9619b21eb7adad91011d733
/frameworks/base/core/java/android/provider/Settings.java
611f8f17f333f7702cd8c60e2f4908ae306a02db 19-Aug-2014 Jon Miranda <jonmiranda@google.com> Merge "Exposes style and theme data, adds developer option." into lmp-dev
836c0a8b949d71293c996761691e065f0651acef 11-Aug-2014 Jon Miranda <jonmiranda@google.com> Exposes style and theme data, adds developer option.

Adds support for a String[] return type in ViewDebug; and in addition to that,
the hasAdjacentMapping method can use the String array as means to map a key to
its value.

Adds DEBUG_VIEW_ATTRIBUTES to Settings so that the heavy per-view
computations only affect those who opt in. This setting is used in
CoreSettingsObserver to avoid impacting start time.

Change-Id: I8f507e4e5361414c30d247e8d9815205feb5e91f
/frameworks/base/core/java/android/provider/Settings.java
468fef687031f0d4f050bb001392fffc6ccf2c4b 19-Aug-2014 Michael Wright <michaelwr@google.com> Merge "Persist Show IME option." into lmp-dev
7b5a96ba8364d5c180780b2f878f5a2b949cfdac 10-Aug-2014 Michael Wright <michaelwr@google.com> Persist Show IME option.

Add a new setting to persist whether to show the IME when a hard
keyboard is connected.

Bug: 14066881
Change-Id: I2237ded850a0d4ab43ca441d0b7df13e0958e630
/frameworks/base/core/java/android/provider/Settings.java
b135d06cb83db03b1328b7a82f064de7868fb16f 20-Aug-2014 Jeff Brown <jeffbrown@google.com> Remove incomplete media router API. (DO NOT MERGE)

Change-Id: I310fadafb5a6b8190a32e5d87f3e1823c87bcef7
/frameworks/base/core/java/android/provider/Settings.java
49e057d7eedb44f5397781254acab4e0ef08a9cf 13-Aug-2014 Adrian Roos <roosa@google.com> Play "device trusted" sound when onTrustInitiatedByUser fires

Bug: 16840500
Change-Id: I73fbe5c2cff665ccb637abb9039d57f377d9df53
/frameworks/base/core/java/android/provider/Settings.java
90f58b4447e60c887e2f96be0ff186c23debad1d 16-Aug-2014 Dianne Hackborn <hackbod@google.com> Merge "Make sure we initialize to enable the default voice interaction service." into lmp-dev
16ec0808b5c19f8f33cdacb7b2e444eebfae7d21 16-Aug-2014 Dianne Hackborn <hackbod@google.com> Make sure we initialize to enable the default voice interaction service.

We weren't taking care of the case of an upgrade to L. The main
change here is that the voice interaction service setting now has
an empty string when the user has explicitly said they don't want
one, so when it is null we will initialize it to its default.

Change-Id: Icdd30b4f09498f8928cea759a64628bd43bc5d0e
/frameworks/base/core/java/android/provider/Settings.java
cab3eb0c0b29d8c4b58652c40687a5a4309f94ef 15-Aug-2014 Jeff Davidson <jpd@google.com> Merge "Fix default scorer provisioning." into lmp-dev
4f7e2e334e4ca5f1a67baf4bdd40cd080b954161 15-Aug-2014 Amith Yamasani <yamasani@google.com> Copy certain settings to the managed profile

All reads of those specific settings will go to the primary user.
Inserts to primary also go to managed profiles in order to notify
any observers.

This enables Location settings to be shared by both profiles.
Also some other settings related to IME and Accessibility since
those services are shared across the profiles.

Bug: 16457210
Change-Id: Ib8fd697b5c78027fcbaf245d82dda5e6d6aab4f0
/frameworks/base/core/java/android/provider/Settings.java
56f9f73a5aad38aa777ec9a42c859e687f2d2af1 15-Aug-2014 Jeff Davidson <jpd@google.com> Fix default scorer provisioning.

Use Settings.Global instead of SharedPreferences (which don't work) to
track whether we've run the one-time provisioning step of activating
the build-time configured default scorer.

Bug: 16980605
Change-Id: I093cdd6f4f1110960078a186191c4e02b5543d6a
/frameworks/base/core/java/android/provider/Settings.java
34cc4db180c20569e62db5860c0b206be65b5117 13-Aug-2014 Glenn Kasten <gkasten@google.com> Move setting to disable automatic USB routing

This moves the setting from System to Secure per review.

Bug: 16381952
Change-Id: I2497ca66b4f346839490c29295528fac70e94494
/frameworks/base/core/java/android/provider/Settings.java
a3fb40d5f492825bb86769f541620baca5616e05 13-Aug-2014 Dianne Hackborn <hackbod@google.com> Add 560dpi, and some other stuff.

Like new settings actions for some of the new settings panels.
And fix voice interaction services so they require a recognizer.
And tweak array map doc to be correct.

Blah blah blah.

Change-Id: Ib5e66b574b10e7b3fa39723b21046a74e6ead204
/frameworks/base/core/java/android/provider/Settings.java
b8850040c447236f071b407b9c116bbd400e1536 09-Aug-2014 Barnaby James <bjames@google.com> Remove constants for VOICE_CONTROL_ZEN_MODE.

Change-Id: I197d68e66d9a1b197e7c35fd140101458cf5bfc7
/frameworks/base/core/java/android/provider/Settings.java
4d933a0ef0b436dc2d1dc79ef7ce4a997616929b 08-Aug-2014 Dongwon Kang <dwkang@google.com> TIF: introducing TvInputSettings for put/getting user preferences from Settings.

Reference:
- Settings.Secure.ENABLED_INPUT_METHODS
- InputMethodSettings

Bug: 16876078
Change-Id: I72c1770517052188694f21c10da383338edc8ee2
/frameworks/base/core/java/android/provider/Settings.java
5f5163548424ed3a4d7ea259848f82fb74aaf75d 22-Jul-2014 Glenn Kasten <gkasten@google.com> Add setting to disable automatic USB audio routing

Bug: 16381952
Change-Id: I7335ed4c3ec8d5f9cb9a9bd2a9d2f9e0f3a63c43
/frameworks/base/core/java/android/provider/Settings.java
52e5701eea2da526191e997f9df5c41ef1e1c938 23-Jul-2014 Dan Sandler <dsandler@android.com> Move LOCK_SCREEN_SHOW_NOTIFICATIONS to per-user Settings.Secure.

Bug: 15331132
Change-Id: Ia80ccb2cfdf60116bd50601e60ff131619eafcc5
/frameworks/base/core/java/android/provider/Settings.java
a4215ceb86fbae3bcb40c4bd3b924e2b71cf50b6 04-Aug-2014 John Spurlock <jspurlock@google.com> Doze: Add a user opt-out setting.

When devices are configured with a doze component, the user
now has the option of disabling doze mode with a secure setting.

Bug:16703536
Change-Id: Ieab6ee8d2acf54580b86fb16e9d77b52080fb3b1
/frameworks/base/core/java/android/provider/Settings.java
783645e99f909ffc7a2d5d2fca9324cc0e9b7362 28-Jul-2014 Jae Seo <jaeseo@google.com> TIF: Merge TvParentalControlManager into TvInputManager

This change addresses the following API council feedback.

TvParentalControlManager:
-- Replace the listener interface with a broadcast Intent with well-known
action, something like ACTION_BLOCKED_RATINGS_CHANGED.
-- TvParentalControlManager goes away, and two remaining methods move to
TvInputManager.

== Implementation changes ==
-- The user-selected rating preferences should be stored in an XML file, and
loaded at boot by your internal system service. It should _not_ be stored in
a Secure/Global setting.

Bug: 16542165
Change-Id: I278df963576652ec9163a66c1ef99419fcdb36c2
/frameworks/base/core/java/android/provider/Settings.java
2b0e09c59f894b7f49618da142e3af5cfd014ded 27-Jul-2014 John Spurlock <jspurlock@google.com> Settings: Constants for notification settings.

Bug:16208321
Change-Id: Iaf18dfc2edda9d80553f02ea0a74236230f89079
/frameworks/base/core/java/android/provider/Settings.java
da466e1e91196f1fcad8b97f83e62829d58b179d 26-Jul-2014 Amith Yamasani <yamasani@google.com> am 8a8c5f4d: am 7ef87d4d: am 0a4e461e: Hidden global setting to allow adding users from lockscreen

* commit '8a8c5f4d305d0dad0f051af32914b07012bfc6a4':
Hidden global setting to allow adding users from lockscreen
23a0f0512afd26fcc10e94300cf86e6195ade87a 25-Jul-2014 Amith Yamasani <yamasani@google.com> Hidden global setting to allow adding users from lockscreen

This will be undefined/off by default. User has to explicitly
turn it on in the Settings->Users->menu.

Bug: 15760168
Change-Id: I204f28cee2b04832c42e8ec5ced960f6916bfe5a
/frameworks/base/core/java/android/provider/Settings.java
486c89842f76f53640aa84028ee2bcc1bbfa7e35 26-Jul-2014 John Spurlock <jspurlock@google.com> am 58981510: am cbdadc7d: am d5410ff7: Merge "Volume: Persist unsafe volume playback time." into lmp-dev

* commit '58981510296ed03f9deee0829461bfe76647996b':
Volume: Persist unsafe volume playback time.
aa5ee4d65f8788e2a0afcd198367450853fd72ac 25-Jul-2014 John Spurlock <jspurlock@google.com> Volume: Persist unsafe volume playback time.

Instead of warning after every reboot, remember the
playback time after a user confirmation and only
reset after the 20 hour playback threshold.

Bug:16543104
Change-Id: I783358d97b88302a28fe77a8eb88bcd338ef1c87
/frameworks/base/core/java/android/provider/Settings.java
301a072c3fae80c571146692c0e67132cfb54fcc 22-Jul-2014 Alan Viverette <alanv@google.com> am 3db52061: am f7b914b8: am a27cc3f4: Merge "Remove unused quick setting display preferences" into lmp-dev

* commit '3db52061967a14a2d197e8850160d5a0a6ec16dd':
Remove unused quick setting display preferences
06da1b1ceb4d043db65da808d62dd7d3ec5d8663 22-Jul-2014 Alan Viverette <alanv@google.com> Remove unused quick setting display preferences

BUG: 16303790
Change-Id: I0772228aac5a743b9780853c5825252c148b8b5c
/frameworks/base/core/java/android/provider/Settings.java
7bb09336983e97bc613e0c4316d9df3ea1ca4bf9 20-Jul-2014 Winson Chung <winsonc@google.com> am 01eca811: am c655f3a4: am 51b044a2: Merge "Add setting to guard the lock-to-app recents icon" into lmp-dev

* commit '01eca811404a02bcbfe01231d88fe8fa9ac57df3':
Add setting to guard the lock-to-app recents icon
56e09b42a0f1670970872bef611a8036904ad6bf 18-Jul-2014 Jason Monk <jmonk@google.com> Add setting to guard the lock-to-app recents icon

Lock-to-app (soon to be screen-pinning) will now only show up once
it has been enabled in settings.

Bug: 16378448
Change-Id: Ide333463f86310eacb7a1d8b6dc7b1aea8722713
/frameworks/base/core/java/android/provider/Settings.java
c2809b7597e566ac4bbb1faa87656bffc426b59d 18-Jul-2014 Jae Seo <jaeseo@google.com> am cdc49c6c: am b719bf57: am 3245f3d7: Merge "TIF: Add TvParentalControlManager" into lmp-dev

* commit 'cdc49c6c4a9e106b220b29a7da68141489a0d175':
TIF: Add TvParentalControlManager
3a96903be469d9f0af86704cb18456167c11765d 18-Jul-2014 Jinsuk Kim <jinsukkim@google.com> am 2fa30b74: am eff7b1af: am ba5ba7a2: Merge "Remove system audio output option for HdmiControlService" into lmp-dev

* commit '2fa30b74b14b07fa83c811da748cf66d48018c4c':
Remove system audio output option for HdmiControlService
fe61a67bb9a7b82d1fb29c349c9b0b0b245f8c52 18-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Merge "Remove system audio output option for HdmiControlService" into lmp-dev
54a463498316594ba7e0567db5d4f541a7a1e827 18-Jul-2014 Jae Seo <jaeseo@google.com> Merge "TIF: Add TvParentalControlManager" into lmp-dev
6057102dbb746593a7d59cf377c969b62e38c664 15-Jul-2014 Jae Seo <jaeseo@google.com> TIF: Add TvParentalControlManager

Each TV input service is now required to query the system whether the
user is allowed to watch the current program before showing it to the
user if the parental control is turned on, which can be checked by
calling TvParentalControlManager.isEnabled(). Whether the TV input
service should block the content or not is determined by invoking
TvParentalControlManager.isRatingBlocked() with the content rating for
the current program. Then the TvParentalControlManager makes a judgment
based on the user blocked ratings stored in the secure settings and
returns the result. If the rating in question turns out to be blocked,
the TV input service must immediately block the content and call this
method with the content rating of the current program to prompt the PIN
verification screen.

Each TV input service also needs to continuously listen to any changes
made to the parental control settings by registering a
TvParentalControlManager.ParentalControlCallback() to the manager and
immediately reevaluate the current program with the new parental control
settings.

Bug: 13172379
Change-Id: I8e1900d4b8d28c56798986d5c3906bd418ab97ac
/frameworks/base/core/java/android/provider/Settings.java
b7f22787ef9e9c35a2a46faa1407dab6aa9f57d2 17-Jul-2014 Chris Craik <ccraik@google.com> am 3e95764e: am b63869a6: Merge "Add accessibility text contrast setting" into lmp-dev

* commit '3e95764e68ea93918d455b8b2c08d9ff02dc36f8':
Add accessibility text contrast setting
48f35520931ce6eabeb02fe585155aedafc93a19 16-Jul-2014 Barnaby James <bjames@google.com> Add intents for setting airplane and zen mode by voice only.

Change-Id: I28a262da86eb102d1bd12265f96db0efec5db203
/frameworks/base/core/java/android/provider/Settings.java
55021797c637c5bd4d828b515b403a29d79ca274 16-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Remove system audio output option for HdmiControlService

Turned out it is not necessary to specify the audio output device
for system audio mode, as it will be chosen based on audio policy.

Change-Id: I611381d38bf188425f0833fe9d1f454400f6c69a
/frameworks/base/core/java/android/provider/Settings.java
889fc94ffa70633e510e812b9da86723f4eee384 17-Jul-2014 Chris Craik <ccraik@google.com> Merge "Add accessibility text contrast setting" into lmp-dev
cce47eb580d666ead1f6095d1e3b65233592bbaa 17-Jul-2014 Chris Craik <ccraik@google.com> Add accessibility text contrast setting

b/14624452

Adds a feature which draws all text (in the HW accelerated standard
path) in a high contrast mode. Text is drawn at full alpha, and either
white or black (depending on its original color) with a starkly
contrasted outline beneath it.

Change-Id: I943f624b6367de35367cced3b2a8298f2bc62377
/frameworks/base/core/java/android/provider/Settings.java
febcb9d42bb6b458a3bbe59730476518f5a252d7 16-Jul-2014 Jason Monk <jmonk@google.com> Merge "Finalizing lock-to-app UX" into lmp-dev
eb7b94a3885b5e5030f681da4299a1e13b727403 15-Jul-2014 Amith Yamasani <yamasani@google.com> Introduce a public intent for launching Home settings

Bug: 16303152
Change-Id: I47e4461ae246aae7e31c8e06ca9370d6f04f61b4
/frameworks/base/core/java/android/provider/Settings.java
7779bf1ce8243d9f856c05db3cc5a37a8227a970 14-Jul-2014 Jason Monk <jmonk@google.com> Finalizing lock-to-app UX

Simplifications have happened to remove the enter/exit layouts
and just use a toast to notify the user, and the in text icons
have been removed.

The enter dialog now has a checkbox to see if the lockscreen
should be locked on exit (since it isn't in settings anymore).

Also updated strings.

Bug: 15836599
Change-Id: I3ab685bf3672c8a7f9d83d12e81f0099968cdfde
/frameworks/base/core/java/android/provider/Settings.java
1a937b04e63539cb1fab1bde601031d415c7156f 02-Jul-2014 Jeff Brown <jeffbrown@google.com> Initial draft of new MediaRouter APIs.

This patch introduces basic infrastructure for the new MediaRouter
API. The code is fully documented but incompletely implemented.
It is being submitted not to facilitate API reviews.

MediaRouter is a new class that applications used to discovery,
connect to, and control media devices as represented by media
destinations and their routes. Routes may offer a variety of
capabilities. This new class is a much more powerful replacement
for the existing MediaRouter.

MediaRouteService is a base class for creating media route services
which third-parties can implement to make routes available to
applications. It is analoguous to the MediaRouteProvider
infrastructure of the old media router support library but it
is designed to be integrated into the framework and enable a
variety of new usages such as remote display projection.

Stay tuned for more...

Change-Id: I2c7c6013d9f751d71e83697e7fc9e49bf7751fef
/frameworks/base/core/java/android/provider/Settings.java
b3d91779cb8cbb78d703095e6c880a83ab20133e 09-Jul-2014 Jinsuk Kim <jinsukkim@google.com> Global system settings for HdmidControlService

HDMI CEC/MHL related settings. All the settings are hidden, to be used
by the service and settings UI.

Change-Id: I1113aa5f77189db73acfa5fe36670a3cd621b1c1
/frameworks/base/core/java/android/provider/Settings.java
c42a1e1071937ae48b7aa5d6291a32c29078b74b 07-Jul-2014 Adrian Roos <roosa@google.com> Add AlarmClock API to AlarmManager

Adds a new kind of alarm that represents an alarm clock and
a way to query the next scheduled alarm clock.

Deprecates Settings.System.NEXT_ALARM_FORMATTED.

Bug: 14589952
Change-Id: I297eeeff36d07adcda010afac183d0f5ee37dc99
/frameworks/base/core/java/android/provider/Settings.java
a4c7524b685de8c85d90e1c0e495348527530a85 09-Jul-2014 Santos Cordon <santoscordon@google.com> unhide SHOW_REGULATORY_INFO intent.

Change-Id: If14e6599626f8570087fe56952ac3e9026ec9a94
/frameworks/base/core/java/android/provider/Settings.java
ae641c9ccd3f81214cee54a5f13804f1765187ad 01-Jul-2014 John Spurlock <jspurlock@google.com> Implement new volume UI design.

- Add segmented zen-mode picker to the rocker UI.
- Add a new "no interruptions" value to the zen setting.
- Implement expandable condition subpanel on the rocker UI.
- Remove the old circle&slash icons.
- Suppress alarm sounds if in "no interruptions" mode.
- Add warning re: alarms to the condition UI.
- Allow rocker UI to display over the keyguard.
- Remove Notifications QS tile.
- Realign volume rocker to the top of the screen.
- Add support for new "days" sleepMode.
- New icon policy rules for "volume" slot.
- New important icon (star).

Associated Settings change:
I6ed56791784968adfbd684f490dbbebed285a2dd

Bug:15831713
Change-Id: I35afe38646f04d2ba0dbac11c2c6356120a33694
/frameworks/base/core/java/android/provider/Settings.java
13a11d8ead63763dd6dab04b4d20932c798ea7f6 25-Jun-2014 Christoph Studer <chstuder@google.com> Merge "Remove ZEN notification visibility setting"
d1b67bcd4eb2927f23b214029ef4f334ef3549e3 24-Jun-2014 Christoph Studer <chstuder@google.com> Remove ZEN notification visibility setting

Bug: 15286335
Change-Id: I150b13c6c7272db596bee908822760f1fd82b7ed
/frameworks/base/core/java/android/provider/Settings.java
0c416391d38f1eac40216789d5277db897cf1a18 14-Jun-2014 Amith Yamasani <yamasani@google.com> New setting to suggest skipping first-use hints to users

Useful for temporary users like guests

Change-Id: I3799dbe46c0f153139540254c9fb023c4e7e05af
/frameworks/base/core/java/android/provider/Settings.java
858aef2942e3e2b5759a8bc27fc4f1954573da7b 21-Jun-2014 Jason Monk <jmonk@google.com> Merge "Add lock-to-app mode"
62515beee67307d8859beec521b7baedfa54b2b5 21-May-2014 Jason Monk <jmonk@google.com> Add lock-to-app mode

Added a dialog that shows when app has not been authorized by
DevicePolicyManager.isLockTaskAuthorized. This allows any app
to trigger lock-to-app mode. This same dialog is used when
startLockTaskOnCurrent is triggered by the recents long-press.

Can exit the mode by long-pressing recents again.

Keyguard is disabled when lock-to-app is active.

This CL also prevents apps from finishing when they are the root
task in a lock task TaskRecord.

Change-Id: Ib54d858e570cccf6bfd986958868e15f49bcef75
/frameworks/base/core/java/android/provider/Settings.java
cf9bc5e76d5ecb7e7b8ab3239035217dd93ddc8c 20-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "Add ability to set and get DefaultPhoneApplication"

This reverts commit 8bdb1ff3279ab9fde0499231580c76dc2533f3c4.

Change-Id: Idc6d64820c23a650e5f0113ed8ff0860c61ea6af
/frameworks/base/core/java/android/provider/Settings.java
2e024708b1447b2e7e139ee523673a4c3d589493 13-Jun-2014 Yorke Lee <yorkelee@google.com> Add ability to set and get DefaultPhoneApplication

Change-Id: I8aa8cb16965106175c538f36915a31cf4830cef2
/frameworks/base/core/java/android/provider/Settings.java
fb40dd4d00bd3361b2535bc866e6c21eadc52558 13-Jun-2014 Wink Saville <wink@google.com> Merge kwd to master

Add initial IMS and MSIM support from klp-wireless-dev-mirror

Change-Id: Idb607c0aa32f80fe4fe1539aedea7a221e9e7f04
/frameworks/base/core/java/android/provider/Settings.java
1e9c21871e81642669079cd290ef47818a3165bd 12-Jun-2014 Amith Yamasani <yamasani@google.com> Guest user first iteration

Setting for controlling if guest is enabled on the device.
Setting to hint to apps that they should skip showing first use clings.

User switcher handles creation and deletion of the guest user.
Some tweaks to the user switcher to show some feedback and make the icons
circular.

Change-Id: I187dc381d2ee7c372ec6d35e14aa9ea4dfbe5936
/frameworks/base/core/java/android/provider/Settings.java
439688cf3940571fde9063a02e5f539857b66142 12-Jun-2014 Dianne Hackborn <hackbod@google.com> am 6d758619: Merge "Implement control of auto power save mode." into lmp-preview-dev

* commit '6d758619d90a0dda7f1136dcd44d0ac02cdada7e':
Implement control of auto power save mode.
14272302a8b635bd8e9267c1411d0a7ef11bff45 11-Jun-2014 Dianne Hackborn <hackbod@google.com> Implement control of auto power save mode.

Follow the setting for auto power save mode in both
battery service and battery UI. Default level is 15 when
setting is not set; otherwise it is whatever the setting
gives, with 0 meaning auto battery save is off.

Change how we define the "turn off warn" level to be
an adjustment from the warn level, so we can have a good
value for whatever auto setting is set.

Fix power manager to never go in to power save mode when
plugged in, even if the user has manually turned it on.

Add new delete option to settings command, because I needed
it for testing.

Change-Id: I512b691df84399d50b8e751fd50732c6093ebe85
/frameworks/base/core/java/android/provider/Settings.java
d038666f3c5075fb87f3aa6b4c62b10e7495f42a 11-Jun-2014 John Spurlock <jspurlock@google.com> am 58b243c3: Merge "Saver: Shared resource update and new settings." into lmp-preview-dev

* commit '58b243c37e74d45129071ac55128c16160e6fac8':
Saver: Shared resource update and new settings.
f8f524c80c92df22aa8b280152dd94968dffbb89 10-Jun-2014 John Spurlock <jspurlock@google.com> Saver: Shared resource update and new settings.

Bug:13329308
Change-Id: I9e38f69273a361a8dbd2cdb2385788bd0cdcde38
/frameworks/base/core/java/android/provider/Settings.java
a20dda4a6eedeee1dcaf105d76c8d7d126ce0f1b 28-May-2014 Jeff Brown <jeffbrown@google.com> Add support for wake gestures.

Bug: 15137158
Change-Id: I171c3269a7a16a00083e16e1cc4c7c1c2b98c05e
/frameworks/base/core/java/android/provider/Settings.java
62b25a5bf0750483f36ac79c88177ee2ab630f8e 20-May-2014 Andres Morales <anmorales@google.com> Revert "Adding INfcUnlockSettings and NfcUnlock interface class."

This will be re-added as a Trustlet in a subsequent CL.

This reverts commit 38a7ed05f8fed0aa81f7214d827875f9876ffbe1.

Change-Id: I5aa36df42a7751f165b4ef184e0cda57e5568b59
/frameworks/base/core/java/android/provider/Settings.java
aa036a2db08e19397285062c98aaab7acbf80717 20-May-2014 Christopher Tate <ctate@google.com> Move the non-market install setting from Global to per-user Secure

Bug 13760585

Change-Id: I45b0fa87e72dc5c18d687261fb95cbea5d06163a
/frameworks/base/core/java/android/provider/Settings.java
74a2e06d831432f27ebd17cf6f1d0086356e7ee0 17-May-2014 John Spurlock <jspurlock@google.com> VolumeZen: frameworks changes to support Settings.

- Pull SeekBarVolumizer out into a separately reusable class.
- Make register/unregisterOnActivityStopListener avail to system code.
- Add new setting for displaying suppressed notifications in zen mode.

Change-Id: Ic30aa575ae07650cee62c8c1d83b6bc69395cf0d
/frameworks/base/core/java/android/provider/Settings.java
87cd0dc425201d56f1b07fa710d4f44fff4131bc 15-Apr-2014 Tim Kilbourn <tkilbourn@google.com> Add KEYCODE_PAIRING.

Used for initiating a peripheral pairing mode.

Change-Id: I8e172bdda1f3c34eff36f3001c174f7a6b6e6e41
/frameworks/base/core/java/android/provider/Settings.java
4455f54b5ba98da345c64de1614b0704022d272b 16-May-2014 Selim Gurun <sgurun@google.com> Merge "Add a setting for data reduction proxy key"
178201f7ff829708b6788e6ec6d762a8a3a1fd92 16-May-2014 Selim Gurun <sgurun@google.com> Add a setting for data reduction proxy key

Bug: 12492817
Change-Id: I15c42d631f6ba9ab4dcce38e96f0486efaf3d22f
/frameworks/base/core/java/android/provider/Settings.java
8d56ff8b70f4159892e46eb96899360d8ca68397 16-May-2014 Jerome Poichet <jpoichet@google.com> Merge "Adding Activity Action entry"
7974cb36aeaf710304d7027d36e6b7d789e85a67 14-May-2014 Jerome Poichet <jpoichet@google.com> Adding Activity Action entry

In L we're bringing the notion of a device name, which centralizes a
concept that has been used in different part of the system already
(bluetooth and WifiP2p among others)

The settings entry has already been created, but there is no centralized
UI for setting the name yet.

This CL would define the activity action that would have to be
implemented to set the device name.

b/14970370 - Global Device Name

Change-Id: I6876e4ca1ad887fdea1bc88890ddfad547145011
/frameworks/base/core/java/android/provider/Settings.java
2cf184233ba5a596a4fc187289bba848ff341cf1 14-May-2014 Ed Heyl <edheyl@google.com> merge master nova by hand, skipped translations

Change-Id: I4bea0bb9e375361f21d995bf4698d5eb6300ecfb
147b4d75e1d4ca795d45ffe51d83efd19a754cf2 13-May-2014 Jerome Poichet <jpoichet@google.com> Adding device name

A new global settings to name a device. This will centralize the notion
of device name/nickname and should be used by Cast, Bluetooth, TV Remote and other
advertising applications/services.

Change-Id: I2294deb5c0d1002fb2fc158f62a2d5643d90d749
/frameworks/base/core/java/android/provider/Settings.java
e08340645d2539ab13900b5f835b84bcfe8b99e0 13-May-2014 Alan Viverette <alanv@google.com> Simplify accessibility display adjustments

Makes the inversion bit public so apps can be smarter about rendering
images non-inverted (if they are so inclined).

BUG: 14680114
Change-Id: I8ca2b2517af2ffc13446d7e0b4e859c1171e2d0e
/frameworks/base/core/java/android/provider/Settings.java
66f29aa4a5869a628e45e715f6fc45dc79b55c95 09-May-2014 Martijn Coenen <maco@google.com> am 5aa45ef5: Merge "HCE/SE foreground support."

* commit '5aa45ef5ce6725638425aeeec29ac456f326d4c9':
HCE/SE foreground support.
781a83878ab8f6ba3fa725084a9d1de5a08b5da9 09-May-2014 Martijn Coenen <maco@google.com> Merge "HCE/SE foreground support."
635afd0a80dcced2c6375b16e93e8b4c6332dd0b 08-May-2014 Selim Gurun <sgurun@google.com> am f60667b1: Merge "Cleanup a unused setting"

* commit 'f60667b17423fbf1e03fe26ca04e012391034219':
Cleanup a unused setting
6cab9b38141a18a5a00177638e7ab132dd5d8bd0 08-May-2014 Selim Gurun <sgurun@google.com> Merge "Cleanup a unused setting"
57cee39d764dbf791fcb1ff013268b0f45c70d9d 08-May-2014 Selim Gurun <sgurun@google.com> Cleanup a unused setting

The old webview is not used anymore. Removing this setting.

Change-Id: I3f783eec195a2f11534bcff8243ce4d2c556a416
/frameworks/base/core/java/android/provider/Settings.java
ce311f62ca5e35f1485257d4fe75f5ae1dc9d58a 08-May-2014 vandwalle <vandwalle@google.com> am 16170143: Merge "initial Best Network Selection implementation"

* commit '16170143a30e9e45f3fbdd8f27037fcbd8f403e8':
initial Best Network Selection implementation
7c3606c103e95d3991267cca2592402a68779caf 01-Apr-2014 vandwalle <vandwalle@google.com> initial Best Network Selection implementation

-add dhcpserver, defaultGwMAC address, linked configuration and user choices link lists to WiFiconfiguration
-add default gateway mac address to RouteInfo
-add a Date to the ScanResult
-add BSSID date to the WifiConfiguration
- make framework auto-join into a config option
- add Settings option for showing RSSI in Wifi picker view; add auto-join specific status to WifiConfiguration

Change-Id: I5cfc4f2a48c9f3bc9766e8e68e24eff7b57f2821

Changes to be committed:
modified: core/java/android/provider/Settings.java
modified: wifi/java/android/net/wifi/ScanResult.java
modified: wifi/java/android/net/wifi/WifiConfiguration.java
/frameworks/base/core/java/android/provider/Settings.java
353bda0985af2c250f3a9f1a5e4eae279d1dea0d 07-May-2014 Jim Miller <jaggies@google.com> am d031e36c: First pass at adding FingerprintManagerService

* commit 'd031e36c433c94fc6da3732be7e61aa906e45ec4':
First pass at adding FingerprintManagerService
08fa40c5cb5229b7969b2a5146855a337870f45a 30-Apr-2014 Jim Miller <jaggies@google.com> First pass at adding FingerprintManagerService

This adds a new service for monitoring and enrolling fingerprints
to the platform.

Fixed documentation links.

Change-Id: I66013be5e09be9c5f9746c46aacf32d3e26c3b73
/frameworks/base/core/java/android/provider/Settings.java
2f6f3a0181b008f58b18804b749d5ddf1ba73bc8 26-Apr-2014 Martijn Coenen <maco@google.com> HCE/SE foreground support.

Allow apps to tell the OS they prefer a specific
CardEmulation service to handle a transaction
whenever they are in the foreground.

Change-Id: I8489ba6018f62164ed7e3504f31c8d09accf494e
/frameworks/base/core/java/android/provider/Settings.java
4e4cacd684a9a22b5904e52c0a075d9f0a24d73d 06-May-2014 Selim Gurun <sgurun@google.com> am 234558e8: Merge "Add frameworks/base changes for enabling reduction proxy"

* commit '234558e89565d7310e3c12fe72a51b884876abf6':
Add frameworks/base changes for enabling reduction proxy
a83f1e3d230300fc49aea0fb49f9f1f6bf628764 06-May-2014 Selim Gurun <sgurun@google.com> Add frameworks/base changes for enabling reduction proxy

Bug:12492817

Add an experimental webview setting to developer options to enable
data reduction proxy.

Change-Id: Id73d7f5d655a7de18afff766c5c78209c92964ea
/frameworks/base/core/java/android/provider/Settings.java
8407fdb37ebb898bcf2ffe5ea86e0ff8385ba2b6 28-Apr-2014 Jeff Sharkey <jsharkey@android.com> am 143ae9f7: Define action used to show regulatory info.

* commit '143ae9f760fd86c8d3f96665268375601beea0b2':
Define action used to show regulatory info.
dd77fdacca19dc28971d443f4e6aea70938767e1 17-Apr-2014 Jeff Sharkey <jsharkey@android.com> Define action used to show regulatory info.

Bug: 13340779
Change-Id: I90abb3574797e4b258d32440a2434ae8a7be2949
/frameworks/base/core/java/android/provider/Settings.java
ff1005a6f5f3da396da95d1086c03efba33ab651 25-Apr-2014 John Spurlock <jspurlock@google.com> am 7745fb9e: Merge "Introduce condition provider services."

* commit '7745fb9e95b6938591a46ffcaace8db02c93962f':
Introduce condition provider services.
b22aabbbd2801db0be526a64badf2efa208f19f1 25-Apr-2014 John Spurlock <jspurlock@google.com> Merge "Introduce condition provider services."
1b27c34fb6d6dce4e73f513a428d7119f3049b1a 25-Apr-2014 Dianne Hackborn <hackbod@google.com> am ed407e04: Merge "Initial implementation of new voice interaction API."

* commit 'ed407e046e63ca1d22a1d9206e2ad558bf821525':
Initial implementation of new voice interaction API.
7340fc8665ae3f9f1978f42aa0e5e1da85036158 25-Apr-2014 John Spurlock <jspurlock@google.com> Introduce condition provider services.

Add the condition provider interface, base class, and associated
system metadata.

Pull out common service management code into a reusable helper,
used by notification listeners and condition providers. The
helper, ManagedServices, is now completely self-contained - it
has no dependencies on NoMan or NoMan abstractions.

Bug:13743109
Change-Id: I6856d40f0a2ead78ac9b5707568559a57e7eb009
/frameworks/base/core/java/android/provider/Settings.java
91097de49b0f683b00e26a75dbc0ac6082344137 05-Apr-2014 Dianne Hackborn <hackbod@google.com> Initial implementation of new voice interaction API.

This gives a basic working implementation of a persist
running service that can start a voice interaction when
it wants, with the target activity(s) able to go through
the protocol to interact with it. It may even work when
the screen is off by putting the activity manager in the
correct state to act like the screen is on.

Includes a sample app that is a voice interation service
and also has an activity it can launch.

Now that I have this initial implementation, I think I
want to rework some aspects of the API.

Change-Id: I7646d0af8fb4ac768c63a18fe3de43f8091f60e9
/frameworks/base/core/java/android/provider/Settings.java
3286df9e0879951354468dd15c4e814d35777f5b 22-Apr-2014 Ruchi Kandoi <kandoiruchi@google.com> am 62b8a498: Adds Content Observer for the Low power mode in developer options.

* commit '62b8a49856cc0822905dcb7a213f082b92fa69e3':
Adds Content Observer for the Low power mode in developer options.
62b8a49856cc0822905dcb7a213f082b92fa69e3 18-Apr-2014 Ruchi Kandoi <kandoiruchi@google.com> Adds Content Observer for the Low power mode in developer options.

Change-Id: Ibed319e734340dfd5348dbeb8fe20c01b1adaac5
Signed-off-by: Ruchi Kandoi <kandoiruchi@google.com>
/frameworks/base/core/java/android/provider/Settings.java
4f3693de49c5afdeccd236cba28436260220b6dd 22-Apr-2014 John Spurlock <jspurlock@google.com> am 860107a2: Merge "Do not disturb: persist user config."

* commit '860107a2cced79f4a19542bfd19676367951ee49':
Do not disturb: persist user config.
056c519df1dfb8fdc57daddfdf09bc0e1ffddac4 21-Apr-2014 John Spurlock <jspurlock@google.com> Do not disturb: persist user config.

Load and store user configuration for do not disturb. Separate
out service-related aspects into new helper. Make config availble
over NoMan for settings.

Implement phone + message based filtering (package whitelist for now).

Implement automatic enter/exit zen mode overnight scheduler.

Bug:14211946
Change-Id: Ib28aab0e4c5c9a5fd0b950b2884b1ab618fdfeca
/frameworks/base/core/java/android/provider/Settings.java
754e3802cd75c8583cf5d6174bed1232c276fe53 16-Apr-2014 Jeff Davidson <jpd@google.com> am 4c37b79c: Merge "Class for managing the active scorer application."

* commit '4c37b79cc9c3af57be4ca7f9ff40bceaad948d95':
Class for managing the active scorer application.
dd6fd1e62b1792d1f96824b2fefb16d894b43197 15-Apr-2014 Jeff Davidson <jpd@google.com> Class for managing the active scorer application.

Allows listing all possible scorer apps, getting the active scorer
app, setting the active scorer app, and determining whether a given
UID is for the active scorer.

Note that setting a default scorer with a system image will be handled
separately - the plan here is to add a read-only build property
containing a package name to use as the scorer out of the box.
When NetworkScorerService is initialized, it will check a provisioning
bit; if that bit isn't set, it will set the current scorer to the
package specified in this build property (if any) and set the
provisioning bit to true.

Bug: 13769362
Change-Id: I18c0b2ba2aceccc88b70c3611a49149e0bf17ecf
/frameworks/base/core/java/android/provider/Settings.java
f811f917ba0c36110a130fb6b6855e0eecafa757 26-Mar-2014 John Spurlock <jspurlock@google.com> am 1dd9c53a: Merge "Zen mode updates."

* commit '1dd9c53a40b7c147767c63e10a47eb5cb6f8e197':
Zen mode updates.
eeb397b77f249045b02fe3014479a9c1bf001d0d 25-Mar-2014 John Spurlock <jspurlock@google.com> Zen mode updates.

- Now only two modes, no more ZEN_MODE_FULL.
- Alarms are allowed by default.
- Interstitial dialog cleanup to follow current UX.

Change-Id: I8e4c8f64854dabfef69ad33b3eb35bee07e55ef7
/frameworks/base/core/java/android/provider/Settings.java
4ecd833ee35d1120f8c1ae52367947cacfc263a4 13-Mar-2014 JP Abgrall <jpa@google.com> am 7baa7c80: Merge "ConnectivityService: add support to set TCP initial rwnd" into klp-dev

* commit '7baa7c804501b9cbcb5de281c5ddfaf03ba08f7a':
ConnectivityService: add support to set TCP initial rwnd
3f7f3221dff1a4b2bac3a2dc3e39f732d44fdf2a 21-Feb-2014 JP Abgrall <jpa@google.com> ConnectivityService: add support to set TCP initial rwnd

The value for the TCP initial receive window comes from,
in order,

kernel
/proc/sys/net/ipv4/tcp_default_init_rwnd

init.rc (via properties)
net.tcp.default_init_rwnd

properties
net.tcp.default_init_rwnd

gservices
Settings.Global.TCP_DEFAULT_INIT_RWND

Bug: 12020135
Change-Id: I0e271be19472900fa9f3bab037d53383ec014a9e
/frameworks/base/core/java/android/provider/Settings.java
d95655fa1ad0c58b401176ed2837c2b00388f972 03-Mar-2014 Tom O'Neill <tomo@google.com> am 8cf5eee3: Merge "Discourage content observers on LOCATION_PROVIDERS_ALLOWED"

* commit '8cf5eee3425e7ecd2c27ab8ef6a5fcfd2cebb888':
Discourage content observers on LOCATION_PROVIDERS_ALLOWED
923c0dc070aaba6ac1eccc4ce5aa2261ca6176f2 03-Mar-2014 Tom O'Neill <tomo@google.com> Discourage content observers on LOCATION_PROVIDERS_ALLOWED

- Bug: 12176905

Change-Id: I79bfdbba5ad0d11d82169c0897418f5b3963be0a
/frameworks/base/core/java/android/provider/Settings.java
0ca1d1c49e932e286290bc0105ceb0ccc8a5ec9b 03-Mar-2014 Chris Wren <cwren@android.com> am 10d82dfb: rename heads up global setting: base part

* commit '10d82dfbfb4bcc0899bd1e8dc04e97c2ea39a752':
rename heads up global setting: base part
10d82dfbfb4bcc0899bd1e8dc04e97c2ea39a752 01-Mar-2014 Chris Wren <cwren@android.com> rename heads up global setting: base part

Bug: 13208692
Change-Id: Ia020e4d63552ab4b8cbb8a37622c36776800a790
/frameworks/base/core/java/android/provider/Settings.java
fb04635270a7ab7216c71a9d7770f5e7b2809184 01-Mar-2014 John Spurlock <jspurlock@google.com> am 454a0384: Merge "Wire up SystemUI zen mode config to new settings panel."

* commit '454a0384708433e165a6340dc98bd060775ec613':
Wire up SystemUI zen mode config to new settings panel.
454a0384708433e165a6340dc98bd060775ec613 01-Mar-2014 John Spurlock <jspurlock@google.com> Merge "Wire up SystemUI zen mode config to new settings panel."
7d1ccd96b4d75429d587d5e205357157c155bf30 01-Mar-2014 Chris Wren <cwren@android.com> am 92aaff8a: Merge "add a setting for the heads up: base part"

* commit '92aaff8a80f455595430c8056d1ada7ddcf6c720':
add a setting for the heads up: base part
de547008d110fc4a23ee5ff6ae6ebba4788cd4bb 28-Feb-2014 John Spurlock <jspurlock@google.com> Wire up SystemUI zen mode config to new settings panel.

Change-Id: I949b31be0b31c02ab736799f9080601fb0fd79d1
/frameworks/base/core/java/android/provider/Settings.java
7bd2412332f5cf7b22fd730397d1225fbea00cbf 28-Feb-2014 Chris Wren <cwren@android.com> add a setting for the heads up: base part

also fix a crash if the feature is disabled and then enabled
while a heads up is active.

Bug: 13208692
Change-Id: I6847f7a5f275aee2f608de0237dab0e45c39b33f
/frameworks/base/core/java/android/provider/Settings.java
2f8d4c66406057b5fdd391de376605927a6c22ee 27-Feb-2014 John Spurlock <jspurlock@google.com> am dfae159b: Merge "Introduce zen mode."

* commit 'dfae159bb8a25a84dc24591d791ce1d743ba4252':
Introduce zen mode.
e677d7113f6627161653f686b6381d2eef4d502f 13-Feb-2014 John Spurlock <jspurlock@google.com> Introduce zen mode.

- New global zen mode setting with three values:
ZEN_MODE_OFF, ZEN_MODE_LIMITED, ZEN_MODE_FULL
- Status bar icon (on lhs) when in _LIMITED / _FULL
- Rules are hardcoded for now:
_LIMITED = intercept all notifications except calls/alarms
_FULL = intercept everything
- UI affordance in shade to set mode
- Only one exit condition: "Until you delete this"
- Intercepted notifications:
- appear darker in the shade
- do not cause sound/vibration
- do not fire fullScreenIntents
- do not contribute an icon to the status bar

Change-Id: Ic36c95982b483432006bf9dab102a31370382aa9
/frameworks/base/core/java/android/provider/Settings.java
d41b3af056fa7ac1e6e3c12168eb462265943c7f 21-Feb-2014 JP Abgrall <jpa@google.com> am d98fff4a: Merge "ConnectivityService: add support to set TCP initial rwnd"

* commit 'd98fff4a02c50d999190bb68e5a9566f56221848':
ConnectivityService: add support to set TCP initial rwnd
32d1ac4d45c25180cb841664986398c7e23995e4 21-Feb-2014 JP Abgrall <jpa@google.com> ConnectivityService: add support to set TCP initial rwnd

The value for the TCP initial receive window comes from,
in order,

kernel
/proc/sys/net/ipv4/tcp_default_init_rwnd

init.rc (via properties)
net.tcp.default_init_rwnd

properties
net.tcp.default_init_rwnd

gservices
Settings.Global.TCP_DEFAULT_INIT_RWND

Bug: 12020135
Change-Id: I0e271be19472900fa9f3bab037d53383ec014a9e
/frameworks/base/core/java/android/provider/Settings.java
e515b32dcde3fa70e2f120049574e208a2a71a42 19-Feb-2014 Dan Sandler <dsandler@android.com> am 6c306b8e: Merge "Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS."

* commit '6c306b8e4e1cd1bf303c58676148378116b2e396':
Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS.
5d7c3cc66c3dbb8d574adf4649f1dea342364644 18-Feb-2014 Dan Sandler <dsandler@android.com> Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS.

$ adb shell settings put global lock_screen_show_notifications 1

Previously a per-user secure setting
(Settings.Secure.LOCK_SCREEN_ALLOW_NOTIFICATIONS), but this
doesn't really make a lot of sense since this behavior
pertains to areas of the system (keyguard, status bar) that
exist outside of any one user.

This setting now effectively enables notifications on the
secure lockscreen for all users.

Change-Id: I9c5179498dbbba9343184efdedb1587ea862cf96
/frameworks/base/core/java/android/provider/Settings.java
2db7163cf034a8284df4c3a970e2411a88ccbc87 18-Feb-2014 Dan Sandler <dsandler@android.com> am 2b330dde: Merge "Allow a user to elect to see private notifications in public."

* commit '2b330dde2c46e6e94687649b8e888f9a2d9855bf':
Allow a user to elect to see private notifications in public.
fd16d56419649b885f2e18dc37a18add0fe91e01 14-Feb-2014 Dan Sandler <dsandler@android.com> Allow a user to elect to see private notifications in public.

Settings.Secure.LOCK_SCREEN_ALLOW_PRIVATE_NOTIFICATIONS, if
set and nonzero, will show that user's notifications on the
secure lockscreen (assuming LOCK_SCREEN_ALLOW_NOTIFICATIONS
is also set). Note that this applies only to a particular
user's notifications, so if multiple users' notifications
are shown at once (currently this only applies to the
current user and USER_ALL) only that user's notifications
are affected.

USER_ALL is assumed to always allow private notifications in
public (because they can't be user-specific).

Change-Id: I32bb7939066c4919191e74161ca48ead01a88c7f
/frameworks/base/core/java/android/provider/Settings.java
1bd7876d76167922f38d78747c5696c82020c1ea 12-Feb-2014 Sailesh Nepal <sail@google.com> Add Wi-Fi calling state setting to telephony interfaces

Change-Id: I01029ade0eb1ff981cb92a536d042a02129a053f
/frameworks/base/core/java/android/provider/Settings.java
c6d1c60fb1de5a48e85ddbfe9b66ccc9285df4af 17-Jan-2014 John Spurlock <jspurlock@google.com> Global system setting to override certain window policy.

Specifically, the ability to force immersive-mode-like behavior
on the status bar, the navigation bar (or both) on a
package-by-package basis - and to disable immersive mode
confirmations for specific packages.

Change-Id: I2df7092a91eceeb815367ef917dd7289f4f2b27e
/frameworks/base/core/java/android/provider/Settings.java
a5e0f415d351ad1a9c0ffde8d93df91a2384591f 23-Jan-2014 Dan Sandler <dsandler@android.com> SystemUI support for notification visibility.

In this implementation, DISABLE_NOTIFICATION_TICKER (which was never
really used on its own and can be safely subsumed by
DISABLE_NOTIFICATION_ICONS) is now DISABLE_PRIVATE_NOTIFICATIONS;
when this SystemUI bit is set by the keyguard, SystemUI knows to switch
its presentation into "public" mode, in which
VISIBILITY_PRIVATE notifications are replaced with their
publicVersion's contentView (or a placeholder view,
synthesized by SystemUI, that leaks no additional
information about the notification). VISIBILITY_SECRET
notifications are suppressed altogether in this mode.

This behavior is enabled but not activated by default. To
turn it on, run:

$ adb shell settings put secure lock_screen_allow_notifications 1

and restart SystemUI.

Change-Id: Id660bef7737580e16a83f60567c22b53ee81c602
/frameworks/base/core/java/android/provider/Settings.java
cc7b04353f432839ff52a3295a5b8c5374e7c8ad 14-Jan-2014 Evan Charlton <evanc@google.com> Allow for a configurable WiFi restore bounce delay

Allow the post-restore WiFi bounce delay to be configured (for
example, allow it to be set to zero).

Bug: 9621727

Change-Id: I0b388aadbe3b45eeb4aa00bbe0e6d86f21731449
/frameworks/base/core/java/android/provider/Settings.java
ec31555d8822ad68bed6f478594d65e821b0851b 12-Dec-2013 Andres Morales <anmorales@google.com> Merge "Adding INfcUnlockSettings and NfcUnlock interface class."
55d70620d9fda8afafb2fdec59757a710eec0e89 12-Dec-2013 Alan Viverette <alanv@google.com> Add caption window color attribute

The WebVTT rendering implementation interprets window color as region
color, since there is no window for non-region captions.

BUG: 12020757
Change-Id: Ie891e1343d718783fc32c712860f886de22558ec
/frameworks/base/core/java/android/provider/Settings.java
38a7ed05f8fed0aa81f7214d827875f9876ffbe1 15-Nov-2013 Andres Morales <anmorales@google.com> Adding INfcUnlockSettings and NfcUnlock interface class.

Change-Id: Ie55a5d4bb58c2944952fc84cce32d3573a3a1a22
/frameworks/base/core/java/android/provider/Settings.java
4ee6d87e16ed0e12db7cb07c8cf3b09ef4eeb525 12-Nov-2013 Scott Main <smain@google.com> am 3c95033a: am 7774d8e7: am 44895333: clarify that ANDROID_ID is unique for each user in multi-user environment. bug: 8073630

* commit '3c95033a3854c6d569a8c8849e06298fc842498d':
clarify that ANDROID_ID is unique for each user in multi-user environment. bug: 8073630
44895333dad66be0ab5350b039d828f3da2a1b73 12-Nov-2013 Scott Main <smain@google.com> clarify that ANDROID_ID is unique for each user in multi-user environment.
bug: 8073630

Change-Id: Iff18e892a1e0422a85edd83f97ba4285f2171f74
/frameworks/base/core/java/android/provider/Settings.java
cf2d725b554d1af322e3f2139d52f08b00a47ad3 14-Oct-2013 John Spurlock <jspurlock@google.com> resolved conflicts for merge of f1dd32c8 to master

Change-Id: Ied96bfce952fa95eeceb1b8cf64e53830d4d03ac
f1a36648ca099d7ffa8a19e403673820d4b8417a 12-Oct-2013 John Spurlock <jspurlock@google.com> Implement new SYSTEM_UI_FLAG_IMMERSIVE_STICKY.

Migrate transient bar mode to IMMERSIVE_STICKY, and
introduce new behavior for IMMERSIVE: namely the
opaque bars are revealed by clearing the flags on swipe.

Remove low-profile optimization that confuses api demos
and other apps using low-profile as a signal.

TransientNavigationConfirmation renamed to
ImmersiveModeConfirmation, and its associated resources,
since the confirmation is now shown when the nav bar is
shown in either of the two immersive modes.

Remove unused Toast.makeBar and associated hidden framework
bits now that the confirmation uses a cling instead.

Bug:11062108
Change-Id: Iae49d31973940b9bee9f5b1827756db5eaa76aa3
/frameworks/base/core/java/android/provider/Settings.java
32bc10303c0141eebc4f39298e1b6c4bae058498 09-Oct-2013 Daniel Sandler <dsandler@android.com> am 4be3db70: am f3a56199: am 40bacdf4: Merge "Don\'t wake users up with low battery sounds." into klp-dev

* commit '4be3db7018154406ab74e029482a7d82dbcd3a5a':
Don't wake users up with low battery sounds.
dea6462aab31049d1f1055314491bc33a6f16b0d 23-Sep-2013 Daniel Sandler <dsandler@android.com> Don't wake users up with low battery sounds.

Battery sounds will always play when the screen is on, and
then for Settings.Global.LOW_BATTERY_SOUND_TIMEOUT
milliseconds after the screen goes off. After that, low
battery alerts will be pushed out the airlock until the
screen comes back on again.

If battery sounds are suppressed via this mechanism you'll
see a log line like:

V/PowerUI ( 3161): screen off too long (5779ms, limit
5000ms): not waking up the user with low battery sound

The default value of LOW_BATTERY_SOUND_TIMEOUT is a settings
provider resource: R.integer.def_low_battery_sound_timeout.

Bug: 10487557
Change-Id: Iddd42038aa630631dc8f1833f20fcc5a0c646681
/frameworks/base/core/java/android/provider/Settings.java
632b7dc88432b0072f76fb68f37deaaba2a1bfde 08-Oct-2013 Amith Yamasani <yamasani@google.com> am 6db7f39b: am 1eae6109: am 1b5a2e63: Merge "Don\'t backup/restore ringer mode" into klp-dev

* commit '6db7f39ba573fd087c79da9585801c3f277ac8fc':
Don't backup/restore ringer mode
77c8831ff6a17eb322c34c2142c538b2e0379431 05-Oct-2013 Amith Yamasani <yamasani@google.com> Don't backup/restore ringer mode

Backing it up might result in restoring a new device to a silent,
or vibrate-only state, which is not a good out-of-box experience.

Bug: 11025824
Change-Id: I5b63fd3da012ffc4253338aae31527302a2d276a
/frameworks/base/core/java/android/provider/Settings.java
3378384123154ae29b3fb8cc87244ae742fae6bf 04-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> am 72566b98: am 1c6fdd6c: am cac2fd30: Merge "Revert "Use a build-specific wifi country code"" into klp-dev

* commit '72566b98dba80f21923cb6b299754d510951d611':
Revert "Use a build-specific wifi country code"
cac2fd302e844a4a46bb1749a2d2ed4739b4dc53 04-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Merge "Revert "Use a build-specific wifi country code"" into klp-dev
cf4ed585146518738871cd60c869f60f1c533ae9 04-Oct-2013 Daniel Sandler <dsandler@android.com> am 12aea9d7: am 97bc628f: am 0a660528: Merge "Goo goo ga joob." into klp-dev

* commit '12aea9d7972abad702f9ded550179af722acdf47':
Goo goo ga joob.
3ea0c99b67407bb1612875762b037e50f013fd6d 03-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> Revert "Use a build-specific wifi country code"

This reverts commit c33cd23c17c24df33550a6662cedfe60b323604a.

bug:11064682
Change-Id: I35825a7005e75f3abf02f23f31dee1cb7b101c31
/frameworks/base/core/java/android/provider/Settings.java
2fdb68b3c2ac5e72fdaa590eb70fca0c6a9f5ef0 03-Oct-2013 Daniel Sandler <dsandler@android.com> Goo goo ga joob.

Bug: 10240151
Change-Id: I7b702c397cb9f5ac3294ae27ffc6185df6a64678
/frameworks/base/core/java/android/provider/Settings.java
2caf51b5bf78fe91c23a617829a158085f3b3c9c 02-Oct-2013 Svetoslav <svetoslavganov@google.com> am 8fd521c7: am 95b1bbfe: Merge "Fix the build" into klp-dev

* commit '8fd521c7447a6f95006adb56cfa60ff49e1befab':
Fix the build
d29724c640433b82addbdad3a790b75aed2d9dc4 02-Oct-2013 Robert Greenwalt <rgreenwalt@google.com> am 2b6b3d9c: am bad5d694: Merge "Use a build-specific wifi country code" into klp-dev

* commit '2b6b3d9c495d3c8332aad6515a1db06e8fde3848':
Use a build-specific wifi country code
95b1bbfe6c8fe5072d80e027d4b25319ed6f0411 01-Oct-2013 Svetoslav <svetoslavganov@google.com> Merge "Fix the build" into klp-dev
f43e851f96cd8a0f0d006b21ba6cde349f89ccf3 01-Oct-2013 Svetoslav <svetoslavganov@google.com> Fix the build

Change-Id: I2d701199808b1a0d482b9593c8b0730a408c3e8e
/frameworks/base/core/java/android/provider/Settings.java
410d4e33c5542ccdeacdc8d0ac4aa0e194da688a 01-Oct-2013 Alan Viverette <alanv@google.com> Add accessibility display adjustments

BUG: 9057596
Change-Id: I5e7cc05159387cb00701e162d015e2f7ca6cbf4c
/frameworks/base/core/java/android/provider/Settings.java
c33cd23c17c24df33550a6662cedfe60b323604a 27-Sep-2013 Robert Greenwalt <rgreenwalt@google.com> Use a build-specific wifi country code

This ignores any previous setting and instead uses
a value set at build time. This does not preclude
us from using some other signal to determine country
for wifi channel limits.

bug:10513734
Change-Id: Ib82c07285af70fbd82eb0466b7391979ebc8be10
/frameworks/base/core/java/android/provider/Settings.java
345d491b77d70942f7a4390645fae7748b418459 18-Sep-2013 David Braun <dabraun@google.com> Merge "Implement new method for handling SMS/MMS on the platform" into klp-dev
d67ec25a9c4bf728e4805248d0b287cc3c3ab8ae 05-Sep-2013 John Spurlock <jspurlock@google.com> Update transient navigation confirmation wording & behavior

1. Decrease transient navigation confirmation annoyance.

- Only use the power-key as a signal if we detect a screen-off
screen-on within a short threshold value.

- Auto-confirm if user performs the indicated gesture.

- Remember confirmation across reboots.

2. Update wording to new final wording. Remove now obsolete
short + long versions. Decrease message font temporarily
until the new platform toast redesign is finalized.

3. Remove pre-ship ImmersiveModeTesting debug helper.

Bug:10602929
Change-Id: I0bff826391058c7b282eeb61817b93b79de84893
/frameworks/base/core/java/android/provider/Settings.java
f5d831915dd11e77cdcf5669228c55fe17a21c5e 16-Sep-2013 David Braun <dabraun@google.com> Implement new method for handling SMS/MMS on the platform

Multi project change:
The changes in this project add the new (hidden) default sms application
setting to Settings.Secure and updates AppOps to support the concept
of an op defaulting to something other than allowed. OP_WRITE_SMS is set
to default to MODE_IGNORED.

Bug: 10449618
Change-Id: I37619784ac70c27cf9fbcbfcac1b263398bc4e01
/frameworks/base/core/java/android/provider/Settings.java
f5aba5ad1e09829a13bd0ad4912e45ff3d773176 14-Sep-2013 Maggie Benthall <mbenthall@google.com> Merge "CA cert monitoring: add notifications and actions for dialog" into klp-dev
78d47240fb71a55897c1ef2e2d06492acbe29ad6 14-Sep-2013 Zhihai Xu <zhihaixu@google.com> Merge "Fixed review comments" into klp-dev
0469f41010d8001dba5e09606bb631b1d3313021 05-Sep-2013 Maggie Benthall <mbenthall@google.com> CA cert monitoring: add notifications and actions for dialog

In DevicePolicyManagementService, on boot and when certs are installed,
post notification to tell the user that their traffic may be
monitored.
Have QuickSettings use the MonitoringCertInfoActivity instead
of building the dialog itself.

Bug: 10633199

Change-Id: Ie4b97295a9fc25867c87872feccdb17f4bea071d
/frameworks/base/core/java/android/provider/Settings.java
0d376053747615ac7c4b45ab7810329ffbdf80d1 22-Aug-2013 Kim Schulz <k.schulz@samsung.com> Fixed review comments

- fixed review comments (internal+google)
- corrected tabs/spaces
- Add connection id header for obex client operations
- added support for implementing ProfileService class

Change-Id: Idab8b4fa54a0f31bec4ffa263a69a9850a07f858

Bug:10692365
/frameworks/base/core/java/android/provider/Settings.java
706113fa2a82e5b613b8555120025b8472ffcbf3 11-Sep-2013 Tom O'Neill <tomo@google.com> Merge "Improve some javadoc related to isProviderEnabled() apis" into klp-dev
d5759437eeb3137e4a05471ff0f4681c0254e81a 11-Sep-2013 Tom O'Neill <tomo@google.com> Improve some javadoc related to isProviderEnabled() apis

- LocationManager.isProviderEnabled() no longer throws SecurityException:
the caller could already circumvent the permission check by calling
Secure.isLocationProviderEnabled()

Change-Id: I5abd04264299671ed35ce4594b5be46d86378767
/frameworks/base/core/java/android/provider/Settings.java
622bf2220cf7fb9bb526afa39921ee2aa93e32ca 06-Sep-2013 Amith Yamasani <yamasani@google.com> Backup and restore ringtone and notification ringtone

Use the new content provider API to canonicalize Uris.
If the provider doesn't support it, don't save the value,
unless it's a silent ringtone.

Bug: 10130785

Change-Id: Id08bb2812b9b2a7036a25801d1997661b0017629
/frameworks/base/core/java/android/provider/Settings.java
e8222dddaf2e3da14380101e818d4254899e0c0d 05-Sep-2013 Chet Haase <chet@google.com> Change build version from KEY_LIME_PIE to KITKAT

Issue #10631619 Change build version to KitKat

Change-Id: I6ad13f6169ad74204078d36929479998b498ad8b
/frameworks/base/core/java/android/provider/Settings.java
c5c203d6ef8eea46f1c06f52e3ebfcc59c304760 05-Sep-2013 Svetoslav <svetoslavganov@google.com> Merge "Print API updated." into klp-dev
773f54de3de9bce7b6f915aa47ed686b161d77aa 03-Sep-2013 Svetoslav <svetoslavganov@google.com> Print API updated.

1. Removed the updatePrinters API on PrinterDiscoverySession.
Now re-adding a printer updates it.

2. Added getTrackedPrinters() API to allow a print service to
figure out which printers' state should be tracked by the
service.

3. Removed the APIs on PrintDocumentInfo that describe the
layout of the content as they are not needed. For example,
if the print attributes passed in layout require landscape
mode, the the app should just create a PDF page with the
wider side up and draw its content in portrait. The printer
will then rotate the page.

Change-Id: Idd72c6e9c129e8b17eef1236573a99773f8ff0a2
/frameworks/base/core/java/android/provider/Settings.java
e4bcd1b71408216cc5cdaf8d74001da611828f00 05-Sep-2013 Wink Saville <wink@google.com> am 323af8b4: am aa5b0f8b: am ce1e3798: Add provisioning apn timeout.

* commit '323af8b49df3535977b5aa7f5b31c429d8a50f10':
Add provisioning apn timeout.
323af8b49df3535977b5aa7f5b31c429d8a50f10 05-Sep-2013 Wink Saville <wink@google.com> am aa5b0f8b: am ce1e3798: Add provisioning apn timeout.

* commit 'aa5b0f8bdadcfa1ddb041e09b815ea4b5986e901':
Add provisioning apn timeout.
dbb0b824a7e1dc6909988ec06a46158c05d26a92 05-Sep-2013 Chong Zhang <chz@google.com> Merge "wifi-display: add a global setting to force WPS config method" into klp-dev
ce1e37981caec29df2671a6e2909f00da7f24a00 04-Sep-2013 Wink Saville <wink@google.com> Add provisioning apn timeout.

Bug: 10609993
Change-Id: I2dd4fe23fa2b22ef8f4849c161c630d1a85cdb4b
/frameworks/base/core/java/android/provider/Settings.java
6bd20bc46c762860cac852888df5adf718f2be24 03-Sep-2013 Svetoslav Ganov <svetoslavganov@google.com> System print service enabled after every system reboot

The system was overriding the user on every boot by turing of all system
print services, i.e. service that are on the system image. Now the system
print service are enabled by default only once per user, the user can later
disable them and the system does not override that. We now have a system
setting with the services we enabled once by default so we never do
default enabling again (unless device is wiped).

bug:10594775

Change-Id: Id3129ccfba95bf57375ea9fec0b5ca0e51bda199
/frameworks/base/core/java/android/provider/Settings.java
083199efed839274619eb7a003a7d7c9229e5ffc 30-Aug-2013 Alan Viverette <alanv@google.com> Merge "Update captioning APIs" into klp-dev
e38af818b10e1a4927cc3fd69d19c9125d579321 30-Aug-2013 Chong Zhang <chz@google.com> wifi-display: add a global setting to force WPS config method

Bug: 9371882
Change-Id: I7417535f12fa5b75be471974250cfd13e45f87b2
/frameworks/base/core/java/android/provider/Settings.java
c3f0044abe657d3e6d9cd1f322b419abddeba20c 29-Aug-2013 Martijn Coenen <maco@google.com> Add an API for querying HCE service selection mode.

This allows applications to differentiate between
the case where another app is the default, or the
case where the selection mode is "Ask every time".

Also, parse new requireDeviceUnlock attribute in
ApduServiceInfo.

Bug: 10262585
Change-Id: Icac508fe00054132574731532c05a1138edb24f5
/frameworks/base/core/java/android/provider/Settings.java
69ce69b0e1500bcf0bfa87eaf0b89ae47f552f5c 29-Aug-2013 Alan Viverette <alanv@google.com> Update captioning APIs

CaptioningManager is now a first-class service in Context and can
have listeners added to it to monitor changes.

BUG: 10260603, 10461210
Change-Id: I2df5b2997537bb343d902b7ace3343ad483f3717
/frameworks/base/core/java/android/provider/Settings.java
7f6f45723adea684529dd9b7465d798f10c3acbf 27-Aug-2013 Tom O'Neill <tomo@google.com> Remove or reduce visibility of deprecated methods

- Fix additional getInt() path, restores the location settings screen
functionality.

- Should fix "unresolved link" build breakages in
git_klp-dev-plus-aosp-without-vendor, which is much more persnickety than
klp-dev for some reason.

- Add warning that we may add additional location modes in the future.

- Finish fix for b/10461763 and b/10461474

Change-Id: Id7155e3a0d7526a377d446018ef3bdb057bad3a6
/frameworks/base/core/java/android/provider/Settings.java
a324ac787564aa4e113dc7905667fd8776f4c406 26-Aug-2013 Tom O'Neill <tomo@google.com> Address API council comments on location mode API council

- Start fixing b/10461763

Change-Id: Ic5305bdca38329765a1de565c0a25da12e8ab19d
/frameworks/base/core/java/android/provider/Settings.java
1f3ecaae6303d5ee6c5ca8499262c9962f036365 04-May-2013 Chong Zhang <chz@google.com> wifi-display: add certification options

When certification mode is enabled:

- Pass wfd session info to wifi display settings

- Allow sink to connect to source

- Add interface in display manager for pausing/resuming session

- Add interface in WifiP2pManager for setting lc, oc and starting
autonomous GO

Note that we're compliant regardless of certification mode, but
some confusing options (eg. allowing incoming connection from
sink) we want to hide when not being tested.

Bug: 9371882
Change-Id: Icc7dcae4e046453796cfa03f5f197055fabf234b
/frameworks/base/core/java/android/provider/Settings.java
83e1015d73d80416d514ad40ad871a01f5181eeb 22-Aug-2013 Yorke Lee <yorkelee@google.com> Merge "Remove dialpad_autocomplete system key from settings" into klp-dev
e2a6d3df1257c1c04b1a14777bb7ee65f634bdc3 22-Aug-2013 Vinit Deshapnde <vinitd@google.com> Merge "Introduce network link quality statistics" into klp-dev
35785bfdd191f29ae0bd1b8eb3a8052f32004cf9 22-Aug-2013 Yorke Lee <yorkelee@google.com> Remove dialpad_autocomplete system key from settings

Bug: 10429771
Change-Id: I6c3721020114733e20d0d620680839e1b958721f
/frameworks/base/core/java/android/provider/Settings.java
4c18b585e43c391fcd8364cde52e7016147707fb 22-Aug-2013 David Christie <dnchrist@google.com> Remove newly added but deprecated master switch location setting methods.

Change-Id: I5e85a1efafe45cee89e08b97a0dcb016c91fd572
/frameworks/base/core/java/android/provider/Settings.java
1f12cb52a494a3eaefc62d03a8d2fdf47a5535e9 21-Aug-2013 Vinit Deshapnde <vinitd@google.com> Introduce network link quality statistics

This change starts tracking traffic quality data for WiFi and mobile
networks. The quality is tracked based on incidental traffic, and not
on specific measurements. Theoretical bandwidths are hard-coded, as
well as sampling interval; although sampling interval can be changed
by setting a system policy.

Bugs filed to remove shortcomings of this change -

10342372 Change LinkInfo name to something better
10342318 Move hardcoded values of MobileLinkInfo to resources
so they can be updated without changing code

Bug: 10006249

Change-Id: I83d8c7594da20fe53abbd5e1f909b1f606b035bb
/frameworks/base/core/java/android/provider/Settings.java
fd95299415b0d013ee3c8b79e1398cb85cfa684f 20-Aug-2013 Tom O'Neill <tomo@google.com> Fix build: remove obsolete TODO

Change-Id: Ie8ef50450a8c415deba9b71607bec89e72db9227
/frameworks/base/core/java/android/provider/Settings.java
1f48b78e998615f6974ae5ed21479d2dc3ab30e1 20-Aug-2013 Tom O'Neill <tomo@google.com> Add the API to set and read the location mode

- This will be more future-proof than the current GPS/NLP API

Change-Id: I9defe505e1372d9b601c3190eb49bd71604f04d1
/frameworks/base/core/java/android/provider/Settings.java
4bcc8ee682bb879f1020942be03616b506d2c802 09-Aug-2013 Martijn Coenen <maco@google.com> Merge "NFC: always upper-case parsed AIDs." into klp-dev
62c196abd217c2471dc23d8975f84727560bafb9 09-Aug-2013 Martijn Coenen <maco@google.com> NFC: always upper-case parsed AIDs.

Also added activity intent action for Tap&Pay settings.

Change-Id: I5648e1ded3b79a3363899d1cab8aec55842b3e22
/frameworks/base/core/java/android/provider/Settings.java
672d323bb49723f843e086dd03ef977f836c5214 08-Aug-2013 Amith Yamasani <yamasani@google.com> Merge "Developer option to force RTL layout" into klp-dev
d8415f4bf061000b049143b4f48b96b2005450bb 08-Aug-2013 Amith Yamasani <yamasani@google.com> Developer option to force RTL layout

Make sure screen layout changes are taken into account in Configuration diffs.
Initialize the SystemProperty from Global settings on startup of
ActivityManagerService.

TextUtils checks the override flag to decide if the default layout direction
should be forced to RTL.

Bug: 10244047
Change-Id: I23a2583d790a355060d0d898ba44e5f7dc896b46
/frameworks/base/core/java/android/provider/Settings.java
3f7b652cd3ebced09e1d33d7683361bcedef2792 07-Aug-2013 David Christie <dnchrist@google.com> Add helper methods to set/query the location master switch.
Consolidates the logic of exactly what the master switch means
so that if we change in the future, we don't have to find
all the different parts of the code that use it (location
settings, location quick settings, power widget, etc).

Change-Id: Ib918143b82e16541f0873c4d9141adb11fb815fc
(cherry picked from commit db3720d42dcaa1d26022a392d24f60d0b711f3b7)
/frameworks/base/core/java/android/provider/Settings.java
602b232a06ede86999aa362a12eb28cbc782dc1d 03-Jul-2013 Jason Monk <jmonk@google.com> Add PAC File support for proxy configuration

PAC (Proxy auto-config) files contain a single javascript function,
FindProxyForURL(url, host). It gets called to determine what proxy should be
used for a specific request.

This adds PAC support to the system. The ProxyProperties has been modified
to hold the PAC file when one is present. The Proxy method
setHttpProxySystemProperty has been modified to insert a PacProxySelector
as the default ProxySelector when it is required. This new ProxySelector
makes calls to the ConnectivityService to parse the PAC file.

The ConnectivityService and the WifiConfigStore have been modified to support
saving the extra PAC file data.

The ConnectivityService now has a class attached (PacProxyNative) that
interfaces to the native calls for PAC files. The parsing of the PAC file
is handled by libpac (which is being added to external/) which utilizes
libv8 to parse the javascript.

As a fallback to applications that don't use the java ProxySelector, the proxy
is setup to point to a local proxy server that will handle the pac parsing.

bug:10182711
Change-Id: I5eb8df893c632fd3e1b732385cb7720ad646f401
/frameworks/base/core/java/android/provider/Settings.java
12803955396591cb4d348599e49d55dedcccf40e 06-Aug-2013 Wink Saville <wink@google.com> am 9fe49fc5: am 523db46f: Merge "Set subscription_mode in the database to a default value"

* commit '9fe49fc56ef39facf7b3be5f66256bd15a87961f':
Set subscription_mode in the database to a default value
523db46f6981a40e12007dbbe629bbdc47f861ba 06-Aug-2013 Wink Saville <wink@google.com> Merge "Set subscription_mode in the database to a default value"
2191a0c8570b518c8a62e2a7c5e03a5b32ce0aa0 05-Aug-2013 Alan Viverette <alanv@google.com> Merge "Move caption style to its own class, add presets"
89a8250e242ee1d0b5b853154723b448d732b356 03-Aug-2013 Elliott Hughes <enh@google.com> am 710f3e2c: am 60ae2617: Merge "If frameworks wants ASCII casing, it should explicity ask for it."

* commit '710f3e2cc6bc2cdc2f2cddb2190823ea31efd52a':
If frameworks wants ASCII casing, it should explicity ask for it.
badb063c81ef805377dac69048afaa02cea6593c 03-Aug-2013 Martijn Coenen <maco@google.com> Merge "NFC: Host-based card emulation APIs."
a7397883de67d674970d91f86d46ccf637e5e543 31-Jul-2013 Martijn Coenen <maco@google.com> NFC: Host-based card emulation APIs.

- New INfcCardEmulation interface to allow apps to interface
with card emulation system.
- New BIND_NFC_SERVICE permission to prevent malicious apps
from binding to card emulation services.
- ApduServiceInfo is now in the framework.
- Added constants to Settings.Secure for storing defaults.
- Modified XML grammar a bit.

Change-Id: I56b3fa6b42eb5dc132c91c1386ab1e6bac779059
/frameworks/base/core/java/android/provider/Settings.java
43a1e3d319d77c251445339bcc8f82c82b097fee 03-Aug-2013 Alan Viverette <alanv@google.com> Move caption style to its own class, add presets

BUG: 9926077
Change-Id: I14e809c5a95103e57d30f4273399e9914af52b56
/frameworks/base/core/java/android/provider/Settings.java
cb64d430627b71221c588ef5f23599dd34a89ee9 02-Aug-2013 Elliott Hughes <enh@google.com> If frameworks wants ASCII casing, it should explicity ask for it.

http://elliotth.blogspot.com/2012/01/beware-convenience-methods.html

Bug: https://code.google.com/p/android/issues/detail?id=58359
Change-Id: Iaab02e718a7be7bda22e626dca05d79bfd2a8fc4
/frameworks/base/core/java/android/provider/Settings.java
b4d485c18448eadb92083c74fc84722250daeb5d 04-Jul-2013 Naveen Kalla <nkalla@codeaurora.org> Set subscription_mode in the database to a default value

If ro.telephony.default_cdma_sub is set, use that to set the
default CDMA subscription source in the database. If that is not set
use the default preferred value defined in the source code.

Change-Id: I11fff596a5fe721c64f192c889672326517dc43d
/frameworks/base/core/java/android/provider/Settings.java
2aa2bc531b01910893766875882a158a193f638e 30-Jul-2013 Satoshi Kataoka <satok@google.com> Update the comment of Settings.ACTION_USER_DICTIONARY_SETTINGS

to make an implementation of a corresponding activity mandatory.

Change-Id: Ia6bae2ddf0697779e5133464803b0c0e04c2d4c1
/frameworks/base/core/java/android/provider/Settings.java
876d100f0234dd111d84abdec8187e6834ee7573 26-Jul-2013 Zhihai Xu <zhihaixu@google.com> Merge "Add debug menu to enable btsnoop"
ef79380d2f57f87c1f6859a6ec6ceb40bcb794ff 23-Jul-2013 Alan Viverette <alanv@google.com> Add secure settings for captions

BUG: 9926077
Change-Id: I202aef88943e1f884e5bd4c112f081b8b4b76ada
/frameworks/base/core/java/android/provider/Settings.java
623a42824c0ba79c7c22d1773b4bf4ca1711af01 24-Jun-2013 William Luh <williamluh@google.com> Add Exploit Detection User Consent to Settings.

Change-Id: I7f6bcaac4730c002a3531ed5f5926e56f86f8ee3
/frameworks/base/core/java/android/provider/Settings.java
4b9a4d16872bbb50712e007b419ac0b35ff1582d 12-Jun-2013 Svetoslav Ganov <svetoslavganov@google.com> Print - platform APIs

Related changes:
Skia (inlcude PDF APIs): https://googleplex-android-review.googlesource.com/#/c/305814/
Canvas to PDF: https://googleplex-android-review.googlesource.com/#/c/319367/
Settings (initial version): https://googleplex-android-review.googlesource.com/#/c/306077/
Build: https://googleplex-android-review.googlesource.com/#/c/292437/
Sample print services: https://googleplex-android-review.googlesource.com/#/c/281785/

Change-Id: I104d12efd12577f05c7b9b2a5e5e49125c0f09da
/frameworks/base/core/java/android/provider/Settings.java
5c4541246c6a70f53552423dc35940386788bd5f 17-Jun-2013 John Spurlock <jspurlock@google.com> Introduce SystemUI-managed alternative system bars.

If a service component is defined in a new secure setting,
SystemUI will attempt to use that service as the status bar
provider.

Falls back to the existing in-process implementation configured
in the product config if the setting is missing or invalid.

Nothing changes yet from a permission point of view. Alternative
system bar implementations still require the status bar permission.

Also nothing changes from an api point of view. Alternative
system bar implementations use the existing IStatusBar interface.

This simply enables testing alternative system bar implementations
installed from other trusted, platform-signed packages.

Known caveat: the setting is stored per user, multi-user changes
will be handled in a future CL.

Change-Id: I0413df185f7e75f77ad2ae1bc3689306d5e6e0fb
/frameworks/base/core/java/android/provider/Settings.java
af5971ef27557f02f93b399c92d7e67106d825fe 11-Jun-2013 Zhihai Xu <zhihaixu@google.com> Add debug menu to enable btsnoop

bug: 8059358
Change-Id: I2d5f13e68defefb92e0b11b749fe77ad67215f36
/frameworks/base/core/java/android/provider/Settings.java
2c52b08c3329b6215305316f6465c467abdd4116 31-May-2013 Daniel Sandler <dsandler@android.com> am 491c6075: am 054255c6: Merge "Unhide action to launch Daydream settings." into jb-mr2-dev

* commit '491c607582248590702ce07c0493ff0c39224689':
Unhide action to launch Daydream settings.
f3c1c7ea0a22c09a1212c0377c41f328242eec53 30-May-2013 Daniel Sandler <dsandler@android.com> Unhide action to launch Daydream settings.

Bug: 9088316
Change-Id: I70b87e1f320cef4f53b2610a94be8e552dd3a757
/frameworks/base/core/java/android/provider/Settings.java
fb6dab36d5e867ad6de8c28efd7bdd12da29e1e9 16-May-2013 Robert Greenwalt <rgreenwalt@google.com> am 06433861: am c12783a9: Add min delay between disable and enable of wifi

* commit '0643386128eba71178ee3913e7c76965bd344d73':
Add min delay between disable and enable of wifi
c12783a90e08bd2e20eb75f68192fbf7bad80357 16-May-2013 Robert Greenwalt <rgreenwalt@google.com> Add min delay between disable and enable of wifi

We sometimes have issues if disable, enable seq happens to fast.
This should only slow down those fast cases.

bug:8715336
Change-Id: I4f7fe9708b7c3c2300c441511838e8a70eaad5d1
/frameworks/base/core/java/android/provider/Settings.java
a67a1f5ae0acae8499c1e6dfe795c92a688f1ada 13-May-2013 Robert Greenwalt <rgreenwalt@google.com> am 23abefef: am 28d3dbf9: Merge "Remove wifi scan-always dialog." into jb-mr2-dev

* commit '23abefef00b4d47bb97b2597f74c9dae6a169286':
Remove wifi scan-always dialog.
aee3d28763230e54d9ce250c17744858e79bf798 13-May-2013 Robert Greenwalt <rgreenwalt@google.com> Remove wifi scan-always dialog.

Removes intent type for dialog and Setting on whether to show
dialog.

bug:8907190
Change-Id: Id37e03126d4afdfd7d921132a57233b84603c8bd
/frameworks/base/core/java/android/provider/Settings.java
8b70a2166ba0cf2b337c580e3adfa633eea02774 09-May-2013 Yorke Lee <yorkelee@google.com> am 3672624c: am 35b7b0b8: Merge "Add system setting key for dialpad autocomplete" into jb-mr2-dev

* commit '3672624cdc8849f7b4944cff501bddb9a14bbdc0':
Add system setting key for dialpad autocomplete
60307f1ac0a9a148f87a2f19501596561306107a 09-May-2013 Robert Greenwalt <rgreenwalt@google.com> am 27c8b559: am e2322bdd: Merge "Don\'t back up the scan-always setting." into jb-mr2-dev

* commit '27c8b559b6feaa6ea5c44acc476a714487f1eafa':
Don't back up the scan-always setting.
35b7b0b80000774b503f7d06bf3685836f22608f 08-May-2013 Yorke Lee <yorkelee@google.com> Merge "Add system setting key for dialpad autocomplete" into jb-mr2-dev
647f8f3d063a2341272122fffc23c11d0c6fa940 07-May-2013 Yorke Lee <yorkelee@google.com> Add system setting key for dialpad autocomplete

Bug 8840243

Change-Id: Ib1fd631c8717dad2305e3507391cb2d96be2a847
/frameworks/base/core/java/android/provider/Settings.java
ffff923c748d3c2f9a907fb6b519de526a5cc267 07-May-2013 Robert Greenwalt <rgreenwalt@google.com> Don't back up the scan-always setting.

We ask the user during device setup to configure this setting -
if we then restore from backup we clobber what they just selected.

Instead, just let them chose during setup and don't back it up.

bug:8825150
Change-Id: I3f2b2291c86a4008bb8ea2468164d9c6c673cbb0
/frameworks/base/core/java/android/provider/Settings.java
82d11c847e25fab56f2841bcd622f8f971edc5db 18-Apr-2013 Alon Albert <aalbert@google.com> am d2b8cd75: am adff8b75: Merge "Add Javadoc" into jb-mr2-dev

* commit 'd2b8cd75ed4ec9d9076699792bd78152885e304f':
Add Javadoc
adff8b7577490bbeaedcd584a19eb5310f6ccbc5 18-Apr-2013 Alon Albert <aalbert@google.com> Merge "Add Javadoc" into jb-mr2-dev
d35bf1f5eb26ad36d4bd6ce26d8bd4d79c498575 18-Apr-2013 Alon Albert <aalbert@google.com> Add Javadoc

Bug: 8657225
Change-Id: Id3cc191ea67011460604a691214b9b09075c5938
/frameworks/base/core/java/android/provider/Settings.java
3569e9e50c3a467e9094d24272b8e1f091ac8d86 17-Apr-2013 Jim Miller <jaggies@google.com> resolved conflicts for merge of 2f6a2526 to master

Change-Id: Ie51d3a63f4d4d5bad7ef16ad84ef6ad5acdaa64a
187ec581c66fec49a5ee7db8edec6d9eb0e209fc 16-Apr-2013 Jim Miller <jaggies@google.com> Move owner info from Settings.Secure to LockSettings

Fixes bug 8512972

Change-Id: Ic046aff0332b78489dda08b1e9e71f4c16154f10
/frameworks/base/core/java/android/provider/Settings.java
8740cb1da6adb71a4e195774801c97db5853b097 05-Apr-2013 John Spurlock <jspurlock@google.com> resolved conflicts for merge of 29211d3a to master

Change-Id: I9691f41b12fbf52d0ef35a9bf5223edef7afdfd2
5feceebb892d4cb5777cea3c6174b206705d456b 23-Mar-2013 Daniel Sandler <dsandler@android.com> New NotificationListenerService.

This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2
/frameworks/base/core/java/android/provider/Settings.java
60765b285da48e7362b935105036efefbd1d5e58 05-Apr-2013 Ben Gruver <bgruv@google.com> am a1607a8c: am 65f420ec: Merge "Add a config updater component for the intent firewall" into jb-mr2-dev

* commit 'a1607a8c62a630150b4e96ec1148e90dc40ab984':
Add a config updater component for the intent firewall
633dc9bcef0935931781d7e4554566271fe9f2c5 04-Apr-2013 Ben Gruver <bgruv@google.com> Add a config updater component for the intent firewall

Change-Id: I43f6defa16691099592bf87e75f2d1a732135cf3
/frameworks/base/core/java/android/provider/Settings.java
77118fb55eb3a0dcccbb8cf7861a96416f552390 27-Mar-2013 Geremy Condra <gcondra@google.com> Add SELinux updater and Settings-based enforcement switch.

Bug: 8116902
Change-Id: Ifac495026a354dac7655c28ea2188499a2a319aa
/frameworks/base/core/java/android/provider/Settings.java
757ee5272528738fc2597b31a569aeda77b11b18 30-Mar-2013 Geremy Condra <gcondra@google.com> Fix a comment to fix the build.

Change-Id: I9acfef97572bbb0438afbc95df6a718ba506c2c4
/frameworks/base/core/java/android/provider/Settings.java
4e7f7e839e6adb8986114ee5b619030696f910ca 27-Mar-2013 Geremy Condra <gcondra@google.com> Add SELinux updater and Settings-based enforcement switch.

Bug: 8116902
Change-Id: Ifac495026a354dac7655c28ea2188499a2a319aa
/frameworks/base/core/java/android/provider/Settings.java
a0735118c6b2b371c7dfb212436faf7d55862bb0 27-Mar-2013 Geremy Condra <gcondra@google.com> Add ConfigUpdater settings values to the global table.

This is a partial fix to a bug caused by not properly migrating
these values from secure: to global:

Change-Id: Iaed77b5ab671f9cd229c7883ae09a0b4a5f3c64e
/frameworks/base/core/java/android/provider/Settings.java
c1b40c79beaec77937a58ffab1de9e02d553cd44 22-Mar-2013 Wink Saville <wink@google.com> Merge "Add some new constants." into jb-mr2-dev
dc0299fb2373faddd547d433ffa049fb40d64fac 21-Mar-2013 Daniel Sandler <dsandler@android.com> Merge "Allow whitelisted non-system packages to listen for notifications." into jb-mr2-dev
7b7beb7952440ee2e255694b7b19e60abae93dc0 21-Mar-2013 Irfan Sheriff <isheriff@google.com> Notify user when wi-fi is toggled about scans

We let the user know when he turns off Wi-Fi that scans will continue to
be available.

User has the option to turn off the dialog and not receive this in the future.

Bug: 8141918
Change-Id: I115ce2ac57125b8ffbb34245dc25effd4b3bebb0
/frameworks/base/core/java/android/provider/Settings.java
75c1e69bd55be1d2e923573f95299afbf554c393 21-Mar-2013 Wink Saville <wink@google.com> Add some new constants.

Add EVENT_DISCONNECT_DC_RETRYING, EVENT_SETUP_DATA_COMPLETE_ERROR
and State.RETRYING to DctContants.

Add MDC_INITIAL_MAX_RETRY to Settings.Global.

Bug: 4772191
Change-Id: Id54a20ab192783c63939158670faaf531a527640
/frameworks/base/core/java/android/provider/Settings.java
4b749ef5f2d510b84b99aa269d5c77af22457d04 19-Mar-2013 Daniel Sandler <dsandler@android.com> Allow whitelisted non-system packages to listen for notifications.

The allowed packages are listed in
Settings.Secure.ENABLED_NOTIFICATION_LISTENERS. (Don't let
the plural fool you: only one listener will be supported in
the UI.)

Change-Id: Ia69f2ba05d8e555fd4d40b0cc89c62ed14af3cac
/frameworks/base/core/java/android/provider/Settings.java
11aefad94de6569c4c7394e7bc5fdeb0ae60d5bb 06-Mar-2013 Irfan Sheriff <isheriff@google.com> Add support for scan always available mode

Modify WifiService to add a controller to track the various
desired states and let the WifiStatemachine actually control
the bring up.

Bug: 8141918

Change-Id: I6e98fd5a29b43c3c50c315eff5255cd0a3eaebcd
/frameworks/base/core/java/android/provider/Settings.java
50359c26e723d81c4c2d5e4e5fd1abfd1de7c53a 26-Feb-2013 Alon Albert <aalbert@google.com> Document extra account_types

The action android.settings.ADD_ACCOUNT_SETTINGS supports an extra
"account_types" (See AddAccountSettings & ChooseAccountActivity) but
that's not documented anywhere.
Oddly, the other 2 places that support the "authorities" extra do not
also support "account_types".

Change-Id: I99b7be0b0d6fff1cbccdf8b8b8e4fd2be9548e6c
/frameworks/base/core/java/android/provider/Settings.java
ead9389fd2e3e325cbe5bf9bdd896dd7c9113540 14-Feb-2013 Jeff Sharkey <jsharkey@android.com> Remove throttle settings, no longer needed.

Since the throttle feature has been removed, its configuration
settings are no longer needed.

Change-Id: Iaf3cb74a372d43d580f42566d21843a2eb653d3e
/frameworks/base/core/java/android/provider/Settings.java
eee29c445c38217e83bf421faf0f4075322079a6 17-Jan-2013 Craig Mautner <cmautner@google.com> Reset SensorEventListener when listener reenabled.

- Following disable and reenable of the WindowOrientationListener
the state was the same as before. State should be reset to default.

- Provide a Handler to the sensor task to deliver events on the
same Thread that WindowManagerPolicy operates on.

- Expand lock protection to all of WindowOrientationListener.

- Move WindowOrientationListener to policy package.

- Make SensorEventListenerImpl non-static.

Fixes bug 7964531.

Change-Id: I17cecf3d0b6d125cb3e4d7350c3adb3f62b684bd
/frameworks/base/core/java/android/provider/Settings.java
447d94684ee73046d769649d8247aacd581bd6e3 01-Feb-2013 Svetoslav Ganov <svetoslavganov@google.com> "Fixing backwards cmpatibility for enabling explore by touch""

This reverts commit d1ed3cea37e4156eab14b7dc8207a520c9eab700

Change-Id: I622ef034526f8f006a5a233e72487b062020e4f6
/frameworks/base/core/java/android/provider/Settings.java
d1ed3cea37e4156eab14b7dc8207a520c9eab700 01-Feb-2013 Mike Cleron <mcleron@google.com> Revert "Fixing backwards cmpatibility for enabling explore by touch"

This reverts commit 0a9c7c144671f70f5f1af222050bd3ec6b11fe41

Change-Id: I8da530a6d0a57163522d5a63326e787a8d22ecbf
/frameworks/base/core/java/android/provider/Settings.java
0a9c7c144671f70f5f1af222050bd3ec6b11fe41 01-Feb-2013 Svetoslav <svetoslavganov@google.com> Fixing backwards cmpatibility for enabling explore by touch

Change-Id: I8cbc4f03223d289547e3f3f6d1f528ad5b4f6f72
/frameworks/base/core/java/android/provider/Settings.java
3822896e226567c6cd3ef84518d318abd33a7624 29-Jan-2013 Svetoslav <svetoslavganov@google.com> Remove "enhance web scripts" from settings and make it requested by plug-ins.

Currently we have an "enhance web accessibility" setting that has to be
enabled to make sure web content is accessible. We added the setting to
get user consent because we are injecting JavaScript-based screen-reader
pulled from the Google infrastructure. However, many users do not know
that and (as expected) do not read the user documentation, resulting in
critique for lacking accessibility support in WebViews with JavaScript
enabled (Browser, Gmail, etc).

To smoothen the user experience now "enhance web accessibility" is a
feature an accessibility plug-in can request, similarly to explore by
touch. Now a user does not need to know that she has to explicitly
enable the setting and web accessibility will work out-of-the-box.

Before we were showing a dialog when a plug-in tries to put the device
in a touch exploration mode. However, now that we have one more feature
a plug-in can request, showing two dialogs (assume a plug-in wants both
features) will mean that a user should potentially deal with three
dialogs, one for enabling the service, and one for each feature. We
could merge the dialogs but still the user has to poke two dialogs.

It seems that the permission mechanism is a perfect fit for getting
user permission for an app to do something, in this case to enable
an accessibility feature. We need a separate permission for explore
by touch and enhance web accessibility since the former changes the
interaction model and the latter injects JavaScript in web pages. It
is critical to get user consent for the script injection part so we
need a well-documented permission rather a vague umbrella permission
for poking accessibility features. To allow better grouping of the
accessibility permissions this patch adds a permission group as well.

bug:8089372

Change-Id: Ic125514c34f191aea0416a469e4b3481ab3200b9
/frameworks/base/core/java/android/provider/Settings.java
35654b61e8fe7bc85afcb076ddbb590d51c5865f 15-Jan-2013 Dianne Hackborn <hackbod@google.com> More work on App Ops service.

Implemented reading and writing state to retain information
across boots, API to retrieve state from it, improved location
manager interaction to monitor both coarse and fine access
and only note operations when location data is being delivered
back to app (not when it is just registering to get the data at
some time in the future).

Also implement tracking of read/write ops on contacts and the
call log. This involved tweaking the content provider protocol
to pass over the name of the calling package, and some
infrastructure in the ContentProvider transport to note incoming
calls with the app ops service. The contacts provider and call
log provider turn this on for themselves.

This also implements some of the mechanics of being able to ignore
incoming provider calls... all that is left are some new APIs for
the real content provider implementation to be involved with
providing the correct behavior for query() (return an empty
cursor with the right columns) and insert() (need to figure out
what URI to return).

Change-Id: I36ebbcd63dee58264a480f3d3786891ca7cbdb4c
/frameworks/base/core/java/android/provider/Settings.java
58f41ecfa57bb1299cf0f8b13f6f5f5b4b7dde91 12-Jan-2013 Christopher Tate <ctate@google.com> Migrate BUGREPORT_IN_POWER_MENU from Secure to Global settings

Bug 7273591

Change-Id: I5790f9d18ddf22282144be1c2d96dd4d706caa14
/frameworks/base/core/java/android/provider/Settings.java
84e2756c0f3794c6efe5568a9d09101ba689fb39 07-Dec-2012 Jeff Brown <jeffbrown@google.com> Play a tone when wireless charging begins.

Only plays a tone if the battery level is below 95% which
is the same heuristic used when determining whether to turn
the screen on.

Use new low battery and wireless charging sounds on Mako.

Bug: 7371658
Change-Id: Ia4527ec398d024ee418a4287e1fcbf0ec83bcc24
/frameworks/base/core/java/android/provider/Settings.java
924fc3e6ce68f7943f3fd2ced3281c3fd05f2e7f 30-Nov-2012 Daniel Sandler <dsandler@android.com> Merge "Add constant for Daydream settings." into jb-mr1.1-dev
05274f348e12983eb8613cc6eb9ae561e8197e28 29-Nov-2012 Eric Laurent <elaurent@google.com> AudioService: improve initial safe volume delay

AudioService relies on a valid mmc in order to enforce the headset
volume limitation or not. There is a timeout to enforce the limitation
if no mcc is configured after boot.
Until this timeout is reached or a valid SIM is detected the headset
volume is not limited.

This change makes that the last known volume limitation state (enforced or
not) is persisted so that next time we boot, last known state is applied until
a new mcc is configured if any. In most cases, the mcc does not change from one
boot to the next and we do the right thing. If teh mcc does change, the correct
policy will be enforced when the mcc is detected or after the timeout.

Also fix a bug where the volume panel was not displayed if the limitation mechanism
is triggered at the first press on VOL+ key.

Bug 7455275.

Change-Id: Id0f2996d893d38c6a14f4f9e4a0e9e3be17ef127
/frameworks/base/core/java/android/provider/Settings.java
c08cd02649c04cdc071d63841dfbc3c7c8ff85bb 28-Nov-2012 Daniel Sandler <dsandler@android.com> Add constant for Daydream settings.

Bug: 7480927
Change-Id: I383170c6c543b5ffe81568d273389585498d369b
/frameworks/base/core/java/android/provider/Settings.java
51117262c8fadb6d227d137e83ad66996b013141 05-Nov-2012 Jim Miller <jaggies@google.com> Handle DevicePolicyManagement and safe mode when inflating widgets

Bug 7459120
Bug 7444159
Bug 7444016

Change-Id: I7966ec510da8113ac571b5a4b9dc48dd291396e8
Conflicts:
policy/src/com/android/internal/policy/impl/keyguard/KeyguardWidgetPager.java
/frameworks/base/core/java/android/provider/Settings.java
b2f21c53cf423cad5cf2f5d92579258decb40631 28-Oct-2012 John Spurlock <jspurlock@google.com> Merge "Use settings to persist sticky widget." into jb-mr1-lockscreen-dev
c99a1107c0d4fdf47595e5072192d647a01e13b3 27-Oct-2012 Eric Laurent <elaurent@google.com> Merge "add settings for dock audio enabled" into jb-mr1-dev
5f050e5c2c1616c7f0795c4f13e42a5d150b8015 27-Oct-2012 John Spurlock <jspurlock@google.com> Use settings to persist sticky widget.

Addressing some comments:
- Sticky widget is now saved in a user-scoped setting.
- Removed multi-user widget from computation (obsolete).
- Removed status widget from computation (just use right-most).
- Removed duplicate isMusicPlaying logic.

(frameworks/base)

Change-Id: I8ef8f826677d78ac24da52adf2d99d47c8d965ac
/frameworks/base/core/java/android/provider/Settings.java
7ee1e4ff7346a278a6722108fbc1869240b3e866 27-Oct-2012 Eric Laurent <elaurent@google.com> add settings for dock audio enabled

Add settings dock_audio_media_enabled indicating if dock audio
is enabled for media for docks that do not implement jack detection.

Bug 7302106.

Change-Id: I75766b606ceb870b3f89979c4e3cca88ed197aaf
/frameworks/base/core/java/android/provider/Settings.java
aa2859ae61098509495b7938e32a6d59d37561be 24-Oct-2012 Michael Jurka <mikejurka@google.com> Adding ability to add multiple widgets to keyguard

Bug: 7381803
/frameworks/base/core/java/android/provider/Settings.java
8d866e52b209cb683159f2701cc4204163de245c 11-Oct-2012 Dianne Hackborn <hackbod@google.com> More on issue #7318666: hide developer options from user build

The action to launch the developer settings panel is now required
by the platform.

Add a new hidden API to LauncherActivity so I can better integrate
these into the existing Dev Tools app.

Change-Id: I9c082622fd4c8f4a5be51cabb664741a3782ece1
/frameworks/base/core/java/android/provider/Settings.java
5ed9d680409c83fbfd7b617d7f257305d3c34b62 10-Oct-2012 Jeff Sharkey <jsharkey@android.com> Move lockscreen to using haptic feedback setting.

This removes lockscreen-specific "Vibrate on touch" setting, and
changes it to use the haptic feedback setting instead.

Bug: 7318772
Change-Id: I637c392a1aaa22403cb20da4723f90c3b2e3de19
/frameworks/base/core/java/android/provider/Settings.java
16eb7cd4570ca884c03151c4f9e7e32a5f8e4d94 10-Oct-2012 Christopher Tate <ctate@google.com> Back up / restore the "Avoid poor connections" wifi setting

Bug 7318177

Change-Id: I8fdc037f823b8c57727e7d49c5bffdc9b3c10ebb
/frameworks/base/core/java/android/provider/Settings.java
b711d57ca4e2c6a1befbfa1a41f4b8094755a93f 02-Oct-2012 Victoria Lease <violets@google.com> Multiuser love for LocationManager

LocationManagerService now keeps track of the current user ID and
denies location requests made by all but the foreground user.

Additionally, location settings are now user-specific, rather than
global to the device. Location provider services now run as specific
users, and when the device's foreground user changes, we rebind to
appropriately-owned providers.

Bug: 6926385
Bug: 7247203
Change-Id: I346074959e96e52bcc77eeb188dffe322b690879
/frameworks/base/core/java/android/provider/Settings.java
66488d64df8c3cf8722b8bf282398617cf3c0551 02-Oct-2012 Christopher Tate <ctate@google.com> Make settings backup/restore work in the new multi-user world

1) Properly handle restores of settings elements that have been migrated
to the new global namespace

1) Back up and restore the new global settings namespace

3) Make sure to back up / restore the global entity
ENABLE_ACCESSIBILITY_GLOBAL_GESTURE_ENABLED

Bug 7249405

Change-Id: Ibfa9930ea4d0e16c7635697e8c631b155e4c0cb2
/frameworks/base/core/java/android/provider/Settings.java
6e2bee75cea415621165698fdd9ce857bbb8872e 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Migrate more System and Secure settings to Global.

Includes telephony, WindowManager, PackageManager, and debugging
settings. Update API to point towards moved values.

Bug: 7231764, 7231252, 7231156
Change-Id: I5828747205708872f19f83a5bc821ed0a801cb79
/frameworks/base/core/java/android/provider/Settings.java
0ac1028b0dc8713296e2face40abe5451ecd479c 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Move bluetooth priorities from Secure to Global.

Bug: 7231171
Change-Id: I836fdc2cfb8d67f984b4715559b9e92d0dc41c95
/frameworks/base/core/java/android/provider/Settings.java
925a659d824089d2977b44a6740f793ae65f809a 29-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Use updatable file for premium-sms filter" into jb-mr1-dev
fd4da14c8304912dcb8ee54d4597527c2ee0d2d2 28-Sep-2012 Russell Brenner <russellbrenner@google.com> Merge "Add Settings.Secure.USER_SETUP_COMPLETE" into jb-mr1-dev
c6fa237daeaae6107174a9b9d4f591ea8cd26d86 24-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Use updatable file for premium-sms filter

The data is really to big for a gservices-driven secure setting.

bug:7221402
Change-Id: Ie3d4a1a0aeb69b9ef8fad360fa7ec32e927644e8
/frameworks/base/core/java/android/provider/Settings.java
7befb7deb2ac15134b3bb190520cba19165d16dd 28-Sep-2012 Svetoslav Ganov <svetoslavganov@google.com> Global gesture to toggle Accessibility system-wide.

1. This change adds a global gesture for enabling accessibility.
To enable this gesture the user has to allow it from the
accessibility settings or use the setup wizard to enable
accessibility. When the global gesture is enabled the user
can long press on power to bring the global actions dialog
and then hold with two fingers for a few seconds to enable
accessibility. The appropriate feedback is also provided.

2. The global gesture is writing directly into the settings for
the current user if performed when the keyguard is not on. If
the keygaurd is on and the current user has no accessibility
enabled, the gesture will temporary enable accessibility
for the current user, i.e. no settings are changed, to allow
the blind user to log into his account. As soon as a user
switch happens the new user settings are inherited. If no
user change happens after temporary enabling accessibility
the temporary changes will be undone when the keyguard goes
away and the device will works as expected by the current user.

bug:6171929

3. The initialization code for the owner was not executed due
to a redundant check, thus putting the accessibility layer in
an inconsistent state which breaks pretty much everything.

bug:7240414

Change-Id: Ie7d7aba80f5867b7f88d5893b848b53fb02a7537
/frameworks/base/core/java/android/provider/Settings.java
3a8af8efff93ca8ee80fc8c7841e7bee9a8b7786 28-Sep-2012 Jeff Sharkey <jsharkey@android.com> Merge "Migrate more Secure settings to Global." into jb-mr1-dev
5e08af03a3dffff8b8fc098790e5133589601d8f 22-Sep-2012 Christopher Tate <ctate@google.com> Respect per-user rotation lock et alia

Various per-user settings such as rotation lock are relevant to the
singleton PhoneWindowManager object. We now listen for user-switch
broadcasts and reconfigure the active state based on the newly-
active user's settings.

The RotationPolicy toolset has also been updated to do the right
thing, as has the Quick Settings UI.

Bug 7213638

Change-Id: Iee2109e48df550b4c979d3f9c91b5d2b71a6a08e
/frameworks/base/core/java/android/provider/Settings.java
625239a05401bbf18b04d9874cea3f82da7c29a1 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Migrate more Secure settings to Global.

Migrate networking, storage, battery, DropBox, and PackageManager
related Secure settings to Global table.

Bug: 7232014, 7231331, 7231198
Change-Id: I772c2a9586a2f708c9db95622477f235064b8f4d
/frameworks/base/core/java/android/provider/Settings.java
de6ae447b13192de88d3da88d750e49ce9bbafc5 27-Sep-2012 Russell Brenner <russellbrenner@google.com> Add Settings.Secure.USER_SETUP_COMPLETE

To be set for each individual user upon completion of setup wizard.
This complements Settings.Global.DEVICE_PROVISIONED, which is set
upon completion of setup wizard by the primary user.

Bug: 7236987
Change-Id: I22f279e3262504f529345bbce30b39c71a41dce7
/frameworks/base/core/java/android/provider/Settings.java
4de9936e85696208dfe91d1c40e3e5226e57634a 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> Remove unused Secure settings.

Carefully leave default values intact in Watchdog for now.

Bug: 7232007, 7232230
Change-Id: Id944181109305aed41e0766fdd39625b43cb1d19
/frameworks/base/core/java/android/provider/Settings.java
bdfce2ec05a3e9ca6acd6711de6133e06f2446e6 27-Sep-2012 Jeff Sharkey <jsharkey@android.com> First step towards cleaning up Global settings.

Remove all @Deprecated @hide settings, and clean up any stragglers.

Bug: 7232125
Change-Id: Ibf67093c728d4a28565129b923edb1701d3b2789
/frameworks/base/core/java/android/provider/Settings.java
bf6f6f9de72c9fd15e6bda9f228c05a9b37d6324 26-Sep-2012 Jeff Brown <jeffbrown@google.com> Update references to migrated global settings.

Fixed one setting that was migrated but not marked deprecated.

Removed a hidden setting that is no longer used by the new
power manager service.

Bug: 7231172
Change-Id: I332f020f876a18d519a1a20598a172f1c98036f7
/frameworks/base/core/java/android/provider/Settings.java
d49359631bc2642be73dc162a8a73207df1e0baf 25-Sep-2012 Jeff Brown <jeffbrown@google.com> Handle user switched for settings changes.

Move OVERLAY_DISPLAY_DEVICES to Global.

Bug: 7127417
Change-Id: I632648ac5b01408512f59424f3bb55162431bea4
/frameworks/base/core/java/android/provider/Settings.java
139748fd724b482e2c012a6ec44d1c5abc0c0e97 24-Sep-2012 Dianne Hackborn <hackbod@google.com> Fix issue #7215984: java.lang.RuntimeException: Unable to create...

...service com.android.systemui.SystemUIService: java.lang.NullPointerException

- Don't acquire the activity manager lock in handleIncomingUser(),
there is really no need to do so.
- Rework the settings provider client side cache code to not hold
locks while calling into the provider.

I also changed the way the settings provider uses system properties
so that there is one property for all users. We can't do one per
user, since the system property name space is limited with a fixed
size. And we don't really need to do that; the worse that happens
by combining all users is that if one running user changes one of its
settings, all other running users will think they need to reload
settings when they go to fetch them next.

Change-Id: I13b90b832310d117eb6d721aacd122cfba7d749a
/frameworks/base/core/java/android/provider/Settings.java
d5111f252b731396293caedbee929856acd6b276 24-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix the build." into jb-mr1-dev
026efcc0b829ce299d94367fa56cf610b9b746af 24-Sep-2012 Robert Greenwalt <rgreenwalt@google.com> Fix the build.

Other side of change 229425: add the secure settings used to control
the source country used in premium-sms determination.

bug:7205426
Change-Id: I6c8fece4fdea9aeae72da70c5cbe45807197c7bc
/frameworks/base/core/java/android/provider/Settings.java
4e5753f5f6c5e0c7f53722e2bfa451ac7f0b27db 20-Sep-2012 rich cannings <richc@google.com> Add setting to skip verifying ADB installs

Create a setting "verifier_verify_adb_installs" to allow developers to control
package verification on ADB installs only. If package verification is enabled,
the setting will:

0, Do not perform package verification on apps installed through ADB/ADT/USB
and perform package verification on all other installs.

1, Use package verification on all installs. (Default)

Bug: 7183252
Change-Id: I9d3eb8abb5ba5e93f8634d3135794e92ff6273b6
/frameworks/base/core/java/android/provider/Settings.java
20c41d5382b70fa5a24e9ef68f19ce0aedea5234 21-Sep-2012 Michael Jurka <mikejurka@google.com> Add support for changing status widget on security screen

Change-Id: I080fd89eb84445604c602b6e807b55153a7ee129
/frameworks/base/core/java/android/provider/Settings.java
f9fac2c5fe3f304ee866b1afc3191d36835e96bd 20-Sep-2012 Eric Laurent <elaurent@google.com> Merge "Add multi user volume management" into jb-mr1-dev
89d5546d7fd3a3bb19820c42e8b4527013dd6545 19-Sep-2012 Jeff Brown <jeffbrown@google.com> Add support for remembering Wifi display devices.

Add a setting to globally disable Wifi display.

Fixed a bug where the wifi display broadcast receiver
was running on the wrong thread.

Removed the wifi-display QuickSettings dialog, all functionality
has been moved to Settings.

Bug: 7178216
Bug: 7192799
Change-Id: I9796baac8245d664cf28fa147b9ed978d81d8ab9
/frameworks/base/core/java/android/provider/Settings.java
c8c083862f6435574e479084d84b149e73795651 20-Sep-2012 Christopher Tate <ctate@google.com> setShowGTalkServiceStatus() is deprecated but tested by CTS

So its implementation has to hang around on that basis.

Bug 7164713

Change-Id: Ibb59932b3b6d275d8ac8e091774b08256a258db1
/frameworks/base/core/java/android/provider/Settings.java
bc0fab1fc2db832ef86d8a33466ec4d68b103ca0 19-Sep-2012 Eric Laurent <elaurent@google.com> Add multi user volume management

Notification and Alarm volumes are per user: they are saved and restored
when the foreground user changes.
Media volume is global: it is still saved and restored per user for
implentation reasons but is copied from one user to the next to ensure
media playback volume continuity when switching users.

Ringer mode (silent, vibrate...) is now a global setting.

Bug 7128886.

Change-Id: I9f4f5a0a3985552bca61c2cc3bbe5a144db755a6
/frameworks/base/core/java/android/provider/Settings.java
3809f500c3411af2ab5ab6c706cdb4373940123e 18-Sep-2012 Irfan Sheriff <isheriff@google.com> Disable notification scans when p2p is connected

Also reduce scan interval for STA scans to one minute.

Bug: 7138968
Change-Id: I03620f6d462e4ec90d9bb25bbfe709f63173df21
/frameworks/base/core/java/android/provider/Settings.java
42af7518f55afebcf9b7656853d1a0e34361c3be 17-Sep-2012 rich cannings <richc@google.com> Merge "Add setting to change verifier visibility" into jb-mr1-dev
4505a43f300568811d3260d25381a61c7fff65ea 16-Sep-2012 John Huang <jsh@google.com> Merge "Add support for per-package policy for sending premium SMS." into jb-mr1-dev
e6686b3e2309cb21cc8fd9a107d524add4b75b92 16-Sep-2012 rich cannings <richc@google.com> Add setting to change verifier visibility

Added a setting that will be used to control whether the user can see the
package verification setting in the Setting app.

Bug: 7022814
Change-Id: Ifa096682e90c83760df5db12c4cf72e2f897db9c
/frameworks/base/core/java/android/provider/Settings.java
6f5a9a96523ecf97a9828a410dd1226df47ec4e6 15-Sep-2012 Christopher Tate <ctate@google.com> Fix default population of wifi settings

Various wifi settings that are explicitly defaulted did not get their
default code properly converted to refer to the correct settings
database table.

A collection of moved-to-Global settings that had not yet been
marked @deprecated in the Secure.* namespace are now so marked.

Also updated the namespace used to refer to wifi settings from the
Wifi Service. These changes are cosmetic, but they do eliminate a
number of runtime log messages.

Bug 7153671

Change-Id: I9e5b6464d025cfb480ef97373996e38e82f90593
/frameworks/base/core/java/android/provider/Settings.java
76a61426876409bc6936697d7560bd8c8a6193c5 07-Sep-2012 Jake Hamby <jhamby@google.com> Add support for per-package policy for sending premium SMS.

The default behavior for sending a message to a premium SMS
short code (or suspected premium SMS number) is to ask the user for
confirmation. Enable the user to set a default policy ("remember this
choice" checkbox) to always/never allow the app to send SMS to
premium short codes in the future. The policy can be changed by
the Settings app in the app info screen.

Bug: 5513975
Change-Id: I15f45f34dc4da4aef7d0efd675be6bc3a4ceb720
/frameworks/base/core/java/android/provider/Settings.java
f229e4d3eb8f910c181f96416c6798f6f305a395 13-Sep-2012 Jim Miller <jaggies@google.com> Add support for settings for lock widgets

Change-Id: Iade094c6f32a7653bdbbd4921d345d68f2443ff4
/frameworks/base/core/java/android/provider/Settings.java
78d2a66ac12e4c8f1303225514f573fb53af1dd9 14-Sep-2012 Christopher Tate <ctate@google.com> Fix Settings writes to a different user

Oops. Stacked bugs: first, the desired user handle was not properly
being passed from the call() entry point to the database operations;
then on top of that, the client-side cache management was still
looking in the local user's cache for the data, so a request to read
a different user's settings would return the local user's instead if
that key was already known to the local user's cache.

Reads and writes of a different user's settings are now uncached,
so they're relatively much slower. They're rare, however, so this
is not something to worry about unless we encounter a real world
case where it's a significant factor.

This CL also adds a bit of cross-user settings read/write testing
to the existing provider suite. These new tests caught both the
known wrong-user-write bug and discovered the client-side cache
bug, so yay.

Finally, the existing wholesale mutual-exclusion approach would
deadlock in certain circumstances due to the fact that the
settings database creation code might have to call out to the
Package Manager while populating the bookmark/shortcut table,
and the Package Manager would then call back into the settings
provider in the course of handling that request. The synchronization
regime has been significantly tightened up now: now the database
code [which is known to deal with concurrency itself] is allowed
to cope with multiple parallel openers of the same db; this
allows the settings provider to avoid calling out to other parts
of the system even implicitly while its internal lock is held.

Change-Id: Ib77d445b4a2ec658cc5c210830f6977c981f87ed
/frameworks/base/core/java/android/provider/Settings.java
c868b645b46685574955eaff9f8d46d9262a3357 13-Sep-2012 Christopher Tate <ctate@google.com> Moved a few telephony settings from Secure to Global

Also tidy up the bookkeeping for a few settings that were earlier
moved to Global without the redirect tables being fixed up.

Change-Id: I69275db3b2636cd6ba9c8c51b88e97d8ba4b7b7d
/frameworks/base/core/java/android/provider/Settings.java
d5fe1479248fa597efc7ccb0b36df0b520bbc2a3 11-Sep-2012 Christopher Tate <ctate@google.com> Miscellaneous fixes for Settings

(1) It's okay to write literal null as a settings element value
(2) Properly convey the user handle in the put-for-user variant

Bug 7137201
Bug 7139826

Change-Id: I0ed77d65e8377f0e0580a2668f10b7167ad34928
/frameworks/base/core/java/android/provider/Settings.java
4d8fc793f044cf2c857ac72ebe51641b8e6c413d 07-Sep-2012 rich cannings <richc@google.com> Move verification settings to Settings.Global

Move Settings.Secure.PACKAGE_VERIFIER_ENABLE,
Settings.Secure.PACKAGE_VERIFIER_TIMEOUT,
Settings.Secure.PACKAGE_VERIFIER_DEFAULT_RESPONSE to
Settings.Global.PACKAGE_VERIFIER_ENABLE,
Settings.Global.PACKAGE_VERIFIER_TIMEOUT,
Settings.Global.PACKAGE_VERIFIER_DEFAULT_RESPONSE, respectively.

Bug: 7082362
Change-Id: I21fde031a330563891c0129132f3d6369ac5e7a5
/frameworks/base/core/java/android/provider/Settings.java
9219874be99cc07660807cc5dc94b0d157ef8808 07-Sep-2012 Christopher Tate <ctate@google.com> Further fixup of migration to global settings

The Settings.System.STAY_ON_WHILE_PLUGGED element should have been
migrated to the global table, but wasn't. This CL does a couple of
things around dealing with this:

(1) Tidies up the migration tables outright, so that they correctly
reflect the intended final state

(2) Introduces the option of doing a key migration only if the element
has not yet been moved to the new table, to allow for safe retry-
-with-ignore. This will make it easy to make any future alterations
to the global vs per-user association of individual elements

(3) Migrates the STAY_ON_WHILE_PLUGGED element if it hasn't been already.

Bug 7126575

Change-Id: Ic5fa9ba45f11b09270bd5bc94c26fbbd84abc749
/frameworks/base/core/java/android/provider/Settings.java
1cf70bbf96930662cab0e699d70b62865766ff52 06-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Screen magnification - feature - framework.

This change is the initial check in of the screen magnification
feature. This feature enables magnification of the screen via
global gestures (assuming it has been enabled from settings)
to allow a low vision user to efficiently use an Android device.

Interaction model:

1. Triple tap toggles permanent screen magnification which is magnifying
the area around the location of the triple tap. One can think of the
location of the triple tap as the center of the magnified viewport.
For example, a triple tap when not magnified would magnify the screen
and leave it in a magnified state. A triple tapping when magnified would
clear magnification and leave the screen in a not magnified state.

2. Triple tap and hold would magnify the screen if not magnified and enable
viewport dragging mode until the finger goes up. One can think of this
mode as a way to move the magnified viewport since the area around the
moving finger will be magnified to fit the screen. For example, if the
screen was not magnified and the user triple taps and holds the screen
would magnify and the viewport will follow the user's finger. When the
finger goes up the screen will clear zoom out. If the same user interaction
is performed when the screen is magnified, the viewport movement will
be the same but when the finger goes up the screen will stay magnified.
In other words, the initial magnified state is sticky.

3. Pinching with any number of additional fingers when viewport dragging
is enabled, i.e. the user triple tapped and holds, would adjust the
magnification scale which will become the current default magnification
scale. The next time the user magnifies the same magnification scale
would be used.

4. When in a permanent magnified state the user can use two or more fingers
to pan the viewport. Note that in this mode the content is panned as
opposed to the viewport dragging mode in which the viewport is moved.

5. When in a permanent magnified state the user can use three or more
fingers to change the magnification scale which will become the current
default magnification scale. The next time the user magnifies the same
magnification scale would be used.

6. The magnification scale will be persisted in settings and in the cloud.

Note: Since two fingers are used to pan the content in a permanently magnified
state no other two finger gestures in touch exploration or applications
will work unless the uses zooms out to normal state where all gestures
works as expected. This is an intentional tradeoff to allow efficient
panning since in a permanently magnified state this would be the dominant
action to be performed.

Design:

1. The window manager exposes APIs for setting accessibility transformation
which is a scale and offsets for X and Y axis. The window manager queries
the window policy for which windows will not be magnified. For example,
the IME windows and the navigation bar are not magnified including windows
that are attached to them.

2. The accessibility features such a screen magnification and touch
exploration are now impemented as a sequence of transformations on the
event stream. The accessibility manager service may request each
of these features or both. The behavior of the features is not changed
based on the fact that another one is enabled.

3. The screen magnifier keeps a viewport of the content that is magnified
which is surrounded by a glow in a magnified state. Interactions outside
of the viewport are delegated directly to the application without
interpretation. For example, a triple tap on the letter 'a' of the IME
would type three letters instead of toggling magnified state. The viewport
is updated on screen rotation and on window transitions. For example,
when the IME pops up the viewport shrinks.

4. The glow around the viewport is implemented as a special type of window
that does not take input focus, cannot be touched, is laid out in the
screen coordiates with width and height matching these of the screen.
When the magnified region changes the root view of the window draws the
hightlight but the size of the window does not change - unless a rotation
happens. All changes in the viewport size or showing or hiding it are
animated.

5. The viewport is encapsulated in a class that knows how to show,
hide, and resize the viewport - potentially animating that.
This class uses the new animation framework for animations.

6. The magnification is handled by a magnification controller that
keeps track of the current trnasformation to be applied to the screen
content and the desired such. If these two are not the same it is
responsibility of the magnification controller to reconcile them by
potentially animating the transition from one to the other.

7. A dipslay content observer wathces for winodw transitions, screen
rotations, and when a rectange on the screen has been reqeusted. This
class is responsible for handling interesting state changes such
as changing the viewport bounds on IME pop up or screen rotation,
panning the content to make a requested rectangle visible on the
screen, etc.

8. To implement viewport updates the window manger was updated with APIs
to watch for window transitions and when a rectangle has been requested
on the screen. These APIs are protected by a signature level permission.
Also a parcelable and poolable window info class has been added with
APIs for getting the window info given the window token. This enables
getting some useful information about a window. There APIs are also
signature protected.

bug:6795382

Change-Id: Iec93da8bf6376beebbd4f5167ab7723dc7d9bd00
/frameworks/base/core/java/android/provider/Settings.java
06efb530a479ea12398c1b3ee4b80e2ac85a1680 25-Aug-2012 Christopher Tate <ctate@google.com> Per-user settings

Each user has its own Settings.System.* and Settings.Secure.* namespace now. In
addition, this CL introduces the new Settings.Global.* namespace, which contains
a number of previously-elsewhere named settings entities; these Global.* entities
are common to all users. Because these elements have been moved from their prior
existence in the other namespaces, attempts to access them under their old names
and namespaces are detected and redirected (with appropriate compile-time and
logging messages) to their new homes.

The new Global.* namespace can only be written by system-level code, just like
the existing Secure.* namespace. If an app attempts to write a key that was
previously in the System.* namespace but has been moved to the Global.* namespace,
then a warning is logged and no write is performed; the action is a no-op. (The
app is explicitly not crashed, to avoid breaking well-behaved apps that can't
know any better.)

There is also now a hidden API for getting/setting settings entities associated
with a user other than the caller's. Reading/writing data for a user other than
yourself requires the signature-level INTERACT_ACROSS_USERS_FULL permission.

Manipulating data for a different user cannot be done via the ContentProvider
query() / insert() APIs; you must use the Settings.get/put APIs for that degree
of control. In general, use of the get/set API is *strongly* preferred over
query-type access to Settings.

Bug 6985398

Change-Id: Ibee54ddff99fb847c8c2479c23b50f1e7524d724
/frameworks/base/core/java/android/provider/Settings.java
16e119e798cd1e6dd94114bc910b2c1fd92b88e5 06-Sep-2012 rich cannings <richc@google.com> Add secure setting for package verification

Framework changes to store and read a secure setting for package verification.
Default is on/true.

This setting will be turned on/off via the Settings app.

Bug: 7082362
Change-Id: I6f93d3136add8af0dbbdc664f0473c5f5b7e3fee
/frameworks/base/core/java/android/provider/Settings.java
bd6e1500aedc5461e832f69e76341bff0e55fa2b 28-Aug-2012 Jeff Brown <jeffbrown@google.com> Add initial multi-display support.

Split the DisplayManager into two parts. One part is bound
to a Context and takes care of Display compatibility and
caching Display objects on behalf of the Context. The other
part is global and takes care of communicating with the
DisplayManagerService, handling callbacks, and caching
DisplayInfo objects on behalf of the process.

Implemented support for enumerating Displays and getting
callbacks when displays are added, removed or changed.

Elaborated the roles of DisplayManagerService, DisplayAdapter,
and DisplayDevice. We now support having multiple display
adapters registered, each of which can register multiple display
devices and configure them dynamically.

Added an OverlayDisplayAdapter which is used to simulate
secondary displays by means of overlay windows. Different
configurations of overlays can be selected using a new
setting in the Developer Settings panel. The overlays can
be repositioned and resized by the user for convenience.

At the moment, all displays are mirrors of display 0 and
no display transformations are applied. This will be improved
in future patches.

Refactored the way that the window manager creates its threads.
The OverlayDisplayAdapter needs to be able to use hardware
acceleration so it must share the same UI thread as the Keyguard
and window manager policy. We now handle this explicitly as
part of starting up the system server. This puts us in a
better position to consider how we might want to share (or not
share) Loopers among components.

Overlay displays are disabled when in safe mode or in only-core
mode to reduce the number of dependencies started in these modes.

Change-Id: Ic2a661d5448dde01b095ab150697cb6791d69bb5
/frameworks/base/core/java/android/provider/Settings.java
da6da0907b28d4704aabbdb1bbeb4300954670d1 16-Aug-2012 Irfan Sheriff <isheriff@google.com> Captive portal handling

We now notify the user of a captive portal before switching to the network as default.
This allows background applications to continue to work until the user confirms he
wants to sign in to the captive portal.

Also, moved out captive portal handling out of wifi as a seperate component.

Change-Id: I7c7507481967e33a1afad0b4961688bd192f0d31
/frameworks/base/core/java/android/provider/Settings.java
1a868b7981ca5f52e893fdf9f8f538c9d5ce241d 22-Aug-2012 John Spurlock <jspurlock@google.com> Add framework support for multiple dreams.

Bug:7028665
Change-Id: I4fba6b8e39dc07af4490c621ac3bc7b3867371b2
/frameworks/base/core/java/android/provider/Settings.java
37a37f445cbcd64376af153dd79ea2a123d9405d 15-Aug-2012 Brian Muramatsu <btmura@google.com> add wireless charger support

bug: 6879638

- add new enum value BATTERY_PLUGGED_WIRELESS
- check for sys online file with contents "Wireless"

Change-Id: I22dc3c40f50573c98643e7b5cbcb237d0216530d
/frameworks/base/core/java/android/provider/Settings.java
f02b60aa4f367516f40cf3d60fffae0c6fe3e1b8 16-Aug-2012 Dianne Hackborn <hackbod@google.com> Rename UserId to UserHandle.

This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
/frameworks/base/core/java/android/provider/Settings.java
9630704ed3b265f008a8f64ec60a33cf9dcd3345 28-Jul-2012 Jeff Brown <jeffbrown@google.com> Power manager rewrite.

The major goal of this rewrite is to make it easier to implement
power management policies correctly. According, the new
implementation primarily uses state-based rather than event-based
triggers for applying changes to the current power state.

For example, when an application requests that the proximity
sensor be used to manage the screen state (by way of a wake lock),
the power manager makes note of the fact that the set of
wake locks changed. Then it executes a common update function
that recalculates the entire state, first looking at wake locks,
then considering user activity, and eventually determining whether
the screen should be turned on or off. At this point it may
make a request to a component called the DisplayPowerController
to asynchronously update the display's powe state. Likewise,
DisplayPowerController makes note of the updated power request
and schedules its own update function to figure out what needs
to be changed.

The big benefit of this approach is that it's easy to mutate
multiple properties of the power state simultaneously then
apply their joint effects together all at once. Transitions
between states are detected and resolved by the update in
a consistent manner.

The new power manager service has is implemented as a set of
loosely coupled components. For the most part, information
only flows one way through these components (by issuing a
request to that component) although some components support
sending a message back to indicate when the work has been
completed. For example, the DisplayPowerController posts
a callback runnable asynchronously to tell the PowerManagerService
when the display is ready. An important feature of this
approach is that each component neatly encapsulates its
state and maintains its own invariants. Moreover, we do
not need to worry about deadlocks or awkward mutual exclusion
semantics because most of the requests are asynchronous.

The benefits of this design are especially apparent in
the implementation of the screen on / off and brightness
control animations which are able to take advantage of
framework features like properties, ObjectAnimator
and Choreographer.

The screen on / off animation is now the responsibility
of the power manager (instead of surface flinger). This change
makes it much easier to ensure that the animation is properly
coordinated with other power state changes and eliminates
the cause of race conditions in the older implementation.

The because of the userActivity() function has been changed
so that it never wakes the device from sleep. This change
removes ambiguity around forcing or disabling user activity
for various purposes. To wake the device, use wakeUp().
To put it to sleep, use goToSleep(). Simple.

The power manager service interface and API has been significantly
simplified and consolidated. Also fixed some inconsistencies
related to how the minimum and maximum screen brightness setting
was presented in brightness control widgets and enforced behind
the scenes.

At present the following features are implemented:

- Wake locks.
- User activity.
- Wake up / go to sleep.
- Power state broadcasts.
- Battery stats and event log notifications.
- Dreams.
- Proximity screen off.
- Animated screen on / off transitions.
- Auto-dimming.
- Auto-brightness control for the screen backlight with
different timeouts for ramping up versus ramping down.
- Auto-on when plugged or unplugged.
- Stay on when plugged.
- Device administration maximum user activity timeout.
- Application controlled brightness via window manager.

The following features are not yet implemented:

- Reduced user activity timeout for the key guard.
- Reduced user activity timeout for the phone application.
- Coordinating screen on barriers with the window manager.
- Preventing auto-rotation during power state changes.
- Auto-brightness adjustment setting (feature was disabled
in previous version of the power manager service pending
an improved UI design so leaving it out for now).
- Interpolated brightness control (a proposed new scheme
for more compactly specifying auto-brightness levels
in config.xml).
- Button / keyboard backlight control.
- Change window manager to associated WorkSource with
KEEP_SCREEN_ON_FLAG wake lock instead of talking
directly to the battery stats service.
- Optionally support animating screen brightness when
turning on/off instead of playing electron beam animation
(config_animateScreenLights).

Change-Id: I1d7a52e98f0449f76d70bf421f6a7f245957d1d7
/frameworks/base/core/java/android/provider/Settings.java
0412423f06ec633203b96f68b51f0720c33a2473 29-Jun-2012 Haoyu Bai <bhy@google.com> Setup idletimer for network interface.

Cherry-picked from commit f71ca8a5728e425de61ba794c9653dd0b04f16e3 in
master. DO NOT MERGE

Change-Id: I6101c7ae041b4cc1237ce7a9983753dbdfa301d3
/frameworks/base/core/java/android/provider/Settings.java
3fb4ba616edb114b3197936eb67f481eb86b7cae 10-Aug-2012 Irfan Sheriff <isheriff@google.com> Add control to disable suspend optimizations

Add an advanced setting that allows user to turn off power savings at screen off.

Bug: 5885175
Change-Id: I2dd013b86d7500a2ad1f9ec75d86551808f05543
/frameworks/base/core/java/android/provider/Settings.java
5773bfdb7cd3852d9fedd497e3c22c49c83d0d75 13-Jul-2012 Dianne Hackborn <hackbod@google.com> Add power menu action to take a bug report

Change-Id: I5f58d99e9a27a1fc496fa54e0c0ee333087155da
/frameworks/base/core/java/android/provider/Settings.java
dde331cebd87982faded6818ad5f9927ff994c96 03-Aug-2012 Dianne Hackborn <hackbod@google.com> We can now (kind-of) change screen density on the fly.

Preloaded drawables now have a density associated with them, so we
can load the correct drawable if we are using a different density.

Window manager now formally keeps track of the density for each
screen, allowing it to be overridden like you can already do with
size, and relies on this density to drive itself internally and
the configurations it reports.

There are a new set of Bitmap constructors where you provide a
DisplayMetrics so they can be constructed with the correct density.
(This will be for when you can have different windows in the same
app running at different densities.)

ActivityThread now watches for density changes, and pushes them
to the DENSITY_DEVICE and Bitmap global density values for that
process.

A new am command allows you to change the density.
/frameworks/base/core/java/android/provider/Settings.java
b2d8f3f7472a091cf062ed40a8e2f7a387525e2e 29-Jun-2012 Christopher Tate <ctate@google.com> am b69c77cd: am 1598a508: Merge "Do not back up / restore the rotation-related settings" into jb-dev

* commit 'b69c77cd194ccbe24a8b1e5d8457b44d150f9a96':
Do not back up / restore the rotation-related settings
596e1917d5fd4697e6a186db422c8221eadb580e 29-Jun-2012 Christopher Tate <ctate@google.com> Do not back up / restore the rotation-related settings

Change-Id: I4c5f8c31fa78acc1dfa2676e89b2c1c7bbd12a06
/frameworks/base/core/java/android/provider/Settings.java
1b60e7287723cc03efc4893e3bbf3b9e8ac1cba9 06-Jun-2012 Jeff Brown <jeffbrown@google.com> am eef4bc08: am 615fd3df: Merge "Implement new rotation policy." into jb-dev

* commit 'eef4bc08137f2324e2974c282992ff546df99e54':
Implement new rotation policy.
207673cdbb536b9bdd9ff7f9ce953c5485d11f5a 06-Jun-2012 Jeff Brown <jeffbrown@google.com> Implement new rotation policy.

Rotation lock does not override NOSENSOR mode anymore.

Centralize the rotation policy settings into a new class shared by
the System UI and Settings applications.

Add a new setting to specify whether rotation-lock is being hidden
because the "auto-rotate screen" option has been toggled in the
Accessibility settings panel.

Bug: 6523269
Change-Id: I15173280d25bc5d101e89a9c65913aefc53fc33a
/frameworks/base/core/java/android/provider/Settings.java
2d9f96bf4584fb99f1e8f06a28a859c53ff50ea4 31-May-2012 Svetoslav Ganov <svetoslavganov@google.com> am 191e7c5a: am 758534ed: Merge "Ask to enable touch exploration only the first time it enables the feature." into jb-dev

* commit '191e7c5a4959e4c16154ade5d1ceb277ef31021e':
Ask to enable touch exploration only the first time it enables the feature.
9a4c5cd19106c3021eeead27fbc2aa05ad7d0d18 30-May-2012 Svetoslav Ganov <svetoslavganov@google.com> Ask to enable touch exploration only the first time it enables the feature.

1. Now we are asking the user to grant permission to the service to enable
touch exploration only the first time this service is enabled. If the
service was uninstalled and then later installed we ask the user again.
This avoids the scenario in which rebooting the device or upgrading an
accessibility service leaves the device in a state in which the user
cannot interact with.

bug:6582088

Change-Id: I51d24e4892b3b48c9fb11dfb09ec1118502ba526
/frameworks/base/core/java/android/provider/Settings.java
a6cfe52eb83995b124efec5f73bcb179caadf888 22-May-2012 rich cannings <richc@google.com> Allow APKs to install when verifier times out.

When app verfication is enabled and the verifier times out, allow
PackageManagerService to continue with the installation.

Bug: 6531120
Change-Id: Ic6aef755af92588e8887c918b70fb195c683b24c
/frameworks/base/core/java/android/provider/Settings.java
787c9ec558a06bb8ebcb5a77f5268cedd218fd1b 18-May-2012 Jeff Sharkey <jsharkey@android.com> Merge "Transition from DEV network stats to XT." into jb-dev
172d97edcdfd9b228d8cf96d312b55fb67699fd4 02-May-2012 Jake Hamby <jhamby@google.com> Enable SMS short code patterns to be updated from secure settings.

The premium SMS short code detector loads patterns from an XML resource
by default (frameworks/base/core/res/res/xml/sms_short_codes.xml).
Add support for updated patterns to be loaded on a per-country basis
from a secure setting named "sms_short_codes_" + the country code.
Updated patterns can be pushed to Google devices via Gservices.

Bug: 5513975
Change-Id: Ibfc0be4f12227ba45c28396ec7cdbc307442af81
/frameworks/base/core/java/android/provider/Settings.java
70c70530bd6793869736ec894498e4ebf5dc9b20 16-May-2012 Jeff Sharkey <jsharkey@android.com> Transition from DEV network stats to XT.

When XT stats are available, transition to prefer them over DEV,
since they aren't subject to hardware driver bugs. Only switches at
the first atomic XT bucket, and adds a Settings.Secure flag to force
back to DEV if needed. Includes tests to cover transition.

Fix tests where device overlay would change which network types
reflected data usage. Test both history and summary APIs. Fixed
collection timestamps to reflect full buckets.

Bug: 6504744
Change-Id: Idd7f3b2fdb064c36547c85c51c214fd938c59b7e
/frameworks/base/core/java/android/provider/Settings.java
f53857716a0db805c51c0cae93550d90e32e4749 11-May-2012 Jeff Sharkey <jsharkey@android.com> Enforce READ_EXTERNAL through Settings.Secure.

Always defers to user-defined setting, when present.

Bug: 6389556
Change-Id: I079d2a41b772facfdac74eefc4c8072fc9284f97
/frameworks/base/core/java/android/provider/Settings.java
518a3d82f78e5089d0f99e61e46e1e915aea91ab 10-May-2012 Dianne Hackborn <hackbod@google.com> Remove auto-brightness adjustment knob.

Not yet ready for release.

Change-Id: I75bc87f35af47c6baac1f26953d8bf3e38062c92
/frameworks/base/core/java/android/provider/Settings.java
3c60eeb1332661833638c863b2978422c2846140 08-May-2012 Daisuke Miyakawa <dmiyakawa@google.com> Have a new constant for "vibrate when ringing" setting

Bug: 6036529
Change-Id: I850d27629a75615647883fdaa2933f337c4824d1
/frameworks/base/core/java/android/provider/Settings.java
bffc3d1bd33eb2d8e00a9f8b6261d815db503311 08-May-2012 Eric Laurent <elaurent@google.com> Silent and Vibrate mode clean up

Clean up related to new Vibration policy.
The vibrate behavior is now only derived from:
- presence of a vibrator on the device
- current ringer mode selected: NORMAL, VIBRATE or SILENT
If no vibrator is present the ringer mode can only be NORMAL or SILENT.

The control of ringer mode via volume keys when volume keys control the "master"
stream type (RING on phones, MUSIC on tablets) is as follows:
If a vibrator is present:
VOL- and volume equals 1: NORMAL => VIBRATE
VOL- and volume equals 0 and not continuous press: VIBRATE => SILENT
VOL+ and in SILENT mode: SILENT => VIBRATE
VOL+ and in VIBRATE mode: VIBRATE => NORMAL, volume = 1
If no vibrator is present:
VOL- and volume equals 0 and not continuous press: NORMAL => SILENT
VOL+ and in SILENT mode: SILENT => NORMAL, volume = 0

VIBRATE_ON and VIBRATE_IN_SILENT settings are not stored/retreived any more.

AudioService checks and corrects ringer mode and stream volumes if necessary when reading from
DB at boot time.

Also:
Added dump for stream volumes in AudioService.
Added device names missing in AudioSystem for USB accessory and USB device.

Issue: 6036529
Issue: 6414950
Issue: 6448163

Change-Id: I77fb821ec63e4e566320cac2701b4ac466e86aef
/frameworks/base/core/java/android/provider/Settings.java
2bdefcab74d4ee21ad4bc1e90b30aeb7eac589e0 26-Apr-2012 Irfan Sheriff <isheriff@google.com> Add support for changing p2p device name

Change-Id: Ie13fe2adedd0bac6aa07b3369c4d6a05ef33cd24
Signed-off-by: isheriff@google.com
Signed-off-by: Yoshihiko Ikenaga <yoshihiko.ikenaga@jp.sony.com>
/frameworks/base/core/java/android/provider/Settings.java
3ef889bf561e59561ff2c6c4b2ffb586b9c5af5c 18-Apr-2012 Irfan Sheriff <isheriff@google.com> Add user control to turn on/off nsd

Change-Id: Ide3cc20adb21ac6dffaf6b9b9136d77a129afa3b
/frameworks/base/core/java/android/provider/Settings.java
7f6c231a76f0bedaf9655a24707737d343244312 14-Apr-2012 Jeff Brown <jeffbrown@google.com> Add setting to redirect vibrator to game controller.

Bug: 6334179
Change-Id: I70093e38824ea3e5cf9cf242d1d7b6d26115ed80
/frameworks/base/core/java/android/provider/Settings.java
7ab8c4abca2abb6a5f6d900299365371073bcfd2 06-Apr-2012 Amith Yamasani <yamasani@google.com> Fixes a bug in migration of lock settings to LockSettingsService.

Due to the code to handle backward compatibility, the migration
ended up being recursive.

Change-Id: I1c2cf4a81fbdee6a4b74cafb624625716c88cad3
/frameworks/base/core/java/android/provider/Settings.java
52c489cd63cca0361f374f7cb392018fabfa8bcc 28-Mar-2012 Amith Yamasani <yamasani@google.com> Lockscreen settings per user

Move all lockscreen related settings to LockSettingsService.
LockPatternUtils uses this through IPC instead of Secure settings.
Migrate old settings to new database managed by LockSettingsService.
Passwords and patterns are stored in a new per-user location, except
for the primary user, for backward compatibility.
KeyguardViewMediator and LockPatternKeyguardView listen for changes
to user and updates the lockscreen.

Settings provider will look for Lock settings in the LockSettings
service now for the entries that used to be stored in Settings.

Change-Id: I956cd5b95e2d9d45a6401af7e270e6a5aa2dcc98
/frameworks/base/core/java/android/provider/Settings.java
6a8096d7d56ce4c65318f283ef666993f3020745 04-Apr-2012 Justin Koh <justinkoh@google.com> resolved conflicts for merge of bff6a514 to master

Change-Id: I741d5ab8ed0ce25a27330ffb55ba210534d11c3d
57978ed86286a33d5b1a0fd000ca3406ba9d87b3 04-Apr-2012 Justin Koh <justinkoh@google.com> Persists the master mute volume setting.

Persists the master mute volume setting across reboots.

TESTED = runs on Tungsten.

Change-Id: I9628b9369ca528b22413f62a9e7d697bae61d8ac
/frameworks/base/core/java/android/provider/Settings.java
925a7d8f062c2ef275ccb7579889d6f83d0d378e 19-Mar-2012 Danielle Millett <dmillett@google.com> Added a setting for whether biometric weak liveliness is enabled.

The liveliness setting is represented by a bit in
LOCK_BIOMETRIC_WEAK_FLAGS so that more settings can be added if needed.

Change-Id: Ia6c94396d5b84de61f7eeb9a192d0aa925b13507
/frameworks/base/core/java/android/provider/Settings.java
aa6816a8a0e575059f1e417ba2bbc3c86cc879a3 09-Mar-2012 Irfan Sheriff <isheriff@google.com> Merge "Enhancements for avoiding poor connection on wifi"
4c8982ad820007512e4e9cbb7f15925228d70761 09-Mar-2012 Irfan Sheriff <isheriff@google.com> Enhancements for avoiding poor connection on wifi

- Avoid flapping
- Increase thresholds and monitor rssi more closely to detect consistently weak signal

Change-Id: I6139a20b7306839b345146a72ce690020a2e00b8
/frameworks/base/core/java/android/provider/Settings.java
e61cad321d2888f2b6b7e0322158211e3b3e0c46 08-Mar-2012 Dirk Dougherty <ddougherty@google.com> resolved conflicts for merge of 532679a5 to master

Change-Id: Id60d047c0e1f288acff97526c016cca632873b6b
cd83bf9420a7c4c25d562b197438f532ad897c90 06-Mar-2012 Dirk Dougherty <ddougherty@google.com> am 4d7bc655: Doc change: String changes for Android Market

* commit '4d7bc65538c7cd9fbb1fbbcf22d1da47fcee1219':
Doc change: String changes for Android Market
4d7bc65538c7cd9fbb1fbbcf22d1da47fcee1219 28-Jan-2012 Dirk Dougherty <ddougherty@google.com> Doc change: String changes for Android Market

Change-Id: I823812a4fd24021bec906ad856479c92a8d2a759
/frameworks/base/core/java/android/provider/Settings.java
07573b32494acbabd21979d8b9584c1ed3f7a6ad 28-Jan-2012 Irfan Sheriff <isheriff@google.com> Improve Wi-Fi hand-off

When Wi-fi connects at L2 layer, the beacons reach and the device
can maintain a connection to the access point, but the application
connectivity can be flaky (due to bigger packet size exchange).

We now use Watchdog to monitor the quality of the last hop on
Wi-Fi using signal strength and ARP connectivity as indicators
to decide if the link is good enough to switch to Wi-Fi as the uplink.

ARP pings are useful for link validation but can still get through
when the application traffic fails to go through and thus not best indicator
real packet loss since they are tiny packets (28 bytes) and have
much low chance of packet corruption than the regular data
packets.

Signal strength and ARP used together ends up working well in tests.
The goal is to switch to Wi-Fi after validating ARP transfer
and RSSI and then switching out of Wi-Fi when we hit a low
signal strength threshold and waiting until the signal strength
improves and validating ARP transfer.

Change-Id: Ica593291ec7772da892f03cf45b649635b730c47
/frameworks/base/core/java/android/provider/Settings.java
7bef73900b075fc0a9078d418964ca8e7210d565 20-Oct-2011 Mike Lockwood <lockwood@android.com> SettingsProvider: Add support for overriding lockscreen.disabled default value

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
8517e46f3d3c2ce11de09aa849a8533ffc1a2026 25-Oct-2011 Mike Lockwood <lockwood@android.com> Save and restore master volume in the settings provider

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
e7eeace594861365b4b5de08eee2cb4c0abf06b2 09-Feb-2012 Scott Main <smain@google.com> am ec12ae99: am 79cfde69: am 52bfc243: docs: fix misc doc bugs from external issue tracker

* commit 'ec12ae9933e463181338834387caa7c58b330635':
docs: fix misc doc bugs from external issue tracker
dfa926f54bc4a8a154eb5a0a928234073da7d3fd 09-Feb-2012 Scott Main <smain@google.com> am 52bfc243: docs: fix misc doc bugs from external issue tracker

* commit '52bfc243684b2f340da326aaa38e9021e4e3b2e6':
docs: fix misc doc bugs from external issue tracker
52bfc243684b2f340da326aaa38e9021e4e3b2e6 09-Feb-2012 Scott Main <smain@google.com> docs: fix misc doc bugs from external issue tracker

Change-Id: If6ff3476670e42b321d56d4a1482ccff96d4d500
/frameworks/base/core/java/android/provider/Settings.java
895f99e9ca3500ad69e9ae8d1a8f28237075c7c7 02-Feb-2012 Dianne Hackborn <hackbod@google.com> New global setting for developer options.

Change-Id: I3f60538e9f858858501c5b063b0da97675d445a6
/frameworks/base/core/java/android/provider/Settings.java
c38fa1f63674971f9ac6ced1a449fb81026b62f7 02-Feb-2012 Chet Haase <chet@google.com> Add Developer Option setting for Animator scaling.

This new setting allows users to set a scale factor for the
duration and startDelay of all Animator-based animations. This
setting is very similar to the Transition animation scale and
Window animation scale settings, except this one applies specifically
to Animator animations. The property is only accessible by users
through the Settings UI, not programmatically. The value applies
system-wide and is picked up per-process at the time of the first
ValueAnimator construction.

This is an update to a previous CL; this approach uses the WindowManager
to store the animator scale settings, instead of SystemProperties.

Change-Id: I8295fab060aa6d597ae507ded8f9c9d6077be966
/frameworks/base/core/java/android/provider/Settings.java
2d2d7d6f42fe22ecc2b1dc8bb96a19e503a61a20 28-Jan-2012 Jeff Brown <jeffbrown@google.com> Merge "Implement a cancelation mechanism for queries."
75ea64fc54f328d37b115cfb1ded1e45c30380ed 26-Jan-2012 Jeff Brown <jeffbrown@google.com> Implement a cancelation mechanism for queries.

Added new API to enable cancelation of SQLite and content provider
queries by means of a CancelationSignal object. The application
creates a CancelationSignal object and passes it as an argument
to the query. The cancelation signal can then be used to cancel
the query while it is executing.

If the cancelation signal is raised before the query is executed,
then it is immediately terminated.

Change-Id: If2c76e9a7e56ea5e98768b6d4f225f0a1ca61c61
/frameworks/base/core/java/android/provider/Settings.java
629c6765ca21b6ef23db893a35c62eef6a2a28b6 24-Jan-2012 Jeff Sharkey <jsharkey@android.com> Merge "Move network stats to FileRotator pattern."
63abc37356728c0575d6a62a203102ae6d97953b 12-Jan-2012 Jeff Sharkey <jsharkey@android.com> Move network stats to FileRotator pattern.

Split existing network stats into two separate classes: a recorder
which generates historical data based on periodic counter snapshots,
and a collection of historical data with persistance logic.

Recorder keeps a pending history in memory until outstanding data
crosses a specific threshold. Persisting is handled through a given
FileRotator. This pattern significantly reduces disk churn and
memory overhead. Separate UID data from UID tag data, enabling a
shorter rotation cycle. Migrate existing stats into new structure.

Remove "xt" stats until iptables hooks are ready. Avoid consuming
Entry values when recording into NetworkStatsHistory. Assign
operation counts to default route interface.

Introduce "Rewriter" interface in FileRotator with methods to enable
rewriteAll(). Introduce IndentingPrintWriter to handle indenting in
dump() methods.

Bug: 5386531
Change-Id: Ibe086230a17999a197206ca62d45f266225fdff1
/frameworks/base/core/java/android/provider/Settings.java
d9ea468d6a9cb6018ce33d3dcf9db72f02773af1 21-Jan-2012 Dianne Hackborn <hackbod@google.com> New brightness setting to adjust auto-brightness mode.

Change-Id: Icfec22be99d8c79e9ff5720b80fb9dacbba36134
/frameworks/base/core/java/android/provider/Settings.java
9a03482c66b2f5c30c7fde38216239a1f233df02 05-Jan-2012 Wink Saville <wink@google.com> am 3ed28036: am c697ebfd: Merge "Enhancement on ICS data stall polling logic" into ics-mr1

* commit '3ed2803691cc271fe6b893dc46d49fca2fce61df':
Enhancement on ICS data stall polling logic
71a14a589b83af50f77d628a0d8e6ef1778dd31e 04-Jan-2012 Wink Saville <wink@google.com> am c697ebfd: Merge "Enhancement on ICS data stall polling logic" into ics-mr1

* commit 'c697ebfdd671c7f4cf338d601917de16d2f1f135':
Enhancement on ICS data stall polling logic
7efb89b955a9f885835727b758e494714ee73beb 22-Dec-2011 Kazuhiro Ondo <kazuhiro.ondo@motorola.com> Enhancement on ICS data stall polling logic

Put enhancements on data stall polling logic in ICS so that
stall recovery can kick in earler while screen is on.

Bug: 5767897
Change-Id: I4683fc45c0161f4374749c8e5840261c19a48f77
/frameworks/base/core/java/android/provider/Settings.java
3ca5a74c17a27e44ce13b39bc2f63edaa88c3ef5 07-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Make the URL for the JavaScript based screen-reader used by WebView configurable.

The URl from which to inject a screen-reader for WebView accessiblity support should be
configurable because: 1) The accessibility engineering team should be able to point
devices to a staging build of the screen-reader; 2) We would like to be able to change
this URL via the Google services mechanism.

bug:5718543

Change-Id: I3d4d343f1c93e0e0173f04b2912949fe8a3566b9
/frameworks/base/core/java/android/provider/Settings.java
d04f28151b6b73fd70ca8a2b4b5995f6a557ce8d 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 8a4cd3b1: Merge "Disable poor network connection alone" into ics-mr1

* commit '8a4cd3b1053d92ecb34628218f303343746691f4':
Disable poor network connection alone
a188e4dc0e7a1505062fd82ea01f3f6e9a555f6b 07-Dec-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of ea25ea7e to ics-aah

Change-Id: I9d387ad2107486406f364f1cebc709126e2d27a5
bb60ee97664667c7774aa3c45b473332a3757d21 07-Dec-2011 Irfan Sheriff <isheriff@google.com> am 7c92e2dc: am 8a4cd3b1: Merge "Disable poor network connection alone" into ics-mr1

* commit '7c92e2dccb4e5cb5314455692ac32d2ccff24292':
Disable poor network connection alone
19380daaf46815c80bd89fd9ca3af3c4095952b5 06-Dec-2011 Irfan Sheriff <isheriff@google.com> Disable poor network connection alone

- Keep the walled garden detection in place

Bug: 5719771
Change-Id: I9e5d69b6d56096be904106b1db48c02db4c0fb50
/frameworks/base/core/java/android/provider/Settings.java
d5f44204578d6b3d9c3864eaed84bf453998c7cf 06-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> am 1113e755: am ea25ea7e: Merge "Adding a system preference whether to speak passwords in accessibility mode." into ics-mr1

* commit '1113e75588782cc23074b9a9bb887de06eff8a49':
Adding a system preference whether to speak passwords in accessibility mode.
55f937abe1a4fedb86c2679c66f0b5220ec3780e 05-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Adding a system preference whether to speak passwords in accessibility mode.

By default we do not speak passwords if the user has no headset. However,
many users find this too restrictive and would like a way to enable
password announcement. While we cannot speak the passwords all the time
,to avoid leaking them, we expose a preference so each user can choose
the option that best works for him/her.

bug:5712607

Change-Id: I6eb0c40834abe5297f7dc74be02d180a5bef0174
/frameworks/base/core/java/android/provider/Settings.java
c0fc5d81b895a0696fceeeadb76bdbaf1cb52071 01-Dec-2011 Daniel Sandler <dsandler@android.com> am 2a40d0d9: Merge "Put screensavers back in the icebox for now. DO NOT MERGE." into ics-mr1

* commit '2a40d0d92b208021b492e9af3d944720cbf269fc':
Put screensavers back in the icebox for now. DO NOT MERGE.
d2b22a885a79d537c79e98257647cc120bde2998 30-Nov-2011 Daniel Sandler <dsandler@android.com> Put screensavers back in the icebox for now. DO NOT MERGE.

Bug: 5689684
Change-Id: I3a5291c3520bb43e35d55714f1522e4ae7f6e63c
/frameworks/base/core/java/android/provider/Settings.java
711683cd96884690b9e834198e7c756bb23ab5ad 20-Nov-2011 Daniel Sandler <dsandler@android.com> am 25a43ada: am 9b5d7a59: Merge "Dreams (now Screen Candy) development." into ics-mr1

* commit '25a43adabb70aa769a097c6cb09d71b031431677':
Dreams (now Screen Candy) development.
75d8eb2a818508d135ea0aac46db8afc54445489 20-Nov-2011 Daniel Sandler <dsandler@android.com> am 9b5d7a59: Merge "Dreams (now Screen Candy) development." into ics-mr1

* commit '9b5d7a59f336a96e73f5f485f6e366e078a70497':
Dreams (now Screen Candy) development.
2d54536d08a59680078f78bc6301379563df4c85 17-Nov-2011 Daniel Sandler <dsandler@android.com> Dreams (now Screen Candy) development.

- support for global "disable" setting
- renamed settings provider keys to remove "DREAM"

Bug: 5591015
Change-Id: I31f31b3ca6001fec1e0032a49cdf0d10df7b0ec7
/frameworks/base/core/java/android/provider/Settings.java
f0b82d61f50ab0d9bd2ab57b33bf8fabed401c73 10-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of faa81c82 to ics-aah

Change-Id: I7464f16940058cc9b5a3dba5cb839bc67129009e
fb894276b127767e610fc99cc4539c397c4e7ecc 10-Nov-2011 Tom Taylor <tomtaylor@google.com> am 0bbd151e: am faa81c82: Merge "Revert "Add new secure setting for controlling Messaging notifications"" into ics-mr1

* commit '0bbd151e1dab043226725d23f0ca26f4d09ee76f':
Revert "Add new secure setting for controlling Messaging notifications"
994da2ad3242407fd822e6b35e3d302a3667d9c3 10-Nov-2011 Tom Taylor <tomtaylor@google.com> Revert "Add new secure setting for controlling Messaging notifications"

This reverts commit 03da2f00aac04e6565a02cf5a9bf6bb1ec926930.

Committer: Tom Taylor <tomtaylor@google.com>

On branch revertsetting
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)

modified: api/current.txt
modified: core/java/android/provider/Settings.java
modified: core/java/android/provider/Telephony.java
modified: packages/SettingsProvider/res/values/defaults.xml
modified: packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java

We've decided not to disable messaging notifications with a secure setting.
Instead, all the work will be done within the messaging app itself.

Change-Id: Icde6894e76da1007b6026c8ec7dc56e488453c06
/frameworks/base/core/java/android/provider/Settings.java
75f9808e5544c69254ea6cf374469a3dd9042b7d 09-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 604019c8: Merge "Fix build." into ics-mr1

* commit '604019c8d45b8c56cf48b03dbd92cfbdd29c48c1':
Fix build.
c1b3cbe1648cc606008522a667abe7fb766ff0c3 09-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ea54b760 to master

Change-Id: Ifcdfd6ffd82db1293936a8a3b5715dd767fb43f8
81b10fd74ecad65eb9c658cf3881c9c0254351e9 09-Nov-2011 Tom Taylor <tomtaylor@google.com> am 1366c756: Merge "Add new secure setting for controlling Messaging notifications" into ics-mr1

* commit '1366c756d28cdbb6c7c07959dfb4c93c81a9539d':
Add new secure setting for controlling Messaging notifications
a74ebb6d08e691e1b5802f40b19b27dc0bbf24d5 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> am 604019c8: Merge "Fix build." into ics-mr1

* commit '604019c8d45b8c56cf48b03dbd92cfbdd29c48c1':
Fix build.
604019c8d45b8c56cf48b03dbd92cfbdd29c48c1 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Merge "Fix build." into ics-mr1
b45a317b56fca32a3ae2adfca6e7803e945da581 08-Nov-2011 Robert Greenwalt <robdroid@android.com> am ea54b760: Merge "Wimax : wimax framework related open source." into ics-mr1

* commit 'ea54b7608584bc0535c9e89417778c3e95b50975':
Wimax : wimax framework related open source.
8588e47358878b7a1add2bd1df2ade95091cdb8d 08-Nov-2011 Robert Greenwalt <rgreenwalt@google.com> Fix build.

Missed a commit that fixed some issues.
bug:5237167

Change-Id: I61e44831e2c3f1cf613ca1387aa95d712b7d2ded
/frameworks/base/core/java/android/provider/Settings.java
bfc3e70662900564e795a174d14939bf1271757c 08-Nov-2011 Jason Simmons <jsimmons@google.com> resolved conflicts for merge of 1366c756 to ics-aah

Change-Id: I9faea6d9604f44b389acb4268941a7e5917ef1a8
ea54b7608584bc0535c9e89417778c3e95b50975 08-Nov-2011 Robert Greenwalt <robdroid@android.com> Merge "Wimax : wimax framework related open source." into ics-mr1
148c7d0de720a92632aa6ed10a39bfc38b427239 13-Oct-2011 tk.mun <tk.mun@samsung.com> Wimax : wimax framework related open source.

Integrate wimax network related changes into Android Framework.
- In Connectivity service, start wimax service.
- 4G icon display in StatusBarPolicy.
- DHCP renew add.
- Add radio for wiamx

Change-Id: I2d9012247edfdf49d71ca7e1414afd0006f330ca
Signed-off-by: tk.mun <tk.mun@samsung.com>
bug:5237167
/frameworks/base/core/java/android/provider/Settings.java
03da2f00aac04e6565a02cf5a9bf6bb1ec926930 07-Nov-2011 Tom Taylor <tomtaylor@google.com> Add new secure setting for controlling Messaging notifications

Bug 5552615
We're adding a new intent to allow 3rd party apps to disable
the Messaging app's notification. We want any app to be able to query
the setting of whether sms notifications are on or off, but only allow
system apps, particularly the Messaging app, to change that setting.
Other apps can change the setting by firing off an intent which brings
up a dialog activity in the Messaging app that'll let them turn off
Messaging notifications.

Change-Id: I4d2721191b86010efb383a24c28d911496440657
/frameworks/base/core/java/android/provider/Settings.java
cc27a9394764772812dad8b05c457f5c213d529f 04-Nov-2011 Wink Saville <wink@google.com> am 8b771243: am 3d708451: Merge "Separate data stall detection and recovery from net stats." into ics-mr0

* commit '8b77124395713de5e09c9b56fac03c244513dc25':
Separate data stall detection and recovery from net stats.
1aa7dda4e2cd81331d16df1c5f463dbfe58af8cb 04-Nov-2011 Wink Saville <wink@google.com> am 8b771243: am 3d708451: Merge "Separate data stall detection and recovery from net stats." into ics-mr0

* commit '8b77124395713de5e09c9b56fac03c244513dc25':
Separate data stall detection and recovery from net stats.
2861d23d660c577c65faa7dfebd66d5b6f3f1a56 04-Nov-2011 Wink Saville <wink@google.com> Separate data stall detection and recovery from net stats.

Also use the AlarmManager instead of messages so the delays
are consistent whether sleeping or not.

Bug: 5534004
Change-Id: I24118b30214dddf8183c1200a89555d6c528e606
/frameworks/base/core/java/android/provider/Settings.java
cccf01d3e270bbf53ae6601698109ac4ef461076 31-Oct-2011 Nick Pelly <npelly@google.com> API Change: add isNdefPushEnabled() & ACTION_NFC_SETTINGS.

Modify isNdefPushEnabled() semantics slightly - true only if isNfcEnabled && NDEF push enabled.

Fix up docs.

Change-Id: Icd2df9c636ecf2d8274851bbda423f2eae7bac5f
/frameworks/base/core/java/android/provider/Settings.java
619f06444bc828c6cf5c3fa4f4a309c9497dab45 25-Oct-2011 Mike Lockwood <lockwood@android.com> Save and restore master volume in the settings provider

Change-Id: I135c48155c41735c870e3934469c47f05bd74973
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
017219ab2aec18cd25e8d2eb00563073a7976488 20-Oct-2011 Mike Lockwood <lockwood@android.com> SettingsProvider: Add support for overriding lockscreen.disabled default value

Change-Id: I88c03a01727538dde3cec1ab93ebe8a66a6768a7
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
e43185e21d343741b1d98d1024db8f9703e78553 11-Oct-2011 Dave Santoro <dsantoro@google.com> Add hidden API for pre-authorizing URIs.

This allows the contacts provider to allow a caller to pre-authorize
a URI for temporary use by another application that would not
otherwise have the special permissions necessary to access it.

Bug 5437453

Change-Id: I3bd7be7c698cac73709c2d305f1723cdcb093ec4
/frameworks/base/core/java/android/provider/Settings.java
aee2687e613787f044e3f02cc99342a1ee79a739 11-Oct-2011 Amith Yamasani <yamasani@google.com> Backup owner info as part of settings backup. DO NOT MERGE.

[Cherry pick from master]

Added these settings to the whitelist:
Settings.Secure.LOCK_SCREEN_OWNER_INFO_ENABLED
Settings.Secure.LOCK_SCREEN_OWNER_INFO

Bug: 5342797
Change-Id: I1bd4d04b5651b61919efd8c1b25c04acc5806f4a
/frameworks/base/core/java/android/provider/Settings.java
a571a5836cdbc71feefb13648004b8ca7fe05dfb 21-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Settings are restored in alphabetical order rather in order of dependency.

Settings were restore in alphabetical order and capturing dependency
among them required keys to be chosen in such a way that after sorting
they apprear in dependency order. Now settings are exported and restored
in the order they are declared in the arrays of settings to backup.
Hence, the order in this array will capture the dependency order.

bug:5343351

Change-Id: I93a40bcdd194943cd6f85aa18f1557d546e38274
/frameworks/base/core/java/android/provider/Settings.java
1f0b13b9d64085dd8342ba942f39b6063b6d534d 18-Sep-2011 Jeff Sharkey <jsharkey@android.com> DO NOT MERGE: Sample atomic network stats buckets, full poll.

When sampling network stats, always use atomic buckets instead of
interpolating. Always poll iface and UID together so we distribute
into buckets equally. Move stale bucket trimming to just before
writing stats.

Bug: 5321340
Change-Id: I78a2226778a79c875f3668336e39ea24a7b4d5c4
/frameworks/base/core/java/android/provider/Settings.java
991d1b1b3f303ad247a959881b1d5b57766f678b 15-Sep-2011 Jeff Sharkey <jsharkey@android.com> Network stats flag to force complete poll.

Devices currently delay collecting UID stats during common operations
like global alerts to reduce parsing load. Here we introduce a flag
to always collect UID and iface stats together to aid debugging.

Bug: 5321340
Change-Id: Ia8e1daf1a6f9d5f5cf1f64a04b6b6766ee965ab6
/frameworks/base/core/java/android/provider/Settings.java
e90bed18cc123c0963bbcc023976fa355c16a352 30-Aug-2011 Gilles Debunne <debunne@google.com> Added an add to dictionary option in suggestions for misspelled words

Change-Id: I031f17a76b4a81ae375b778046b8c391f9b8b2b2
/frameworks/base/core/java/android/provider/Settings.java
8d3feb6292ba7e87adeb4982e8cf27114a8ee2e4 29-Aug-2011 Jeff Brown <jeffbrown@google.com> Merge "Add a "show touches" option for demos and presentations. Bug: 4569045"
daf4a127ba2af82a3fb477044b872719a0ab1827 27-Aug-2011 Jeff Brown <jeffbrown@google.com> Add a "show touches" option for demos and presentations.
Bug: 4569045

Change-Id: I8726ea292dd7def790a5e40d7d7e58968974f896
/frameworks/base/core/java/android/provider/Settings.java
978ed4693bced95f6d3261f2ed230cd776cffc99 25-Aug-2011 Narayan Kamath <narayan@google.com> Merge "Deprecate old TTS settings that are no longer in use."
a33c4fc5bed76727f1e06e522e0136101a2304cd 25-Aug-2011 satok <satok@google.com> Add functions to enable / disable spell checker

Bug: 5057977

Change-Id: I2b27bd5f55feb305368034d7e95f83257ac4b3e6
/frameworks/base/core/java/android/provider/Settings.java
6d6329621e8881683008fde201f8d5f41eabb1b1 24-Aug-2011 Narayan Kamath <narayan@google.com> Deprecate old TTS settings that are no longer in use.

These settings can never be written to by engines and apps
anyway, and reading them does not serve any useful purpose.
The only code that needs to read these settings are the framework
TTS classes.

bug:5149036
Change-Id: I1f95977d241eb6b550105f45d29fee889da3fbd1
/frameworks/base/core/java/android/provider/Settings.java
ada8c4e6a3da96a795f39a1028d448eb7aebfab3 23-Aug-2011 satok <satok@google.com> Add functions to set / get SpellCheckerSubtype

Change-Id: I977326879fe201c4dee4a87da361217175eb6041
/frameworks/base/core/java/android/provider/Settings.java
e5b8c4dfc70288f661e0da4f082dd51cc1399f86 22-Aug-2011 Narayan Kamath <narayan@google.com> Framework changes to support new TTS settings features.

Locale is now stored per engine, instead of as a global
option.

bug:5149036
Change-Id: I9848172623fe8aea1dd8e6678bca008da6a4cfb1
/frameworks/base/core/java/android/provider/Settings.java
9a20fa54c9ba4bd19f2afd6e8cc6e9954e7cb739 19-Aug-2011 Jeff Sharkey <jsharkey@android.com> Merge "Background data notification, API clean up."
3a844fcf5a0e70a19c38dc500306b9ebe4e1413b 16-Aug-2011 Jeff Sharkey <jsharkey@android.com> Background data notification, API clean up.

When restricting background data, show ongoing notification to give
easy access to re-enable. Deprecate getBackgroundDataSetting() API
to always return true, since NetworkInfo.isConnected() is new source
of truth. Handle upgrade path by reading from existing secure value,
and kick one last broadcast when changing value. Remove background
data code from ConnectivityService.

Remove warning alerts, since they push ifaces into restricted list;
should only happen when iface has limit.

Bug: 5163559, 5129421
Change-Id: I0064d9d643656a4d32aaae51d4a58bce49fe295f
/frameworks/base/core/java/android/provider/Settings.java
5ab2157bf1f105b02d3e2913cd3a33f9765b74ca 27-Jul-2011 Kenny Root <kroot@google.com> Infrastructure to support package verifier

Allow a package verifier to approve or disapprove of a package being
installed.

Change-Id: Ibfea0f2b1aaa4ab1589a4e59f96144702b9bf94b
/frameworks/base/core/java/android/provider/Settings.java
8d32a01bd24b8a0d1a98f0581b3394a78fab8242 09-Aug-2011 Nick Pelly <npelly@google.com> Add NFC to airplane mode

NFC now observes airplanes mode, and is by default toggleable in airplane mode.

Change-Id: I5f19d35422c9eb1cffb0b5e0631b3f3c5eeaedcf
/frameworks/base/core/java/android/provider/Settings.java
8dc6a1b2823f374a176fb21b8a174664a5f825fa 27-Jul-2011 Isaac Levy <ilevy@google.com> Watchdog notify on explicit connect

Notifies when user explicitly clicks on wifi dialog.

Change-Id: I5eee37d68b422d748d41e9384d5006482a223dc5
/frameworks/base/core/java/android/provider/Settings.java
2b30afdbad5e79c5775ac9756f3b986268d90f1f 05-Aug-2011 Wink Saville <wink@google.com> resolved conflicts for merge of 7bb2d942 to master

Change-Id: I026b01805c81d8b26d22e4a195e5e38655a34d32
628b08530a50bddbe3d65088a8b621c0950e0c19 05-Aug-2011 Wink Saville <wink@google.com> Delay connectivity change notifications.

Because changes to the route tables take time to propagate
we add a delay when sending out change notifications. This allows
applications, such as GTalk, to create sockets without encountering
a 3 minute timeout.

Bug: 5008488
Change-Id: I0eefb03a5d6358a58ea6ae5b4f697ff302b5511d
/frameworks/base/core/java/android/provider/Settings.java
42722bfa136f5616872a2c4e199813e804621c81 22-Jul-2011 Amith Yamasani <yamasani@google.com> Volume panel changes.

Combined volume panel only in tablets. On phones show active volume.
Added dummy assets for ring+notification icon.

Deprecated the NOTIFICATION_USES_RING_VOLUME. Now they are always
tied together. Audio manager changes still required to ensure that.

Initialize all feedback sounds to true.

Change-Id: I3ad7890c9be9334eedb5f3b709a4b6995fe24638
/frameworks/base/core/java/android/provider/Settings.java
88bae17cfd3de40758c5296d15f012f06f08748a 28-Jul-2011 Isaac Levy <ilevy@google.com> Changed walled garden to better url

Now checking for walled gardens using 204 error code on
http://clients3.google.com/generate_204

Change-Id: I0a00dc8b956f35f6695d2085c9f03ce40dc7e231
/frameworks/base/core/java/android/provider/Settings.java
8cbe6e8f124456acbe8a6b8ff37aef88b0d5c6be 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Updating the data base upgrade/creation code for the new touch exploraion setting."
a28a16d1c2b58999d757a4cd3bc66a2f3499a2eb 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Updating the data base upgrade/creation code for the new touch exploraion setting.

1. Update the database creation/upgrade code to take care of the new setting
to enable touch exploration.

2. Made the tocuh exploration settings persistent to the cloud.

Change-Id: Ie24e9184b4a21869432d11d207cb6464fadbac3b
/frameworks/base/core/java/android/provider/Settings.java
9b3c83fbad86989158db27a88f872562c3973a14 28-Jul-2011 Martijn Coenen <maco@google.com> Add constant for NFC sharing settings screen.

Change-Id: Ibeea153442110542f05d1ece57a7dc6388a91fbf
/frameworks/base/core/java/android/provider/Settings.java
71f14a4e23c0b6eb60a81fd9a1be86dc441d051a 25-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Touch exploration state set to clients asynchronously and depended on talking service being enabled."
63d050034df5eedc9586e393d56444cd34681bd1 25-Jul-2011 Ben Murdoch <benm@google.com> Merge "Add a System.Secure setting for the Autofill server URL."
00aabf7d187bc05408199bd687a538b2e68bdc17 21-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration state set to clients asynchronously and depended on talking service being enabled.

1. Upon registration of an accessibility client the latter received only
the accessiiblity state and waiting for the touch exploration state
to be sent by the system in async manner. This led the very first
check of touch exploration state is checked a wrong value to be reported.
Now a state of the accessibility layer is returned to the client
upon registration.

2. Removing the dependency on talking accessibility service to be enabled
for getting into touch exploration mode. What if the user wants to use
an accessibility service that shows a dialog with the text of the touched
view?

bug:5051546

Change-Id: Ib377babb3f560929ee73bd3d8b0d277341ba23f7
/frameworks/base/core/java/android/provider/Settings.java
988323c57bd25a58f05dfa492d9b9c8ab62c5153 22-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

This CL inherits https://android-git.corp.google.com/g/112600

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Iaa425c7915fe70767ad0b17bf6c6fbcd2a1200b2
/frameworks/base/core/java/android/provider/Settings.java
d7b3e6a39b6b2e155b24ef470023bafb3b9fa35a 21-Jul-2011 Isaac Levy <ilevy@google.com> WifiWatchdogSM notification for first wifi disable

Also moved customizable settings into Settings.Secure and
added listeners for setting changes into the state machine.

Change-Id: Ia6859c71f7edae13062685867959adc423af4643
/frameworks/base/core/java/android/provider/Settings.java
9999c1d97730e33751ae5a94331797d6850701c6 19-Jul-2011 Ben Murdoch <benm@google.com> Add a System.Secure setting for the Autofill server URL.

The Autofill server is now configured as a system setting. Add
that setting and a method to be called over JNI from the chrome
stack to retrieve it.

See also external/chromium change I3a22ae42402f52207eee2d0d9df64700cb7c9f45

Bug: 4515820
Change-Id: I0aa85c5bef834b1120baaabdc2dd2e4e607a63b6
/frameworks/base/core/java/android/provider/Settings.java
31ca854cdba31ec6ab089af743a8701a6192e07e 19-Jul-2011 Dianne Hackborn <hackbod@google.com> Fix issue #4976176: Font size setting does not persist

Change-Id: Id58caf990bdd3aac5ea97aaba45652ffad1f678a
/frameworks/base/core/java/android/provider/Settings.java
35bfedeaba724aeadc6f6c890269cb6bf7ef42f5 15-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Touch exploration separate setting and API to poll the latter state.

1. Seperated touch exploration to be a seperate setting rather being
magically enabled by the system of accessiiblity is on the there
is at leas one accessibility service that speaks enabled. Now
there is a setting for requesting touch exploration but still the
system will enabled it only if that makes sense i.e. accessibility
is on and one accessibility service that speaks is enabled.

2. Added public API for checking of touch exploration is enabled.

3. Added description attribute in accessibility service declaration
which will be shown to the user before enabling the service.

4. Added API for quick cloning of AccessibilityNodeInfo.

5. Added clone functionality to SparseArray, SparseIntArray, and
SparseBooleanArray.

bug:5034010
bug:5033928

Change-Id: Ia442edbe55c20309244061cd9d24e0545c01b54f
/frameworks/base/core/java/android/provider/Settings.java
104344e507610be42fb70c7deda3c422c543bfcb 10-Jul-2011 Jeff Sharkey <jsharkey@android.com> Cached NTP time for system services.

Uses NTP server and timeout from secure settings, or fallback to
defaults in resources. Update various system services to use cached
NTP time when fresh enough, or force updates as needed.

Bug: 4517273
Change-Id: Ie1c4c4883836013d02ca0bbd850cf8949f93b34b
/frameworks/base/core/java/android/provider/Settings.java
ee69ff4eaee9342843d5f25338288865dda2d36a 28-Jun-2011 Narayan Kamath <narayan@google.com> Make the system global search provider a user setting.

Also, modify Searchables / SearchManagerService to
honour the setting when it's set.

Change-Id: Ia63351fff4fe28ee79ac8b9e30fdb8edc43f5534
/frameworks/base/core/java/android/provider/Settings.java
0a9ee1272b59ad350cea591f931b52290a5e0998 23-Jun-2011 Jeff Sharkey <jsharkey@android.com> Enable bandwidth module from stats service.

During systemReady(), tell netd to enable bandwidth tracking module,
which is used to provide detailed stats and controls.

Change-Id: Iecfd8b17a3b90f5a817d731fbe1c71777681ed6e
/frameworks/base/core/java/android/provider/Settings.java
8969d9924c662ab4cdacc342bbdc33756db730be 22-Jun-2011 satok <satok@google.com> Revert "Create TextServiceManager and SpellCheckerService"

This reverts commit eaddb894865a804279659b4aad6364a34ab50beb.
/frameworks/base/core/java/android/provider/Settings.java
f86ee14f6a53d409489261415901c6397877ce3d 22-Jun-2011 satok <satok@google.com> Merge "Create TextServiceManager and SpellCheckerService"
c6080b3cc5dc8b3d5911399aec8df8895eeec07b 22-Jun-2011 satok <satok@google.com> Merge "Add an ongoing notification to switch IME"
7cfc0ed21a3fafabafb40b38a8589808ad1517af 20-Jun-2011 satok <satok@google.com> Add an ongoing notification to switch IME

Bug: 4671417
Change-Id: I2b9e955003c1f6703978824c947d5f322a039714
/frameworks/base/core/java/android/provider/Settings.java
eaddb894865a804279659b4aad6364a34ab50beb 01-Jun-2011 satok <satok@google.com> Create TextServiceManager and SpellCheckerService

Bug: 4176026

Spec of TextServiceManager
- Chooses the most applicable TextService(e.g. SpellCheckerService, WordBreakIteratorService..)
for each locale

Spec of SpellCheckerService
- Returns whether the given string is a correct word or not
- Returns Suggestions for the given string

Change-Id: Ia25e7b4f308778891929e31b8cbd741f6848cce4
/frameworks/base/core/java/android/provider/Settings.java
d03fd3f004e3ba8aaa1692ee0e92e8ae171d2a04 20-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist "tagged" network stats along with UIDs.

Now stores tags other than TAG_NONE (0x0), which are useful for app
debugging. Combine UID and tag together into single long key, and
expose tag data through AIDL when requested. Change NMS to track
TAG_NONE as total UID traffic, matching the kernel definition.

Added TAG_MAX_HISTORY to control how long tag-granularity statistics
are stored; overall UID usage is still kept for UID_MAX_HISTORY. Fix
bug to trim NetworkStatsHistory outside normal polling loops to catch
non-active networks and UIDs.

Test to verify UID and tag packing, and to verify that UID traffic on
two networks are combined to match MOBILE_ALL template.

Change-Id: If0e039416d9e7f63b1a39e04cddfb1133b5a78ee
/frameworks/base/core/java/android/provider/Settings.java
1324f22d8dc1a26fe481fd33511bdae04c81ac14 13-Jun-2011 Mike Lockwood <lockwood@android.com> Settings: Remove unused USE_PTP_INTERFACE setting

Change-Id: I743b81379053caece38c19c59bc76d6cda763d45
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
39ebc2195ed16b9e955dd57f5c95212bb7b934b6 12-Jun-2011 Jeff Sharkey <jsharkey@android.com> Persist UID stats, lazy loading, resize buckets.

Persisting detailed UID stats in separate "netstats_detail.bin" file
to enable different schedules for summary and detail polling. Only
load detailed UID history on demand, since it's not needed during
boot. Add test to verify UID stats are persisted across simulated
reboot.

Move external settings into well-named interface, which is still
backed by Settings.Secure. During periodic poll events, resize any
history to match current bucket duration setting. Test to verify.

Change-Id: I6366f3583a591f8ba859b0e5987daf8cafa4e95a
/frameworks/base/core/java/android/provider/Settings.java
61ee0bbb5b87fb5c4c3dc219868d52743def3d2b 30-May-2011 Jeff Sharkey <jsharkey@android.com> UID network stats, secure settings, and random.

Collect UID-granularity network stats during regular poll event. Add
dumpsys argument to generate fake historical data for debugging, and
move stats parameters to Settings.Secure.

Change-Id: I09b36a2955dc10c697d4b9c3ff23dcb3ac37bd70
/frameworks/base/core/java/android/provider/Settings.java
5ea65d609f0c8e1e3a1dcd192c4058aa2ccf3212 06-Jun-2011 Irfan Sheriff <isheriff@google.com> Update walled garden detection logic

DNS based techniques dont always work. Some hotspots
redirect on data fetch on IP. Use a known pattern match
on URL to detect a walled garden instead.

Also, added gservices capability to turn off the feature
or change the URL & the pattern to match

Bug: 4378442
Change-Id: I78b4208d3ea3ace20069169e7c01ed769892d94d
/frameworks/base/core/java/android/provider/Settings.java
7218d830e27d81141588cd6e37f206d141a18f62 04-Jun-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of ca2b552d to master

Change-Id: I2f3693a59042ac5aa2d7bcdc3a504c78dc99a18b
c8812761609e532cceb400b112ed9982149c2490 03-Jun-2011 Jeff Brown <jeffbrown@android.com> am e1718de6: Merge "Add a preference panel for mouse speed." into honeycomb-mr2

* commit 'e1718de61c20c8d401633f83589f18d2c0c652db':
Add a preference panel for mouse speed.
1a84fd1fb7a51f3fe4f8865e1cdd09f3490f696c 02-Jun-2011 Jeff Brown <jeffbrown@android.com> Add a preference panel for mouse speed.

Bug: 4124987
Change-Id: I3ce175d268a1d043cf5878481261b1049a15a149
/frameworks/base/core/java/android/provider/Settings.java
8c1132e3ceed8e1a8c696e2afe0e6fe456ccd7ef 26-May-2011 Daniel Sandler <dsandler@android.com> Merge "Framework support for Android Dreams."
2a3c67c0e99bd3d8c6c538ff323a27df19cad109 26-May-2011 Joe Onorato <joeo@google.com> am cfb046de: am 2c09a9c0: am 5520610c: Merge "Make adb shell am display-size persistent." into honeycomb-mr2

* commit 'cfb046dead49568de6f6808a697e0508ef39a3a6':
Make adb shell am display-size persistent.
2c09a9c0e960163a16ad1d06055aa6ee9635c693 25-May-2011 Joe Onorato <joeo@google.com> am 5520610c: Merge "Make adb shell am display-size persistent." into honeycomb-mr2

* commit '5520610cb2612054c5d0bcec9d031f7b71faa349':
Make adb shell am display-size persistent.
571ae90801d943a4c0c8897d1cf74c9cfe04b1ec 24-May-2011 Joe Onorato <joeo@google.com> Make adb shell am display-size persistent.

Change-Id: If3d5d18729f4e89eb7e689994deadd996fd487e9
/frameworks/base/core/java/android/provider/Settings.java
0601eb7953cbf77d92826bef3ca37e208d922de7 13-Apr-2011 Daniel Sandler <dsandler@android.com> Framework support for Android Dreams.

A Dream is an activity that is launched by the window
manager after a specified idle time. You might think of this
as a "screen saver", but with the same capacity for
interactivity as any other application.

The window manager maintains a timer (like the screen lock
timer) that is reset on userActivity; the timer is suspended
during wakelocks and when the screen is off.

When the timer elapses, the user's preferred dream module is
launched (by reading Settings.Secure.DREAM_COMPONENT, which
is configured through the Settings app UI).

Like a dock app, the user can install new dreams and a
single application package may contain multiple dream
activities. Unlike the dock mode, however, there is no
"screensaver mode" for the system to manage. This allows us
to offer the user the ability to run a dream at any time, in
addition to making the overall mechanism quite simple.

There is no public API for this facility.

There is, however, a useful/recommended base class for dream
activities in the support library (change I4559a958).

Change-Id: Ied691856f88cfa38a7aca496d015f9a595da72f2
/frameworks/base/core/java/android/provider/Settings.java
1b30d7824dcb5ab5b1cd0fde532666359d752b62 23-Apr-2011 Freeman Ng <tenorslowworm@google.com> am 1e2e390f: am 3b9089c1: new LTE prepay related values

* commit '1e2e390fc715ef0aa264f4706fabde1a157668fc':
new LTE prepay related values
3b9089c1fa6970974fa5234dfea46455811c8c7a 23-Apr-2011 Freeman Ng <tenorslowworm@google.com> new LTE prepay related values

bug: 4082355
Change-Id: Id5a8f9b8bca64d9cf6ee13b00bd32c4911e9a3fa
/frameworks/base/core/java/android/provider/Settings.java
d589fea865e90859324f00d21765fa7d7759e465 15-Apr-2011 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2724503 Persist media button receiver across reboots

Whenever a new media button receiver is registered, save it
in the settings.

When the system audio settings are reloaded or when the
AudioService is created, the registered media button receiver
is restored.

Whenever a package is removed from the system, remove
any media button receiver from the same package that are in
the media button receiver stack. If this causes the currently
registered receiver to change (i.e. the top of the stack),
this will cause an update of the receiver stored in the
system settings.

Note that unregistering a media button receiver will not
cause the receiver saved in the settings to be updated,
this is ON PURPOSE. This is to prevent well behaved
application who unregister their receiver at the destruction
of their service, to not receive the intent after a reboot,
and to not encourage applications to never unregister
their receiver.

Change-Id: I941b777debaa56e88de93c3b03aec40331ea9ab1
/frameworks/base/core/java/android/provider/Settings.java
8e0cc73919bff3dbc94e5945a500240d080898b0 11-Apr-2011 Freeman Ng <tenorslowworm@google.com> am 2df36fd6: am b7e8a54d: Merge "Add prepaid data services URL to Secure Settings" into honeycomb-LTE

* commit '2df36fd6ec39e096327032283d058b48be19e843':
Add prepaid data services URL to Secure Settings
43a17654cf4bfe7f1ec22bd8b7b32daccdf27c09 07-Apr-2011 Joe Onorato <joeo@google.com> Remove the deprecated things from Config.java. These haven't been working since before 1.0.

Change-Id: Ic2e8fa68797ea9d486f4117f3d82c98233cdab1e
/frameworks/base/core/java/android/provider/Settings.java
96be4e01e66470c6d63bbdacc6732fc14e85a0cd 08-Apr-2011 Freeman Ng <tenorslowworm@google.com> Add prepaid data services URL to Secure Settings

This is really a Gservices value being accessed through Secure Settings

bug: 4100048
Change-Id: I6e2eb72b17594b5c8f14a6ecfc21eafeff80fa1b
/frameworks/base/core/java/android/provider/Settings.java
9cdffa1788e2f24a674f185307000946aeb3760f 07-Apr-2011 Joe Onorato <joeo@google.com> A system setting for "advanced settings."

Change-Id: I622bc5fa7e5cba41362acd3b25ed9d3f119c72a2
/frameworks/base/core/java/android/provider/Settings.java
2b7f63887e39079a52592fb4507d8daaf90e8afa 25-Mar-2011 Irfan Sheriff <isheriff@google.com> Add support for supplicant SCAN_INTERVAL

Also, allow scan interval for framework and supplicant
to be configured at build time or run time

Bug: 4144882
Change-Id: I877f4bcc872597b44d3f4da85cf2bc0f16e09444
/frameworks/base/core/java/android/provider/Settings.java
54d068ec6af0ee6d261a135400efe6816c6f5ffe 02-Mar-2011 Svetoslav Ganov <svetoslavganov@google.com> Add system wide management of core settings

bug:3505060

Since we want to have some settings that are used very frequently
by many applications (long-press timeout is one example) these should
be managed efficiently to reduce lookups from different processes
because in the case of a cache miss a disk I/O is performed. Now
the system manages such core settings and propagates them to the
application processes.

Change-Id: Ie793211baf8770f2181ac8ba9d7c2609dfaa32a7
/frameworks/base/core/java/android/provider/Settings.java
5e7e5ec03859788bedb16b470259ddaeb3f3216e 23-Feb-2011 Irfan Sheriff <isheriff@google.com> Remove backup of sleep policy setting

Remove backup and restore of sleep policy settings

Change-Id: I87821efcaca72e12d32fdeedd8349971d85bff2b
/frameworks/base/core/java/android/provider/Settings.java
32fc71d93dea38f984c6ce1f4183ade6d003e9ed 21-Feb-2011 Irfan Sheriff <isheriff@google.com> Do not backup wifi country code settings

Country code settings are device specific and
should not be linked to an account

Change-Id: Iead6230bfe7751a9478c45e5dca6b4ba619587b3
/frameworks/base/core/java/android/provider/Settings.java
4519f07e9c6b993fbe7a3d3df24d71d9450a54f1 23-Jan-2011 Jeff Brown <jeffbrown@google.com> New orientation listener.

The objective in this listener is to be more careful about the
signal processing to prevent spurious orientation changes
and to make all of the tweakable factors physically meaningful.

The calibration is defined in terms of time constants and
does not assume a particular discrete sampling rate. This is
useful because it allows us to change the accelerometer sampling
interval if desired without having to change the calibration.
Moreover, the accelerometer sampling interval can vary +/- 20ms
from one sample to the next even in normal circumstances.

Proposed orientation changes are weighted by confidence factors
that vary exponentially in relation to how close the device
is to the ideal orientation change posture (screen is vertical,
angle is exactly at the midpoint of the orientation quadrant,
and no external acceleration beside gravity). When not in an ideal
posture, the device takes proportionally longer to settle into a
new orientation state.

Added a little tool to plot the log output of the
WindowOrientationListener. Check the README for more information
about how to use it.

Change-Id: I787f02d03582ff26367df65eda8d9ce85c5cb343
/frameworks/base/core/java/android/provider/Settings.java
b58b5db4ba8edc075f6524df200aa8d3c678e267 21-Jan-2011 Amith Yamasani <yamasani@google.com> Merge "Set the default state of NOTIFICATIONS_USE_RING_VOLUME." into honeycomb
43dee06479d96d51e895704a9ee480232224c761 20-Jan-2011 Amith Yamasani <yamasani@google.com> Set the default state of NOTIFICATIONS_USE_RING_VOLUME.

Bug: 3365600

This doesn't affect upgrades, only new installs.

Don't backup/restore NOTIFICATIONS_USE_RING_VOLUME anymore as it doesn't
work well across device types and can wedge the device into a state
where you can never hear notification sounds.

Change-Id: I703e1db539eb4ac45b273f46ada0b4bbf3b981bb
/frameworks/base/core/java/android/provider/Settings.java
2548020c364c4119d134c84cc7a00ffca2dcbe7b 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Add android.provider.Settings.EXTRA_INPUT_METHOD_ID

Change-Id: Iecb7a9c265cafe96e7eec099341133da8e966f6f
/frameworks/base/core/java/android/provider/Settings.java
f49688fa17b70313c0734f00df73bc3308a749e9 20-Jan-2011 Tadashi G. Takaoka <takaoka@google.com> Rename action to ACTION_INPUT_METHOD_SUBTYPE_SETTINGS

Change-Id: I27c318777355991ae4ad72d0b2480e93c8c5044e
/frameworks/base/core/java/android/provider/Settings.java
247fe74c934cb3fba85aae7e051a8044f460fb11 09-Jan-2011 Dianne Hackborn <hackbod@google.com> Implement issue # 3255887 could CursorLoader offer...

...to throttle contentobserver-based requeries

Why yes, I guess it could.

This also reworks AsyncTaskLoader to not generate multiple
concurrent tasks if it is getting change notifications before
the last background task is complete.

And removes some of the old APIs that had been deprecated but
need to be gone for final release.

And fixes a few little problems with applying the wrong theme
in system code.

Change-Id: Ic7a665b666d0fb9d348e5f23595532191065884f
/frameworks/base/core/java/android/provider/Settings.java
5c58dfcf7dbc87b1f0904cccf2697ab6854a89bf 14-Dec-2010 satok <satok@google.com> Add a Setting preference "INPUT_METHOD_SELECTOR_VISIBILITY"

Bug: 3142286

Change-Id: I7d30c781a20863b974b496282bbd8b1ba65d72ac
/frameworks/base/core/java/android/provider/Settings.java
e1d4698ffd8dfa212a733339edf9a75d0cbf8da6 07-Dec-2010 Brian Muramatsu <btmura@google.com> Fix Settings getFloat Methods

Don't pass null to Float.parseFloat, because that throws a NPE.
Check for null and throw SettingNotFoundException to fulfill
what the JavaDoc says.

Change-Id: Iff742fb3c15be6e02f29b9dda9197dc05a867924
/frameworks/base/core/java/android/provider/Settings.java
d7ad0d28372bba03a3b6c5d01e0e7b0066e51374 03-Dec-2010 Brad Fitzpatrick <bradfitz@android.com> sampling profiler hz -> ms

Goes along with def41ec2e8 / Ifcfc343

Change-Id: Ia5cc90e6f8d83dcdf40802859002507980310d06
/frameworks/base/core/java/android/provider/Settings.java
804043193a46a79a8616fd7696fb781edb80b519 20-Nov-2010 Wink Saville <wink@google.com> Remove pingtest in GsmDataConnectionTracker.

The pingtest have been disabled since petit-four and ping's use is
being deprecated. Removing the ping test code, if needed use
InetAddress.isReachable instead.

bug: 1824738
Change-Id: I42b3de85b67b82dc6389e7a2234afa7b1d687209
/frameworks/base/core/java/android/provider/Settings.java
434203a277cd2f237a71508a3d5a7d1602126cd5 12-Oct-2010 Robert Greenwalt <rgreenwalt@google.com> Notify all VMs when proxy changes.

bug:2700664
Change-Id: I74cc6e0bd6e66847bf18f524ce851e3e9d2c4e87
/frameworks/base/core/java/android/provider/Settings.java
723a27ef3d7c94fc666abc52e0abd5e8526acb69 11-Nov-2010 satok <satok@google.com> Save the history of InputMethodSubtype for reverting the subtype when IME was changed.

- Re-revert the change https://android-git.corp.google.com/g/#q,78962,n,z
*** If you want to see the diff between reverted change and new change, please see the diff between patch set 1 and the latest patch set

- TODO: Add a public function "switchToLastInputMethod"

Change-Id: Ic85d54b3b68e47a22360acaeb81202a366a34586
/frameworks/base/core/java/android/provider/Settings.java
0ba75bb22c2992f649ee5f7605a2b45442ad4862 09-Nov-2010 Tadashi G. Takaoka <takaoka@google.com> Revert "Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed."

This reverts commit 1ab852fbcfe155c9d4373b7130f8515591669634.
/frameworks/base/core/java/android/provider/Settings.java
1ab852fbcfe155c9d4373b7130f8515591669634 05-Nov-2010 satok <satok@google.com> Add a history of InputMethodSubtype for getting the last subtype of selected IME when IME was changed.

Change-Id: I66752a881726c0ce2816a9d54de60fb0d992e968
/frameworks/base/core/java/android/provider/Settings.java
36f7413dabfab50699135019ba55151e9227f59d 05-Nov-2010 Irfan Sheriff <isheriff@google.com> add frequency band control API

Change-Id: I6cc6cdef27d493d4ef76cec17fdca7e49d9dc8d7
/frameworks/base/core/java/android/provider/Settings.java
b73617de462579f7c12c25a4c2747c576f00f6a2 17-Aug-2010 Daniel Sandler <dsandler@google.com> Rotation lock.

IWindowManager now supports two new methods,
freezeRotation() and thawRotation(), that allow a caller to
temporarily stash the device's current rotation as the
default rotation (when no other constraints are present).

The system bar uses this to implement a user-accessible
rotation lock by calling freezeRotation() and then turning
off accelerometer-based display rotation; unless overridden
by an app, the display will continue to appear in the frozen
rotation until the rotation is unlocked by the user (either
via the rotation lock icon in the system bar or by checking
"rotate screen automatically" in Settings).

Bug: 2949639
Change-Id: Icd21c169d1053719590e72401f229424b254622f
/frameworks/base/core/java/android/provider/Settings.java
ed4f28b492da3ff140bbaabbbda798a08c40ea5b 30-Oct-2010 Irfan Sheriff <isheriff@google.com> Set country code in the driver and remove channel set

With dual band support, using country code
settings is the way to go

Bug: 2936741
Change-Id: I760dce4c43b1af19ee205c28f0d287420c8d9e85
/frameworks/base/core/java/android/provider/Settings.java
24abb66c85373156ce83211b552127344bd38c05 21-Sep-2010 Bjorn Bringert <bringert@android.com> Deprecate Settings.System.SHOW_WEB_SUGGESTIONS

In earlier Android versions, Quick Search Box set this setting,
and the browser and QSB read it. Now the Browser has stopped
using it, and QSB has been unbundled and removed from the system
settings UI.

Applications that show web suggestions should have their own settings
to control it instead.

Bug: 3021480
Change-Id: I4e62bf26944287f804e50eb93843484a0356fffb
/frameworks/base/core/java/android/provider/Settings.java
86417ea3f8041481a085823a1aa9f66d747231e8 27-Oct-2010 satok <satok@google.com> Remove InputMethodAndSubtypeEnabler and call intent of Settings.ACTION_INPUT_METHOD_AND_SUBTYPE_ENABLER

Change-Id: I467cfba9644ec266f6a98f7aec0886ad205fef4f
/frameworks/base/core/java/android/provider/Settings.java
886fd91833e1f5c6ec882baf2ed5e02078911c63 21-Oct-2010 Nick Pelly <npelly@google.com> am c0e93a84: am 7ea5c45e: NFC settings cleanup.

Merge commit 'c0e93a849f82c97b847c9ad39b18e594f3bb3f5a'

* commit 'c0e93a849f82c97b847c9ad39b18e594f3bb3f5a':
NFC settings cleanup.
c0e93a849f82c97b847c9ad39b18e594f3bb3f5a 21-Oct-2010 Nick Pelly <npelly@google.com> am 7ea5c45e: NFC settings cleanup.

Merge commit '7ea5c45e8d89f59065f088d4e11cceeeed9d64d1' into gingerbread-plus-aosp

* commit '7ea5c45e8d89f59065f088d4e11cceeeed9d64d1':
NFC settings cleanup.
7ea5c45e8d89f59065f088d4e11cceeeed9d64d1 21-Oct-2010 Nick Pelly <npelly@google.com> NFC settings cleanup.

Remove NFC settings from Settings.System. The NFC Service tracks them
internally using SharedPreference.

Revert back to enable()/disable()/isEnabled() - Tag discovery is the
only functionality NFC service performs right now so we don't need to
break it up more explicitly yet. enable/disable is the global NFC
on/off and later we'll add enableDiscovery(), enableTagEmulation(),
enableSecureElement() etc as needed.

Change-Id: Id5b23e89d4a29511835f509962842452075e56cb
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/provider/Settings.java
4f5f7c968339a83b6af98ac8893a1ac33c7aa7bc 15-Oct-2010 Irfan Sheriff <isheriff@google.com> Fix wake and scan behavior

- Add wakelock for driver start/stop to ensure a wifilock
acquisition kick starts driver. Also cleaned up state machine
driver start/stop behavior.
- Add periodic scans when driver is started to ensure wifi
reconnections when wifilock exists or when user chooses
never to sleep
- some minor clean up

Change-Id: I844eb70491d5aa2f8c8933b3d8dd01ba237ee534
/frameworks/base/core/java/android/provider/Settings.java
253a5ef88638037ec986bfd6c88bf36dc5e7d471 14-Oct-2010 Jim Miller <jaggies@google.com> Fix 3024528: Add owner info to SecureSettings.

Change-Id: Ibed62aa8881c795f0d48007fc04beac0e9c1d4a0
/frameworks/base/core/java/android/provider/Settings.java
4715bd91f5949a1919156a5a5cb50f0cccda645e 29-Sep-2010 Nick Pelly <npelly@google.com> resolved conflicts for merge of f4c3b7e9 to master

Change-Id: Idcdc521144f3072058b2bb6cb383e42c852e64f4
f4c3b7e916b417fabb468ec0a565dc79cd7ba2b3 29-Sep-2010 Nick Pelly <npelly@google.com> am 038cabe0: NFC integration

Merge commit '038cabe0247ee46df62f9363f1a303bc5b9c1028' into gingerbread-plus-aosp

* commit '038cabe0247ee46df62f9363f1a303bc5b9c1028':
NFC integration
038cabe0247ee46df62f9363f1a303bc5b9c1028 24-Sep-2010 Nick Pelly <npelly@google.com> NFC integration

Source: Trusted_NFC_Device_Host_AA03.01e02_google.zip code drop (23-Sep-2010)

Conflicts:

core/java/android/app/ApplicationContext.java
core/java/android/provider/Settings.java
core/jni/Android.mk
core/jni/AndroidRuntime.cpp
core/res/AndroidManifest.xml
include/utils/Asset.h

Change-Id: I62c92f4c79f5ee65126c97602f6bc1c15794e573
Signed-off-by: Nick Pelly <npelly@google.com>
/frameworks/base/core/java/android/provider/Settings.java
4d5a8b55873dc9818fa00c0daba214710421b794 28-Sep-2010 Winson Chung <winsonc@google.com> am 55ee8f93: am 44e8ff99: Adding a new intent to allow for apps (Launcher) to jump to the All Apps tab in the settings.

Merge commit '55ee8f9329b4e99427dddc692e3d8ff10d9c9eef'

* commit '55ee8f9329b4e99427dddc692e3d8ff10d9c9eef':
Adding a new intent to allow for apps (Launcher) to jump to the All Apps tab in the settings.
55ee8f9329b4e99427dddc692e3d8ff10d9c9eef 28-Sep-2010 Winson Chung <winsonc@google.com> am 44e8ff99: Adding a new intent to allow for apps (Launcher) to jump to the All Apps tab in the settings.

Merge commit '44e8ff9924db43ee2470d868ce31b1c039c99b35' into gingerbread-plus-aosp

* commit '44e8ff9924db43ee2470d868ce31b1c039c99b35':
Adding a new intent to allow for apps (Launcher) to jump to the All Apps tab in the settings.
44e8ff9924db43ee2470d868ce31b1c039c99b35 27-Sep-2010 Winson Chung <winsonc@google.com> Adding a new intent to allow for apps (Launcher) to jump to the All Apps tab in the settings.

Change-Id: I15a78a5c5a18b041b1cc4a7500bd3ceccd780ea9
/frameworks/base/core/java/android/provider/Settings.java
ab751aa085433e9f735d2e7603459c6c7e9d2fb0 14-Sep-2010 satok <satok@google.com> Add methods for managing subtypes

- added showInputMethodSubtypePicker to public API
-- show the selector dialog for subtypes
- added getter, setter and event handler to InputMethodManagerService
- extract InputMethodSubtype to the top level class for using it in aidl
- TODO: make an enabler for input method subtypes
- TODO: handle the event of changing an input method subtype in LatinIME

Change-Id: I49f8c6675ac4b06511635d14a37bd398738eff33
/frameworks/base/core/java/android/provider/Settings.java
ad450be78bb99a965b6aeb7cec04f865da59f052 17-Sep-2010 Amith Yamasani <yamasani@google.com> Add an AUTO_TIME_ZONE setting so that we can switch timezones while keeping correct time.

Have the NITZ provider honor the new setting before updating the time zone.
/frameworks/base/core/java/android/provider/Settings.java
7dda67a8a18e6e06af4be6942ac95f05c6e33d08 21-Sep-2010 Steve Howard <showard@google.com> am f1166513: am ff0ea5ea: Merge "Support for download manager "queue for wifi" dialogs" into gingerbread

Merge commit 'f1166513f596c4ffad41429b10ba1d20c65f6d6c'

* commit 'f1166513f596c4ffad41429b10ba1d20c65f6d6c':
Support for download manager "queue for wifi" dialogs
f1166513f596c4ffad41429b10ba1d20c65f6d6c 21-Sep-2010 Steve Howard <showard@google.com> am ff0ea5ea: Merge "Support for download manager "queue for wifi" dialogs" into gingerbread

Merge commit 'ff0ea5eaf13198d6d752bcfbcf8e1c96f568102f' into gingerbread-plus-aosp

* commit 'ff0ea5eaf13198d6d752bcfbcf8e1c96f568102f':
Support for download manager "queue for wifi" dialogs
f176681ecc19f3bffa3d9cb00b3460cf5a128d28 18-Sep-2010 Steve Howard <showard@google.com> Support for download manager "queue for wifi" dialogs

New DB column and new secure setting for recommended max download size
over mobile.

Change-Id: If87acda62140ad6d8f923a000a5ff9232021e1a3
/frameworks/base/core/java/android/provider/Settings.java
31b62322bfa9470d648fbfd69510e03da29b29af 30-Aug-2010 Irfan Sheriff <isheriff@google.com> Add per network static IP settings

Remove the existing global static IP settings and add support
for per network configuration

Change-Id: I5a6d8b877471b8c8ad07951c96d273893754607f
/frameworks/base/core/java/android/provider/Settings.java
585f13f8dec4cbf55b3bc04d95425d647f0577b2 10-Aug-2010 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for WebViews

Change-Id: Ibb139192bae4d60fd53a7872b19c06312bb41558
/frameworks/base/core/java/android/provider/Settings.java
42a5ed2015461126bd012d6f8f3e1311e5721807 12-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> resolved conflicts for merge of 171c83f4 to master

Change-Id: I56a4c1838b17cf40d96763f95df3c84fc86359eb
171c83f47ddf01792371e1eb7587a99b2f192575 12-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 11fe181e: Add faster TextUtil function for searching delimited lists.

Merge commit '11fe181e16501103d7c0f70344661ea2ef5d3df9' into gingerbread-plus-aosp

* commit '11fe181e16501103d7c0f70344661ea2ef5d3df9':
Add faster TextUtil function for searching delimited lists.
11fe181e16501103d7c0f70344661ea2ef5d3df9 11-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Add faster TextUtil function for searching delimited lists.

The previous version in Settings allocated memory.

Change-Id: I0f821112dc8f830689489f201ce268195f9e6cbd
/frameworks/base/core/java/android/provider/Settings.java
ca4306c976d393c3cd04270bc2de0af2f4f30fa5 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> resolved conflicts for merge of ec52c98d to master

Change-Id: I31297232c9d918a967b93c3ae977f81b6a94f2ed
ec52c98d441aa592a203f547c0edec79c25bf28e 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> am 0727a865: Merge "Add network condition reporting." into gingerbread

Merge commit '0727a865d83b944c2fecc0bf1228a36976fe5300' into gingerbread-plus-aosp

* commit '0727a865d83b944c2fecc0bf1228a36976fe5300':
Add network condition reporting.
d7085fcf6567452a9d6fc69b0c6b1bf556f4c1b9 09-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add network condition reporting.

Apps can report if they like their connection to the nets
and we display either not-really-connected or fully-connected
icons. Final icons TBD.

bug:2978624
Change-Id: I28be52085edfe54571c0d4559aba0df883548654
/frameworks/base/core/java/android/provider/Settings.java
94bf9431e5464c7757890abfe0716997151f153f 08-Sep-2010 Jake Hamby <jhamby@google.com> am e7578344: am 5872e9d7: Merge "Allow incoming SMS until internal storage is almost full." into gingerbread

Merge commit 'e75783440a55fb0a5ef75066be94a11898f652f0'

* commit 'e75783440a55fb0a5ef75066be94a11898f652f0':
Allow incoming SMS until internal storage is almost full.
e75783440a55fb0a5ef75066be94a11898f652f0 08-Sep-2010 Jake Hamby <jhamby@google.com> am 5872e9d7: Merge "Allow incoming SMS until internal storage is almost full." into gingerbread

Merge commit '5872e9d7f31e5a4c5f3d871dba02b6d72a7ada78' into gingerbread-plus-aosp

* commit '5872e9d7f31e5a4c5f3d871dba02b6d72a7ada78':
Allow incoming SMS until internal storage is almost full.
bb3716332321e22537a5015be13e2229fb9b90bc 24-Aug-2010 Jake Hamby <jhamby@google.com> Allow incoming SMS until internal storage is almost full.

Fix for bug 2382830: new incoming SMS should not be rejected when
running low on internal phone storage.

Testing revealed that the /data partition should have at least 256 KiB
available in order to prevent random app crashes (including system apps)
due to SQLite transaction failures. With 256 KiB free, the device should
safely boot without storage full errors. This takes into account the
36-40 KiB that the YAFFS2 filesystem reports as available even after
the partition has been completely filled. I've set the default full
threshold to 1 MiB to provide a generous safety margin.

For this bug, I changed the DeviceStorageMonitorService demon to send
two new hidden notifications for device storage "full" and "not full",
when the free space falls below the full threshold (default 1 MiB,
but configurable as a system setting), in addition to the existing
storage low/okay notifications sent when the storage crosses the threshold
of 90% full (also configurable).

The SMS code was changed to use these new notifications so that it can
accept messages until the data partition has been filled to the maximum
safe capacity rather than stopping when it hits 90% full. There should
be no negative impact on battery life because the additional check in
the storage polling service should be offset by an optimization to cache
the free threshold values which were previously being computed every time
through the loop.

While testing this change, I discovered that SMSDispatcher was being
instantiated twice, the first time in GSMPhone/CDMAPhone, and the second
time in SimSmsInterfaceManager / RuimSmsInterfaceManager. Changed the code
to pass the original SMSDispatcher to the Sim/RuimSmsInterfaceManager
constructor.

Change-Id: Ie0c6d05294778ab6ee42e0fa01313af96d824c77
/frameworks/base/core/java/android/provider/Settings.java
bc4603b0b1f1242387655274e39649882ca391d1 31-Aug-2010 Jim Miller <jaggies@google.com> Fix 2579224: Add a separate timeout for lockscreen vs display

This change adds a second timeout to the SecuritySettings page
separate from the standard display timeout.

Change-Id: I41fe10e31688308f52695ad3ee30a4b0507112bd
/frameworks/base/core/java/android/provider/Settings.java
e90aa5e97e3a5502a8334ed6ceb98305f6e01361 01-Sep-2010 Robert Greenwalt <rgreenwalt@google.com> Add a default dns entry if none is provided

Fixes part of emulator which isn't telling us about dns servers.
Gets some stuff running, but browser is still broken.

bug:2961703
Change-Id: I53b946eba434aca1bb524c2acaf77922377948d1
/frameworks/base/core/java/android/provider/Settings.java
dbecc24a4ed4e9c24fc03db19038ee45cf7a0b1d 01-Sep-2010 Chung-yih Wang <cywang@google.com> resolved conflicts for merge of a329aef4 to master

Change-Id: I5a64ee2b6adc56a7521d2e55a72e519a284d5a7c
a329aef43f1d059cb58d1987fd20b63b8b76c43d 01-Sep-2010 Chung-yih Wang <cywang@google.com> am 042e9bd9: Add SIP related settings in the Settings.System.

Merge commit '042e9bd989d9c78e23ed29011b6532743f510625' into gingerbread-plus-aosp

* commit '042e9bd989d9c78e23ed29011b6532743f510625':
Add SIP related settings in the Settings.System.
042e9bd989d9c78e23ed29011b6532743f510625 31-Aug-2010 Chung-yih Wang <cywang@google.com> Add SIP related settings in the Settings.System.

Change-Id: I00b6daee42fa59b662a380f832f76e67ca9402bc
/frameworks/base/core/java/android/provider/Settings.java
eabe8bfaf8c45289a4cfd880f4107d1a9b17e38b 31-Aug-2010 Mike Lockwood <lockwood@android.com> Add settings option for running MTP server in PTP mode.

This can be used as a compatibility workaround for host operating systems
without MTP support.

Change-Id: If4f1856206056ca8e40c3ffbfa382f185c413598
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
c7ad9fa08011be920f3636cb93bf75a0af13ea14 04-Aug-2010 Steve Howard <showard@google.com> am 80782220: am 14805b6c: Merge "New secure setting for mobile download size limit." into gingerbread

Merge commit '80782220708fdc8575502ac68c884ddab5c78ac2'

* commit '80782220708fdc8575502ac68c884ddab5c78ac2':
New secure setting for mobile download size limit.
80782220708fdc8575502ac68c884ddab5c78ac2 03-Aug-2010 Steve Howard <showard@google.com> am 14805b6c: Merge "New secure setting for mobile download size limit." into gingerbread

Merge commit '14805b6c1ff0fe5324d05ba1dd5053cdf61459b7' into gingerbread-plus-aosp

* commit '14805b6c1ff0fe5324d05ba1dd5053cdf61459b7':
New secure setting for mobile download size limit.
9c4e33e04a0202f2207d1c738a045effb490b99f 29-Jul-2010 Steve Howard <showard@google.com> New secure setting for mobile download size limit.

Change-Id: I0024d632721f59349e211c0b74dd7271423dacd5
/frameworks/base/core/java/android/provider/Settings.java
16fb7910fd3a86780edf4e65b529542ae95c26cd 02-Aug-2010 Oscar Montemayor <oam@google.com> Global Proxy changes to proxy class.

Change-Id: Ib2da33670b1da33c0b35b60f4fcbd0bc084e616a
/frameworks/base/core/java/android/provider/Settings.java
3b9f0a33a110d01e587ffd5ec7708af68723ad4b 21-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Recover a handful of commits that were reverted earlier
/frameworks/base/core/java/android/provider/Settings.java
6c9a30045b1e6b9ef5d756e0a9657576c546c9bd 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I36dd4460cae6e3212d724e70ff1091cb791670cd
545e6708adda6859932b55fd824794b1401f5318 04-Jun-2010 Jaikumar Ganesh <jaikumar@google.com> HID profile.

Change-Id: I52e965a6537bce02c751ba26fe7b44dd03832510
/frameworks/base/core/java/android/provider/Settings.java
4138677a72a6ebba3312cc0d32593d11f7a252e1 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I405069e9495e43fdcdedc41efce77d43a291272c
e6af73e18eaa1303a1499b6ec240afd953a92607 25-May-2010 Christian Mehlmauer <FireFart@gmail.com> Replaced deprecated Inten.toURI method

Change-Id: Iff3200294edbc1cac188502219bfe481133a5d8e
/frameworks/base/core/java/android/provider/Settings.java
bde75706592c77379fb6546283e733abaca6fe04 28-May-2010 Sen Hu <senhu@google.com> wire up sampling profiler to dropbox

When system property "persist.sys.profiler_hz" > 0, SamplingProfilerService is
loaded to SystemServer. It creates a FileObserver, watching any new file in the snapshot
directory. When a snapshot is found, it is put in dropbox and deleted after that.

SamplingProfilerIntegration writes snapshots with headers. Headers are <name, value> pairs,
instantiated by caller.

Currently header format is (also in source comment):

Version: <version number of profiler>\n
Process: <process name>\n
Package: <package name, if exists>\n
Package-Version: <version number of the package, if exists>\n
Build: <fingerprint>\n
\n
<the actual snapshot content begins here...>

BUG=2732642

Change-Id: I2c1699f1728e603de13dbd38f9d8443cd3eecc06
/frameworks/base/core/java/android/provider/Settings.java
e377032899fd7a9f88ad1313847e77c098b9f248 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am 864c68ea: merge from froyo-plus-aosp

Merge commit '864c68ea452baa0f4f298faf2155af45a9b6d60c'

* commit '864c68ea452baa0f4f298faf2155af45a9b6d60c':
Added an addAll to the ArrayAdapter
WLAN: Reset power save mode to startup value after DHCP response.
Add PageUp and PageDown hot keys
Should accept "application/vnd.wap.multipart.alternative" message.
replaced deprecated getIntent with parseURI
864c68ea452baa0f4f298faf2155af45a9b6d60c 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from froyo-plus-aosp

Change-Id: I9cede57e10df9d6ba411b2960a77d7b9b60a1489
d7b814188df4765e42a34ce94182ef5021ef8f16 14-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ica77cebdbb8880345faeb1ee819f51b0b7ff7a0c
f8a450f62dc408b9051f494ae41d222467bc202b 07-Jun-2010 Dianne Hackborn <hackbod@google.com> am 7d75a66c: am b7bb3b3d: Fix bug in reporting a processes\'s dependent component.
b7bb3b3df6cb3743ee43b71455d9525762e55b45 07-Jun-2010 Dianne Hackborn <hackbod@google.com> Fix bug in reporting a processes's dependent component.

Also add new action to show an app's details.

Change-Id: I6ad3b3ac8462f5acf726ce76130882a262adff92
/frameworks/base/core/java/android/provider/Settings.java
05fefe62eedda9a694aee056ef34e0a01288fd58 06-Jun-2010 Robert Greenwalt <robdroid@android.com> am 1bdb78c1: am 9c4ed139: am f9610b38: Merge "Make the DUN apn data secure." into froyo
77b32ddbbeeb13a07b16f23af705567c75a8e3df 04-Jun-2010 Robert Greenwalt <robdroid@android.com> Make the DUN apn data secure.

Rather than come out of the user-modifiable APN DB, the DUN APN data will
come first from a built-in resource and then potentially overriden by a secure
setting (which is gservices upgradable).

Also made the "require-dun" setting secure-setting overridable.
bug:2736390

Change-Id: I1e4644c3839f06c977b83797641f3948785146a2
/frameworks/base/core/java/android/provider/Settings.java
d1c3ea6a2116156629a1a3eaee64d0181e4f52c8 26-May-2010 Robert Greenwalt <robdroid@android.com> resolved conflicts for merge of 3cd6a3e3 to master

Change-Id: If3e45cc3494b2c52a1f1dcc19deff763a50498d7
d1055a250c00b0c2516ec406a8cf9a5ab1c0b7ae 26-May-2010 Robert Greenwalt <robdroid@android.com> Make the NTP Cache max-age gservices-settable

Trying to make Throttle polling more energy efficient.

bug:2708119
Change-Id: I2b75639e202dcbcee11047c43407a22de04ce350
/frameworks/base/core/java/android/provider/Settings.java
a34d2c9a221deeb2699aacc99832e6ec2b63e8a9 25-May-2010 Christian Mehlmauer <FireFart@gmail.com> replaced deprecated getIntent with parseURI

Change-Id: Ice9e74fd8f729d7efad934d2de4c747d73be562e
/frameworks/base/core/java/android/provider/Settings.java
7cd51efcbd2d083bf577696591ef1769034f7e2f 13-May-2010 Jeff Hamilton <jham@android.com> Remove the deprecated cursor methods.

Change-Id: Ie3571fea9f36996c31c327240b11086f8cc487f0
/frameworks/base/core/java/android/provider/Settings.java
d3bb93f6870581eebbf08b5b7fb0a9c5eaad8b16 13-Apr-2010 Robert Greenwalt <robdroid@android.com> Add build config values for data use defaults

Don't use hard coded defaults - use build configs instead.

Iface is now ONLY set by config so gservices doesn't need to.

bug:2576057
Change-Id: I8f9e3bc51af3b1cdf8bb4290a43197d9c01e2a14
/frameworks/base/core/java/android/provider/Settings.java
c9b6851af68bdc20c4903b16c344e9f116647219 08-Apr-2010 Irfan Sheriff <isheriff@google.com> Throttling framework addins

Add ThrottleManager in getSystemService
Add API for URL fetch

Bug: 2576057
Change-Id: Icd25c8b91ea4beea15c74e8ad7292ab48c962253
/frameworks/base/core/java/android/provider/Settings.java
9e696c29f06d45d2891e1d38fd8d9033a9e21bb9 01-Apr-2010 Robert Greenwalt <robdroid@android.com> Add service to monitor/control the flow of data.

bug:2576057
Change-Id: Ib343c7ee1d619c6978910d9ee597db195d5aa3b6
/frameworks/base/core/java/android/provider/Settings.java
40e472521a544f26cb6956995788f7c36fff1404 08-Apr-2010 Suchi Amalapurapu <asuchitra@google.com> Fix 2579461
Move install location values to secure settings.
Diable attribute for UI. Set default value to auto.
Add command line interface to set install location via pm.

Change-Id: I80e97b3d24845adad7102f40dcbe238f00efa406
/frameworks/base/core/java/android/provider/Settings.java
a3bd409a0a5dea446bd1b6edca1b367f3f70b503 25-Mar-2010 Irfan Sheriff <isheriff@google.com> settings variable for wifi saved state

We add a variable for saving wifi state
to restore after tethering.

Bring up wifi on boot up if the state indicates so.

Bug: 2537983
Change-Id: I9c6548b93df6fcbc0cec1e6b857f7224dc6d1b2c
/frameworks/base/core/java/android/provider/Settings.java
98bfa39596448504f58f6dfe1b8bd2d31f25367b 24-Mar-2010 Bjorn Bringert <bringert@android.com> Use a secure setting for default browser geolocation permissions

Partly reverts I6308b476ad18b1d71d7438b936c592a45365c9f0

Bug: http://b/issue?id=2535598

Change-Id: Ib488c6d4f10a87b714ecb78eef6fe58f572907c6
/frameworks/base/core/java/android/provider/Settings.java
e861ec11c458b4f76eb80da518dfee6a400071bf 25-Mar-2010 Amith Yamasani <yamasani@google.com> Fix 2242164 Soft keyboard keeps getting enabled even if I disable it

On keyboardful devices, it is possible to disable the system soft input
method. Something changed in eclair that caused the ime to be re-enabled
on every package manager update (packages added/deleted).

Now keep track of disabled system imes in the settings db and search
in that list before enabling a system IME on package changes.

Every time the user goes to settings to enable/disable imes, the list
is re-created.

Any new system IMEs that may be added via an OTA will get enabled if
they have a different package name.
/frameworks/base/core/java/android/provider/Settings.java
3a8b0c18a49c017ecfde8ebf4eb4bb5181ac6fef 25-Mar-2010 Dan Egnor <egnor@google.com> Limit DropBox storage to 1000 files (by default).

Also does trimming asynchronously (not directly in the broadcast receiver).

Bug: 2541253
Change-Id: I7daf8bc618e2dce68a98571f5f7fbce4df1d6a76
/frameworks/base/core/java/android/provider/Settings.java
2ccda4dc8d800c3592b4bd4d1d70a064d98dd4fe 23-Mar-2010 Dianne Hackborn <hackbod@google.com> Improve switching to car mode, retain night mode option.

Fiddle with how we go into car mode to try to ensure we get a clean
transition. Also have the system take care of remembering the night
mode setting so it will stay at what you want.

Change-Id: Icb94fdd961c7a192f7707ec71544485a1ea12455
/frameworks/base/core/java/android/provider/Settings.java
ceffa1597d574599cbaca71f5855a986b0857463 17-Mar-2010 Charles Chen <clchen@google.com> Adding secure setting for storing a list of enabled TTS plugins.

Change-Id: I972ae4fb71e430828b7d4b297613f6a21da3c982
/frameworks/base/core/java/android/provider/Settings.java
9ab518ad793385f8405edf19363fe825fb64f5f8 13-Mar-2010 Irfan Sheriff <isheriff@google.com> softAp framework changes

Remove AP persist settings
Add new netd interface
Handle errors
Handle AP config change
Bug: 2413908
Change-Id: I31a1221ef5479da8d4a2620f0f0ee0b62539bc69
/frameworks/base/core/java/android/provider/Settings.java
a455d194863d6c09f0388b03271880d7f21e77d6 12-Mar-2010 Dan Egnor <egnor@google.com> Record some logcat output with crashes, ANRs, etc..

Shelling out to logcat from the system server makes me queasy,
so this is turned off by default -- it must be enabled individually
for each error type (system_app_anr, etc) via a secure settings
value (which I plan to poke into from gservices for internal use).

Even when enabled, it happens in a side thread, unless the system
server is about to die anyway (system server restart).

Change-Id: Id6d88bcd78d3625f0364a5fe9c771046601a5a14
/frameworks/base/core/java/android/provider/Settings.java
458e8062c322a614d470e544b725adb04fdd8770 09-Mar-2010 David Brown <dab@google.com> Add INCALL_POWER_BUTTON_BEHAVIOR setting.

This is part 1 of the fix for bug 2364220 "Accessibility improvements for
ending calls". This change adds a new (hidden) constant
Settings.Secure.INCALL_POWER_BUTTON_BEHAVIOR, for a setting that controls
whether the Power button hangs up the current call, or just turns off the
screen.

Bug: 2364220

Change-Id: I14d4a89b27e99cac51dc16826d217072d999b2d6
/frameworks/base/core/java/android/provider/Settings.java
b8b11a0b1d82e24f7a79f2e1672e7f5cf1611a55 11-Mar-2010 Dianne Hackborn <hackbod@google.com> Further improvements to window management!

Fix issue #2493497: Stuck in the Emergency dialer - Home/Back keys doesn't work
This was another case of not updating the window focus when needed, this time
when the lock screen was hidden.

Also re-arrange the layout/animate flow to address issues where you would see
a flicker of whatever was behind the lock screen when showing a new activity that
hides the lock screen. This was because we were deciding to hide the lock screen
during the layout phase, which meant we had to do it without considering whether
it had drawn. So we could hide the lock screen before the window is shown for the
first time after being drawn. Now we can do this in the policy during animate, so
we can wait until the window is drawn and actually being shown.

The flow in perform layout is thus significantly changed, where the layout and
animate loops are both under the same repeating loop. The actual flow from this
should be the same, but it now allows the policy to request a new layout after
the animation loop is done. This actually cleans up a number of things in this
code as the complexity has increased.

Finally this includes a change to the ui mode manager when switching modes, to do
the resource configuration switch at a different time. This makes transitions
between modes much cleaner (though not yet perfect).

Change-Id: I5d9e75c1e79df1106108dd522f8ffed6058ef82b
/frameworks/base/core/java/android/provider/Settings.java
1c7fa4836bfa7ff61f176461ca0557e90f714121 10-Mar-2010 Daniel Sandler <dsandler@google.com> Add VIBRATE_IN_SILENT to the settings database & backup.

Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
/frameworks/base/core/java/android/provider/Settings.java
156c43545529fb3d731ffdd9c4514d38758e3f06 06-Mar-2010 Amith Yamasani <yamasani@google.com> Move lockscreen settings to secure table to prevent tampering. b/2343673

Migrate old settings to secure on upgrade.
/frameworks/base/core/java/android/provider/Settings.java
1877d0158b529663b8315482e7346a7bcaa96166 05-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Add "call" method on ContentProvider.

This permits implementing interfaces which are faster than using
remote Cursors. It then uses it for Settings & SettingProvider, which
together account for ~50% of total ContentProvider event loop stalls
across Froyo dogfooders.

For fetching Settings this looks like it should reduce average
Settings lookup from 10 ms to 0.4 ms on Sholes, once the
SettingsProvider serves most gets from in-memory cache. Currently it
brings the Sholes average down from 10ms to 2.5 ms while still using
SQLite queries on each get.
/frameworks/base/core/java/android/provider/Settings.java
e7085e909d0c7f58a160b2730ff06aca085dfd6b 04-Mar-2010 Robert Greenwalt <robdroid@android.com> Update framework tethering UI

Getting rid of notification dialog - maybe the entire TetherActivity.
Also getting rid of toasts - to ephemeral.
/frameworks/base/core/java/android/provider/Settings.java
5321aef4a22daef6ed01ed48d936cdd82f2e38b7 12-Feb-2010 Irfan Sheriff <isheriff@google.com> Wifi AP framework changes first pass

Bug: 2421638
Change-Id: Ic5ea8f7560a7fe5e1b0769daa5d92cc33eefc692
/frameworks/base/core/java/android/provider/Settings.java
6329bf7b1e2217c6c9477bd57349a1edade18417 26-Feb-2010 Daniel Sandler <dsandler@google.com> New vibrate/silent mode behavior.

In earlier versions of Android, "vibrate mode" (in which
only alarms and media produce sound, but notifications may
operate the vibe motor) was only accessible by adjusting the
ringer volume (via the device's volume rocker) down until
the "vibrate" icon appeared (between the lowest ring volume
and silent mode).

Many users prefer that "silent mode" always allow vibration.
Others prefer Android's historical behavior, in which silent
mode stops the vibes as well.

To accommodate these two distinct usage patterns, we now
allow the user to decide whether vibration is allowed in
"silent mode", a user interface abstraction that now spans
both AudioManager.RINGER_MODE_VIBRATE and
AudioManager.RINGER_MODE_SILENT.

To minimize API impact (and therefore maximize backward
compatibility), RINGER_MODE_VIBRATE and RINGER_MODE_SILENT
remain unchanged. What has changed is what happens when the
user activates silent mode, either via Settings,
GlobalActions (longpress on power), volume rocker, or the
keyguard tab. In essence, there is now only one "silent"
position in these controls, and whether RINGER_MODE_VIBRATE
or RINGER_MODE_SILENT is actually set on the AudioService is
determined by a new one-off setting
(System.VIBRATE_IN_SILENT). This new setting isn't meant to
be a long-term API, however: in the future we hope to
replace and extend this design with a much more
sophisticated set of systemwide feedback profiles. ETA TBD.

Related changes:
* I09ad7d69 (GlobalActions and keyguard)
* I22ba7bcf (Settings app)

Bug: 2457183
Change-Id: I14cf91b0910261ffdfd1bf302423f41ec747d057
/frameworks/base/core/java/android/provider/Settings.java
14c2d79028224118b96a03d2db6bab1902ccb6af 26-Feb-2010 Christopher Tate <ctate@google.com> Be sure to back up / restore some new settings

Added in this CL:

Power sounds enabled
Dock sound enabled
Lock/unlock sounds enabled
Auto-restore app data on install

Change-Id: Ie1c3215e926282e7cac5b82cd6196636049f7f85
/frameworks/base/core/java/android/provider/Settings.java
c03fa5014912684367174ff3cce664deb29f5e0e 24-Feb-2010 Robert Greenwalt <robdroid@android.com> Add mobile data on/off switch.

bug:2251458
/frameworks/base/core/java/android/provider/Settings.java
eebc8e2e8fa23b2957fec5838acc874af9a64a3d 18-Feb-2010 Erik <roboerik@android.com> b/2441327 Added add account intent to public api.

Added ACTION_ADD_ACCOUNT intent and EXTRAS_AUTHORITIES strings to the public
api so that Calendar can send users to the add account screen directly instead
of via the sync settings page.
/frameworks/base/core/java/android/provider/Settings.java
2a091d7aa0c174986387e5d56bf97a87fe075bdb 12-Feb-2010 Robert Greenwalt <robdroid@android.com> Update Tethering.

Adds telephony support, async model, multiple tethered iface suport,
better notifications, device config.

bug:2413855
/frameworks/base/core/java/android/provider/Settings.java
1c9131c91f27c8258dfad0a92cee105275f5422a 13-Feb-2010 Dan Egnor <egnor@google.com> Remove all traces of the old checkin service (and its associated parental
control interfaces) from the framework.
/frameworks/base/core/java/android/provider/Settings.java
0e9d2af2d60b381ba52d0c25e583b3d2a9906051 25-Jan-2010 Daniel Sandler <dsandler@google.com> New user interface sound effects:

- Low battery. (http://b/2320026)
- Dock/undock events.
- Keyguard lock/unlock events.

New system settings have been created to turn these on/off
and to specify the relevant sound files.

[Production notes: The provided low battery sound and dock
sounds were synthesized; the lock screen sounds are
processed samples of a ballpoint pen click mechanism.]

Bug: 2320026
Change-Id: I374285b0f94f59c7555bb8816580f5a8c802e90d
/frameworks/base/core/java/android/provider/Settings.java
90d2db3d21d07c2a4b4cbbc558f5ec59d20098c3 12-Feb-2010 Dianne Hackborn <hackbod@google.com> Add Pointer Location to the window manager.

The window manager now has pointer location built into it.
Viva la touch!
/frameworks/base/core/java/android/provider/Settings.java
5d34e9b63d5305934dcedac11e8dd658ae23c174 11-Feb-2010 Mike LeBeau <mlebeau@android.com> Add new setting for the ComponentName of the service to be used
for voice recognition on the device. Right now this just queries
the package manager at boot and finds the (hopefully) single
available recognizer.

TODO: Add an attribute to let recognition services expose a settings
activity, and expose the settings activity of the chosen recognition
service in the system settings for voice input & output.
/frameworks/base/core/java/android/provider/Settings.java
60586f2ec65d16d185767fce4311d3ed0e9112ac 09-Feb-2010 Dan Egnor <egnor@google.com> API CHANGE: Add SSLSessionCache public API to allow unbundled SSL session caching.

Generally clean up the associated SSLCertificateSocketFactory API as well,
change AndroidHttpClient to use this new thing, and make the android-common
library build SDK-clean (woo hoo).

Bug: 2362543
Bug: 2357311
/frameworks/base/core/java/android/provider/Settings.java
117818e4f171b1fd9daa05349c48f61388f04567 09-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Add new manifest option for install location
Change recommendAppInstallLocation api
add code to parse new attribute.
Define flags in PackageInfo
Add new settings attributes for enabling setting and value for install location
Some tests
The policy for install location: if explicitly set in manifest as internal only we try to install the app only on internal storage. if set to preferExternal, we try to install it on sdcard if possible. If not we fall back to internal.
If the user enables setting SET_INSTALL_LOCATION(which will always
be set to false in final release builds) and sets a prefered location, we try
to honour it.
/frameworks/base/core/java/android/provider/Settings.java
d0e18ffb82b59d38aeaf0e552f48e734202719ab 26-Jan-2010 Robert Greenwalt <robdroid@android.com> First pass at USB Tethering.

bug:2281900
/frameworks/base/core/java/android/provider/Settings.java
cce9da5dc3d515f98c260af41a03e61e57b4e7a6 04-Feb-2010 Christopher Tate <ctate@google.com> Add auto-restore setting and Backup Manager awareness thereof

This setting, like BACKUP_ENABLE, should never be set directly in the secure
settings database. Instead, it should be manipulated through the new IBackupManager
method setAutoRestore(boolean).

Change-Id: I5c3226ca85b6148bb756d753d7f9e4ea76e878c4
/frameworks/base/core/java/android/provider/Settings.java
d8893db060c9aabb6042ba6444a9df476da13a6f 26-Jan-2010 Doug Zongker <dougz@android.com> update javadoc for Settings.Secure.ANDROID_ID

Remove reference to GoogleLoginService, explain what this value is now.

Change-Id: I2359bd21d9c250245c01e26d660b133f4e469759
/frameworks/base/core/java/android/provider/Settings.java
017091669a5af2dd3d0a457f05f153f4d31848b6 23-Jan-2010 Chih-Chung Chang <chihchung@google.com> Unhide brightness constants to help unbundle Camera.
/frameworks/base/core/java/android/provider/Settings.java
a3d5e0c5e3d12b3f8d7f43acb0c170b5e5899876 26-Jan-2010 Mark Vandevoorde <mtv@google.com> Unhide the secure setting for LocationProviderEnabled

The unbundled NetworkLocationProvider needs to get/set the enabled bit
from the settings database.
/frameworks/base/core/java/android/provider/Settings.java
9d8b876c61831fd52abf56a87c518b999cc17821 23-Jan-2010 Daniel Sandler <dsandler@google.com> Add android.provider.Settings.ACTION_DEVICE_INFO_SETTINGS.

Maps to "android.settings.DEVICE_INFO_SETTINGS", which
launches the DeviceInfoSettings activity in Settings.
/frameworks/base/core/java/android/provider/Settings.java
ef340357cefeee452403a77c2b6c1aa01c239d6b 14-Jan-2010 Justin Mattson <jmatt@google.com> NEW_API: Declare an ACTION_SEARCH_SETTINGS constant in android.provider.Settings so that apps can cause this system setting group to be opened directly.

The Settings app already responds to this action it just was not exposed in the platform API.
/frameworks/base/core/java/android/provider/Settings.java
0e25caf82ebe2af3aa5612d27e0eef7c10e8d85c 14-Jan-2010 Ficus Kirkpatrick <ficus@android.com> Remove some settings we are no longer using.

All are hidden; no API change.
/frameworks/base/core/java/android/provider/Settings.java
42471dd5552a346dd82a58a663159875ccc4fb79 08-Jan-2010 Dan Egnor <egnor@google.com> Simplify & update ANR logging; report ANR data into the dropbox.
Eliminate the per-process 200ms timeout during ANR thread-dumping.
Dump all the threads at once, then wait for the file to stabilize.
Seems to work great and is much, much, much faster.

Don't dump stack traces to traces.txt on app crashes (it isn't very
useful and mostly just clutters up the file).

Tweak the formatting of the dropbox dumpsys a bit, for readability,
and avoid running out of memory when dumping large log files.

Report build & kernel version with kernel log dropbox entries.
/frameworks/base/core/java/android/provider/Settings.java
87734d3bc118cba8f42845ddd51f10edadb84abf 08-Jan-2010 San Mehat <san@google.com> Settings: Add settings for MountService prefs and bump DB version to 46

Adds 4 new Settings:
Secure.MOUNT_PLAY_NOTIFICATION_SND - Play notification sound on events
Secure.MOUNT_UMS_AUTOSTART - Auto-start UMS when host detected
Secure.MOUNT_UMS_PROMPT - Show notification when host detected
Secure.MOUNT_UMS_NOTIFY_ENABLED - Show notification while UMS enabled

These settings are also added to the Settings backup list

Signed-off-by: San Mehat <san@google.com>
/frameworks/base/core/java/android/provider/Settings.java
aed8f8eb1491a21c8c71d39258b70edb74533a62 08-Jan-2010 Doug Zongker <dougz@android.com> remove Settings.Gservices

Move the last few keys to secure settings, and delete the Gservices
table.

Change-Id: Ie3ba45aa8c1f220824aa027c547cb82884452eb5
/frameworks/base/core/java/android/provider/Settings.java
edc5189c33de03f3e2f5f73edc0e007992b933c9 07-Jan-2010 Doug Zongker <dougz@android.com> change remaining frameworks/base Gservices to Secure settings

Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
/frameworks/base/core/java/android/provider/Settings.java
43866e0c48bb0effe8805afd62b253e50ca7d591 07-Jan-2010 Doug Zongker <dougz@android.com> move some system services from gservices to secure settings

Change-Id: Ie2dfb99a2b42b2cc9310b858c044d8684e3493fa
/frameworks/base/core/java/android/provider/Settings.java
f68888951ae6056f5a15a7e2a84045c067bc6ba2 07-Jan-2010 Doug Zongker <dougz@android.com> move Watchdog's settings from Gservices to Secure

Change-Id: Iac1146dafa12f9247874514c9aeefa5f8f83933d
/frameworks/base/core/java/android/provider/Settings.java
a0b517609dfd8436a98bdebb31466f19ffec6cb5 28-Dec-2009 Eric Laurent <elaurent@google.com> am 68e9014e: am 484d2888: Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call volume and vice versa.

Merge commit '68e9014e47f7350b3889e1704dde809b2a926968'

* commit '68e9014e47f7350b3889e1704dde809b2a926968':
Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call volume and vice versa.
484d2888680e18e6ad8c3fcc51e3b70a705a096e 08-Dec-2009 Eric Laurent <elaurent@google.com> Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call volume and vice versa.

Add a separate system settings entry for bluetooth SCO volume.
/frameworks/base/core/java/android/provider/Settings.java
60d8762413e8daba5f73559786312a9ec5e3b827 17-Dec-2009 Dan Egnor <egnor@google.com> DropBox logging of app & system server crashes.

The crashes are also reported to the event log (and of course the
main logcat, like they always have been). Ordinary Log.e(t,m,e) isn't dropboxed
but there's a new Log.wtf() which always is. (Still @pending in this change.)

Add a hook to IPowerManager to crash the system server on demand
(only for apps with REBOOT permission, since it's basically a restart).
This is not exposed in PowerManager, must be invoked directly -- mostly
this is there so "Bad Behavior" in dev tools can do it.
/frameworks/base/core/java/android/provider/Settings.java
17b7ffe9cec899a4097a16107dbc380b05d40abc 17-Dec-2009 Christopher Tate <ctate@google.com> Do not back up / restore the END_BUTTON_BEHAVIOR setting

If something had backed up this setting in the 'do nothing' state, a restore of
that dataset could render a device without a hard END key unusable. There's no
clear reason to want to restore this value anyway, so we no longer back it up,
nor apply it at restore time even if the dataset contains it.

Bug: 2326562
/frameworks/base/core/java/android/provider/Settings.java
97ef7637c6799e72956db8e08192539f1b1942f6 10-Dec-2009 Fred Quintana <fredq@google.com> - move the EventLog stuff out of ATSA
- move the google calendar sync adapter settings out of Settings.java
/frameworks/base/core/java/android/provider/Settings.java
20d778805cd824c0710ab79d8b3c58f214606d3a 03-Dec-2009 Ken Shirriff <kens@google.com> Make Gservices setting constants public.
/frameworks/base/core/java/android/provider/Settings.java
42c4c589003c029309c823e8f06ed00b3cdb21de 02-Dec-2009 Amith Yamasani <yamasani@google.com> am a9791d30: Merge change Iae3ed706 into eclair

Merge commit 'a9791d304b8ec03e04ad4533b1820a64794e1bcc' into eclair-mr2

* commit 'a9791d304b8ec03e04ad4533b1820a64794e1bcc':
Add new setting for notification light pulsing. Bug #2238250
ae3ed706702a5ebe6ffcc08b941b1401c9a24b89 02-Dec-2009 Amith Yamasani <yamasani@google.com> Add new setting for notification light pulsing. Bug #2238250

New System setting and code to set the defaults on upgrade.
/frameworks/base/core/java/android/provider/Settings.java
799f721fcbff7a5ef62141786a642290f275903b 25-Nov-2009 Dan Egnor <egnor@google.com> Fix a bug in the Settings contract class (introduced in an ... iffy ... fix
to a race condition) that breaks the caching of non-existent Settings/Secure/
Gservices values (causing lots of unnecessary database queries).

Fix a dumb thinko (reversed condition) in the SQLiteDatabase logging.
/frameworks/base/core/java/android/provider/Settings.java
f8c2bb36f7b5d49553155559bc30c4e9211340e4 20-Nov-2009 Ken Shirriff <kens@google.com> Add gservices flags for calendar sync.
/frameworks/base/core/java/android/provider/Settings.java
194f0808925453f40f516fca4de57887d455066a 19-Nov-2009 lknguyen <lknguyen@google.com> Add Gservices flag so that Market can turn on performance logging for specific groups.
/frameworks/base/core/java/android/provider/Settings.java
db9f06d9c44cd640f282b1a631ae82d3652beeef 13-Nov-2009 Wink Saville <wink@google.com> resolved conflicts for merge of 2a1e9641 to eclair-mr2

Change-Id: Ie1e1e686a7ef26a8a3f583c9660930eb16ca2659
ce9b59f0ba00e006d2697480b5e5d1fcbd0d2818 12-Nov-2009 Wink Saville <wink@google.com> Add code to use Gservices provided values for throtting NITZ updates.

bug: 2251845
Change-Id: Ie122606fb852868bb76a9930bb5e6ba906273619
/frameworks/base/core/java/android/provider/Settings.java
6139bf60e83753750fa1009de6da85033dad1820 12-Nov-2009 Dan Egnor <egnor@google.com> Add AGGREGATION_INTERVAL_SECONDS (fixing the build)
/frameworks/base/core/java/android/provider/Settings.java
4ff960006f00d79d50d692bc634789d1485413d8 09-Nov-2009 Cynthia Wong <cynthiaw@google.com> new gservices flag for delaying bad gmail operations
/frameworks/base/core/java/android/provider/Settings.java
2effb21e89962d0f8046a81aa010691f60d23257 06-Nov-2009 Dan Egnor <egnor@google.com> Add UPDATE_ACTION to Gservices, used by the new checkin service.
/frameworks/base/core/java/android/provider/Settings.java
272af007684be307464dc14335503316cea3dbf3 05-Nov-2009 Vasu Nori <vnori@google.com> a possible fix for the bug http://b/issue?id=2200637
/frameworks/base/core/java/android/provider/Settings.java
2086152c1b60ad3bfe85c1ddc3871cff77e6da1b 16-Oct-2009 Mike Lockwood <lockwood@android.com> am f55aa972: Merge change I01935be3 into eclair

Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-mr2

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
Remove PowerManager.setAutoBrightness()
dc3494e3d8e17aeb0dbbe41953a5ef763d95ff78 15-Oct-2009 Mike Lockwood <lockwood@android.com> Remove PowerManager.setAutoBrightness()

We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.
Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants.

Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
647ae75e5785575c333de22a67b7bf27e4e917e2 15-Oct-2009 Christian Sonntag <cxs@google.com> Add Gservice for vending_restore_window, this determines the duration after first setup, during which we do not reconcile backup apps.
after that apps restored via market/backup will be treated just like any other app and being synced with the server state.
/frameworks/base/core/java/android/provider/Settings.java
4410ec8f7cec6ab05a8c24c04fe2d5ed5d1e18df 12-Sep-2009 Dan Egnor <egnor@google.com> Framework-side DropBox service that maintains a size-bounded
queue of data chunks (sort of a blob-oriented logcat).

In the future, this will be coupled with a revised checkin service that
would actually upload this data.
/frameworks/base/core/java/android/provider/Settings.java
ee649a811bc7e2193b63cadb312877a03640a9c4 09-Oct-2009 Dan Egnor <egnor@google.com> Add LAST_KMSG_KB variable, used to tune the size of /proc/last_kmsg uploads.
See bug 2177046.
/frameworks/base/core/java/android/provider/Settings.java
a33e3f79259b56b03c7912af35944f34ad190e3c 30-Sep-2009 Dianne Hackborn <hackbod@google.com> Fix issue #2154794: Force close when start facebook application.

I think when we were scanning the updated app in the system image,
from an older version on the data partition, we were not setting
the existing package to have the system flag, so not auto-granting
any new permissions.

This also includes some other cleanup in the package manager to
remove old files in various places, and tighten up logging.

Also similar logging cleanup elsewhere.

Change-Id: I6d113c7cf7e736ab9be512d6d7c94c806a24199a
/frameworks/base/core/java/android/provider/Settings.java
f602c5170ef5a7d75992db9e46ad44efb709ca99 29-Sep-2009 lknguyen <lknguyen@google.com> Add Gservices flag for Vending doctor download complete timeout.
/frameworks/base/core/java/android/provider/Settings.java
f582a69dd2ed556d48a4c158b6560c08e44386fd 28-Sep-2009 Christopher Tate <ctate@android.com> Don't back up / restore "allow apps from unknown sources"

We no longer back up the state of the "Allow the installation of applications
from unknown sources" setting, nor do we set that based on restore data even if
it is present.

Change-Id: Ida276874616f1ff82807d642b0b733fcab339529
/frameworks/base/core/java/android/provider/Settings.java
362aca60453ec7f27abb4d83fc29dd82095dc882 26-Sep-2009 Christopher Tate <ctate@android.com> Add auto-brightness mode to the list of backed-up settings

Change-Id: I4302b79691ed717d810748b239311cba198f6381
/frameworks/base/core/java/android/provider/Settings.java
c15255a979c9fc70bc251aefdcd9c1074b458d49 24-Sep-2009 Amith Yamasani <yamasani@google.com> Add a PRIVACY_SETTINGS action to launch the new Privacy settings screen.
/frameworks/base/core/java/android/provider/Settings.java
b34a3a08050c456fabec399cfeb44df47d96bc9f 18-Sep-2009 Sanjay Jeyakumar <sjk@google.com> Remove the GDD Gservices setting.
/frameworks/base/core/java/android/provider/Settings.java
a286f419084d56217f05a64f1d24c9e07917212e 19-Sep-2009 Christopher Tate <ctate@android.com> Don't back up / restore certain sync-related settings

In particular, this no longer attempts to back up the on/off state of specific
backend syncing [gmail/contacts/calendar], nor the "background data" toggle.
The former was causing a great deal of spurious trips through backup as the
notification was being tickled during general sync operation, and the latter
makes little sense at restore time.

Fixes these issues:

b/2097613 - frequent "backup_data_changed" messages in event log
b/2131662 - should not backup background data, master sync settings
/frameworks/base/core/java/android/provider/Settings.java
a233943cb1b064155d001556c573140ed333149e 18-Sep-2009 Jacek Surazski <jaceks@google.com> Add a Gservices setting to controll the app error reporting feature.
/frameworks/base/core/java/android/provider/Settings.java
8cbaa832aec8d996830008f34cc47f23ad3165f9 17-Sep-2009 Sanjay Jeyakumar <sjk@google.com> Add Gservices settings required for carrier billing.
/frameworks/base/core/java/android/provider/Settings.java
cac138274c45b49a91e1d28cce44faa02d37906e 16-Sep-2009 Cynthia Wong <cynthiaw@google.com> Add new Gservices setting for discarding uphill ops for eclair and future devices.
/frameworks/base/core/java/android/provider/Settings.java
951764b97010dfa073126f52b43ea1bdf1b35998 27-Aug-2009 Dan Murphy <D.Murphy@motorola.com> Add automatic lighting control framework

Add changes to have the ability to turn on and off the
automatic light sensing for the device. This is fully configurable
and is by default not present. Vendors should override the ALS setting
to enable the automatic lighting controls.

These changes will add a check box to the Brightness settings menu to give control
to the user to allow the device's display lighting to be controlled via the slide bar
or the auto lighting system.

If the user selects auto then the slide bar will become invisible. Manual mode
will present the slide bar to the user.

Change-Id: I146a6d75b99b08c9b839218ce6b85adf21f9fd73
Signed-off-by: Dan Murphy <D.Murphy@motorola.com>
Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
0738e8893540e8f7fac7c193be5fe24b67f04672 12-Sep-2009 Christopher Tate <ctate@android.com> Don't backup/restore telephony material from secure settings

* Remove several nonportable telephony settings from the set to be included in
the backed-up dataset

* Explicitly ignore those settings if they're encountered during a restore
operation, so that we don't inadvertently do things like configure a GSM
phone to use CDMA logic.
/frameworks/base/core/java/android/provider/Settings.java
96f8613d95122a491a44f755f06845cc2c13e81e 04-Sep-2009 Bjorn Bringert <bringert@android.com> Add Gservices constants for GlobalSearch settings

This is part of the implementation of http://b/issue?id=2097470

Change-Id: Ife3e5edd4c7d31824d75a0f93a6dcd56a39ab524
/frameworks/base/core/java/android/provider/Settings.java
0b98c944c6bac98d95c93916cde31f841b44d9aa 05-Sep-2009 Ye Wen <ywen@google.com> Fix code placement and comments for gtalk url scraping settings.
/frameworks/base/core/java/android/provider/Settings.java
7a0c108d8b625c5ecb3476b9233dddaf5a6270e0 04-Sep-2009 Ye Wen <ywen@google.com> Gservices settings for controlling URL scraping in GTalk app.
/frameworks/base/core/java/android/provider/Settings.java
dd9b82c283815747b75fe4434c65e4b6c9c9b54f 03-Sep-2009 Dianne Hackborn <hackbod@google.com> Add better service reporting.

This will be used elsewhere.

Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
/frameworks/base/core/java/android/provider/Settings.java
62d95ead34d954c286f13a6d341f07a267796ee4 02-Sep-2009 Christian Sonntag <cxs@google.com> Add APANIC kernel logging to CheckinService.
we keep book and only read a particular file once and send it to the server.

The files are:

Ramconsole Driver (Dream/Sapphire):

/data/dontpanic/last_kmsg

Apanic Driver (Sholes/all future designs):

/data/dontpanic/apanic_console
/data/dontpanic/apanic_threads
/frameworks/base/core/java/android/provider/Settings.java
48f886e661275a6b649699d556c8f01f384d88d8 26-Aug-2009 Ye Wen <ywen@google.com> The Gservices settings for pruning messages/chats.
/frameworks/base/core/java/android/provider/Settings.java
ebd8416fad86aad10f8724a02437d27c473169bd 27-Aug-2009 Sanjay Jeyakumar <sjk@google.com> Add Gservices setting for the frequency to perform provisioning.
/frameworks/base/core/java/android/provider/Settings.java
4a51c20ce607c74914f90fd897f04080121ac13b 22-Aug-2009 Dianne Hackborn <hackbod@google.com> I am getting tired of the java doc warnings, so fix them.

Change-Id: I2205eebae419eaf4a0992c9f5b7cd807eb843fe1
/frameworks/base/core/java/android/provider/Settings.java
cc6bd5a0d3f679d2820e2d61ea868ba6a58fc186 24-Aug-2009 Wei Huang <weih@google.com> fix typo
/frameworks/base/core/java/android/provider/Settings.java
1abf498e7fbd914d12843b3426c1f26bde3b2e79 21-Aug-2009 Wei Huang <weih@google.com> add a "display_sent_time" column to the message table, to provide a hint that the UI should display time stamp for this message always. Add Gservices settings for gtalk stuff.
/frameworks/base/core/java/android/provider/Settings.java
f0f13aeadd5c9f9cfe19e6b115b3501705a97076 20-Aug-2009 Ken Shirriff <kens@google.com> Add calendar sliding windows setting.

GOOGLE_CALENDAR_SYNC_WINDOW_UPDATE_DAYS indicates how often to update
the calendar sync window.
/frameworks/base/core/java/android/provider/Settings.java
ef99e248fe5f556bbd216d3ac669391b83ab5ebb 18-Aug-2009 Jasperln <jasperln@google.com> am f5e6a211: Merge change 21572 into donut

Merge commit 'f5e6a211b16e26104b6fb2d32ef4eabbf9fbc2d1' into eclair

* commit 'f5e6a211b16e26104b6fb2d32ef4eabbf9fbc2d1':
Add constants to adjust Vending input and output buffer sizes.
b95277e76291729ac2f2254372ae62ea88789443 17-Aug-2009 Jasperln <jasperln@google.com> Add constants to adjust Vending input and output buffer sizes.

- Needed for Bug: 2058060
/frameworks/base/core/java/android/provider/Settings.java
c650bf583dbed8701da9a49b9dbd9023768f0df8 14-Aug-2009 Wei Huang <weih@google.com> Get rid of Settings.getJIDResource(), which really should live in GTalkService. Add API to store the JID resource in IM provider settings.
/frameworks/base/core/java/android/provider/Settings.java
1e4807aaf4854645616814169987ad153a70b5ff 30-Jul-2009 Wei Huang <weih@google.com> new s2d ids table for rmq2; plus Gservices setting for using rmq2 protocol.
/frameworks/base/core/java/android/provider/Settings.java
c030a48c1e9e2923e8dee320dd3085dc3324b9a4 11-Aug-2009 Debajit Ghosh <debajit@google.com> add gservices setting for switching sync subscriptions to use a new routing info.
/frameworks/base/core/java/android/provider/Settings.java
0d54b02b75dc2f6a4a35b583258692621e7372ce 11-Aug-2009 Cynthia Wong <cynthiaw@google.com> Add a new setting for controling how much time to wait before discarding uphill operations
/frameworks/base/core/java/android/provider/Settings.java
326580d59aa803aa217f89337757a5b7b400b486 10-Aug-2009 Ken Shirriff <kens@google.com> Add calendar_sync_window_days setting to control calendar sync window.
/frameworks/base/core/java/android/provider/Settings.java
058779c9bbdfcc8773b181eb87de299ca7269c4d 07-Aug-2009 Christian Sonntag <cxs@android.com> Add constant for storing market backup state in shared preferences.
/frameworks/base/core/java/android/provider/Settings.java
50dac8c67379e6d765ca3be19b069eaba19c863d 07-Aug-2009 Alex Gruenstein <alexgru@android.com> Remove Voice Search constants, factored them out into the Voice Search app.
/frameworks/base/core/java/android/provider/Settings.java
bd5ddf01e4d629982fa8bb667d4be7c5ec3aa79f 30-Jul-2009 Mike Lockwood <lockwood@android.com> Wifi: Add support for enabling Wifi while in airplane mode.

If the new system settings value for AIRPLANE_MODE_TOGGLEABLE_RADIOS
contains RADIO_WIFI, then the user will be allowed to enable Wifi
while in airplane mode.
Turning on airplane mode will still disable Wifi, but the user will
be free to reenable it in the Settings app.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
e60066db189d429564632f64b14c2b32538a3b02 24-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 0e638630: Merge change 8291 into donut

Merge commit '0e6386300c958c5566d09b6a18b4338a6db3e965'

* commit '0e6386300c958c5566d09b6a18b4338a6db3e965':
Add gservices flag for configuring the URL vending redirects to when TOS is inaccessible due to no/bad network.
f965d1690e462abcbb55ea7b289fd15c62b2c23b 23-Jul-2009 lknguyen <lknguyen@google.com> Add gservices flag for configuring the URL vending redirects to when TOS is inaccessible due to no/bad network.
/frameworks/base/core/java/android/provider/Settings.java
71effba5ac09a02704b564a7e89b797768a47103 21-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 6fb608ee: Merge change 7854 into donut

Merge commit '6fb608ee67c3ad82baf2253b87b63fff8907992a'

* commit '6fb608ee67c3ad82baf2253b87b63fff8907992a':
Issue #1884058 (Need to only record frequency and duration for selected Google apps)
9fdbf6ae465f90b50ca5feb320215b98018c9937 19-Jul-2009 Dianne Hackborn <hackbod@google.com> Issue #1884058 (Need to only record frequency and duration for selected Google apps)

Quick and dirty solution: a new --packages argument allows you to specify an explicit
set of packages to include in the dump. There is also now a new GServices setting
that can provide a value for it.
/frameworks/base/core/java/android/provider/Settings.java
2debd56b5b24d7f4c385f64bfcaf23d00d4d986a 14-Jul-2009 Tom Taylor <tomtaylor@google.com> Add new gtalk values

Add new gservices strings for various picture related urls for GTalk.
/frameworks/base/core/java/android/provider/Settings.java
4573df4db0d4dc0dfcac15e8fe35b9939e351bcf 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 5628711a: Merge change 6855 into donut

Merge commit '5628711a6f5674070da674488513d2e1b03c4959'

* commit '5628711a6f5674070da674488513d2e1b03c4959':
Add a Gservices setting to control if we send up multipart protocol buffers
1c5e4034e47be32e739972860cbca0afdbe807ef 09-Jul-2009 Wei Huang <weih@google.com> modify Gservices setting for push messaging registration url.
/frameworks/base/core/java/android/provider/Settings.java
278a802dcd5d5454143127d0d59a6eb0ba96ecc7 10-Jul-2009 Cynthia Wong <cynthiaw@google.com> Add a Gservices setting to control if we send up multipart protocol buffers
/frameworks/base/core/java/android/provider/Settings.java
f00193ff7ac1872fc88f86b5150e023c09846df9 09-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 8f7c7c0c: Merge change 6659 into donut

Merge commit '8f7c7c0c18987b1045cb73e503f82ce429a0d924'

* commit '8f7c7c0c18987b1045cb73e503f82ce429a0d924':
Add a Gservices setting to set the rate at which the home page refreshes.
21bf2416512a8bdf4f3a0fd9f788f409d6013c32 09-Jul-2009 Sanjay Jeyakumar <sjk@google.com> Add a Gservices setting to set the rate at which the home page refreshes.
/frameworks/base/core/java/android/provider/Settings.java
2eac99ccbcdcc91b69c04ea2eb03f4cba961c17c 08-Jul-2009 -b master <yamasani@google.com> resolved conflicts for merge of d6fe243c to master
8823c0a8c68fe669c21c539eef9fc6541f0c7494 07-Jul-2009 Amith Yamasani <yamasani@google.com> Backup / Restore locale preference.

Also backup development settings MOCK_LOCATION and USB_DEBUGGING.
Backup and restore more of the Audio settings. Won't work yet without a reboot.
Disable Wifi supplicant restore temporarily. It seems to be disabling Wifi due to
permissions problems.
Don't restore Ringtones.
/frameworks/base/core/java/android/provider/Settings.java
be11746cb750a6d8b8dcd37e18dc87547e95692a 07-Jul-2009 Cynthia Wong <cynthiaw@google.com> am 04f0b05e: Add a Gservices setting for how many times we should retry before discarding an uphill operation

Merge commit '04f0b05ea04a4a13d6a15b36eaa27b2ec364f313'

* commit '04f0b05ea04a4a13d6a15b36eaa27b2ec364f313':
Add a Gservices setting for how many times we should retry before discarding an uphill operation
04f0b05ea04a4a13d6a15b36eaa27b2ec364f313 07-Jul-2009 Cynthia Wong <cynthiaw@google.com> Add a Gservices setting for how many times we should retry before discarding an uphill operation
/frameworks/base/core/java/android/provider/Settings.java
48f7d85d7b6be25f17f269adc7794e53121bbe2c 07-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am dbee95ca: Merge change 6317 into donut

Merge commit 'dbee95cacff9d2faf30638e64abe26fbeb128787'

* commit 'dbee95cacff9d2faf30638e64abe26fbeb128787':
Make enable/provisioning of the backup service a two-step process
8031a3df2fd0c38d85eeae39c1ea2c83e813f4ff 07-Jul-2009 Christopher Tate <ctate@google.com> Make enable/provisioning of the backup service a two-step process

This CL adds the concept of 'provisioned' to the backup manager. No backups
will be scheduled until the user has indicated that backups are to be enabled
*and* has clicked all the way through the setup wizard.

When the user first turns on the backup system, the delay before the initial
backup pass is different from the periodic backup interval. Currently that
initial delay is 12 hours. The intent here is to guess at a less-active time
for performing that first backup pass.

NOTE: currently the backup service defaults to 'provisioned'. Once the real
code goes live in Setup Wizard, this will be changed to default to
not-provisioned until the user has confirmed all the relevant UI.
/frameworks/base/core/java/android/provider/Settings.java
501eec92f9f4f206ad7972c63f2d0ef0285d8e34 06-Jul-2009 -b master <yamasani@google.com> Revert "hand rolled out 220f4d633be1098e7887dbd06f179138bf19f1ad due to interface changes on master, the change will need to be made again"

This reverts commit f8e3ba5bfad14f3037d72eb6243258c13169cbd8.
/frameworks/base/core/java/android/provider/Settings.java
f8e3ba5bfad14f3037d72eb6243258c13169cbd8 03-Jul-2009 The Android Open Source Project <initial-contribution@android.com> hand rolled out 220f4d633be1098e7887dbd06f179138bf19f1ad due to interface changes on master, the change will need to be made again
/frameworks/base/core/java/android/provider/Settings.java
133ec72f2480a65a02c8e1e5d9540796a0d05895 03-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 288fe16c: Merge change 6043 into donut

Merge commit '288fe16c20e2c20556839046d38c487b0b18735c'

* commit '288fe16c20e2c20556839046d38c487b0b18735c':
System and Secure settings backup.
5d16cd046298ec9e009cfdd2056c64c1a9ac5ba3 03-Jul-2009 Dianne Hackborn <hackbod@google.com> am d7cd29da: Add facility to run setup wizard after an update.

Merge commit 'd7cd29da91ccc0aba1f1097e19366f9ca36c7ce1'

* commit 'd7cd29da91ccc0aba1f1097e19366f9ca36c7ce1':
Add facility to run setup wizard after an update.
575d1af980f4b4866325bfc487455f54606cf49e 03-Jul-2009 The Android Open Source Project <initial-contribution@android.com> resolved conflicts for merge of cf098294 to master
220f4d633be1098e7887dbd06f179138bf19f1ad 02-Jul-2009 Amith Yamasani <yamasani@google.com> System and Secure settings backup.

This backs up the basic system and secure settings. THe restoration doesn't
take effect immediately. You many need to restart the runtime to see all
restored values take effect.
/frameworks/base/core/java/android/provider/Settings.java
023d7564a6b6bce894aba4eaf00133c6f86d1de5 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am f3ab3c34: Merge change 5833 into donut

Merge commit 'f3ab3c3437f18834ce63542062c2ed7a87a05fca'

* commit 'f3ab3c3437f18834ce63542062c2ed7a87a05fca':
Fix nit on length of flag constant.
74ab31598bb65b17f84411d11d09269f1291d78a 02-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am d8de2ba4: Merge change 5750 into donut

Merge commit 'd8de2ba42679a10db2adc11995d6596a0045ab3a'

* commit 'd8de2ba42679a10db2adc11995d6596a0045ab3a':
Add a new checkin server flag for Vending Machine client server ping frequency for pending downloads.
d7cd29da91ccc0aba1f1097e19366f9ca36c7ce1 01-Jul-2009 Dianne Hackborn <hackbod@google.com> Add facility to run setup wizard after an update.

The system now keeps a tag of the last version (just an arbitrary string)
that the setup wizard was run for. If this is different than the current
one in the setup wizard, then setup is launched at boot.

This introduces a new intent action for the part of the setup wizard that
gets run for an ungrade, which the system uses to find its current version
tag for comparing against what was last stored. It is up to the launched
setup activity update the stored setting to reflect its current value,
once it is happy.
/frameworks/base/core/java/android/provider/Settings.java
cf098294da7a820d5c30d8ed2006ed5446ee1da9 02-Jul-2009 Dianne Hackborn <hackbod@google.com> Move backup state to settings, change permission checks to use symbol.

This changes the backup service to use the settings provider instead
of system properties, correspondingly making it off by default and
allowing specific devices to define the transport. Also tweaks
the permission checks to use the permission symbol instead of raw
strings.

This requires some corresponding changes in the vendor projects.
/frameworks/base/core/java/android/provider/Settings.java
09b3373d83a0f582eae46562bc307022c64ac497 30-Jun-2009 lknguyen <lknguyen@google.com> Fix nit on length of flag constant.
/frameworks/base/core/java/android/provider/Settings.java
b0cba433057857ab61d2231a979a50c2b999f9e7 30-Jun-2009 lknguyen <lknguyen@google.com> Add a new checkin server flag for Vending Machine client server ping frequency for pending downloads.
/frameworks/base/core/java/android/provider/Settings.java
bcab8df83e6e769a7cbcc742e72b47d665998793 25-Jun-2009 Mike Lockwood <lockwood@android.com> Settings: Add preference to enable/disable assisted GPS.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/core/java/android/provider/Settings.java
8ad2246edd526b7bef1b04e3a69faf2707691375 25-Jun-2009 Wei Huang <weih@google.com> add Gservices setting for data messaging app token url.
/frameworks/base/core/java/android/provider/Settings.java
b3222875943efba066896c140b7cf7d58b423870 25-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 60a0ad65: Merge change 5329 into donut

Merge commit '60a0ad65f4cd7dedbbd06993d107fb1b72d072c6'

* commit '60a0ad65f4cd7dedbbd06993d107fb1b72d072c6':
frameworks/base - CDMA settings additions
d0f6715dcb68fbcee12e0c73326c8d872cb9c5a4 14-Jun-2009 David Krause <david.krause@motorola.com> frameworks/base - CDMA settings additions

These changes are the frameworks/base portion of CDMA UI changes.

Five settings are added:
- In-call DTMF type (burst or long)
- Emergency tone type
- CDMA auto-retry
- Hearing Aid Compatibility (on/off)
- TTY mode
/frameworks/base/core/java/android/provider/Settings.java
61f24e58d6b86667906c8ac84e2f09b6c7e4ac2c 23-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2830b922: Merge change 4977 into donut

Merge commit '2830b9226bc737da970f8d20601ccde19008415c'

* commit '2830b9226bc737da970f8d20601ccde19008415c':
Update the gservices gtalk setting for the terms and services url.
2c0a01a6e775ad0d76a2f7169497e73b96ef5ab3 23-Jun-2009 Tom Taylor <tomtaylor@google.com> Update the gservices gtalk setting for the terms and services url.
/frameworks/base/core/java/android/provider/Settings.java
90c8f83538cc9dd79e68d167263095b98870fed4 22-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am d6dd686b: Merge change 4805 into donut

Merge commit 'd6dd686bc7adba448af1bc36a022cddba9f9561f'

* commit 'd6dd686bc7adba448af1bc36a022cddba9f9561f':
add GServices settings for Google Talk privacy and legal urls.
ceca25fdb019ef11e28b88e4575e6594cc46b55d 19-Jun-2009 Wei Huang <weih@google.com> add GServices settings for Google Talk privacy and legal urls.
/frameworks/base/core/java/android/provider/Settings.java
f1891f4b79127ae8e0f3b2e8b2c3062e3f6a64c3 20-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 52546575: Merge change 4818 into donut

Merge commit '5254657540b0a6ad54be6229b68fa5626e4ef9e5'

* commit '5254657540b0a6ad54be6229b68fa5626e4ef9e5':
Added in Settings.Secure default country and variant for the default TTS language.
a6fcc9541161de5d1c39e62d2646076706d87b96 19-Jun-2009 Jean-Michel Trivi <jmtrivi@google.com> Added in Settings.Secure default country and variant for the default TTS language.
/frameworks/base/core/java/android/provider/Settings.java
44c6e3e7857ac79694a439428bad6a6a6c8f1c5a 19-Jun-2009 Ye Wen <ywen@google.com> Fix bug1435331: add a gservices setting for the retry threshold of auth expired failure.
/frameworks/base/core/java/android/provider/Settings.java
350feeb8368846d674321db4fc1bee233959e4cf 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am b00518d8: Merge change 4796 into donut

Merge commit 'b00518d81550c638728b53346a2a25f0a80a1049'

* commit 'b00518d81550c638728b53346a2a25f0a80a1049':
Move USE_LOCATION_FOR_SERVICES to Secure.
d0b47a1740408d4e97d03765d41c39313791f943 19-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am ba6409f1: Merge change 4706 into donut

Merge commit 'ba6409f1f69db7dfa16d5b914d2bc41a3aa43caf'

* commit 'ba6409f1f69db7dfa16d5b914d2bc41a3aa43caf':
Add a new checkin server flag for Vending Machine heartbeats.
630cd06414dede289e5319861b6c06984b7953ae 19-Jun-2009 Amith Yamasani <yamasani@google.com> Move USE_LOCATION_FOR_SERVICES to Secure.

Since SetupWizard needs to be able to write the setting, it
couldn't live in Gservices. Moved it to Secure.
/frameworks/base/core/java/android/provider/Settings.java
abd7eba70b38752d0ecac98e51416d2b33d2d1ec 19-Jun-2009 Linda Nguyen <lknguyen@google.com> Add a new checkin server flag for Vending Machine heartbeats.
/frameworks/base/core/java/android/provider/Settings.java
50c786d19cd2c70635a8b655823b2f9e0d654687 17-Jun-2009 Wei Huang <weih@google.com> add a checkin eventlog tag for reporting GTalk heartbeat timeout; remove unused adaptive heartbeat settings.
/frameworks/base/core/java/android/provider/Settings.java
2cc50b12d1ffe2a1b1b08020c8e062af6ba66f32 16-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 77b7d785: Merge change 4117 into donut

Merge commit '77b7d7859ab8a4ab66a31375826ddfe17dc69c07'

* commit '77b7d7859ab8a4ab66a31375826ddfe17dc69c07':
Add a Gservices setting to have a "use location for better search".
430555acaedb2ba639f37de1cf91bd2e2d98991a 12-Jun-2009 Amith Yamasani <yamasani@google.com> Add a Gservices setting to have a "use location for better search".
/frameworks/base/core/java/android/provider/Settings.java
bd6b11dd582d7c7dde64e355f967f5ed77a9870d 11-Jun-2009 Mitsuru Oshima <oshima@google.com> am e5fb3288: resolution support fix/improvement * adding compatibility menu * backup gravity * set expanable=true if the screen size is hvga * density. * added "supports any density" mode. I\'ll add sdk check later. * disallow to catch orientation c

Merge commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715'

* commit 'e5fb328825995aa33b5b7ecf8b5bee2b17f81715':
resolution support fix/improvement
bd6b2b410f67833589f01a4b5f568c6770aba230 11-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am a45711aa: Merge change 3765 into donut

Merge commit 'a45711aaebc514290fdf0c93f07a3120dc160ddb'

* commit 'a45711aaebc514290fdf0c93f07a3120dc160ddb':
Add a gservices flag to limit the size of protobufs we can gzip
e5fb328825995aa33b5b7ecf8b5bee2b17f81715 10-Jun-2009 Mitsuru Oshima <oshima@google.com> resolution support fix/improvement
* adding compatibility menu
* backup gravity
* set expanable=true if the screen size is hvga * density.
* added "supports any density" mode. I'll add sdk check later.
* disallow to catch orientation change event if the app is not expandable. This
was causing layout problem under non-expandable mode. I discussed this with Mike C
and we agreed to do this approach for now. We'll revisit if this causes problem to
a lot of applications.
/frameworks/base/core/java/android/provider/Settings.java
85427f71a410e7165c11598ed41eaaa75b8d6acd 10-Jun-2009 Cynthia Wong <cynthiaw@google.com> Add a gservices flag to limit the size of protobufs we can gzip
/frameworks/base/core/java/android/provider/Settings.java
26fd4ea25578a215b6a83254e0e32556d1a44f9f 10-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 3279fbad: Merge change 3652 into donut

Merge commit '3279fbad638bd48b8e52a528d75bb5aa4757f81c'

* commit '3279fbad638bd48b8e52a528d75bb5aa4757f81c':
Adding default text-to-speech language in Settings.Secure.
f478267d6a60220fb8078c13971b5d4d3f868d67 10-Jun-2009 Jean-Michel Trivi <jmtrivi@google.com> Adding default text-to-speech language in Settings.Secure.
/frameworks/base/core/java/android/provider/Settings.java
fa4d817851ee0db782bfa2368a13d9761f62b2ce 06-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 7b0d2d93: Merge change 3223 into donut

Merge commit '7b0d2d933d8a601cf6259f25576f5615ff146b33'

* commit '7b0d2d933d8a601cf6259f25576f5615ff146b33':
Adding new Settings.Secure properties for the Text-To-Speech functionality.
f62ba452bb07407f577cabecde14bfad101d7f43 04-Jun-2009 Jean-Michel Trivi <jmtrivi@google.com> Adding new Settings.Secure properties for the Text-To-Speech functionality.
Those properties are secure to prevent applications from altering the user's settings without his knowledge.
/frameworks/base/core/java/android/provider/Settings.java
cc784e3258a020190b20b25ab0fa7423d06035fe 05-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 2f1b422d: Merge change 3249 into donut

Merge commit '2f1b422dc8d30da19dfc51911261d92ccccd9edd'

* commit '2f1b422dc8d30da19dfc51911261d92ccccd9edd':
Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings
48603e7fed957f318b12aa24089e0b13c3e78529 05-Jun-2009 Mike LeBeau <mlebeau@android.com> Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings
(in a follow-on change). This setting, to be respected by global search, and which
I will also file a bug to the browser to respect, determines whether live web
suggestions will be shown to the user as they type. For privacy reasons, this
could be considered undesirable, as partial queries can then be sent to the user's
chosen search engine, so a setting was required.
/frameworks/base/core/java/android/provider/Settings.java
e87b2f02761744520c841f536d3f2d7be97fcc91 03-Jun-2009 Wei Huang <weih@google.com> add Gservices settings for adaptive heartbeat parameters and wifi heartbeat interval.
/frameworks/base/core/java/android/provider/Settings.java
733f840aaa979c010e77cf2a69cfa106279e4721 30-May-2009 Android (Google) Code Review <android-gerrit@google.com> am c3b7e4e7: Merge change 2736 into donut

Merge commit 'c3b7e4e7dda7a81e7f1017f17adb717ffb3d50d2'

* commit 'c3b7e4e7dda7a81e7f1017f17adb717ffb3d50d2':
Telephony support for SMS memory reporting to the network.
867641ece36e2fd17faaea79cf19506ab17177c6 28-May-2009 jsh <jsh@google.com> Telephony support for SMS memory reporting to the network.

- Use ordered broadcast to allow receivers to set a result code.
- Ack SMS with result code.
- New RIL command to report memory status.
- Fixed a typo in a Gservices setting.
- Merge in CL 137895 (hold a wake lock while broadcasting SMS_RECEIVED).
/frameworks/base/core/java/android/provider/Settings.java
a85d46aff547a1007beb32b01d1dfab68a2115b4 22-May-2009 Wei Huang <weih@google.com> add Gservices setting for "send message using bareJid timeout".
/frameworks/base/core/java/android/provider/Settings.java
58eef7e4cf004857d1accef9b1bf4fed87ecf76b 22-May-2009 Wei Huang <weih@google.com> add Gservices setting for "send message using bareJid timeout".
/frameworks/base/core/java/android/provider/Settings.java
b84905662f85e6c42236fa1d2792f6e0a53c88e8 18-Apr-2009 Costin Manolache <costin@google.com> Add option for gtalk stream compression
/frameworks/base/core/java/android/provider/Settings.java
60e6e19907c2a92242e6ae1c2df74c1f45609b92 20-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 83a6ec60: Merge change 1791 into donut

Merge commit '83a6ec600259d245b799a99a8e963704db031a63'

* commit '83a6ec600259d245b799a99a8e963704db031a63':
Add a method to get the PhoneType in CellLocation.
9bfbfbd40df381817c0c685b177a2a1d666e101d 15-May-2009 Jaikumar Ganesh <jaikumar@google.com> Add a method to get the PhoneType in CellLocation.

CellLocation uses TelephonyManager to get the PhoneType.
TelephonyManager uses the system property to get the phoneType,
if the ITelephony interface is not up.
/frameworks/base/core/java/android/provider/Settings.java
ad8195bb0ea9ed087519d899402571c8608c0b48 19-May-2009 Android (Google) Code Review <android-gerrit@google.com> am 2f11599e: Merge change 1579 into donut

Merge commit '2f11599eb317887a8cca14d8e66bfc485e5169e7'

* commit '2f11599eb317887a8cca14d8e66bfc485e5169e7':
Teleca 2b changes
e9b06d754af03faf27012fbed1e7559ec1ba7c79 19-May-2009 Wink Saville <wink@google.com> Teleca 2b changes
/frameworks/base/core/java/android/provider/Settings.java
e18b02cc2c142fe5cf4a1c9753822876931b7da8 15-May-2009 Dan Egnor <egnor@google.com> am abc25e36: Add intent for gservices override, and handle empty arguments properly in the "am" utility.

Merge commit 'abc25e3679a9de2625eadf3e3050a6973f7a6c71'

* commit 'abc25e3679a9de2625eadf3e3050a6973f7a6c71':
Add intent for gservices override, and handle empty arguments properly
abc25e3679a9de2625eadf3e3050a6973f7a6c71 14-May-2009 Dan Egnor <egnor@google.com> Add intent for gservices override, and handle empty arguments properly
in the "am" utility.
/frameworks/base/core/java/android/provider/Settings.java
76879bc2343779d4d2a870b7bd46b0544c0cc46c 15-May-2009 svetoslavganov <svetoslavganov@google.com> resolved conflicts w/ 75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec merge....
75986cf9bc57ef11ad70f36fb77fbbf5d63af6ec 15-May-2009 svetoslavganov <svetoslavganov@google.com> Accessibility feature - framework changes (replacing 698, 699, 700, 701 and merging with the latest Donut)
/frameworks/base/core/java/android/provider/Settings.java
f967afde2e172a7a2aa8cb08473ede676a836092 18-Apr-2009 Costin Manolache <costin@google.com> Add option for gtalk stream compression
/frameworks/base/core/java/android/provider/Settings.java
935ae463d495d41155e27feb849768ad2b8b16db 14-Apr-2009 Dianne Hackborn <> AI 145994: Integrate #145778 from Donut.

Automated import of CL 145994
/frameworks/base/core/java/android/provider/Settings.java
3156bb00dd3ab3d6ec732bb6a64a2e84d08c34f0 13-Apr-2009 Patrick Scott <> AI 145870: Add a build property for the default alarm alert. Update the various
framework classes to deal with the new property. Also update various
documentation that mentions the default ringtones.
Use the build property as the default alert when the user has not chosen
an alert for an alarm. This is also used if the alarm alert is null when
the alarm fires.
BUG=1723684

Automated import of CL 145870
/frameworks/base/core/java/android/provider/Settings.java
f8a7ceaef2e7d5cd530c9426bde91b6fa9a40b75 11-Apr-2009 Andy Stadler <> AI 145778: Manual merge changes 145382-145384 from cupcake.

Automated import of CL 145778
/frameworks/base/core/java/android/provider/Settings.java
44e4aaf13318be21913e9c4b0e70a922415e30e7 08-Apr-2009 Cynthia Wong <> AI 145124: am: CL 144928 Make the uphill discarding ops functionality controllable via a Gservices flag
Original author: cynthiaw

Automated import of CL 145124
/frameworks/base/core/java/android/provider/Settings.java
f62b80fa1ba6b0a4cf5996655812bca79ff6c49e 08-Apr-2009 Cynthia Wong <> AI 144928: Make the uphill discarding ops functionality controllable via a Gservices flag
BUG=1725022

Automated import of CL 144928
/frameworks/base/core/java/android/provider/Settings.java
bd2a7126e5b42e022228c6aac25e95b671e5263b 03-Apr-2009 Mike Lockwood <> AI 144415: am: CL 144372 Cleanup Settings support for enabling and disabling location providers:
LocationManagerService now listens for changes to settings,
making LocationManager.updateProviders() unnecessary.
Removed LocationManager.updateProviders()
Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way
of enabling or disabling a single location provider.
This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly.
BUG=1729031
Original author: lockwood

Automated import of CL 144415
/frameworks/base/core/java/android/provider/Settings.java
460ae0c910e46f6aeb48316f8745be810f68b5a4 03-Apr-2009 Mike Lockwood <> AI 144389: am: CL 144221 Fix typo in Javadoc
Original author: lockwood

Automated import of CL 144389
/frameworks/base/core/java/android/provider/Settings.java
9637d474899d9725da8a41fdf92b9bd1a15d301e 03-Apr-2009 Mike Lockwood <> AI 144372: Cleanup Settings support for enabling and disabling location providers:
LocationManagerService now listens for changes to settings,
making LocationManager.updateProviders() unnecessary.
Removed LocationManager.updateProviders()
Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way
of enabling or disabling a single location provider.
This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly.
BUG=1729031

Automated import of CL 144372
/frameworks/base/core/java/android/provider/Settings.java
04e71b3db84fd5f7fc4eefb49a33154ea91ec9fc 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
/frameworks/base/core/java/android/provider/Settings.java
570d05f776106a715d00099c8bd5e716be1f4aa3 02-Apr-2009 Mike Lockwood <> AI 144221: Fix typo in Javadoc

Automated import of CL 144221
/frameworks/base/core/java/android/provider/Settings.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/frameworks/base/core/java/android/provider/Settings.java
63f49f1c3a093c314df863c13b8d7a29d04437ec 26-Mar-2009 Mark Womack <> Automated import from //branches/donutburger/...@142717,142717
/frameworks/base/core/java/android/provider/Settings.java
78ef45602aad6dff0f6b61f2a327aec87c0f5fce 26-Mar-2009 Mark Womack <> Automated import from //branches/master/...@142755,142755
/frameworks/base/core/java/android/provider/Settings.java
afb6c8eafc96dcee4d2fa465eb5a2eba6b38f36f 25-Mar-2009 Cedric Beust <> Automated import from //branches/master/...@142319,142319
/frameworks/base/core/java/android/provider/Settings.java
079c6f64f998c62028290d9ef4c8b88ef0f7563c 25-Mar-2009 Cedric Beust <> Automated import from //branches/donutburger/...@142318,142318
/frameworks/base/core/java/android/provider/Settings.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/core/java/android/provider/Settings.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/provider/Settings.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/core/java/android/provider/Settings.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/core/java/android/provider/Settings.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/core/java/android/provider/Settings.java
3001a035439d8134a7d70d796376d1dfbff3cdcd 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
/frameworks/base/core/java/android/provider/Settings.java
da996f390e17e16f2dfa60e972e7ebc4f868f37e 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
/frameworks/base/core/java/android/provider/Settings.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/core/java/android/provider/Settings.java
f1e484acb594a726fb57ad0ae4cfe902c7f35858 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
/frameworks/base/core/java/android/provider/Settings.java
22f7dfd23490a3de2f21ff96949ba47003aac8f8 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
/frameworks/base/core/java/android/provider/Settings.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/core/java/android/provider/Settings.java
b798689749c64baba81f02e10cf2157c747d6b46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
/frameworks/base/core/java/android/provider/Settings.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/core/java/android/provider/Settings.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/core/java/android/provider/Settings.java