summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider/src/com/android/providers/settings/SettingsProvider.java
Commit message (Collapse)AuthorAgeFilesLines
* Fix broken logic in SettingsProvider.parseProviderList.Mike Lockwood2010-12-011-3/+6
| | | | | | | We were accidentally stripping both leading and trailing commas when removing a provider from the enabled provider list. Signed-off-by: Mike Lockwood <lockwood@android.com>
* make android_id random seed depend on time as well as ro.serialnoDoug Zongker2010-09-281-9/+4
| | | | Change-Id: I0a48aacd8da30896d91fa05b7791335e6ed751e5
* Fix issue #2834005: Android Settings.Secure bypassDianne Hackborn2010-07-221-0/+9
| | | | Change-Id: Ic4f14e2ff5c2b4f623405d30389863a9e3e82572
* SettingsProvider: dup-suppress from cache.Brad Fitzpatrick2010-03-091-1/+22
| | | | | | | | | | | On insert(), check to see if the value is redundant by checking if it's the same value already in our cache (but without faulting it in to check). If so, avoid hitting sqlite or spamming all the notification listeners with such uselessness. This reportedly is happening a fair bit. Change-Id: If58feb3ff1d00027dd927e0900087388cbcd72ae
* SettingsProvider: defensively cap size of settings kept cached in memory.Brad Fitzpatrick2010-03-091-12/+28
| | | | Change-Id: I50289ece2d7f5f50d2ea2efbacac7a0bb1483bf6
* Cache hot settings in-memory in the SettingsProvider.Brad Fitzpatrick2010-03-081-11/+111
| | | | | | | | This brings down Settings lookups to 0.5 ms on sholes. (down from ~10.5 ms originally, and ~2.5 ms after the ContentProvider.call() interface) Change-Id: Ibde7c3d21e0b0e5714714a2075f314726edfc19d
* Refactor android.backup => android.app.backupChristopher Tate2010-03-051-1/+1
| | | | Change-Id: I0b21316ff890d7f3c7d4b82837bb60670724c2e8
* Add "call" method on ContentProvider.Brad Fitzpatrick2010-03-051-0/+42
| | | | | | | | | | | | | This permits implementing interfaces which are faster than using remote Cursors. It then uses it for Settings & SettingProvider, which together account for ~50% of total ContentProvider event loop stalls across Froyo dogfooders. For fetching Settings this looks like it should reduce average Settings lookup from 10 ms to 0.4 ms on Sholes, once the SettingsProvider serves most gets from in-memory cache. Currently it brings the Sholes average down from 10ms to 2.5 ms while still using SQLite queries on each get.
* Fix issue #2438980: Implement package watcher for voice recognizer service ↵Dianne Hackborn2010-02-221-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* use device serial number to seed RNG for generating ANDROID_IDDoug Zongker2010-02-031-2/+11
| | | | Change-Id: I1bcc55f1309cb908803bc42084846a046041eda6
* remove Settings.GservicesDoug Zongker2010-01-071-17/+6
| | | | | | | Move the last few keys to secure settings, and delete the Gservices table. Change-Id: Ie3ba45aa8c1f220824aa027c547cb82884452eb5
* change remaining frameworks/base Gservices to Secure settingsDoug Zongker2010-01-071-2/+0
| | | | Change-Id: I61bdb05a2526523700c2833154d5a4133881ef10
* changed SettingsProvider to manage the androidid itselfFred Quintana2009-12-171-0/+36
|
* Support for selection of silent ringtone from the ringtone picker.Marco Nelissen2009-07-281-5/+63
| | | | This doesn't actually enable that, but adds the necessary code to make it work when enabled, and cleans up some ringtone related code.
* am d1e5e3ff: Merge change 6639 into donutAndroid (Google) Code Review2009-07-091-1/+6
|\ | | | | | | | | | | | | Merge commit 'd1e5e3ffc22478bad8525dec4f1c6d57fe0ad368' * commit 'd1e5e3ffc22478bad8525dec4f1c6d57fe0ad368': Restore audio settings and wifi.
| * Restore audio settings and wifi.Amith Yamasani2009-07-091-1/+6
| | | | | | | | | | | | | | | | Optimize backups by writing an entity only if the checksum of the data has changed. Call into the hidden AudioService API to apply changed audio settings. After restoring wifi data, make sure that the permissions and ownership are set properly for the supplicant process to access it. Locale isn't restoring properly - TODO added.
* | resolved conflicts for merge of d6fe243c to master-b master2009-07-071-11/+4
|\ \ | |/
| * Backup / Restore locale preference.Amith Yamasani2009-07-071-11/+5
| | | | | | | | | | | | | | | | Also backup development settings MOCK_LOCATION and USB_DEBUGGING. Backup and restore more of the Audio settings. Won't work yet without a reboot. Disable Wifi supplicant restore temporarily. It seems to be disabling Wifi due to permissions problems. Don't restore Ringtones.
* | Revert "hand rolled out 220f4d633be1098e7887dbd06f179138bf19f1ad due to ↵-b master2009-07-061-2/+15
| | | | | | | | | | | | interface changes on master, the change will need to be made again" This reverts commit f8e3ba5bfad14f3037d72eb6243258c13169cbd8.
* | hand rolled out 220f4d633be1098e7887dbd06f179138bf19f1ad due to interface ↵The Android Open Source Project2009-07-031-15/+2
| | | | | | | | changes on master, the change will need to be made again
* | am 288fe16c: Merge change 6043 into donutAndroid (Google) Code Review2009-07-031-2/+15
|\ \ | |/ | | | | | | | | | | Merge commit '288fe16c20e2c20556839046d38c487b0b18735c' * commit '288fe16c20e2c20556839046d38c487b0b18735c': System and Secure settings backup.
| * System and Secure settings backup.Amith Yamasani2009-07-021-2/+15
| | | | | | | | | | | | This backs up the basic system and secure settings. THe restoration doesn't take effect immediately. You many need to restart the runtime to see all restored values take effect.
* | am 6afe8133: Merge change 4720 into donutAndroid (Google) Code Review2009-06-191-2/+2
|\ \ | |/ | | | | | | | | | | Merge commit '6afe81339ed973f1ef4a6c30110d5ce3b001ea4c' * commit '6afe81339ed973f1ef4a6c30110d5ce3b001ea4c': Fix string formatters in SettingsProvider SecurityException message.
| * Fix string formatters in SettingsProvider SecurityException message.Brett Chabot2009-06-191-2/+2
| |
* | am 2810f681: Merge change 4694 into donutAndroid (Google) Code Review2009-06-181-3/+7
|\ \ | |/ | | | | | | | | | | Merge commit '2810f681991d1beb5ceb3515159f9fad3cc341d5' * commit '2810f681991d1beb5ceb3515159f9fad3cc341d5': Make SettingsProviders SecurityException messages more verbose.
| * Make SettingsProviders SecurityException messages more verbose.Brett Chabot2009-06-181-3/+7
| |
| * AI 144372: Cleanup Settings support for enabling and disabling location ↵Mike Lockwood2009-04-021-0/+73
| | | | | | | | | | | | | | | | | | | | | | | | | | | | providers: LocationManagerService now listens for changes to settings, making LocationManager.updateProviders() unnecessary. Removed LocationManager.updateProviders() Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way of enabling or disabling a single location provider. This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly. BUG=1729031 Automated import of CL 144372
* | Merge branch 'readonly-p4-master'Mike Lockwood2009-04-021-0/+73
|\ \
| * | AI 144415: am: CL 144372 Cleanup Settings support for enabling and disabling ↵Mike Lockwood2009-04-021-0/+73
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | location providers: LocationManagerService now listens for changes to settings, making LocationManager.updateProviders() unnecessary. Removed LocationManager.updateProviders() Added Settings.Secure.setLocationProviderEnabled(), which is a thread-safe way of enabling or disabling a single location provider. This is safer than reading, modifying and writing the LOCATION_PROVIDERS_ALLOWED directly. BUG=1729031 Original author: lockwood Automated import of CL 144415
* | Merge commit 'remotes/korg/cupcake' into mergeJean-Baptiste Queru2009-03-181-3/+33
|\ \ | |/ | | | | | | | | | | | | | | | | 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
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-0/+341
| |
| * auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-031-341/+0
| |
| * auto import from //branches/cupcake/...@130745The Android Open Source Project2009-02-101-3/+33
| |
* | Change scope on SettingsProvider.mDatabaseHelper and DatabaseHelperJames Wylder2009-02-251-1/+1
|/ | | | | This change will allow the DatabaseHelper to be inheritted and extended without the need to make futher changes to the existing implementation.
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-171-6/+22
|
* Initial ContributionThe Android Open Source Project2008-10-211-0/+295