Home
last modified time | relevance | path

Searched refs:SearchManager (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/app/
DSearchManagerTest.java23 import android.app.SearchManager;
114 SearchManager searchManager1 = (SearchManager) in testSearchManagerAvailable()
117 SearchManager searchManager2 = (SearchManager) in testSearchManagerAvailable()
128 SearchManager searchManager = (SearchManager) in testStartSearchIdempotent()
142 SearchManager searchManager = (SearchManager) in testStopSearchIdempotent()
157 SearchManager searchManager = (SearchManager) in testSearchManagerInvocations()
DSuggestionProvider.java19 import android.app.SearchManager;
41 sURLMatcher.addURI("*", SearchManager.SUGGEST_URI_PATH_QUERY,
43 sURLMatcher.addURI("*", SearchManager.SUGGEST_URI_PATH_QUERY + "/*",
49 SearchManager.SUGGEST_COLUMN_TEXT_1,
50 SearchManager.SUGGEST_COLUMN_INTENT_ACTION,
51 SearchManager.SUGGEST_COLUMN_QUERY
90 return SearchManager.SUGGEST_MIME_TYPE; in getType()
/frameworks/base/core/java/android/content/
DSearchRecentSuggestionsProvider.java19 import android.app.SearchManager;
188 mUriMatcher.addURI(mAuthority, SearchManager.SUGGEST_URI_PATH_QUERY, URI_MATCH_SUGGEST); in setupSuggestions()
194 "0 AS " + SearchManager.SUGGEST_COLUMN_FORMAT, in setupSuggestions()
197 + SearchManager.SUGGEST_COLUMN_ICON_1, in setupSuggestions()
198 "display1 AS " + SearchManager.SUGGEST_COLUMN_TEXT_1, in setupSuggestions()
199 "display2 AS " + SearchManager.SUGGEST_COLUMN_TEXT_2, in setupSuggestions()
200 "query AS " + SearchManager.SUGGEST_COLUMN_QUERY, in setupSuggestions()
207 "0 AS " + SearchManager.SUGGEST_COLUMN_FORMAT, in setupSuggestions()
210 + SearchManager.SUGGEST_COLUMN_ICON_1, in setupSuggestions()
211 "display1 AS " + SearchManager.SUGGEST_COLUMN_TEXT_1, in setupSuggestions()
[all …]
/frameworks/base/docs/html/training/tv/discovery/
Dsearchable.jd56 <p>The {@link android.app.SearchManager} describes the data fields it expects by representing them …
63 <p>The {@link android.app.SearchManager} class includes several columns for Android TV. Some of the
99 <li>{@link android.app.SearchManager#SUGGEST_COLUMN_TEXT_1}</li>
100 <li>{@link android.app.SearchManager#SUGGEST_COLUMN_CONTENT_TYPE}</li>
101 <li>{@link android.app.SearchManager#SUGGEST_COLUMN_PRODUCTION_YEAR}</li>
102 <li>{@link android.app.SearchManager#SUGGEST_COLUMN_DURATION}</li>
116 public static final String KEY_NAME = SearchManager.SUGGEST_COLUMN_TEXT_1;
117 public static final String KEY_DESCRIPTION = SearchManager.SUGGEST_COLUMN_TEXT_2;
118 public static final String KEY_ICON = SearchManager.SUGGEST_COLUMN_RESULT_CARD_IMAGE;
119 public static final String KEY_DATA_TYPE = SearchManager.SUGGEST_COLUMN_CONTENT_TYPE;
[all …]
/frameworks/base/core/java/android/widget/
DSuggestionsAdapter.java20 import android.app.SearchManager;
67 private final SearchManager mSearchManager;
104 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in SuggestionsAdapter()
238 ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS) in updateSpinnerState()
243 && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) { in updateSpinnerState()
268 mText1Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1); in changeCursor()
269 mText2Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2); in changeCursor()
270 mText2UrlCol = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2_URL); in changeCursor()
271 mIconName1Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_1); in changeCursor()
272 mIconName2Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_2); in changeCursor()
[all …]
DSearchView.java23 import android.app.SearchManager;
1631 intent.putExtra(SearchManager.USER_QUERY, mUserQuery); in createIntent()
1633 intent.putExtra(SearchManager.QUERY, query); in createIntent()
1636 intent.putExtra(SearchManager.EXTRA_DATA_KEY, extraData); in createIntent()
1639 intent.putExtra(SearchManager.APP_DATA, mAppSearchData); in createIntent()
1642 intent.putExtra(SearchManager.ACTION_KEY, actionKey); in createIntent()
1643 intent.putExtra(SearchManager.ACTION_MSG, actionMsg); in createIntent()
1684 queryExtras.putParcelable(SearchManager.APP_DATA, mAppSearchData); in createVoiceAppSearchIntent()
1741 String action = getColumnString(c, SearchManager.SUGGEST_COLUMN_INTENT_ACTION); in createIntentFromSuggestion()
1751 String data = getColumnString(c, SearchManager.SUGGEST_COLUMN_INTENT_DATA); in createIntentFromSuggestion()
[all …]
/frameworks/support/v7/appcompat/src/android/support/v7/widget/
DSuggestionsAdapter.java19 import android.app.SearchManager;
68 private final SearchManager mSearchManager;
97 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in SuggestionsAdapter()
199 ? extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS) in updateSpinnerState()
204 && extras.getBoolean(SearchManager.CURSOR_EXTRA_KEY_IN_PROGRESS)) { in updateSpinnerState()
227 mText1Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_1); in changeCursor()
228 mText2Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2); in changeCursor()
229 mText2UrlCol = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2_URL); in changeCursor()
230 mIconName1Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_1); in changeCursor()
231 mIconName2Col = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_ICON_2); in changeCursor()
[all …]
DSearchView.java23 import android.app.SearchManager;
1590 intent.putExtra(SearchManager.USER_QUERY, mUserQuery); in createIntent()
1592 intent.putExtra(SearchManager.QUERY, query); in createIntent()
1595 intent.putExtra(SearchManager.EXTRA_DATA_KEY, extraData); in createIntent()
1598 intent.putExtra(SearchManager.APP_DATA, mAppSearchData); in createIntent()
1601 intent.putExtra(SearchManager.ACTION_KEY, actionKey); in createIntent()
1602 intent.putExtra(SearchManager.ACTION_MSG, actionMsg); in createIntent()
1647 queryExtras.putParcelable(SearchManager.APP_DATA, mAppSearchData); in createVoiceAppSearchIntent()
1706 String action = getColumnString(c, SearchManager.SUGGEST_COLUMN_INTENT_ACTION); in createIntentFromSuggestion()
1716 String data = getColumnString(c, SearchManager.SUGGEST_COLUMN_INTENT_DATA); in createIntentFromSuggestion()
[all …]
/frameworks/base/core/tests/coretests/src/android/provider/
DSearchRecentSuggestionsProviderTest.java19 import android.app.SearchManager;
167 int colQuery = c.getColumnIndexOrThrow(SearchManager.SUGGEST_COLUMN_QUERY); in testReordering()
168 int colDisplay1 = c.getColumnIndexOrThrow(SearchManager.SUGGEST_COLUMN_TEXT_1); in testReordering()
169 int colDisplay2 = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2); in testReordering()
325 int colQuery = c.getColumnIndexOrThrow(SearchManager.SUGGEST_COLUMN_QUERY); in checkResultCounts()
326 int colDisplay1 = c.getColumnIndexOrThrow(SearchManager.SUGGEST_COLUMN_TEXT_1); in checkResultCounts()
327 int colDisplay2 = c.getColumnIndex(SearchManager.SUGGEST_COLUMN_TEXT_2); in checkResultCounts()
387 '/' + SearchManager.SUGGEST_URI_PATH_QUERY; in getQueryCursor()
/frameworks/ex/common/java/com/android/common/
DSearch.java19 import android.app.SearchManager;
101 uriBuilder.appendPath(SearchManager.SUGGEST_URI_PATH_QUERY); in getSuggestions()
114 uriBuilder.appendQueryParameter(SearchManager.SUGGEST_PARAMETER_LIMIT, in getSuggestions()
/frameworks/base/docs/html/guide/topics/search/
Dadding-custom-suggestions.jd30 <li>{@link android.app.SearchManager}</li>
194 android.app.SearchManager#SUGGEST_URI_PATH_QUERY}</em>
200 android.app.SearchManager#SUGGEST_URI_PATH_QUERY}</em>/puppies
209 android.app.SearchManager#SUGGEST_URI_PATH_QUERY} is not the literal
338 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_TEXT_1}</dt>
346 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_TEXT_2}</dt>
350 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_ICON_1}</dt>
354 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_ICON_2}</dt>
358 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_INTENT_ACTION}</dt>
365 <dt>{@link android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA}</dt>
[all …]
Dsearch-dialog.jd39 <li>{@link android.app.SearchManager}</li>
204 searchable activity retrieves the query from the intent's {@link android.app.SearchManager#QUERY
282 {@link android.app.SearchManager#QUERY QUERY} string extra. You must check for
295 String query = intent.getStringExtra(SearchManager.QUERY);
301 <p>The {@link android.app.SearchManager#QUERY QUERY} string is always included with
518 closed with {@link android.app.SearchManager#setOnDismissListener(SearchManager.OnDismissListener)
520 and/or {@link android.app.SearchManager#setOnCancelListener(SearchManager.OnCancelListener)
522 should need to register only the {@link android.app.SearchManager.OnDismissListener
524 android.app.SearchManager.OnCancelListener OnCancelListener} only pertains to events in which the
565 String query = intent.getStringExtra(SearchManager.QUERY);
[all …]
Dsearchable-config.jd96 <td>Use the value from the {@link android.app.SearchManager#SUGGEST_COLUMN_TEXT_1}
102 {@link android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA} column to rewrite the
104 {@link android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA} are suitable for user
167 android.app.SearchManager#SUGGEST_COLUMN_INTENT_ACTION} column), this value is placed in the action
174 android.app.SearchManager#SUGGEST_COLUMN_INTENT_DATA} column), this value is
317 {@link android.content.Intent#getIntExtra getIntExtra(SearchManager.ACTION_KEY)}. Not all
327 getStringExtra(SearchManager.ACTION_MSG)}.</dd>
335 getStringExtra(SearchManager.ACTION_MSG)}. This should only be used if all your
353 android.content.Intent#getStringExtra getStringExtra(SearchManager.ACTION_MSG)}. If the data
/frameworks/base/core/java/android/app/
DSearchDialog.java124 public SearchDialog(Context context, SearchManager searchManager) { in SearchDialog()
252 SearchManager searchManager = (SearchManager) in show()
594 intent.putExtra(SearchManager.USER_QUERY, mUserQuery); in createIntent()
596 intent.putExtra(SearchManager.QUERY, query); in createIntent()
599 intent.putExtra(SearchManager.EXTRA_DATA_KEY, extraData); in createIntent()
602 intent.putExtra(SearchManager.APP_DATA, mAppSearchData); in createIntent()
605 intent.putExtra(SearchManager.ACTION_KEY, actionKey); in createIntent()
606 intent.putExtra(SearchManager.ACTION_MSG, actionMsg); in createIntent()
DSearchManager.java60 public class SearchManager class
550 /*package*/ SearchManager(Context context, Handler handler) { in SearchManager() method in SearchManager
901 uriBuilder.appendPath(SearchManager.SUGGEST_URI_PATH_QUERY); in getSuggestions()
/frameworks/support/v4/honeycomb/android/support/v4/widget/
DSearchViewCompatHoneycomb.java19 import android.app.SearchManager;
47 SearchManager searchManager = (SearchManager) in setSearchableInfo()
/frameworks/base/core/java/com/android/internal/policy/
DPhoneFallbackEventHandler.java20 import android.app.SearchManager;
49 SearchManager mSearchManager;
277 SearchManager getSearchManager() { in getSearchManager()
279 mSearchManager = (SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE); in getSearchManager()
/frameworks/base/core/java/com/android/internal/app/
DAssistUtils.java19 import android.app.SearchManager;
147 Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in getAssistComponentForUser()
/frameworks/base/services/tests/servicestests/src/com/android/server/search/
DSearchablesTest.java19 import android.app.SearchManager;
332 || intent.getAction().equals(SearchManager.INTENT_ACTION_GLOBAL_SEARCH)); in queryIntentActivities()
347 || intent.getAction().equals(SearchManager.INTENT_ACTION_GLOBAL_SEARCH)); in resolveActivity()
/frameworks/base/services/core/java/com/android/server/search/
DSearchManagerService.java24 import android.app.SearchManager;
171 Intent intent = new Intent(SearchManager.INTENT_ACTION_SEARCHABLES_CHANGED); in updateSearchables()
197 Intent intent = new Intent(SearchManager.INTENT_GLOBAL_SEARCH_ACTIVITY_CHANGED); in onChange()
DSearchables.java20 import android.app.SearchManager;
286 Intent intent = new Intent(SearchManager.INTENT_ACTION_GLOBAL_SEARCH); in findGlobalSearchActivities()
321 Intent intent = new Intent(SearchManager.INTENT_ACTION_GLOBAL_SEARCH); in isInstalled()
/frameworks/base/docs/html/training/search/
Dbackward-compat.jd77 SearchManager searchManager =
78 (SearchManager) getSystemService(Context.SEARCH_SERVICE);
Dsetup.jd124 SearchManager searchManager =
125 (SearchManager) getSystemService(Context.SEARCH_SERVICE);
135 <p>The call to {@link android.app.SearchManager#getSearchableInfo getSearchableInfo()} obtains a
187 String query = intent.getStringExtra(SearchManager.QUERY);
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/
DAssistManager.java7 import android.app.SearchManager;
171 final Intent intent = ((SearchManager) mContext.getSystemService(Context.SEARCH_SERVICE)) in startAssistActivity()
/frameworks/base/tests/MusicServiceDemo/src/com/example/android/musicservicedemo/
DBrowserService.java19 import android.app.SearchManager;

12