OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Suggestion
(Results
1 - 25
of
41
) sorted by null
1
2
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
SuggestionFilter.java
23
* Determines if a
suggestion
should be added to the promoted
suggestion
list.
25
* @param s The
suggestion
in question
28
boolean accept(
Suggestion
s);
ResultFilter.java
26
public boolean accept(
Suggestion
s) {
SingleCorpusResultsPromoter.java
27
protected boolean accept(
Suggestion
s) {
ListSuggestionCursor.java
48
public ListSuggestionCursor(String userQuery,
Suggestion
...suggestions) {
50
for (
Suggestion
suggestion
: suggestions) {
51
add(
suggestion
);
61
* Adds a
suggestion
from another
suggestion
cursor.
63
* @return {@code true} if the
suggestion
was added.
65
public boolean add(
Suggestion
suggestion
) {
66
mSuggestions.add(new Entry(
suggestion
));
[
all
...]
ShortcutRefresher.java
44
void refresh(
Suggestion
shortcut, Listener listener);
Suggestion.java
23
public interface
Suggestion
{
26
* Gets the source that produced the current
suggestion
.
31
* Gets the shortcut ID of the current
suggestion
.
49
* Gets the first text line for the current
suggestion
.
54
* Gets the second text line for the current
suggestion
.
59
* Gets the second text line URL for the current
suggestion
.
64
* Gets the left-hand-side icon for the current
suggestion
.
71
* Gets the right-hand-side icon for the current
suggestion
.
78
* Gets the intent action for the current
suggestion
.
83
* Gets the name of the activity that the intent for the current
suggestion
will be sent to
[
all
...]
SuggestionCursor.java
27
public interface SuggestionCursor extends
Suggestion
, QuietlyCloseable {
30
* Gets the query that the user typed to get this
suggestion
.
42
* Moves to a given
suggestion
.
50
* Moves to the next
suggestion
, if there is one.
52
* @return {@code false} if there is no next
suggestion
.
SuggestionPosition.java
21
* A pointer to a
suggestion
in a {@link SuggestionCursor}.
44
* Gets the
suggestion
cursor, moved to point to the right
suggestion
.
47
protected
Suggestion
current() {
ListSuggestionCursorNoDuplicates.java
40
public boolean add(
Suggestion
suggestion
) {
41
String key = SuggestionUtils.getSuggestionKey(
suggestion
);
43
return super.add(
suggestion
);
AbstractSuggestionWrapper.java
21
* A
Suggestion
that delegates all calls to other suggestions.
23
public abstract class AbstractSuggestionWrapper implements
Suggestion
{
26
* Gets the current
suggestion
.
28
protected abstract
Suggestion
current();
AbstractPromoter.java
48
protected boolean accept(
Suggestion
s) {
SingleCorpusPromoter.java
62
protected boolean accept(
Suggestion
s) {
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ui/
SuggestionView.java
19
import com.android.quicksearchbox.
Suggestion
;
26
* Set the view's contents based on the given
suggestion
.
28
void bindAsSuggestion(
Suggestion
suggestion
, String userQuery);
SuggestionViewFactory.java
19
import com.android.quicksearchbox.
Suggestion
;
28
* Factory interface for
suggestion
views.
37
* View types must be unique across all
suggestion
view factories.
42
* Returns the view type to be used for displaying the given
suggestion
. This MUST correspond to
45
String getViewType(
Suggestion
suggestion
);
48
* Gets a view corresponding to the current
suggestion
in the given cursor.
54
* @return A View corresponding to the data within this
suggestion
.
56
View getView(SuggestionCursor
suggestion
, String userQuery, View convertView, ViewGroup parent);
59
* Checks whether this factory can create views for the given
suggestion
[
all
...]
SuggestionViewInflater.java
19
import com.android.quicksearchbox.
Suggestion
;
31
*
Suggestion
view factory that inflates views from XML.
62
public View getView(SuggestionCursor
suggestion
, String userQuery,
71
((SuggestionView) convertView).bindAsSuggestion(
suggestion
, userQuery);
75
public String getViewType(
Suggestion
suggestion
) {
79
public boolean canCreateView(
Suggestion
suggestion
) {
ContactSuggestionView.java
22
import com.android.quicksearchbox.
Suggestion
;
60
public void bindAsSuggestion(
Suggestion
suggestion
, String userQuery) {
61
super.bindAsSuggestion(
suggestion
, userQuery);
62
mQuickContact.assignContactUri(Uri.parse(
suggestion
.getSuggestionIntentDataString()));
78
public boolean canCreateView(
Suggestion
suggestion
) {
79
Source source =
suggestion
.getSuggestionSource();
DefaultSuggestionViewFactory.java
18
import com.android.quicksearchbox.
Suggestion
;
30
*
Suggestion
view factory for Google suggestions.
63
public View getView(SuggestionCursor
suggestion
, String userQuery,
66
if (factory.canCreateView(
suggestion
)) {
67
return factory.getView(
suggestion
, userQuery, convertView, parent);
70
return mDefaultFactory.getView(
suggestion
, userQuery, convertView, parent);
73
public String getViewType(
Suggestion
suggestion
) {
75
if (factory.canCreateView(
suggestion
)) {
76
return factory.getViewType(
suggestion
);
[
all
...]
WebSearchSuggestionView.java
21
import com.android.quicksearchbox.
Suggestion
;
58
public void bindAsSuggestion(
Suggestion
suggestion
, String userQuery) {
59
super.bindAsSuggestion(
suggestion
, userQuery);
62
suggestion
.getSuggestionText1());
64
setIsHistorySuggestion(
suggestion
.isHistorySuggestion());
97
public boolean canCreateView(
Suggestion
suggestion
) {
98
return
suggestion
.isWebSearchSuggestion();
BaseSuggestionView.java
20
import com.android.quicksearchbox.
Suggestion
;
31
* Base class for
suggestion
views.
63
public void bindAsSuggestion(
Suggestion
suggestion
, String userQuery) {
65
if (isFromHistory(
suggestion
)) {
79
protected boolean isFromHistory(
Suggestion
suggestion
) {
80
return
suggestion
.isSuggestionShortcut() ||
suggestion
.isHistorySuggestion();
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
MockShortcutRefresher.java
31
public void refresh(
Suggestion
shortcut, Listener listener) {
ResultPromoterTest.java
38
private
Suggestion
mS11;
39
private
Suggestion
mS12;
40
private
Suggestion
mS21;
41
private
Suggestion
mS22;
42
private
Suggestion
mWeb1;
43
private
Suggestion
mWeb2;
108
private SuggestionCursor cursor(
Suggestion
... suggestions) {
WebPromoterTest.java
38
private
Suggestion
mS11;
39
private
Suggestion
mS12;
40
private
Suggestion
mS21;
41
private
Suggestion
mS22;
42
private
Suggestion
mWeb1;
43
private
Suggestion
mWeb2;
108
private SuggestionCursor cursor(
Suggestion
... suggestions) {
113
for (
Suggestion
s : iterable(expected)) {
114
assertTrue("Not a web
suggestion
", s.isWebSearchSuggestion());
SuggestionCursorUtil.java
81
for (
Suggestion
expectedSuggestion : iterable(expected)) {
84
for (
Suggestion
observedSuggestion : iterable(observed)) {
89
public static void assertContainsSuggestion(
Suggestion
expected, SuggestionCursor observed) {
90
for (
Suggestion
observedSuggestion : iterable(observed)) {
98
public static Iterable<
Suggestion
> iterable(final SuggestionCursor cursor) {
99
return new Iterable<
Suggestion
>() {
101
public Iterator<
Suggestion
> iterator() {
107
public static UnmodifiableIterator<
Suggestion
> iterator(final SuggestionCursor cursor) {
108
return new UnmodifiableIterator<
Suggestion
>() {
116
public
Suggestion
next()
[
all
...]
BlendingPromoterTest.java
32
private
Suggestion
mS11;
33
private
Suggestion
mS12;
34
private
Suggestion
mS21;
35
private
Suggestion
mS22;
36
private
Suggestion
mWeb1;
37
private
Suggestion
mWeb2;
160
private SuggestionCursor cursor(
Suggestion
... suggestions) {
/external/clang/lib/Frontend/
Warnings.cpp
39
StringRef
Suggestion
= DiagnosticIDs::getNearestWarningOption(Opt);
40
if (!
Suggestion
.empty())
43
<< (Prefix.str() += Opt) << (Prefix.str() +=
Suggestion
);
Completed in 2325 milliseconds
1
2