OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Suggestion
(Results
1 - 19
of
19
) sorted by null
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
SuggestionViewFactory.java
19
import com.android.quicksearchbox.
Suggestion
;
25
* Creates
suggestion
views.
30
* Gets the number of distinct
suggestion
view types created by this factory.
35
* Gets the view type associated with a given
suggestion
.
37
int getSuggestionViewType(
Suggestion
suggestion
);
40
* Gets a
suggestion
view, possibly recycling convertView.
SuggestionViewInflater.java
20
import com.android.quicksearchbox.
Suggestion
;
29
* Inflates
suggestion
views.
33
// The
suggestion
view classes that may be returned by this factory.
41
R.layout.
suggestion
,
62
public int getSuggestionViewType(
Suggestion
suggestion
) {
63
return isContactSuggestion(
suggestion
) ? 1 : 0;
76
private boolean isContactSuggestion(
Suggestion
suggestion
) {
77
String intentData =
suggestion
.getSuggestionIntentDataString()
[
all
...]
DefaultSuggestionView.java
22
import com.android.quicksearchbox.
Suggestion
;
90
public void bindAsSuggestion(SuggestionCursor
suggestion
, SuggestionClickListener onClick) {
93
mPosition =
suggestion
.getPosition();
96
CharSequence text1 = formatText(
suggestion
.getSuggestionText1(),
suggestion
, true);
97
CharSequence text2 =
suggestion
.getSuggestionText2Url();
101
text2 = formatText(
suggestion
.getSuggestionText2(),
suggestion
, false);
103
Drawable icon1 = getSuggestionDrawableIcon1(
suggestion
);
104
Drawable icon2 = getSuggestionDrawableIcon2(
suggestion
);
[
all
...]
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
ListSuggestionCursor.java
35
private final ArrayList<
Suggestion
> mSuggestions;
44
public ListSuggestionCursor(String userQuery,
Suggestion
...suggestions) {
46
for (
Suggestion
suggestion
: suggestions) {
47
mSuggestions.add(
suggestion
);
53
mSuggestions = new ArrayList<
Suggestion
>(capacity);
57
* Adds a
suggestion
from another
suggestion
cursor.
59
* @return {@code true} if the
suggestion
was added.
61
public boolean add(
Suggestion
suggestion)
[
all
...]
SuggestionCursor.java
23
public interface SuggestionCursor extends
Suggestion
{
26
* Gets the query that the user typed to get this
suggestion
.
38
* Moves to a given
suggestion
.
46
* Moves to the next
suggestion
, if there is one.
48
* @return {@code false} if there is no next
suggestion
.
AbstractSuggestionWrapper.java
19
* A
Suggestion
that delegates all calls to other suggestions.
21
public abstract class AbstractSuggestionWrapper implements
Suggestion
{
24
* Gets the current
suggestion
.
26
protected abstract
Suggestion
current();
ShortcutRefresher.java
46
void refresh(
Suggestion
shortcut, Listener listener);
Suggestion.java
21
public interface
Suggestion
{
24
* Gets the source that produced the current
suggestion
.
29
* Gets the shortcut ID of the current
suggestion
.
47
* Gets the first text line for the current
suggestion
.
52
* Gets the second text line for the current
suggestion
.
57
* Gets the second text line URL for the current
suggestion
.
62
* Gets the left-hand-side icon for the current
suggestion
.
69
* Gets the right-hand-side icon for the current
suggestion
.
76
* Gets the intent action for the current
suggestion
.
81
* Gets the extra data associated with this
suggestion
's intent
[
all
...]
SuggestionPosition.java
21
* A pointer to a
suggestion
in a {@link SuggestionCursor}.
40
* Gets the
suggestion
cursor, moved to point to the right
suggestion
.
42
protected
Suggestion
current() {
ListSuggestionCursorNoDuplicates.java
40
public boolean add(
Suggestion
suggestion
) {
41
String key = getSuggestionKey(
suggestion
);
43
return super.add(
suggestion
);
51
* Gets a unique key that identifies a
suggestion
. This is used to avoid
54
private String getSuggestionKey(
Suggestion
suggestion
) {
55
String action = makeKeyComponent(
suggestion
.getSuggestionIntentAction());
56
String data = makeKeyComponent(normalizeUrl(
suggestion
.getSuggestionIntentDataString()));
57
String query = makeKeyComponent(normalizeUrl(
suggestion
.getSuggestionQuery()))
[
all
...]
SuggestionCursorBackedCursor.java
71
private
Suggestion
get() {
ShortcutCursor.java
84
public void refresh(
Suggestion
shortcut) {
SourceShortcutRefresher.java
49
public void refresh(
Suggestion
shortcut, Listener listener) {
SuggestionData.java
28
public class SuggestionData implements
Suggestion
{
ShortcutRepositoryImplLog.java
269
private boolean shouldRefresh(
Suggestion
suggestion
) {
270
return mRefresher.shouldRefresh(
suggestion
.getSuggestionSource(),
271
suggestion
.getShortcutId());
441
private ContentValues makeShortcutRow(
Suggestion
suggestion
) {
442
String intentAction =
suggestion
.getSuggestionIntentAction();
443
String intentData =
suggestion
.getSuggestionIntentDataString();
444
String intentQuery =
suggestion
.getSuggestionQuery();
445
String intentExtraData =
suggestion
.getSuggestionIntentExtraData()
[
all
...]
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockShortcutRefresher.java
31
public void refresh(
Suggestion
shortcut, Listener listener) {
ShortcutLimitingPromoterTest.java
33
private
Suggestion
mS11;
34
private
Suggestion
mS12;
35
private
Suggestion
mS21;
36
private
Suggestion
mS22;
37
private
Suggestion
mWeb1;
38
private
Suggestion
mWeb2;
131
private ListSuggestionCursor cursor(
Suggestion
... suggestions) {
SuggestionCursorUtil.java
89
public static void assertSuggestionEquals(
Suggestion
expected,
Suggestion
observed) {
93
public static void assertSuggestionEquals(String message,
Suggestion
expected,
94
Suggestion
observed) {
MockSource.java
133
public
Suggestion
createSuggestion(String query) {
Completed in 1535 milliseconds