Home | History | Annotate | Download | only in location

Lines Matching defs:Setting

65      * If reading the status of a setting takes longer than this, we go ahead and start reading
66 * the next setting.
91 private final Set<Setting> mSettings;
97 mSettings = new HashSet<Setting>();
104 * expected setting metadata.
122 InjectedSetting setting = parseServiceInfo(resolveInfo, pm);
123 if (setting == null) {
126 settings.add(setting);
155 Log.w(TAG, "Ignoring attempt to inject setting from app not in system image: "
195 * Returns an immutable representation of the static attributes for the setting, or null.
203 // specification of the label (setting title)
226 for (InjectedSetting setting : settings) {
227 Preference pref = addServiceSetting(prefs, setting);
228 mSettings.add(new Setting(setting, pref));
247 * Adds an injected setting to the root with status "Loading...".
266 * Loads the setting status values one at a time. Each load starts a subclass of {@link
275 private Set<Setting> mSettingsToLoad = new HashSet<Setting>();
281 private Set<Setting> mSettingsBeingLoaded = new HashSet<Setting>();
284 * Settings that are being loaded but have timed out. If only one setting has timed out, we
285 * will go ahead and start loading the next setting so that one slow load won't delay the
288 private Set<Setting> mTimedOutSettings = new HashSet<Setting>();
304 final Setting receivedSetting = (Setting) msg.obj;
311 final Setting timedOutSetting = (Setting) msg.obj;
324 // if we have headroom to load another setting.
327 // To reduce memory pressure, we want to be loading at most one setting (plus at
328 // most one timed-out setting) at a time. This means we'll be responsible for
346 // Remove the next setting to load from the queue, if any
347 Iterator<Setting> iter = mSettingsToLoad.iterator();
354 Setting setting = iter.next();
358 setting.startService();
359 mSettingsBeingLoaded.add(setting);
363 Message timeoutMsg = obtainMessage(WHAT_TIMEOUT, setting);
368 + ", started loading " + setting);
384 * Represents an injected setting and the corresponding preference.
386 private final class Setting {
388 public final InjectedSetting setting;
392 private Setting(InjectedSetting setting, Preference preference) {
393 this.setting = setting;
399 return "Setting{" +
400 "setting=" + setting +
406 * Returns true if they both have the same {@link #setting} value. Ignores mutable
411 return this == o || o instanceof Setting && setting.equals(((Setting) o).setting);
416 return setting.hashCode();
420 setting, and updates the
431 Log.d(TAG, setting + ": received " + msg + ", bundle: " + bundle);
436 mHandler.obtainMessage(WHAT_RECEIVED_STATUS, Setting.this));
441 Intent intent = setting.getServiceIntent();
445 Log.d(TAG, setting + ": sending update intent: " + intent