Home
last modified time | relevance | path

Searched refs:DatabaseResultLoader (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/search2/
DDatabaseResultLoaderTest.java61 private DatabaseResultLoader loader;
93 loader = new DatabaseResultLoader(mContext, "title", mSiteMapManager); in testMatchTitle()
100 loader = new DatabaseResultLoader(mContext, "summary", mSiteMapManager); in testMatchSummary()
106 loader = new DatabaseResultLoader(mContext, "keywords", mSiteMapManager); in testMatchKeywords()
112 loader = new DatabaseResultLoader(mContext, "entries", mSiteMapManager); in testMatchEntries()
119 loader = new DatabaseResultLoader(mContext, "usage", mSiteMapManager); in testSpecialCaseWord_matchesNonPrefix()
126 loader = new DatabaseResultLoader(mContext, " space ", mSiteMapManager); in testSpecialCaseSpace_matches()
133 loader = new DatabaseResultLoader(mContext, "wifi", mSiteMapManager); in testSpecialCaseDash_matchesWordNoDash()
140 loader = new DatabaseResultLoader(mContext, "priorités", mSiteMapManager); in testSpecialCaseDash_matchesWordWithDash()
147 loader = new DatabaseResultLoader(mContext, "priorites", mSiteMapManager); in testSpecialCaseDash_matchesWordWithoutDash()
[all …]
DCursorToSearchResultConverterTest.java153 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testLongTitle_PenalizedInRank()
176 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testParseCursor_MatchesIntentForSubSettings()
213 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testParseCursor_MatchesIntentPayloadForExternalApps()
239 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testParseCursor_MatchesInlineSwitchPayload()
279 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testWifiKey_PrioritizedResult()
305 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testBluetoothKey_PrioritizedResult()
331 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testAirplaneKey_PrioritizedResult()
357 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testHotspotKey_PrioritizedResult()
383 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testBatterySaverKey_PrioritizedResult()
409 MatrixCursor cursor = new MatrixCursor(DatabaseResultLoader.SELECT_COLUMNS); in testNFCKey_PrioritizedResult()
[all …]
DMockDBLoader.java29 class MockDBLoader extends DatabaseResultLoader {
DSearchFragmentTest.java64 private DatabaseResultLoader mDatabaseResultLoader;
/packages/apps/Settings/src/com/android/settings/search2/
DCursorToSearchResultConverter.java46 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_CLASS_NAME;
47 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_ICON;
48 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_ID;
49 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_INTENT_ACTION;
50 import static com.android.settings.search2.DatabaseResultLoader
52 import static com.android.settings.search2.DatabaseResultLoader
54 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_KEY;
55 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_PAYLOAD;
56 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_PAYLOAD_TYPE;
57 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_SCREEN_TITLE;
[all …]
DSearchFeatureProviderImpl.java70 public DatabaseResultLoader getDatabaseSearchLoader(Context context, String query) { in getDatabaseSearchLoader()
71 return new DatabaseResultLoader(context, query, getSiteMapManager()); in getDatabaseSearchLoader()
DDatabaseResultLoader.java39 public class DatabaseResultLoader extends AsyncLoader<List<? extends SearchResult>> { class
107 public DatabaseResultLoader(Context context, String queryText, SiteMapManager mapManager) { in DatabaseResultLoader() method in DatabaseResultLoader
DDatabaseIndexingManager.java112 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_ID;
113 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_INTENT_ACTION_TARGET_P…
114 import static com.android.settings.search2.DatabaseResultLoader.COLUMN_INDEX_KEY;
115 import static com.android.settings.search2.DatabaseResultLoader.SELECT_COLUMNS;
DSearchFeatureProvider.java47 DatabaseResultLoader getDatabaseSearchLoader(Context context, String query); in getDatabaseSearchLoader()
DSearchResultsAdapter.java128 .get(DatabaseResultLoader.class.getName()); in displaySearchResults()
/packages/apps/Settings/tests/robotests/src/com/android/settings/search/
DSearchResultsAdapterTest.java31 import com.android.settings.search2.DatabaseResultLoader;
73 mLoaderClassName = DatabaseResultLoader.class.getName(); in setUp()
111 mAdapter.addSearchResults(getDummyDbResults(), DatabaseResultLoader.class.getName()); in testEndToEndSearch_properResultsMerged_correctOrder()
127 mAdapter.addSearchResults(dbResults.subList(0,1), DatabaseResultLoader.class.getName()); in testEndToEndSearch_addResults_resultsAddedInOrder()
131 mAdapter.addSearchResults(dbResults, DatabaseResultLoader.class.getName()); in testEndToEndSearch_addResults_resultsAddedInOrder()
145 mAdapter.addSearchResults(dbResults, DatabaseResultLoader.class.getName()); in testEndToEndSearch_removeResults_resultsAdded()
150 mAdapter.addSearchResults(dbResults.subList(0,1), DatabaseResultLoader.class.getName()); in testEndToEndSearch_removeResults_resultsAdded()