Lines Matching defs:ContactListFilter
28 public final class ContactListFilter implements Comparable<ContactListFilter>, Parcelable {
59 public ContactListFilter(int filterType, String accountType, String accountName, String dataSet,
68 public static ContactListFilter createFilterWithType(int filterType) {
69 return new ContactListFilter(filterType, null, null, null, null);
72 public static ContactListFilter createAccountFilter(String accountType, String accountName,
74 return new ContactListFilter(ContactListFilter.FILTER_TYPE_ACCOUNT, accountType,
108 public int compareTo(ContactListFilter another) {
141 if (!(other instanceof ContactListFilter)) {
145 ContactListFilter otherFilter = (ContactListFilter) other;
157 * Store the given {@link ContactListFilter} to preferences. If the requested filter is
161 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) {
174 * Try to obtain ContactListFilter object saved in SharedPreference.
177 public static ContactListFilter restoreDefaultPreferences(SharedPreferences prefs) {
178 ContactListFilter filter = restoreFromPreferences(prefs);
180 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS);
186 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS);
191 private static ContactListFilter restoreFromPreferences(SharedPreferences prefs) {
200 return new ContactListFilter(filterType, accountType, accountName, dataSet, null);
212 public static final Parcelable.Creator<ContactListFilter> CREATOR =
213 new Parcelable.Creator<ContactListFilter>() {
215 public ContactListFilter createFromParcel(Parcel source) {
220 return new ContactListFilter(filterType, accountType, accountName, dataSet, null);
224 public ContactListFilter[] newArray(int size) {
225 return new ContactListFilter[size];