Home
last modified time | relevance | path

Searched refs:mPreferenceCache (Results 1 – 8 of 8) sorted by relevance

/packages/apps/Settings/src/com/android/settings/utils/
DPreferenceGroupChildrenCache.java31 private ArrayMap<String, Preference> mPreferenceCache; field in PreferenceGroupChildrenCache
34 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
41 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
46 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
49 mPreferenceCache = null; in removeCachedPrefs()
53 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
57 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/utils/
DPreferenceGroupChildrenCache.java31 private ArrayMap<String, Preference> mPreferenceCache; field in PreferenceGroupChildrenCache
34 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
41 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
46 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
49 mPreferenceCache = null; in removeCachedPrefs()
53 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
57 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/applications/managedomainurls/
DDomainAppPreferenceController.java50 private Map<String, Preference> mPreferenceCache; field in DomainAppPreferenceController
125 mPreferenceCache = new ArrayMap(); in cacheAllPrefs()
132 mPreferenceCache.put(p.getKey(), p); in cacheAllPrefs()
137 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
141 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
144 mPreferenceCache = null; in removeCachedPrefs()
/packages/apps/Settings/src/com/android/settings/applications/managedomainurls/
DDomainAppPreferenceController.java50 private Map<String, Preference> mPreferenceCache; field in DomainAppPreferenceController
125 mPreferenceCache = new ArrayMap(); in cacheAllPrefs()
132 mPreferenceCache.put(p.getKey(), p); in cacheAllPrefs()
137 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
141 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
144 mPreferenceCache = null; in removeCachedPrefs()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/fuelgauge/
DBatteryAppListPreferenceController.java75 private ArrayMap<String, Preference> mPreferenceCache; field in BatteryAppListPreferenceController
388 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
395 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
444 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
448 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
451 mPreferenceCache = null; in removeCachedPrefs()
455 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/apps/Settings/src/com/android/settings/fuelgauge/
DBatteryAppListPreferenceController.java74 private ArrayMap<String, Preference> mPreferenceCache; field in BatteryAppListPreferenceController
382 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
389 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
451 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
455 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
458 mPreferenceCache = null; in removeCachedPrefs()
462 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsPreferenceFragment.java119 private ArrayMap<String, Preference> mPreferenceCache; field in SettingsPreferenceFragment
350 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
357 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
362 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
366 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
369 mPreferenceCache = null; in removeCachedPrefs()
373 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/apps/Settings/src/com/android/settings/
DSettingsPreferenceFragment.java118 private ArrayMap<String, Preference> mPreferenceCache; field in SettingsPreferenceFragment
362 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
369 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
374 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
378 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
381 mPreferenceCache = null; in removeCachedPrefs()
385 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()