Home
last modified time | relevance | path

Searched refs:mPreferenceCache (Results 1 – 9 of 9) 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/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/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/fuelgauge/
DBatteryAppListPreferenceController.java75 private ArrayMap<String, Preference> mPreferenceCache; field in BatteryAppListPreferenceController
383 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
390 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
439 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
443 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
446 mPreferenceCache = null; in removeCachedPrefs()
450 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/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/
DSettingsPreferenceFragment.java123 private ArrayMap<String, Preference> mPreferenceCache; field in SettingsPreferenceFragment
367 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
374 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
379 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
383 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
386 mPreferenceCache = null; in removeCachedPrefs()
390 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/
DSettingsPreferenceFragment.java123 private ArrayMap<String, Preference> mPreferenceCache; field in SettingsPreferenceFragment
355 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs()
362 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs()
367 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference()
371 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs()
374 mPreferenceCache = null; in removeCachedPrefs()
378 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/managedomainurls/
DDomainAppPreferenceController.java86 private ArrayMap<String, Preference> mPreferenceCache; field in DomainAppPreferenceController