Searched defs:query (Results 26 - 50 of 117) sorted by relevance

12345

/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DQueryTask.java42 * Creates a new query task.
44 * @param query Query to run.
48 * get called on. If null, the method is called on the query thread.
52 public QueryTask(String query, int queryLimit, SuggestionCursorProvider<C> provider, argument
54 mQuery = query;
77 public static <C extends SuggestionCursor> void startQueries(String query, argument
84 QueryTask.startQuery(query, maxResultsPerProvider, provider,
89 public static <C extends SuggestionCursor> void startQuery(String query, argument
95 QueryTask<C> task = new QueryTask<C>(query, maxResultsPerProvider, provider, handler,
H A DShortcutCursor.java47 private ShortcutCursor(String query, SuggestionCursor shortcuts, Handler uiThread, argument
49 super(query);
58 ShortcutCursor(String query, Handler uiThread, argument
60 this(query, null, uiThread, refresher, repository);
H A DShortcutRepository.java26 * appropriate shortcuts for a given query.
62 * Gets shortcuts for a query.
64 * @param query The query. May be empty.
74 void getShortcutsForQuery(String query, Collection<Corpus> allowedCorpora, argument
H A DSingleSourceCorpus.java60 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) { argument
62 SourceResult sourceResult = mSource.getSuggestions(query, queryLimit, true);
64 return new SingleSourceCorpusResult(this, query, sourceResult, latency);
83 public Intent createSearchIntent(String query, Bundle appData) { argument
84 return mSource.createSearchIntent(query, appData);
H A DAbstractSource.java79 public Intent createSearchIntent(String query, Bundle appData) { argument
80 return createSourceSearchIntent(getIntentComponent(), query, appData);
83 public static Intent createSourceSearchIntent(ComponentName activity, String query, argument
95 intent.putExtra(SearchManager.USER_QUERY, query);
96 intent.putExtra(SearchManager.QUERY, query);
H A DShortcutsProvider.java90 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:ShortcutsProvider
173 String query = shortcut.getAsString(SearchManager.SUGGEST_COLUMN_QUERY);
187 suggestion.setSuggestionQuery(query);
H A DSource.java132 Intent createSearchIntent(String query, Bundle appData); argument
144 * @param query The user query.
148 SourceResult getSuggestions(String query, int queryLimit, boolean onlySource); argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/
H A DMockShortcutRepository.java45 public void getShortcutsForQuery(String query, Collection<Corpus> corporaToQuery, argument
47 ShortcutCursor cursor = getShortcutsForQuery(query, corporaToQuery);
54 public ShortcutCursor getShortcutsForQuery(String query, Collection<Corpus> corporaToQuery) { argument
56 ShortcutCursor cursor = new ShortcutCursor(query, null, null, null);
57 cursor.add(MockSource.SOURCE_1.createSuggestion(query + "_1_shortcut"));
58 cursor.add(MockSource.SOURCE_2.createSuggestion(query + "_2_shortcut"));
H A DRankAwarePromoterTest.java33 public static final String TEST_QUERY = "query";
123 private List<CorpusResult> getSuggestions(String query) { argument
126 results.add(corpus.getSuggestions(query, 10, false));
H A DMultiSourceCorpusTest.java67 private static ListSuggestionCursor concatSuggestionCursors(String query, argument
86 public Intent createSearchIntent(String query, Bundle appData) { argument
/packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/tests/
H A DCrashingIconProvider.java66 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:CrashingIconProvider
68 if (DBG) Log.d(TAG, "query(" + uri + ")");
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DVoicemailTable.java40 public Cursor query(UriData uriData, String[] projection, String selection, method in interface:VoicemailTable.Delegate
H A DCallLogProvider.java124 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:CallLogProvider
158 Cursor c = qb.query(db, projection, selectionBuilder.build(), selectionArgs, null, null,
H A DProfileProvider.java74 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:ProfileProvider
H A DSocialProvider.java231 final Cursor c = db.query(Tables.ACTIVITIES,
263 * we will run a query to find the updated records again and repeat recursively.
277 final Cursor c = db.query(Tables.ACTIVITIES,
323 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:SocialProvider
379 // Perform the query and set the notification uri
380 final Cursor c = qb.query(db, projection, selection, selectionArgs, null, null, sortOrder, limit);
H A DVoicemailStatusTable.java84 public Cursor query(UriData uriData, String[] projection, String selection, method in class:VoicemailStatusTable
93 Cursor c = qb.query(db, projection, combinedClause, selectionArgs, null, null, sortOrder);
/packages/apps/Browser/src/com/android/browser/search/
H A DSearchEngineInfo.java121 * Returns the URI for launching a web search with the given query (or null if there was no
124 public String getSearchUriForQuery(String query) { argument
125 return getFormattedUri(searchUri(), query);
129 * Returns the URI for retrieving web search suggestions for the given query (or null if there
132 public String getSuggestUriForQuery(String query) { argument
133 return getFormattedUri(suggestUri(), query);
156 private String getFormattedUri(String templateUri, String query) { argument
161 // Encode the query terms in the requested encoding (and fallback to UTF-8 if not).
164 return templateUri.replace(PARAMETER_SEARCH_TERMS, URLEncoder.encode(query, enc));
166 Log.e(TAG, "Exception occured when encoding query "
[all...]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DTextUtilities.java507 * Given a string of HTML text and a query containing any number of search terms, returns
511 * @param query the search terms
515 public static String highlightTermsInHtml(String text, String query) { argument
517 return highlightTerms(text, query, true).toString();
525 * Given a string of plain text and a query containing any number of search terms, returns
529 * @param query the search terms
532 public static CharSequence highlightTermsInText(String text, String query) { argument
534 return highlightTerms(text, query, false);
556 * Generate a version of the incoming text in which all search terms in a query are highlighted.
561 * @param query th
567 highlightTerms(String text, String query, boolean html) argument
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DAttachmentProvider.java109 Cursor c = getContext().getContentResolver().query(uri, MIME_TYPE_PROJECTION, null,
177 Cursor c = query(attachmentUri,
243 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:AttachmentProvider
264 Cursor c = getContext().getContentResolver().query(uri, PROJECTION_QUERY,
/packages/apps/Email/tests/src/com/android/email/activity/
H A DContactStatusLoaderTest.java82 // Contact doesn't exist -- provider returns null for the first query
97 // Result for the first query (the one for photo-id)
102 // Empty cursor for the second query
124 // Contact exists, but no photo (provider returns null for the second query)
126 // Result for the first query (the one for photo-id)
131 // No cursor for the second query
144 // Result for the first query (the one for photo-id)
149 // Prepare for the second query.
193 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:ContactStatusLoaderTest.MockContactProvider
/packages/apps/Mms/src/com/android/mms/
H A DTempFileProvider.java42 public Cursor query(Uri uri, String[] projection, method in class:TempFileProvider
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/
H A DAbstractGoogleSource.java54 * Called by QSB to get web suggestions for a query.
56 public abstract SourceResult queryInternal(String query); argument
59 * Called by external apps to get web suggestions for a query.
61 public abstract SourceResult queryExternal(String query); argument
92 public SourceResult getSuggestions(String query, int queryLimit, boolean onlySource) { argument
93 return emptyIfNull(queryInternal(query), query);
96 public SourceResult getSuggestionsExternal(String query) { argument
97 return emptyIfNull(queryExternal(query), query);
100 emptyIfNull(SourceResult result, String query) argument
[all...]
H A DGoogleSuggestClient.java84 public SourceResult queryInternal(String query) { argument
85 return query(query);
89 public SourceResult queryExternal(String query) { argument
90 return query(query);
97 private SourceResult query(String query) { argument
98 if (TextUtils.isEmpty(query)) {
106 query
[all...]
H A DGoogleSuggestionProvider.java66 private SourceResult emptyIfNull(SourceResult result, Source source, String query) { argument
67 return result == null ? new CursorBackedSourceResult(source, query) : result;
71 public Cursor query(Uri uri, String[] projection, String selection, method in class:GoogleSuggestionProvider
74 if (DBG) Log.d(TAG, "query uri=" + uri);
78 String query = getQuery(uri);
80 emptyIfNull(mSource.queryExternal(query), mSource, query));
/packages/apps/QuickSearchBox/tests/partial/src/com/android/quicksearchbox/tests/partial/
H A DPartialSuggestionProvider.java98 public Cursor query(Uri uri, String[] projectionIn, String selection, method in class:PartialSuggestionProvider
100 Log.d(TAG, "query(" + uri + ")");

Completed in 255 milliseconds

12345