Home
last modified time | relevance | path

Searched refs:mPreferenceList (Results 1 – 4 of 4) sorted by relevance

/packages/apps/Settings/src/com/android/settings/connecteddevice/fastpair/
DFastPairDevicePreferenceController.java57 private final List<Preference> mPreferenceList = new ArrayList<>(); field in FastPairDevicePreferenceController
149 int idx = Collections.binarySearch(mPreferenceList, preference); in onDeviceAdded()
162 mPreferenceList.add(idx, preference); in onDeviceAdded()
164 if (mPreferenceList.size() > MAX_DEVICE_NUM) { in onDeviceAdded()
165 mPreferenceGroup.removePreference(mPreferenceList.get(MAX_DEVICE_NUM)); in onDeviceAdded()
183 final int idx = mPreferenceList.indexOf(preference); in onDeviceRemoved()
184 mPreferenceList.remove(preference); in onDeviceRemoved()
187 if (mPreferenceList.size() >= MAX_DEVICE_NUM) { in onDeviceRemoved()
188 mPreferenceGroup.addPreference(mPreferenceList.get(MAX_DEVICE_NUM - 1)); in onDeviceRemoved()
203 && mPreferenceList.size() > 0) { in updatePreferenceVisibility()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java96 private List<BluetoothDevicePreference> mPreferenceList = new ArrayList<>(); field in BluetoothDevicePreferenceTest
257 mPreferenceList.add(preference1); in compareTo_sortTypeFIFO()
258 mPreferenceList.add(preference2); in compareTo_sortTypeFIFO()
259 mPreferenceList.add(preference3); in compareTo_sortTypeFIFO()
260 Collections.sort(mPreferenceList, COMPARATOR); in compareTo_sortTypeFIFO()
262 assertThat(mPreferenceList.get(0).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
264 assertThat(mPreferenceList.get(1).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
266 assertThat(mPreferenceList.get(2).getCachedDevice().getAddress()) in compareTo_sortTypeFIFO()
282 mPreferenceList.add(preference1); in compareTo_sortTypeDefault()
283 mPreferenceList.add(preference2); in compareTo_sortTypeDefault()
[all …]
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/accounts/
DAccountDetailsSettingControllerTest.java75 private List<Preference> mPreferenceList; field in AccountDetailsSettingControllerTest
90 mPreferenceList = new ArrayList<>(); in setUp()
136 mPreferenceList.add(preference); in addExtraSettings_accountTypeNotEqual_shouldNotAddAnyPreferences()
150 mPreferenceList.add(preference); in addExtraSettings_accountTypeNotEqual_isNotVisible()
163 mPreferenceList.add(preference); in addExtraSettings_accountTypeEqual_shouldAddPreferences()
177 mPreferenceList.add(preference); in addExtraSettings_accountTypeEqual_isVisible()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DPhoneNumberPreferenceController.java44 private final List<Preference> mPreferenceList = new ArrayList<>(); field in PhoneNumberPreferenceController
66 mPreferenceList.add(preference); in displayPreference()
78 mPreferenceList.add(multiSimPreference); in displayPreference()
84 for (int simSlotNumber = 0; simSlotNumber < mPreferenceList.size(); simSlotNumber++) { in updateState()
85 final Preference simStatusPreference = mPreferenceList.get(simSlotNumber); in updateState()