Lines Matching defs:ContactListFilter
29 * Manages {@link ContactListFilter}. All methods must be called from UI thread.
33 public static final String CONTACT_LIST_FILTER_SERVICE = "contactListFilter";
53 public abstract ContactListFilter getFilter();
61 public abstract void setContactListFilter(ContactListFilter filter, boolean persistent);
68 * {@link ContactListFilter#FILTER_TYPE_ACCOUNT} type, for example. It may also happen if
69 * the current filter is {@link ContactListFilter#FILTER_TYPE_SINGLE_CONTACT}, in
76 * Stores the {@link ContactListFilter} selected by the user and saves it to
83 private ContactListFilter mFilter;
87 mFilter = ContactListFilter.restoreDefaultPreferences(getSharedPreferences());
102 public ContactListFilter getFilter() {
111 public void setContactListFilter(ContactListFilter filter, boolean persistent) {
115 private void setContactListFilter(ContactListFilter filter, boolean persistent,
120 ContactListFilter.storeToPreferences(getSharedPreferences(), mFilter);
130 setContactListFilter(ContactListFilter.createFilterWithType(
131 ContactListFilter.FILTER_TYPE_CUSTOM), true);
147 case ContactListFilter.FILTER_TYPE_SINGLE_CONTACT:
149 ContactListFilter.restoreDefaultPreferences(getSharedPreferences()),
152 case ContactListFilter.FILTER_TYPE_ACCOUNT:
156 setContactListFilter(ContactListFilter.createFilterWithType(
157 ContactListFilter.FILTER_TYPE_ALL_ACCOUNTS), true, notifyListeners);