summaryrefslogtreecommitdiffstats
path: root/packages/SettingsProvider
Commit message (Collapse)AuthorAgeFilesLines
* Import revised translationsKenny Root2010-03-1720-260/+340
| | | | Change-Id: Id1a0d62dc917937fc14ccab26eb7bd2c2148137e
* Close db statement.Ken Shirriff2010-03-111-0/+1
| | | | | | Fix finalizer error bug 2483608 Change-Id: I49c33dc68cd3f24772990a467790ecaa06e13a18
* Dont include code size for apps on sdcard.Suchi Amalapurapu2010-03-102-5/+27
| | | | | | | | | 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
* Add VIBRATE_IN_SILENT to the settings database & backup.Daniel Sandler2010-03-102-2/+27
| | | | Change-Id: Id31e24ef0536278ccb66b22bba7ed2b47eb1a371
* 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
* Support unbundled bookmarks.Romain Guy2010-03-093-88/+34
| | | | | | Bug #2460685 Change-Id: I402e342673cd8de88664a595401a141e09583e1d
* 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
* Move lockscreen settings to secure table to prevent tampering. b/2343673Amith Yamasani2010-03-081-31/+53
| | | | Migrate old settings to secure on upgrade.
* Correct path to LowBattery.ogg.Daniel Sandler2010-03-081-1/+1
| | | | | Bug: 2320026 Change-Id: Idede20701c5a3d0e60bd327a869b1adf1577db21
* Refactor android.backup => android.app.backupChristopher Tate2010-03-053-6/+6
| | | | 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.
* Make sure to apply the auto-restore setting when the system is restoredChristopher Tate2010-02-261-0/+13
| | | | Change-Id: If2e09d6b4e65c75e7e90754adc2425fa73d2602a
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-251-1/+1
| | | | | | | 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.
* Filenames of sound effects are not translatable.Eric Fischer2010-02-241-7/+7
|
* Turn off lock screen sounds by default.Daniel Sandler2010-02-231-4/+4
| | | | | | | | | | This change also fixes a typo that was suppressing the dock sounds. But: so as not to surprise anyone, this change defaults dock sounds off as well. Will need to add UI somewhere to turn them on (Spare Parts?). Bug: 2465483 Change-Id: Ic2cccb416d5616a84363debb740bf5897f0831c4
* Fix bug when adding SET_INSTALL_LOCATION to SettingsProvider database, ↵Oscar Montemayor2010-02-221-1/+20
| | | | upgrade path.
* Fix issue #2438980: Implement package watcher for voice recognizer service ↵Dianne Hackborn2010-02-222-43/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* Fix issue #2420412: API review: DeviceAdmin API changesDianne Hackborn2010-02-171-2/+3
| | | | | | | | Note in docs that callbacks are on main thread. Rename to DeviceAdminReceiver? Document resetPassword is the device's password. Also hide android.R.attr.neverEncrypt.
* New user interface sound effects:Daniel Sandler2010-02-122-1/+59
| | | | | | | | | | | | | | | | - 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
* Merge "Remove BACKUP_DATA permission and associated checks"Chris Tate2010-02-121-2/+0
|\
| * Remove BACKUP_DATA permission and associated checksChristopher Tate2010-02-121-2/+0
| | | | | | | | | | | | | | | | Any package can now participate in backup/restore, without requiring any manifest-declared permission. *Control* of the backup manager is still guarded by the BACKUP permission, which is signatureOrSystem. Change-Id: I116fcfcd4cd255e3c976330da1c4dea7d4faae9d
* | Watch 2274882: Add a field to the db when we wipe due to an error in the ↵Jim Miller2010-02-121-7/+12
|/ | | | | | upgrader. This should give us the ability to diagnose and fix db upgrade errors as reported by partners and end users.
* Use the new RecognitionService.SERVICE_INTERFACE instead ofMike LeBeau2010-02-111-1/+2
| | | | | RecognizerIntent.ACTION_RECOGNIZE_SPEECH when finding a voice recognition service.
* Add new setting for the ComponentName of the service to be usedMike LeBeau2010-02-111-1/+49
| | | | | | | | | | 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.
* Set default value for default install locationSuchi Amalapurapu2010-02-101-1/+3
|
* Add new manifest option for install locationSuchi Amalapurapu2010-02-102-0/+3
| | | | | | | | | | | | 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.
* use device serial number to seed RNG for generating ANDROID_IDDoug Zongker2010-02-031-2/+11
| | | | Change-Id: I1bcc55f1309cb908803bc42084846a046041eda6
* More device policy work: clarify password modes, monkeying.Dianne Hackborn2010-01-291-2/+17
| | | | | | | | 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.
* Remove unused providersKen Shirriff2010-01-221-1/+0
| | | | bug 2388178
* More device policy manager / admin work.Dianne Hackborn2010-01-211-1/+16
| | | | | Update API with some new features, re-arrange how you check for valid passwords, and start hooking up the back-end implementation.
* Fix 2385283: Add DevicePolicyManager calls to LockScreen.Jim Miller2010-01-201-4/+4
|
* Settings: Add settings for MountService prefs and bump DB version to 46San Mehat2010-01-082-4/+43
| | | | | | | | | | | | 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>
* Merge "Update with latest translations."Eric Fischer2010-01-081-1/+1
|\
| * Update with latest translations.Eric Fischer2010-01-071-1/+1
| |
* | remove Settings.GservicesDoug Zongker2010-01-072-25/+17
| | | | | | | | | | | | | | 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
* Do not use a user tag on apps, as it is ignored.Jean-Baptiste Queru2010-01-061-1/+1
| | | | | | | | | | The build system does not honor user tags on apps, and setting it is misleading. This removes the confusion by making the makefiles behave like they read. Change-Id: I7c5feba1c7d07f915b97dd098584f29938a4c885
* am 68e9014e: am 484d2888: Fix issue 2299360: Change in in-call volume ↵Eric Laurent2009-12-271-1/+24
|\ | | | | | | | | | | | | | | | | affects the Bluetooth in-call volume and vice versa. Merge commit '68e9014e47f7350b3889e1704dde809b2a926968' * commit '68e9014e47f7350b3889e1704dde809b2a926968': Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call volume and vice versa.
| * Fix issue 2299360: Change in in-call volume affects the Bluetooth in-call ↵Eric Laurent2009-12-221-1/+24
| | | | | | | | | | | | volume and vice versa. Add a separate system settings entry for bluetooth SCO volume.
* | resolved conflicts for merge of ad2fa35d to masterTom Taylor2009-12-221-1/+1
|\ \ | |/ | | | | Change-Id: Ia4362cd48ac0689b91003943a4cd9660da72ff90
| * Update imports to android-commonTom Taylor2009-12-211-1/+1
| | | | | | | | | | Several files were moved to android-common. Update all the references to import those files from the new location.
* | am bc1c8847: am 66cc5900: Merge change Ic70239e8 into eclair-mr2Fred Quintana2009-12-171-0/+36
|\ \ | |/ | | | | | | | | | | Merge commit 'bc1c8847841689d2f6baa1f729148b4a35af92b0' * commit 'bc1c8847841689d2f6baa1f729148b4a35af92b0': changed SettingsProvider to manage the androidid itself
| * changed SettingsProvider to manage the androidid itselfFred Quintana2009-12-171-0/+36
| |
* | am 1224b101: am 42c4c589: am a9791d30: Merge change Iae3ed706 into eclairAmith Yamasani2009-12-022-1/+24
|\ \ | |/ | | | | | | | | | | Merge commit '1224b1016d2a4ec172f13741e632e59c7528b319' * commit '1224b1016d2a4ec172f13741e632e59c7528b319': Add new setting for notification light pulsing. Bug #2238250
| * am a9791d30: Merge change Iae3ed706 into eclairAmith Yamasani2009-12-022-1/+24
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'a9791d304b8ec03e04ad4533b1820a64794e1bcc' into eclair-mr2 * commit 'a9791d304b8ec03e04ad4533b1820a64794e1bcc': Add new setting for notification light pulsing. Bug #2238250
| | * Add new setting for notification light pulsing. Bug #2238250Amith Yamasani2009-12-012-1/+24
| | | | | | | | | | | | New System setting and code to set the defaults on upgrade.
| | * Import revised translations. DO NOT MERGEEric Fischer2009-11-131-1/+1
| |/ | | | | | | Approver: jerryw
* | Encrypted File Systems Project. Installer modifications.Oscar Montemayor2009-11-241-1/+2
|/ | | | Started to modify isntaller for data redirection to a secure location.
* Remove PowerManager.setAutoBrightness()Mike Lockwood2009-10-161-26/+0
| | | | | | | | We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead. Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants. Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2 Signed-off-by: Mike Lockwood <lockwood@android.com>