Lines Matching defs:filter

28  * Contact list filter parameters.
42 * Obsolete filter which had been used in Honeycomb. This may be stored in
43 * {@link SharedPreferences}, but should be replaced with ALL filter when it is found.
45 * TODO: "group" filter and relevant variables are all obsolete. Remove them.
49 private static final String KEY_FILTER_TYPE = "filter.type";
50 private static final String KEY_ACCOUNT_NAME = "filter.accountName";
51 private static final String KEY_ACCOUNT_TYPE = "filter.accountType";
52 private static final String KEY_DATA_SET = "filter.dataSet";
81 * Returns true if this filter is based on data and may become invalid over time.
159 * Store the given {@link ContactListFilter} to preferences. If the requested filter is
163 public static void storeToPreferences(SharedPreferences prefs, ContactListFilter filter) {
164 if (filter != null && filter.filterType == FILTER_TYPE_SINGLE_CONTACT) {
168 .putInt(KEY_FILTER_TYPE, filter == null ? FILTER_TYPE_DEFAULT : filter.filterType)
169 .putString(KEY_ACCOUNT_NAME, filter == null ? null : filter.accountName)
170 .putString(KEY_ACCOUNT_TYPE, filter == null ? null : filter.accountType)
171 .putString(KEY_DATA_SET, filter == null ? null : filter.dataSet)
177 * If there's no info there, return ALL filter instead.
180 ContactListFilter filter = restoreFromPreferences(prefs);
181 if (filter == null) {
182 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS);
184 // "Group" filter is obsolete and thus is not exposed anymore. The "single contact mode"
186 if (filter.filterType == FILTER_TYPE_GROUP ||
187 filter.filterType == FILTER_TYPE_SINGLE_CONTACT) {
188 filter = ContactListFilter.createFilterWithType(FILTER_TYPE_ALL_ACCOUNTS);
190 return filter;
237 * Returns a string that can be used as a stable persistent identifier for this filter.
260 * @throws IllegalStateException if the filter type is not {@link #FILTER_TYPE_ACCOUNT}.
276 builder.append("[filter type: " + filterType + " (" + filterTypeToString(filterType) + ")");