OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:mExpectedCorpora
(Results
1 - 2
of
2
) sorted by null
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
SuggestionsTest.java
38
private List<Corpus>
mExpectedCorpora
;
42
mExpectedCorpora
= Arrays.asList(MockCorpus.CORPUS_1, MockCorpus.WEB_CORPUS);
43
mSuggestions = new Suggestions("foo",
mExpectedCorpora
);
55
assertEquals(
mExpectedCorpora
.size(), mSuggestions.getExpectedResultCount());
60
assertEquals(
mExpectedCorpora
.size(), expectedCorpora.size());
61
for (int i=0; i<
mExpectedCorpora
.size(); ++i) {
62
assertEquals(
mExpectedCorpora
.get(i), expectedCorpora.get(i));
67
for (int i=0; i<
mExpectedCorpora
.size(); ++i) {
68
assertTrue(mSuggestions.expectsCorpus(
mExpectedCorpora
.get(i)));
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
Suggestions.java
54
private final List<Corpus>
mExpectedCorpora
;
59
* in the same order as {@link #
mExpectedCorpora
}. There may be {@code null} items
73
mExpectedCorpora
= expectedCorpora;
74
mCorpusResults = new CorpusResult[
mExpectedCorpora
.size()];
75
// create a map of corpus name -> position in
mExpectedCorpora
for sorting later
78
for (int i = 0; i <
mExpectedCorpora
.size(); ++i) {
79
mCorpusPositions.put(
mExpectedCorpora
.get(i).getName(), i);
83
+ "\" expected corpora: " +
mExpectedCorpora
);
99
return
mExpectedCorpora
;
107
return
mExpectedCorpora
.size()
[
all
...]
Completed in 1298 milliseconds