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.
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
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
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
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.
388 public final InjectedSetting setting;
392 private Setting(InjectedSetting setting, Preference preference) {
393 this.setting = 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 * Starts the service to fetch for the current status for the setting, and updates the
431 Log.d(TAG, setting + ": received " + msg + ", bundle: " + bundle);
441 Intent intent = setting.getServiceIntent();
445 Log.d(TAG, setting + ": sending update intent: " + intent