History log of /frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
497b5faba98950ca4bc8cccf6489b61fb95c799f 17-Dec-2015 Fyodor Kupolov <fkupolov@google.com> Optimized database creation for a new user

If the file doesn't exist, database can be kept in memory. It's safe because
the database will be migrated and disposed of immediately after onCreate
finishes.

Bug: 26237300
Change-Id: Ib37c520f28960c8d6b9ce8dd719ffbcc11a97a58
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
43765b77a0286403fd9f7f5305219f0d9a10c953 31-Aug-2015 Xiaohui Chen <xiaohuic@google.com> Cleanup USER_OWNER in SettingsProvider[Test]

Fixed up the tests and re-enabled it.
Still suppressed one test because what it relies on Settings.Bookmarks
is broken because Settings query format changed.
Fixed a bug in SettingsProvider that the package query is using the
wrong user id.

Bug: 19913735
Change-Id: Ied86a261defba2706f726a13bc32f385f7d93787
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
8150d2a2a12b38598fd55d8ae3c3b5662ec3520f 17-Apr-2015 Adrian Roos <roosa@google.com> Require explicit userId in LockPatternUtils

Bug: 18931518
Change-Id: Ib03f37df9135f0324a998c62d165d8eea46328c8
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
8fa5665f0e757cec0063fb4cf1354f1596f93a91 31-Mar-2015 Andres Morales <anmorales@google.com> Wire up GateKeeper to LockSettingsService

Adds:
- Communication to GKService
- password upgrade flow
- enroll takes previous credential

Change-Id: I0161b64642be3d0e34ff4a9e6e3ca8569f2d7c0a
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
503cffc18121cdbb7d969b3a4de3168f13c75459 27-Mar-2015 Jeff Brown <jeffbrown@google.com> Clarify settings update code.

Change-Id: I650ff827bc31eacff2efcdba84e6ef41016ad51c
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
6156017c2217d0fbbbb03434986250ec6bbd69d8 07-Feb-2015 John Spurlock <jspurlock@google.com> Move AudioService to services.

...and a few dependencies. Move remaining shared items to AudioSystem.

Change-Id: Ib9623ff867678d34977337856bb0156e8cdaeeb5
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
24c05187233f80e2eef87f821437e3e786b1f6b4 05-Feb-2015 John Spurlock <jspurlock@google.com> Use shared value for default muteable streams.

Change-Id: Ib8fa7aee3bed83fc26945fd0caf0cbd9f4f8af3a
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
4fea0923be8d961312908aded2f72011a044903c 18-Nov-2014 Amit Mahajan <amitmahajan@google.com> Adding new setting LTE_SERVICE_FORCED.

Bug: 18328639
Change-Id: Icbf9d7987d27af34cbe4ee1b4e9df19e139c2fc7
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
2eb5a5f727d4692b70b68cb4b1b7e31bf74f13a4 12-Nov-2014 Junda Liu <junda@google.com> Merge "Add HIDE_CARRIER_NETWORK_SETTINGS global setting." into lmp-mr1-dev
8c51d0b7114c4ad9e270ba1f9d6c15d59a8b5b42 07-Nov-2014 John Spurlock <jspurlock@google.com> Reset rotation-lock-for-accessibility setting on upgrade.

Since it now hides the display setting, force the user to opt-in
again.

Bug: 18104538
Change-Id: I4cac947f7a35ba0f578d059542401dcc5d169307
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
91377de6f23af2b0b08adae22810cae6fc35cb1a 11-Oct-2014 Eric Laurent <elaurent@google.com> audioservice: fix default stream volume

When the max stream volume is configurable by
a system property, the default stream volume should
be set accordingly.

Bug: 17507571.

Change-Id: I9d9378292fc7b9c9e32acc55a275cc0ae5b203d4
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
fb1cf36aa739da5dbebc64e61900e9ff96134e26 23-Oct-2014 Bryce Lee <brycelee@google.com> resolved conflicts for merge of f03ba4f1 to lmp-mr1-dev

Change-Id: I9e4cabd2d8a34a348ae888f096c8d3c35226e960
04e6827ace936e0cbb666d8ef94635b73672aa41 22-Oct-2014 Christopher Tate <ctate@google.com> Fix settings db update sequence

The 'global' table only exists in the owner-user db instance; make
sure to apply global-setting update steps only when bringing up that
instance.

Bug 18069830

Change-Id: I843eabe710d9487de94690921d61adb181b45ed2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
584a44517950204a04ef01345be70b33d8ba43f9 22-Oct-2014 Bryce Lee <brycelee@google.com> [Theater Mode] framework implementation through global setting

Bug: 17684570
Change-Id: I64a9c9c0620049cdfcca0150648fa201281f7178
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
ad59c43072a3e053eecb2cca831488dc49a3af33 13-Sep-2014 Jeff Sharkey <jsharkey@android.com> Fix boot loop when deriving device name.

Bug: 17490408
Change-Id: If1cc25a341eed4e41a7bf170bab077203fa19d15
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
550021ec5a2c8d741506c3fe5d1ee85139bc794a 11-Sep-2014 Jerome Poichet <jpoichet@google.com> Update default device name to MODEL only

b/17428259 | Change device name to default to model name

Change-Id: If9f0a30f2362574d32fc69c0880c01ec7a3edb9f
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
7d424b6c5080133c25e0c19dd0d6ce212e352a1d 09-Sep-2014 John Spurlock <jspurlock@google.com> On db upgrade, reset ringer mode to normal.

When users upgrade to L, don't restore into a state that would force
zen mode to follow suit. A user's first encounter with zen mode
should be via the UI.

Bug:16826161
Change-Id: I4eb63dce37d88f3a91b5034b3393eed2b768562c
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
49cb613c993a5fecf11d7ee6198068315762814e 20-Aug-2014 Jeff Brown <jeffbrown@google.com> Reset auto-brightness setting to default.

Reset the auto-brightness setting to default since the behavior
of the feature is now quite different and is being presented to
the user in a new way as "adaptive brightness".

Bug: 17114082
Change-Id: Ica63f4caaaf50ad95dc9df88bb376f79782976f7
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
49e057d7eedb44f5397781254acab4e0ef08a9cf 13-Aug-2014 Adrian Roos <roosa@google.com> Play "device trusted" sound when onTrustInitiatedByUser fires

Bug: 16840500
Change-Id: I73fbe5c2cff665ccb637abb9039d57f377d9df53
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
7fc1e221509864b2d1014a9ad804f71ec15d9a49 09-Jun-2014 Jerome Poichet <jpoichet@google.com> am 576563c3: Merge "Using Manufacturer and not brand for device name" into lmp-preview-dev

* commit '576563c3d37ba58bc94e87aa385d92dc79498003':
Using Manufacturer and not brand for device name
efc3c465cf57726981b87b5d9bbfe894eda1d453 09-Jun-2014 Jerome Poichet <jpoichet@google.com> Using Manufacturer and not brand for device name

We are aware that there will be some devices out there using brand but
we are OK with this.

b/15478133 Build.MANUFACTURER is all lower case

Change-Id: Iecf8bc8777f21341abfaad1623c9da93ee159520
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
a20dda4a6eedeee1dcaf105d76c8d7d126ce0f1b 28-May-2014 Jeff Brown <jeffbrown@google.com> Add support for wake gestures.

Bug: 15137158
Change-Id: I171c3269a7a16a00083e16e1cc4c7c1c2b98c05e
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
5242cf3b38b29e4676a70091d38b51af5e5467e1 19-Mar-2014 Chris Wren <cwren@android.com> set the sysui settings on create, as well as on update.

also update the database to catch any v100 devices that missed the settings due to this bug.

Bug: 13547456
Change-Id: Ib7ad18541f359efb328d3d59c526514c5a6303b9
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
1cdd7dda61b30358c843e534394c32f24bc5271f 28-Feb-2014 Chris Wren <cwren@android.com> enable heads up notifications

Bug: 13208692
Change-Id: I3682ecb30c6997c578b76a578b79a8d13a6e6323
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
82a6c5c5ff04ab26fde4b3094a8f25da95a0f5f4 20-Feb-2014 Dan Sandler <dsandler@android.com> Default Settings.Global.LOCK_SCREEN_SHOW_NOTIFICATIONS=1.

Change-Id: I849d4def1dcf220c226349f1591a8ba00b603854
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
91beb94c65716f78a120cff93e3bb78a190500b4 23-Jan-2014 Christopher Tate <ctate@google.com> resolved conflicts for merge of a5bb65aa to master

Change-Id: Ib286d5194f68c55cfd2e5c17a5eb89ea32add574
2c4254e4765b4fa675c268550e66a3d4341282bc 11-Dec-2013 Oskar Grönqvist <oskar.gronqvist@sonymobile.com> Set Settings.Global.WIFI_SCAN_ALWAYS_AVAILABLE default value

To be able to customize the "WiFi scan always available"
setting we need to set a default value.

Change-Id: I3673f2613ab9b6a947aed7e29d4cc876140c2180
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
c02c4a7c5b393c5527de17faca759ff00be61ce5 07-Jan-2014 Mike Lockwood <lockwood@google.com> SettingsProvider: Allow disabling immersive mode confirmation for specific packages

Change-Id: I2fac06cbe3321d7384278d875c91128bcc15d629
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
6090995951c6e2e4dcf38102f01793f8a94166e1 19-Nov-2013 John Spurlock <jspurlock@google.com> Remove unused imports from frameworks/base.

Change-Id: Ia1f99bd2c1105b0b0f70aa614f1f4a67b2840906
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f313da5bfe1953fef509ba6bab7f654516a71509 02-Jul-2013 Wink Saville <wink@google.com> am aff0ac4d: Merge "Do not set the network mode differently for LTE+CDMA"

* commit 'aff0ac4d202934dde7765f7418ea2ad38b0c2faa':
Do not set the network mode differently for LTE+CDMA
97ecc9ec24056259495d2de4d10a4b312d83a57a 14-Jul-2012 Naveen Kalla <nkalla@codeaurora.org> Do not set the network mode differently for LTE+CDMA

ro.telephony.default_network can be set if needed to set a different
value for LTE+CDMA. No need to hardcode preferred network mode in the source code.

Change-Id: Iae65f72a6a3bc31d500c5ecec87368a6f2a5d117
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
a81a40e06d91b3b8936f9b275f73a19130fb0db1 07-Feb-2013 Jeffrey Brown <jeffbrown@android.com> am 3c239d7e: am 8934c575: am 88ba2f48: Merge "Disable usage of WAL in DatabaseHelper"

# By Yevgen Pronenko
# Via Android Git Automerger (2) and others
* commit '3c239d7e8d78570b1e17ad968c408506e73a8f3f':
Disable usage of WAL in DatabaseHelper
8934c57564a864e046c5172ba7d56ab68056ab26 07-Feb-2013 Jeffrey Brown <jeffbrown@android.com> am 88ba2f48: Merge "Disable usage of WAL in DatabaseHelper"

# By Yevgen Pronenko
# Via Gerrit Code Review (1) and Johan Redestig (1)
* commit '88ba2f48a2d1193f3877575b2589897a7804aa75':
Disable usage of WAL in DatabaseHelper
88ba2f48a2d1193f3877575b2589897a7804aa75 07-Feb-2013 Jeffrey Brown <jeffbrown@android.com> Merge "Disable usage of WAL in DatabaseHelper"
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
0a9c7c144671f70f5f1af222050bd3ec6b11fe41 01-Feb-2013 Svetoslav <svetoslavganov@google.com> Fixing backwards cmpatibility for enabling explore by touch

Change-Id: I8cbc4f03223d289547e3f3f6d1f528ad5b4f6f72
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
c1b3d21306f9b48a385ca2d817820bafe9e450fc 08-Jan-2013 Dianne Hackborn <hackbod@android.com> am 53d99836: am 26c00dec: am b2d3904b: Merge "Setting the default value for dock audio"

* commit '53d998368c6c6107c6d18de945f4dfee482e6f91':
Setting the default value for dock audio
26c00decb4c0352913396851c2b42a8705976614 07-Jan-2013 Dianne Hackborn <hackbod@android.com> am b2d3904b: Merge "Setting the default value for dock audio"

* commit 'b2d3904b0d0f02b3eddef1d228724b99962cba56':
Setting the default value for dock audio
729f6685f9dfb7a1813a89dbf2298024d9da3813 18-Dec-2012 Dmytro Dubovyk <dmytro.dubovyk@ti.com> Setting the default value for dock audio

There was no default value for parameter "dock_audio_media_enabled"
in global settings and because of that it couldn't be obtained before
Settings app first start and improper actions, such as FORCE_NONE
sending to AudioSystem instead of FORCE_ANALOG_DOCK, were taken.
This patch sets default value to 'true'.

Change-Id: Idbe343519db15f806f3a237e8b39f8420b9edde1
Signed-off-by: Dmytro Dubovyk <dmytro.dubovyk@ti.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
912f01865ab879314ac86dc9a61b62e2e7bd5911 12-Dec-2012 Amith Yamasani <yamasani@google.com> am 68c30860: am 73f24ae1: am 9a147340: Merge "Don\'t update global table when upgrading secondary users\' database." into jb-mr1.1-dev

* commit '68c308607b01bafd31c91572a81f4563e2199260':
Don't update global table when upgrading secondary users' database.
2d43fabaf7c15ded1dcb463725754edfe41b42a1 12-Dec-2012 Amith Yamasani <yamasani@google.com> Don't update global table when upgrading secondary users' database.

Bug: 7722149
Change-Id: I0c1373cba316b924701136579083274eb6c9b1da
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
ace7404de8b9a5bd7566027a8a90d36d099a46f4 12-Dec-2012 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of d7337fb9 to master

Change-Id: I51dedcc5ee521e62ad6101c0b09e4f881b8c4bf0
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
4de6f2cff1d6b23c5c4cd78a247360aad5c7a92c 13-Aug-2012 Yevgen Pronenko <yevgen.pronenko@sonymobile.com> Disable usage of WAL in DatabaseHelper

According to SQLite documentation, WAL can not be used when database
partition is not accessible for writing (even when the client just
performs read operation).
However, such situation may happen when the partition is full.
As SettingsProvider should always be able to read a value of ANDROID_ID
from corresponding database, this commit disables usage of WAL.
Without this we risk ending up in a situation where /data is full
and the phone is unable to boot properly.

Change-Id: I1f79bbcd8d0f64bf35dc9d7b846bcfb2664d2eac
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
dcf03f39725deec68f644f6162fdfcc884dc9964 16-Nov-2012 Jianzheng Zhou <jianzheng.zhou@freescale.com> Refactor getPersistedNetworkPreference

Optimize for updating mNetworkPreference according to device's networkAttributes
setting from overlay config.xml when connectivityservice start.

Change-Id: I90286332d4f453038f1ddac7dd9d1265d96b4859
Signed-off-by: Jianzheng Zhou <jianzheng.zhou@freescale.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
13579ed3305bf89b41a9fa88e1347f0e0769d279 29-Nov-2012 Dianne Hackborn <hackbod@google.com> Cleaner initial boot.

This does some cleanup of the initial boot, especially when
booting in "no core apps" mode for encryption/decryption.

Change-Id: Ifb3949f580e52f54559e603c4b0b104f6bac2f6c
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
ed108f3d125b0a4cc465057e3514caf781cdea19 18-Oct-2012 John Spurlock <jspurlock@google.com> Frameworks base: Promote dream setting defaults to config.

So that:
- the values can be shared (to fix assoc bug)
- the values can be customized in product overlays

Bug:7373284
Change-Id: I37f037082523a3d975f6014f36afa28c60117372
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
531c237b82a948ac6599ba472bb95e26f71006cf 08-Oct-2012 Amith Yamasani <yamasani@google.com> Add an upgrade step for settings moved to global.

For some reason, the original step didn't work for some testers. This re-applies the move, which
should be no-ops if the entries are already in the right table.

Bug: 7254629

Also moved a few more entries to the global initialization section. Otherwise they would write
into the wrong table.

Change-Id: Ic0f5c4e09680f5687d08dccf78063508b9c0584c
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
7f1c248e80c747663396c6112bd637b0ee558dcb 05-Oct-2012 John Spurlock <jspurlock@google.com> Fix upgrade case for Settings.Secure.USER_SETUP_COMPLETE.

Existing primary users were never being marked as complete,
causing things that relied on this (e.g. showing the quick settings panel)
to break.

Bug:7282088
Change-Id: I9c8622f3cd0fb99a44477946d3db22fa2cbbc6fc
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
55b02226c07f276e143f9da6f752963882fb60d5 03-Oct-2012 Eric Laurent <elaurent@google.com> fix settings data base upgrade for ringer mode

Ringer mode setting was moved from System to Global group
but a db upgrade cleanup step was missing.

Bug 7128886.

Change-Id: Id20994fe74575afa2b68154a620aa3c8807e8304
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
b14288d4b13d7629f578c4854f5a14d4d9a06783 01-Oct-2012 Jim Miller <jaggies@google.com> Attempt to fix missing lock sounds

bug 7254629

Change-Id: I65eee674fe014a0e84d5ec20ead81abdec38f890
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
0ac1028b0dc8713296e2face40abe5451ecd479c 01-Oct-2012 Jeff Sharkey <jsharkey@android.com> Move bluetooth priorities from Secure to Global.

Bug: 7231171
Change-Id: I836fdc2cfb8d67f984b4715559b9e92d0dc41c95
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
59c5beec64af8ea20509998230b7b1de496702f6 13-Sep-2012 Christopher Tate <ctate@google.com> Settings db upgrade steps only apply to the owner user

Change-Id: Ib74b42bcc2554edf721199f31f563daa9fc227a2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
1a9c0dfdbbeba1bc498170be283394ba3e0e9752 07-Sep-2012 Christopher Tate <ctate@google.com> Mark all settings upgrade transactions as successful along the way

If you don't, then the upgrade gets rolled back by the open helper,
and Bad Stuff Happens.

Change-Id: I191263e5cceb21b96ef413d28e7ee00a924acfc2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
a96798e4a548f5ec0e387b2cdd8d419378498ebd 07-Sep-2012 Christopher Tate <ctate@google.com> Don't use toArray() inappropriately

HashSet<String>.toArray() does not give you an array of strings.

Change-Id: I2053e714b12eab718aaf75d92bbc0625745b9932
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
c88a80a1d7a35eaefb54d17b60e9d3a07b800e82 29-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 15e099cc: am 0e0942c7: Merge "Default WiFi sleep policy setting"

* commit '15e099cc09589f963933f046d7267552ba3ffad8':
Default WiFi sleep policy setting
15e099cc09589f963933f046d7267552ba3ffad8 29-Aug-2012 Jean-Baptiste Queru <jbq@google.com> am 0e0942c7: Merge "Default WiFi sleep policy setting"

* commit '0e0942c7209c758bc00939ae54059dc24bce3abb':
Default WiFi sleep policy setting
7e07147ecec50549272b4ec2f4f364102d7f379c 23-Aug-2010 Erik Ljungberg <erik.ljungberg@sonyericsson.com> Default WiFi sleep policy setting

Creates a defult.xml setting for WiFi sleep policy.

It is now possible, through device overlays, to change
the default sleep policy to e.g. never in order to improve
user experience of WiFi.

Change-Id: Ie459b8e70fdbc7c605452fe0692d7bc26460e939
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
1a868b7981ca5f52e893fdf9f8f538c9d5ce241d 22-Aug-2012 John Spurlock <jspurlock@google.com> Add framework support for multiple dreams.

Bug:7028665
Change-Id: I4fba6b8e39dc07af4490c621ac3bc7b3867371b2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
ca34bcf6746454c561b0c07ca5c6e42bd4a73e9e 16-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> resolved conflicts for merge of 80c904df to jb-mr1-dev

Change-Id: Ic2f8d64cd716d04a533ca0685d1fb0d5e2a21933
80c904df159f5a19517ec0246c35d69e40534747 16-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> am 8631701b: Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.

* commit '8631701bb770f3a4e3b2a139dc282f2244fe86e6':
Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
8631701bb770f3a4e3b2a139dc282f2244fe86e6 16-Aug-2012 Svetoslav Ganov <svetoslavganov@google.com> Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.

1. Before JellyBean touch exploration was a global setting controlled by the user via
the UI. However, if the enabled accessibility services do not handle touch exploration
mode, enabling it makes no sense. Therefore, in JellyBean the services request touch
exploration mode and the user is presented with a dialog to allow that and if she
does we store that in the database.

As a result of the above change a user that has enabled accessibility, touch
exploration, and some accessibility services running a pre-JellyBean system
version may lose touch exploration state, thus rendering the device useless unless
sighted help is provided, since the enabled service(s) are not in the list of
services to which the user granted a permission to put the device in touch explore
mode.

The fix is during a database upgrade to allow allow all enabled accessibility
services to toggle touch exploration provided accessibility and touch exploration
are enabled and no services can toggle touch exploration. Note that the user has
already manually enabled the services and touch exploration which means the she
has given consent to have these services work in touch exploration mode

bug:6996354

Change-Id: I0af2dc578cc4fbcc90043341035163b876978ab2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
634471edc409f00f38633e334cd6853954a2b093 09-Aug-2012 John Spurlock <jspurlock@google.com> Load default Dream settings into a clean db.

Set the Dream defaults during onCreate, not only onUpgrade.

Bug: 6959513
Change-Id: Ia93097edaf1150813c75b6be809db9c97987868f
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
fdb7c36a108e6a7887de6611b3f1541e3009f2d5 06-Aug-2012 Daniel Sandler <dsandler@android.com> Migrate Dreams default settings to DatabaseHelper.

Also switch Dreams on for all charging devices by default.

Change-Id: Iccbcc2906d55214320b2f467e88ba9cb188f4886
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
33034b13cae1429d526722374bd39be3f9605ae4 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common - DO NOT MERGE

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
5362f17ff5e8e06601b172bd86c26027ced9780c 12-Jul-2012 Wink Saville <wink@google.com> Merge commit '1b003ef0' into mit

* commit '1b003ef0':
Create telephony-common and mms-common

Change-Id: Ie8876541dbe7f4c933cf7d69910dd204538bc975
a639b311e93ad14d9ee5c2b2c215ed2d86c32d2a 10-Jul-2012 Wink Saville <wink@google.com> Create telephony-common and mms-common

These have been created to reduce the size and complexity
of frameworks/base.

mms-common was created by moving all of
frameworks/base/core/java/com/google/android/mms
to:
frameworks/opt/mms

telephony-common was created by moving some of
frameworks/base/telephony
to:
frameworks/opt/telephony

Change-Id: If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
11844b14d0aa56af4cb44560db27038921009801 26-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 4844fccc: am 5d88c14c: Merge "Ensure screen reader URL gets updated during ICS to JB update." into jb-dev

* commit '4844fccc793078f44c8bffd1707ac589fad14f6e':
Ensure screen reader URL gets updated during ICS to JB update.
4844fccc793078f44c8bffd1707ac589fad14f6e 26-Jun-2012 Svetoslav Ganov <svetoslavganov@google.com> am 5d88c14c: Merge "Ensure screen reader URL gets updated during ICS to JB update." into jb-dev

* commit '5d88c14cd39d1100e28f7e340874655ab7a42904':
Ensure screen reader URL gets updated during ICS to JB update.
3a67eb3be43bfd1f7735cf018c4cb552c6cbba08 22-Jun-2012 alanv <alanv@google.com> Ensure screen reader URL gets updated during ICS to JB update.

Bug: 6702042
Change-Id: I771863c53fa420ba0746fce30cd17eb8b2b9fba1
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
82f47c95b638bfce0e51122617056138706bd57e 12-Jun-2012 Amith Yamasani <yamasani@google.com> Merge "Disable lockscreen using a system property."
d1645f8d0f30709340eb6b6d6da5022bbab77024 12-Jun-2012 Amith Yamasani <yamasani@google.com> Disable lockscreen using a system property.

For factory testing.

Change-Id: Ie5b8be432ab8ad40d8752f978899987c95a5aef9
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
01cb25fddeb03d72585ae13a8a1f1721f4bcef8c 12-Jun-2012 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of 29bea61c to jb-dev-plus-aosp

Change-Id: If582e1fa99691b4e4182c3a9b148fcef5cad251e
44030b7864b0e703f5a2760d698761ce6312814f 11-Jun-2012 Athimoolam Ealumalai <athimoolam.ealumalai@sonyericsson.com> Added support for customization of mobile data setting.

Introduced system property "mobiledata", which will be
used for default behavior of the mobile data connection
either on/off.

This is analog to how the setting for "dataroaming" is
handeled.

Change-Id: Ifae8822dedfa55a515671014e2e29d43c469e701
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
47847f3f4dcf2a0dbea0bc0e4f02528e21d37a88 23-Mar-2012 Jeff Brown <jeffbrown@google.com> Support enabling WAL using a flag when DB is opened.

Using enableWriteAheadLogging() to enable WAL is inefficient because
we previously disabled WAL mode when the database was opened.
Switching from WAL to PERSIST then back to WAL is inefficient
and could slow down application launch time. It would be better
to leave the database in WAL mode when we open it to begin with.

To do that, we need to know ahead of time whether we will want to
have WAL enabled for the newly opened database.

Using this flag also reduces the chance that we will encounter
an error enabling WAL mode due to there being other open connections
to the database.

Bug: 6124556
Change-Id: I38ec7a528baeda9f1ef77e25e88b3ca4b6296200
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
79f5a0416fe76d5063b4d9995edd84a49b77995e 13-Feb-2012 Mike Lockwood <lockwood@google.com> WifiStateTracker: add support for overriding DCHP max retry count in an overlay

Bug: 5551068

Signed-off-by: Mike Lockwood <lockwood@google.com>

Conflicts:

packages/SettingsProvider/res/values/defaults.xml

Change-Id: I6a6519316a87bd1af39ea9dc51e0d312011135ef
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d3c5e1eca12f4ca618e3f671dc6fae48307ec895 06-Jan-2012 Mike Lockwood <lockwood@google.com> Allow disabling network stats support in a resource overlay

Bug: 5771240

Signed-off-by: Mike Lockwood <lockwood@google.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
2395527c9bb1cdc3bcd3dfcbc8b72b90ed3e7080 21-Oct-2011 Mike Lockwood <lockwood@android.com> SettingsProvider: Allow overridding default value for Setttings.Secure.DEVICE_PROVISIONED

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
86aeb06635ef8c7f3fb1b4a935d5e8da819e2a88 21-Oct-2011 Mike Lockwood <lockwood@android.com> Load lockscreen.disabled setting on database create as well as upgrade

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
4b797dd8c1d059510b12957acc3bd0b236308bb3 20-Oct-2011 Mike Lockwood <lockwood@android.com> Allow overriding default STAY_ON_WHILE_PLUGGED_IN setting value in an overlay

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
fc2cbe9b46ab17a401dc50f8e0dbb677ed012299 30-Dec-2011 Naveen Kalla <nkalla@quicinc.com> Separate SIM states from Radio states

Radio state reflects the state of the modem. SIM_READY, RUIM_READY,
NV_READY are subscription states and it is possible that the new cards
have multiple subscriptions. Remove the SIM states from Radio State and
introduce a new VOICE_RADIO_TECH message to identify the exact voice
technology. SIM states will continue to be identified from the
SIM_STATUS messages.

Change-Id: Ia67d54f43b6c3340d9cf5c27fcb6f7ef49ef4d40
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
398c83cc07354ca28c7108b712017146dadd41a0 13-Dec-2011 Amith Yamasani <yamasani@google.com> Manual merge: Update VIBRATE_ON to a supported value when upgrading from GB.

Bug: 5738552

If value has ringer set to VIBRATE_OFF, we need to update it to the
now default, as VIBRATE_OFF is inconsistent with the new UI controls.

Make sure notification vibrate setting follows ringer vibrate setting.

Change-Id: I0f15a3d1ea8502d542e3178f732cc2503104458f
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
3066afdc6f729279b1dfd743bbdead73f889249f 12-Dec-2011 Amith Yamasani <yamasani@google.com> Update VIBRATE_ON to a supported value when upgrading from GB.

Bug: 5738552

If value has ringer set to VIBRATE_OFF, we need to update it to the
now default, as VIBRATE_OFF is inconsistent with the new UI controls.

Make sure notification vibrate setting follows ringer vibrate setting.
Change-Id: I6638c8a8729d850e71db10d27a0b50d24dc11f19
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
6243edd818b84adfbe712d5d233d6414b33653ac 06-Dec-2011 Amith Yamasani <yamasani@google.com> New and improved silent mode on lockscreen.

3-state item to toggle between Silent/Vibrate/Ringer in long-press power menu.
No volume dialog on lockscreen, unless Power menu is up.

Set VIBRATE_IN_SILENT=1 when upgrading device.

Change-Id: I097d216f96c4abdbd83420e0c477106951b3607d
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
ea25ea7ef30be14dd940f1667e0308bfff5b4d85 06-Dec-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Adding a system preference whether to speak passwords in accessibility mode." into ics-mr1
f5b8671c340f189c50b41c53622f979b6d5e0a57 06-Dec-2011 Dianne Hackborn <hackbod@google.com> Fix issue #5714517: App shortcuts can result in bad task intents

New API to let you build an Intent whose base configuration is correct,
but has an additional "selector" to pick out the specific app that you
would like launched.

Change-Id: Ide9db6dc60e2844b7696cfe09b28337fe7dd63db
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
6651a638348c15e89e265b0a53c775cac9beafa2 28-Nov-2011 Jeff Brown <jeffbrown@google.com> Fix application launch shortcuts.

Improved quick launch bookmarks to support category-based shortcuts
instead of hardcoding package and class names for all apps.

Added a set of Intent categories for typical applications on the
platform.

Added support for some of the HID application launch usages to
reduce reliance on quick launch for special purpose keys. Some
keyboard vendors have hardcoded launch keys that synthesize
"Search + X" type key combos. The goal is to encourage them
to stop doing this by implementing more of HID.

Bug: 5674723
Change-Id: I79f1147c65a208efc3f67228c9f0fa5cd050c593
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
5cd1500cc4229fa6a8ddb5c70b055bb2c936c650 16-Nov-2011 Amith Yamasani <yamasani@google.com> Don't upgrade some settings from GB to ICS.

Copy the value of AUTO_TIME to AUTO_TIME_ZONE.
Don't upgrade screen timeout and auto brightness.

Bug: 5607851, 5217460

Also fix the default for vibrate mode. Bug: 5553900

Change-Id: I1b8d5215d55953f2b686e77bf55fd07110a08b8d
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
e6087d771543e896888249ddd7dcc638ce70a2a0 05-Aug-2011 Amith Yamasani <yamasani@google.com> Don't change system sound defaults for upgrades.

This reverts an earlier change that reset the system sound defaults even
for upgrades.

Bug: 5114198
Change-Id: Ide0afbd26080ba87d177cedfa9b1d50352857a00
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
97c3311bb84c7a0a75f3c42c8c781ca836c7a5c6 28-Jul-2011 Svetoslav Ganov <svetoslavganov@google.com> Updaing the database version

Change-Id: Iff671a152ac8c96d4136f0f268167c1b60842bb5
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
c1d4166289ce016965d1147f7e8d37862ee347ec 19-Jul-2011 Eric Laurent <elaurent@google.com> Fix issue 5012047: silent mode mutes music

Implemented different silent mode behaviors for tablets and phones.
The behavior inherited from Honeycomb was for tablets only and
was muting music in silent mode.

Change-Id: Ib053e7b70ca02190debc87648ab8a163f9d39577
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
fa53d3002fadf8640600c1840962021a821b8bae 08-Jul-2011 Gilles Debunne <debunne@google.com> Animation settings reset to default

Change-Id: Ie53c031ceb88d356742e80693edc14198506d54a
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
023180409516b463b7358ec42bd3a810b2e225c3 09-Jun-2011 Wink Saville <wink@google.com> am 0da86d4f: am a558fdf1: Merge "Fix default preferred network." into honeycomb-LTE

* commit '0da86d4fef70f94a02a504f8500df2833719da6b':
Fix default preferred network.
d6bcfd1cd081b9fe553976a0191a814b929c583e 08-Jun-2011 Wink Saville <wink@google.com> Fix default preferred network.

Also, for xoom-cdma-lte devices CdmaLteServiceStateTracker#getOtasp
returns OTASP_NOT_NEEDED.

Some cleanup.


Bug: 4531115
Change-Id: I24b160062eda625ff5c3471399b9e83ae0d2869a
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
7218d830e27d81141588cd6e37f206d141a18f62 04-Jun-2011 Jeff Brown <jeffbrown@google.com> resolved conflicts for merge of ca2b552d to master

Change-Id: I2f3693a59042ac5aa2d7bcdc3a504c78dc99a18b
1a84fd1fb7a51f3fe4f8865e1cdd09f3490f696c 02-Jun-2011 Jeff Brown <jeffbrown@android.com> Add a preference panel for mouse speed.

Bug: 4124987
Change-Id: I3ce175d268a1d043cf5878481261b1049a15a149
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
aef35dde4d687b98146c449639a06f21228a0acc 21-Apr-2011 Kenny Root <kroot@google.com> Increment database version to 65

The onUpgrade path was upgrading the database version to 65, but the
current version was marked as 64. That led to the database being
upgraded to 65 and then wiped because it didn't match 64.

This was introduced in HC change 54d068ec6af0ee6d261a135400efe6816c6f5ffe

Bug: 4319406
Change-Id: Ib6efcf34e820948d23d3a2b8ef3afc9012a93c22
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
25101b0b9a84571ead15b26e9f4cd9c4298d7823 02-Feb-2011 Eric Laurent <elaurent@google.com> Fix issue 3371080

Modified default volume control logic in AudioService:
1 IN_CALL volume if in video/audio chat
2 NOTIFICATION if notification is playing or was playing less than 5s ago.
3 MUSIC

Modified silent mode:
- now also affect MUSIC stream type
- entering silent mode when VOL- hard key is pressed once while selected
stream volume is already at 0 (except for VOICE_CALL stream).
- exiting silent mode when pressing VOL+ hard key while in silent mode

Play sound FX (audible selections, keyboard clicks) at a fixed volume.

Modified audio framework:
- isStreamActive() method now implemented in AudioPolicyManagerBase (previously AudioFlinger)
- iStreamActive() now specifies a time window during which the stream is considered
active after it actually stopped.

Change-Id: I7e5a0724099450b9fc90825224180ac97322785f
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d99d0dc43a3c26c77dd22e405efbdf0753d8309e 01-Feb-2011 Paul Westbrook <pwestbro@google.com> Enable retrieving default download manager settings

Enable retrieving the default download manager settings from
a resource, when the SettingsProvider database is created

The default setting for these values is -1, which will cause
DownloadManger to not enforce a limit.

Bug: 3341145
Change-Id: I25294d0f75fb0bdf20d4bef54457056c25c31add
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f50c5113d0a426ba0a689b5a827f80bf9d2467e1 07-Jan-2011 Amith Yamasani <yamasani@google.com> Update default for auto-brightness.

Bug: 3297046
Change-Id: I92e34a85332988bb3faa1e1997ccc85abf4b5dec
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
79373f660bd41d3824ce8c121077b29dfa4c29d9 19-Nov-2010 Amith Yamasani <yamasani@google.com> Update screen timeout again.

Bug: 3165933
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
0038931043f8edf9c32645e5caf96f217cef01de 05-Nov-2010 Amith Yamasani <yamasani@google.com> Adjust default screen timeout.

Bug: 3165933
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
585f13f8dec4cbf55b3bc04d95425d647f0577b2 10-Aug-2010 Svetoslav Ganov <svetoslavganov@google.com> Accessibility support for WebViews

Change-Id: Ibb139192bae4d60fd53a7872b19c06312bb41558
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
2c24516e58c2ac8d166b1866a6b5b2085b4f321e 31-Aug-2010 Jake Hamby <jhamby@google.com> am 04bc8070: am 6659284d: Allow Bluetooth radio to be toggled in Airplane mode.

Merge commit '04bc807057d1c336a5d1340595b790eee4c5b372'

* commit '04bc807057d1c336a5d1340595b790eee4c5b372':
Allow Bluetooth radio to be toggled in Airplane mode.
6659284d68bb04539891456700c8da2d0bae7d09 25-Aug-2010 Jake Hamby <jhamby@google.com> Allow Bluetooth radio to be toggled in Airplane mode.

Add "bluetooth" to the list of toggleable radios. Because this string
is in the Settings DB, I had to bump the version number. Why is this in
the settings DB anyway, rather than a carrier config option?

I also discovered that the SystemUI package copied the entire contents of
res/values/defaults.xml from SettingsProvider, when I originally tried
to update the unreferenced SystemUI version of the setting. To prevent
future confusion, I removed all of the values from the SystemUI version
of res/values/defaults.xml.

Change-Id: Ib8a75c85b9db5c1963b65538ee2765d5087e67d2
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
e339464f1c8efe7e53b761cf44ff5be6e537ecad 13-Jul-2010 Dianne Hackborn <hackbod@google.com> am 1bcb6658: Merge "Fix issue #2834005: Android Settings.Secure bypass" into froyo

Merge commit '1bcb665825dc97789e8c1b892ec4298fd0b8c552' into gingerbread

* commit '1bcb665825dc97789e8c1b892ec4298fd0b8c552':
Fix issue #2834005: Android Settings.Secure bypass
24117ce3ae32c40798d2d9bda80675814f76730d 13-Jul-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2834005: Android Settings.Secure bypass

Change-Id: Ic4f14e2ff5c2b4f623405d30389863a9e3e82572
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
8932020f542ae6dd4750fa823bbf2d2bcf504267 25-Jun-2010 Joe Onorato <joeo@android.com> Fix the notification vibration setting and add a test app that lets you recover from the busted
state.

Bug: 2767349
Change-Id: Id0c41734e82a1256a49175a2dc6b40f0abaf4f8b
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
cd66caf015d18baa03a86796649550cb65cd99ea 13-Apr-2010 Amith Yamasani <yamasani@google.com> Fix an upgrade bug in SettingsProvider.

Bug: 2569112

Wrong usage of local method.

Change-Id: I9d7c68baa7cf8dd2b7e4345555c1edc374de94e6
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
b6e6ffae3564f0c8935cd2d307ffa4d17c57f992 30-Mar-2010 Amith Yamasani <yamasani@google.com> Fix for Never not existing in latest timeout values.

Bug: 2535288

Change-Id: I15ca60c7afe58fbe57e557e6d0028dc200d8b322
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
89206fdb3b75a8bc12ac75fc8a95a5c9c79c3220 22-Mar-2010 Vasu Nori <vnori@google.com> close SQLiteStatement objects in finally block

unclosed SQLiteStatement objects cause finalizer warnings.
nix them by closing this object in finally block.

Change-Id: Iea86ff169f935bb743aa0c32aa4aeb0cb4fcd4ad
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
dca5f191ace4bc52fbc6d4ed80a7e40ccb698422 12-Mar-2010 Ken Shirriff <kens@google.com> Close db statement.

Fix finalizer error bug 2483608

Change-Id: I49c33dc68cd3f24772990a467790ecaa06e13a18
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
089262dc022d87e31eefc536025be6c015c7ebde 10-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Dont include code size for apps on sdcard.
Use constants defined in PackageHelper for user preferences
to install auto, internal, external.
Set default install location to external.
Update settings db version number

Change-Id: Ib5110c9377990e20a48cee923e55898dfddfd1e6
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
1c7fa4836bfa7ff61f176461ca0557e90f714121 10-Mar-2010 Daniel Sandler <dsandler@google.com> Add VIBRATE_IN_SILENT to the settings database & backup.

Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f02811f7853202c0934622702ebb9c82e6ab0592 10-Mar-2010 Romain Guy <romainguy@android.com> Support unbundled bookmarks.
Bug #2460685

Change-Id: I402e342673cd8de88664a595401a141e09583e1d
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
2269d1572e5fcfb725ea55f5764d8c3280d69f6d 25-Feb-2010 Dianne Hackborn <hackbod@google.com> Re-arrange android-common so framework no longer links with it.

This is the framework part, moving classes around so the framework
no longer needs to link to android-common. Makes some APIs public,
others that didn't need to be public are private in the framework,
some small things are copied.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f1cbfff03ac53be9475f419d16a2e79b6c28a494 23-Feb-2010 Oscar Montemayor <oam@google.com> Fix bug when adding SET_INSTALL_LOCATION to SettingsProvider database, upgrade path.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
21f1bd17b2dfe361acbb28453b3f3b1a110932fa 20-Feb-2010 Dianne Hackborn <hackbod@google.com> Fix issue #2438980: Implement package watcher for voice recognizer service setting

I am getting tired of writing package monitor code, realized this is missing in
a number of places, and at this point it has gotten complicated enough that I
don't think anyone actually does it 100% right so:

Introducing PackageMonitor.

Yes there are no Java docs. I am still playing around with just what this
thing is to figure out what makes sense and how people will use it. It is
being used to fix this bug for monitoring voice recognizers (integrating the
code from the settings provider for setting an initial value), to replace
the existing code for monitoring input methods (and fix the bug where we
wouldn't remove an input method from the enabled list when it got
uninstalled), to now monitor live wallpaper package changes (now allowing
us to avoid reverting back to the default live wallpaper when the current
one is updated!), and to monitor device admin changes.

Also includes a fix so you can't uninstall an .apk that is currently enabled
as a device admin.

Also includes a fix where the default time zone was not initialized early
enough which should fix issue #2455507 (Observed Google services frame work crash).

In addition, this finally introduces a mechanism to determine if the
"force stop" button should be enabled, with convenience in PackageMonitor
for system services to handle it. All services have been updated to support
this. There is also new infrastructure for reporting battery usage as an
applicatin error report.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
6176677e01964cb5751ff217c091571ce6a8b5fb 12-Feb-2010 Jim Miller <jaggies@google.com> Watch 2274882: Add a field to the db when we wipe due to an error in the upgrader.

This should give us the ability to diagnose and fix db upgrade errors as reported by partners and end users.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
cb0be8a530d6fefdb05f009980c029c4da14bf98 12-Feb-2010 Mike LeBeau <mlebeau@android.com> Use the new RecognitionService.SERVICE_INTERFACE instead of
RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice
recognition service.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
a9c1625e71ddd7a9cdaf9d1720be8c58e4809fa6 10-Feb-2010 Suchi Amalapurapu <asuchitra@google.com> Set default value for default install location
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
9327f4f671de3cbb795612bf4f314ceff88de865 29-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy work: clarify password modes, monkeying.

Clarifies what the password modes mean, renaming them to "quality"
and updating their documentation and the implementation to follow.

Also adds a facility to find out if a monkey is running, which I
need for the api demo to avoid letting it wipe the device.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
df83afaf299666e99c519aa86e7e082b7c116e95 20-Jan-2010 Dianne Hackborn <hackbod@google.com> More device policy manager / admin work.

Update API with some new features, re-arrange how you check for valid
passwords, and start hooking up the back-end implementation.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
31f90b62e8c83270094f5b0b4c75a0e06d72cd75 20-Jan-2010 Jim Miller <jaggies@google.com> Fix 2385283: Add DevicePolicyManager calls to LockScreen.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d4a4729c0cac582a2dcec7c8cfb316b81885a0f0 21-Dec-2009 Tom Taylor <tomtaylor@google.com> Update imports to android-common

Several files were moved to android-common. Update all the references
to import those files from the new location.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
075a18d607c3aa8386b4d06aea22f4bfacbe447b 26-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn on haptic feedback by default.

Change-Id: I85efeca1a0aca91992e28236077c668e0d14cbbb
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
bfe319e06aa56c081d0d94d64a8181291d7f7388 21-Sep-2009 Dianne Hackborn <hackbod@google.com> Turn animations on by default.

Add API to skip the animation for a particular start activity, so that
a latter better one can be used.

Fix Theme.NoDisplay to actually work.

Fiddle with various animations: don't do a different animation for task
switching, try a scale animation for switching in/out of the wallpaper.

Adjust the animation duration so that at normal speed we have something
more like the slower animation option (so slow is now the default).

Change-Id: Ieba9f3db0bd9a762a19b327a3ecccbc7b547893d
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f186055a53758fd4112ab3c470cda6337a18fa33 10-Sep-2009 Jim Miller <jaggies@google.com> Fix for bug # 2023074: settings db updater broken at version 34.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
02901eb7f21751b8a9486ffa9f50531bd59133a2 26-Aug-2009 Mike Lockwood <lockwood@android.com> SettingsProvider: Fix botched merge from donut to eclair.

donut and eclair had different ideas of what it means to upgrade from verion 34 to 35.

Signed-off-by: Mike Lockwood <lockwood@android.com>
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
4880575bacd9f49d864e8b61efca8cdeb231895c 05-Aug-2009 Jim Miller <jaggies@google.com> Fix error in settings.db upgrader. See bug 1999477 for details.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
a553c25b33c99b345cf1c8688f8df0ed8df14e5a 17-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1795088 Improve audio routing code

Initial commit for review.
Integrated comments after patch set 1 review.
Fixed lockup in AudioFlinger::ThreadBase::exit()
Fixed lockup when playing tone with AudioPlocyService startTone()
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
575d1af980f4b4866325bfc487455f54606cf49e 03-Jul-2009 The Android Open Source Project <initial-contribution@android.com> resolved conflicts for merge of cf098294 to master
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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
aa73f17201481f943345253328071118abc02933 15-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am 6599426f: Merge change 4017 into donut

Merge commit '6599426f74371c823fcfe570f61577262eb0df44'

* commit '6599426f74371c823fcfe570f61577262eb0df44':
Make the date format preference work again.
328769582328192f8f361dcb56f2ad67ad00ae2c 12-Jun-2009 Eric Fischer <enf@google.com> Make the date format preference work again.

It is only used for numeric dates -- spelled-out dates have such a complex
variety of formats that they can only be meaningfully formatted from
locale strings.

In addition, the preference is left null when initializing, on the assumption
that the locale will still specify a more useful numeric format than we can
guess as part of a build-wide configuration.

But if the user has specified a format, the date will be formatted in the
order they asked for, with locale-appropriate punctuation substituted in.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
544fff54a9cbcdf58ca993eeefed86699157f820 20-May-2009 Jaikumar Ganesh <jaikumar@google.com> am ee748d37: Fix network preference getting incorrectly set.

Merge commit 'ee748d37b01b3affb72b701d95ba20c189887b5f'

* commit 'ee748d37b01b3affb72b701d95ba20c189887b5f':
Fix network preference getting incorrectly set.
ee748d37b01b3affb72b701d95ba20c189887b5f 15-May-2009 Jaikumar Ganesh <jaikumar@google.com> Fix network preference getting incorrectly set.

When the phone process crashes, we set the network preference
incorrectly. Also read the default value from a system property.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d3af72792792dbd332446993c941e2714032d09f 02-Apr-2009 The Android Open Source Project <initial-contribution@android.com> Merge branch 'readonly-p4-master'

Conflicts:

telephony/java/com/android/internal/telephony/gsm/RIL.java
resolved by removing gsm/RIL.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/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
767a662ecde33c3979bf02b793d392aca0403162 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
2a73de7b21a89aa2ba4c254d28658b49793425b2 18-Mar-2009 Jean-Baptiste Queru <jbq@google.com> Merge commit 'remotes/korg/cupcake' into merge

Conflicts:
core/java/android/view/animation/TranslateAnimation.java
core/jni/Android.mk
core/res/res/values-en-rGB/strings.xml
libs/audioflinger/AudioFlinger.cpp
libs/surfaceflinger/LayerScreenshot.cpp
packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
ba87e3e6c985e7175152993b5efcc7dd2f0e1c93 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
4df2423a947bcd3f024cc3d3a1a315a8dc428598 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
9066cfe9886ac131c34d59ed0e2d287b0e3c0087 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d83a98f4ce9cfa908f5c54bbd70f03eec07e7553 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
076357b8567458d4b6dfdcf839ef751634cd2bfb 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
3dec7d563a2f3e1eb967ce2054a00b6620e3558c 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
074da8f9aa424b25d84f4e4eb762ca534ea96716 25-Feb-2009 James Wylder <jbob0823@gmail.com> Change scope on SettingsProvider.mDatabaseHelper and DatabaseHelper
This change will allow the DatabaseHelper to be inheritted and extended
without the need to make futher changes to the existing implementation.
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
d24b8183b93e781080b2c16c487e60d51c12da31 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
9266c558bf1d21ff647525ff99f7dadbca417309 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
f013e1afd1e68af5e3b868c26a653bbfb39538f8 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java
54b6cfa9a9e5b861a9930af873580d6dc20f773c 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/frameworks/base/packages/SettingsProvider/src/com/android/providers/settings/DatabaseHelper.java