HomeSort by relevance Sort by last modified time
    Searched refs:MockSource (Results 1 - 18 of 18) sorted by null

  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
SearchableCorporaTest.java 37 private static final MockCorpus CORPUS_1 = new MockCorpus(MockSource.SOURCE_1);
38 private static final MockCorpus CORPUS_DISABLED = new MockCorpus(MockSource.SOURCE_2);
39 private static final MockCorpus CORPUS_NOT_IN_ALL = new MockCorpus(MockSource.SOURCE_3) {
45 private static final MockCorpus CORPUS_WEB = new MockCorpus(MockSource.WEB_SOURCE);
58 sources.addSource(MockSource.SOURCE_1);
59 sources.addSource(MockSource.SOURCE_2);
60 sources.addSource(MockSource.SOURCE_3);
61 sources.addSource(MockSource.WEB_SOURCE);
86 assertEquals(CORPUS_1, mCorpora.getCorpusForSource(MockSource.SOURCE_1));
87 assertNull(mCorpora.getCorpusForSource(new MockSource("foo")))
    [all...]
MockSource.java 33 public class MockSource implements Source {
35 public static final MockSource SOURCE_1 = new MockSource("SOURCE_1");
37 public static final MockSource SOURCE_2 = new MockSource("SOURCE_2");
39 public static final MockSource SOURCE_3 = new MockSource("SOURCE_3");
41 public static final MockSource WEB_SOURCE = new MockSource("WEB") {
60 public MockSource(String name)
    [all...]
MultiSourceCorpusTest.java 47 MockSource.SOURCE_1, MockSource.SOURCE_2);
52 MockSource.SOURCE_1, MockSource.SOURCE_2);
57 MockSource.SOURCE_1.getSuggestions("foo", 50, false),
58 MockSource.SOURCE_2.getSuggestions("foo", 50, false));
ResultPromoterTest.java 55 mS11 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_1");
56 mS12 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_2");
57 mS21 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_1");
58 mS22 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_2");
59 mWeb1 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_1");
60 mWeb2 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_2");
MockCorpus.java 33 public static final Corpus CORPUS_1 = new MockCorpus(MockSource.SOURCE_1);
35 public static final Corpus CORPUS_2 = new MockCorpus(MockSource.SOURCE_2);
37 public static final Corpus WEB_CORPUS = new MockCorpus(MockSource.WEB_SOURCE);
133 return mSource.getName().equals(MockSource.WEB_SOURCE.getName());
WebPromoterTest.java 56 mS11 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_1");
57 mS12 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_2");
58 mS21 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_1");
59 mS22 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_2");
60 mWeb1 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_1");
61 mWeb2 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_2");
MockShortcutRepository.java 57 cursor.add(MockSource.SOURCE_1.createSuggestion(query + "_1_shortcut"));
58 cursor.add(MockSource.SOURCE_2.createSuggestion(query + "_2_shortcut"));
SingleCorpusPromoterTest.java 48 Source[] expectedSource = { MockSource.SOURCE_1, MockSource.SOURCE_1 };
BlendingPromoterTest.java 42 mS11 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_1");
43 mS12 = MockSource.SOURCE_1.createSuggestion(mQuery + "_1_2");
44 mS21 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_1");
45 mS22 = MockSource.SOURCE_2.createSuggestion(mQuery + "_1_2");
46 mWeb1 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_1");
47 mWeb2 = MockSource.WEB_SOURCE.createSuggestion(mQuery + "_web_2");
RankAwarePromoterTest.java 103 "MockSource Source" + expectedSource[i],
134 Source mockSource = new MockSource("Source" + i);
135 Corpus mockCorpus = new MockCorpus(mockSource, i < defaultCount);
142 Source mockSource = new MockSource("Shortcuts");
143 Corpus mockCorpus = new MockCorpus(mockSource, true);
ShouldQueryStrategyTest.java 44 public static final Corpus CORPUS_1 = new MockCorpus(MockSource.SOURCE_1) {
51 public static final Corpus CORPUS_2 = new MockCorpus(MockSource.SOURCE_2) {
SuggestionCursorWithExtrasTest.java 135 MockSource.SOURCE_1, "", expectedCursor);
154 MockSource.SOURCE_1, "", cursor);
ShortcutRepositoryTest.java 54 static final Source APP_SOURCE = new MockSource("com.example.app/.App");
56 static final Source APP_SOURCE_V2 = new MockSource("com.example.app/.App", 2);
58 static final Source CONTACTS_SOURCE = new MockSource("com.android.contacts/.Contacts");
60 static final Source BOOKMARKS_SOURCE = new MockSource("com.android.browser/.Bookmarks");
62 static final Source HISTORY_SOURCE = new MockSource("com.android.browser/.History");
64 static final Source MUSIC_SOURCE = new MockSource("com.android.music/.Music");
66 static final Source MARKET_SOURCE = new MockSource("com.android.vending/.Market");
72 static final Corpus WEB_CORPUS = new MockCorpus(MockSource.WEB_SOURCE);
134 mWeb1 = new SuggestionData(MockSource.WEB_SOURCE)
727 MockCorpus newCorpus = new MockCorpus(new MockSource("newsource"))
    [all...]
SourceShortcutRefresherTest.java 114 private class MockRefreshSource extends MockSource {
  /packages/apps/Gallery2/tests/src/com/android/gallery3d/data/
MockSource.java 21 class MockSource extends MediaSource {
28 public MockSource(GalleryApp context) {
MediaSetTest.java 35 dataManager.addSource(new MockSource(app));
  /external/antlr/antlr-3.4/runtime/Ruby/test/unit/
test-streams.rb 243 class MockSource
256 @source = MockSource.new
262 @source1 = MockSource.new
263 @source2 = MockSource.new
277 @source = MockSource.new
283 @source = MockSource.new
291 @source = MockSource.new
299 @source = MockSource.new
308 @source = MockSource.new
317 @source = MockSource.ne
    [all...]
  /external/antlr/antlr-3.4/runtime/Python/unittests/
teststreams.py 356 class MockSource(object):
369 self.source = MockSource()

Completed in 110 milliseconds