Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/
DHealthPreferenceComparisonCallback.kt11 newPreference: Preference in arePreferenceItemsTheSame()
14 (oldPreference as ComparablePreference).isSameItem(newPreference) in arePreferenceItemsTheSame()
15 } else comparePreference(oldPreference, newPreference) == 0 in arePreferenceItemsTheSame()
20 newPreference: Preference in arePreferenceContentsTheSame()
23 (oldPreference as ComparablePreference).hasSameContents(newPreference) in arePreferenceContentsTheSame()
24 } else comparePreference(oldPreference, newPreference) == 0 in arePreferenceContentsTheSame()
27 private fun comparePreference(oldPreference: Preference, newPreference: Preference): Int { in comparePreference()
28 return if (oldPreference.title == newPreference.title) { in comparePreference()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DSafetyPreferenceComparisonCallback.java30 public boolean arePreferenceItemsTheSame(Preference oldPreference, Preference newPreference) { in arePreferenceItemsTheSame() argument
32 return ((ComparablePreference) oldPreference).isSameItem(newPreference); in arePreferenceItemsTheSame()
34 return super.arePreferenceItemsTheSame(oldPreference, newPreference); in arePreferenceItemsTheSame()
39 Preference oldPreference, Preference newPreference) { in arePreferenceContentsTheSame() argument
41 return ((ComparablePreference) oldPreference).hasSameContents(newPreference); in arePreferenceContentsTheSame()
43 return super.arePreferenceContentsTheSame(oldPreference, newPreference); in arePreferenceContentsTheSame()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DLogicalRootPreferenceGroup.java83 private void updateOrder(Preference newPreference) { in updateOrder() argument
92 && preference != newPreference in updateOrder()
98 newPreference.setOrder(preferenceOrder + mInsertedPreferences); in updateOrder()
/packages/apps/StorageManager/robotests/src/com/android/storagemanager/utils/
DPreferenceListCacheTest.java137 Preference newPreference = new Preference(mContext); in createPreference() local
138 newPreference.setKey(key); in createPreference()
139 return newPreference; in createPreference()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/recentaccess/
DRecentAccessFragment.kt171 val newPreference = in <lambda>() constant
194 mRecentAccessTodayPreferenceGroup?.addPreference(newPreference) in <lambda>()
200 mRecentAccessYesterdayPreferenceGroup?.addPreference(newPreference) in <lambda>()
/packages/apps/LegacyCamera/src/com/android/camera/
DPreferenceInflater.java54 private CameraPreference newPreference(String tagName, Object[] args) { in newPreference() method in PreferenceInflater
85 CameraPreference pref = newPreference(parser.getName(), args); in inflate()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/categories/
DHealthDataAllCategoriesFragment.kt87 val newPreference = in <lambda>() constant
108 mAllDataCategories?.addPreference(newPreference) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/home/
DHomeFragment.kt355 newPreference -> in <lambda>() method
357 newPreference.setOnPreferenceClickListener { in <lambda>()