summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-03-03 18:17:41 -0800
committerSvetoslav Ganov <svetoslavganov@google.com>2011-03-03 18:20:43 -0800
commit9aa597e68b3fb30b079d627e1fcdea766e98ad26 (patch)
tree331c05d3a5372bdd3ce89ab326929ec5f6085dbf /services
parent6e71c954faff34b78a2952436b4f48d84a8c20cd (diff)
downloadframeworks_base-9aa597e68b3fb30b079d627e1fcdea766e98ad26.zip
frameworks_base-9aa597e68b3fb30b079d627e1fcdea766e98ad26.tar.gz
frameworks_base-9aa597e68b3fb30b079d627e1fcdea766e98ad26.tar.bz2
Propagating core settings to the system process.
bug:3511123 Now the core settins are stored in the ActivityThread instad in the AppBindData of the currently bound app. Also the settings are pushed to the system process on init. Change-Id: I100bb7dc80d0d4548def22c328427bbef1694eb7
Diffstat (limited to 'services')
-rw-r--r--services/java/com/android/server/am/CoreSettingsObserver.java10
1 files changed, 7 insertions, 3 deletions
diff --git a/services/java/com/android/server/am/CoreSettingsObserver.java b/services/java/com/android/server/am/CoreSettingsObserver.java
index 25db84a..585cf2b 100644
--- a/services/java/com/android/server/am/CoreSettingsObserver.java
+++ b/services/java/com/android/server/am/CoreSettingsObserver.java
@@ -52,7 +52,7 @@ class CoreSettingsObserver extends ContentObserver {
super(activityManagerService.mHandler);
mActivityManagerService = activityManagerService;
beginObserveCoreSettings();
- populateCoreSettings(mCoreSettings);
+ sendCoreSettings();
}
public Bundle getCoreSettingsLocked() {
@@ -62,11 +62,15 @@ class CoreSettingsObserver extends ContentObserver {
@Override
public void onChange(boolean selfChange) {
synchronized (mActivityManagerService) {
- populateCoreSettings(mCoreSettings);
- mActivityManagerService.onCoreSettingsChange(mCoreSettings);
+ sendCoreSettings();
}
}
+ private void sendCoreSettings() {
+ populateCoreSettings(mCoreSettings);
+ mActivityManagerService.onCoreSettingsChange(mCoreSettings);
+ }
+
private void beginObserveCoreSettings() {
for (String setting : sCoreSettingToTypeMap.keySet()) {
Uri uri = Settings.Secure.getUriFor(setting);