14572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood/*
24572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * Copyright (C) 2010 The Android Open Source Project
34572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood *
44572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * Licensed under the Apache License, Version 2.0 (the "License");
54572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * you may not use this file except in compliance with the License.
64572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * You may obtain a copy of the License at
74572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood *
84572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood *      http://www.apache.org/licenses/LICENSE-2.0
94572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood *
104572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * Unless required by applicable law or agreed to in writing, software
114572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * distributed under the License is distributed on an "AS IS" BASIS,
124572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
134572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * See the License for the specific language governing permissions and
144572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood * limitations under the License.
154572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood */
164572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwoodpackage com.android.quicksearchbox;
174572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood
18b83882b9efa37ec0f20a0f1c85cf5ccc93194aeeBjorn Bringert/**
19af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood * Interface for choosing which suggestions to include in a promoted list.
20b83882b9efa37ec0f20a0f1c85cf5ccc93194aeeBjorn Bringert */
21af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwoodpublic interface SuggestionFilter {
22af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood    /**
23af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood     * Determines if a suggestion should be added to the promoted suggestion list.
24af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood     *
25af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood     * @param s The suggestion in question
26af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood     * @return true to include it in the results
27af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood     */
28af1ca2cc65a2c2fdf6f396126e235d64e4da0936Mathew Inwood    boolean accept(Suggestion s);
294572856ac85bb53ea06e65d00beebdf336af9b27Mathew Inwood}
30