Searched refs:mPreferenceList (Results 1 – 4 of 4) sorted by relevance
57 private final List<Preference> mPreferenceList = new ArrayList<>(); field in FastPairDevicePreferenceController149 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 …]
96 private List<BluetoothDevicePreference> mPreferenceList = new ArrayList<>(); field in BluetoothDevicePreferenceTest257 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 …]
75 private List<Preference> mPreferenceList; field in AccountDetailsSettingControllerTest90 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()
44 private final List<Preference> mPreferenceList = new ArrayList<>(); field in PhoneNumberPreferenceController66 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()