Searched refs:mPreferenceCache (Results 1 – 5 of 5) sorted by relevance
/packages/apps/Settings/src/com/android/settings/utils/ |
D | PreferenceGroupChildrenCache.java | 31 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/ |
D | DomainAppPreferenceController.java | 50 private Map<String, Preference> mPreferenceCache; field in DomainAppPreferenceController 130 mPreferenceCache = new ArrayMap(); in cacheAllPrefs() 137 mPreferenceCache.put(p.getKey(), p); in cacheAllPrefs() 142 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference() 146 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs() 149 mPreferenceCache = null; in removeCachedPrefs()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageBreakdownControllerTest.java | 137 mBatteryUsageBreakdownController.mPreferenceCache.put(PREF_KEY, mAnomalyAppItemPreference); in onDestroy_clearPreferenceCacheAndPreferenceGroupRemoveAll() 138 assertThat(mBatteryUsageBreakdownController.mPreferenceCache).hasSize(1); in onDestroy_clearPreferenceCacheAndPreferenceGroupRemoveAll() 142 assertThat(mBatteryUsageBreakdownController.mPreferenceCache).isEmpty(); in onDestroy_clearPreferenceCacheAndPreferenceGroupRemoveAll() 166 mBatteryUsageBreakdownController.mPreferenceCache.get(PREF_KEY); in addAllPreferences_addAllPreferences() 199 assertThat(mBatteryUsageBreakdownController.mPreferenceCache).isEmpty(); in removeAndCacheAllUnusedPreferences_removePref_buildCacheAndRemoveAllPreference() 203 assertThat(mBatteryUsageBreakdownController.mPreferenceCache.get(PREF_KEY)) in removeAndCacheAllUnusedPreferences_removePref_buildCacheAndRemoveAllPreference() 215 assertThat(mBatteryUsageBreakdownController.mPreferenceCache).isEmpty(); in removeAndCacheAllUnusedPreferences_keepPref_KeepAllPreference() 220 assertThat(mBatteryUsageBreakdownController.mPreferenceCache).isEmpty(); in removeAndCacheAllUnusedPreferences_keepPref_KeepAllPreference()
|
/packages/apps/Settings/src/com/android/settings/ |
D | SettingsPreferenceFragment.java | 120 private ArrayMap<String, Preference> mPreferenceCache; field in SettingsPreferenceFragment 382 mPreferenceCache = new ArrayMap<>(); in cacheRemoveAllPrefs() 389 mPreferenceCache.put(p.getKey(), p); in cacheRemoveAllPrefs() 394 return mPreferenceCache != null ? mPreferenceCache.remove(key) : null; in getCachedPreference() 398 for (Preference p : mPreferenceCache.values()) { in removeCachedPrefs() 401 mPreferenceCache = null; in removeCachedPrefs() 405 return mPreferenceCache != null ? mPreferenceCache.size() : 0; in getCachedCount()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | BatteryUsageBreakdownController.java | 79 @VisibleForTesting final Map<String, Preference> mPreferenceCache = new ArrayMap<>(); field in BatteryUsageBreakdownController 121 mPreferenceCache.clear(); in onResume() 129 mPreferenceCache.clear(); in onDestroy() 362 pref = (AnomalyAppItemPreference) mPreferenceCache.get(prefKey); in addAllPreferences() 368 mPreferenceCache.put(prefKey, pref); in addAllPreferences() 406 mPreferenceCache.put(pref.getKey(), pref); in removeAndCacheAllUnusedPreferences()
|