/external/webkit/Source/JavaScriptCore/wtf/url/src/ |
URLSegments.cpp | 90 if (query.isValid()) { 91 if (type < Query || (type == Query && includeDelimiter)) 92 return query.begin() - 1; // Back over delimiter. 93 if (type == Query) 94 return query.begin(); // Don't want delimiter counted. 95 current = query.end();
|
URLSegments.h | 49 Query, 67 // Note that this can get a little funny for the port, query, and fragment 73 // delimited components that is present (the port and query) and one that 78 // Example input: http://foo:80/?query 86 // *Query: 14 15 <- 99 URLComponent query; member in class:WTF::URLSegments
|
/frameworks/base/core/java/android/database/sqlite/ |
SQLiteCursorDriver.java | 28 * Executes the query returning a Cursor over the result set. 34 Cursor query(CursorFactory factory, String[] bindArgs); method in interface:SQLiteCursorDriver
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
LevenshteinSuggestionFormatter.java | 40 public Spanned formatSuggestion(String query, String suggestion) { 41 if (DBG) Log.d(TAG, "formatSuggestion('" + query + "', '" + suggestion + "')"); 42 query = normalizeQuery(query); 43 final Token[] queryTokens = tokenize(query); 68 private String normalizeQuery(String query) { 69 return query.toLowerCase(); 75 * @param source List of source tokens (i.e. user query)
|
SuggestionUtils.java | 38 String query = suggestion.getSuggestionQuery(); local 52 if (query != null) { 53 intent.putExtra(SearchManager.QUERY, query); 73 String query = makeKeyComponent(normalizeUrl(suggestion.getSuggestionQuery())); local 76 int size = action.length() + 2 + data.length() + query.length(); 82 .append(query)
|
SuggestionsProviderImpl.java | 33 * The provider will only handle a single query at a time. If a new query comes 69 * Cancels all pending query tasks. 79 * Gets the sources that should be queried for the given query. 81 private List<Corpus> filterCorpora(String query, List<Corpus> corpora) { 82 // If there is only one corpus, always query it 86 if (shouldQueryCorpus(corpus, query)) { 87 if (DBG) Log.d(TAG, "should query corpus " + corpus); 90 if (DBG) Log.d(TAG, "should NOT query corpus " + corpus); 97 protected boolean shouldQueryCorpus(Corpus corpus, String query) { [all...] |
MultiSourceCorpus.java | 73 * @param query The query text. 78 protected Result createResult(String query, ArrayList<SourceResult> results, int latency) { 79 return new Result(query, results, latency); 83 * Gets the sources to query for suggestions for the given input. 85 * @param query The current input. 87 * @return The sources to query. 89 protected List<Source> getSourcesToQuery(String query, boolean onlyCorpus) { 92 if (candidate.getQueryThreshold() <= query.length()) { 137 public CorpusResult getSuggestions(String query, int queryLimit, boolean onlyCorpus) [all...] |
/packages/apps/Browser/src/com/android/browser/ |
PreloadedTabControl.java | 42 private void maybeSetQuery(final String query, SearchBox sb) { 43 if (!TextUtils.equals(mLastQuery, query)) { 45 if (LOGD_ENABLED) Log.d(LOGTAG, "Changing searchbox query to " + query); 47 sb.setQuery(query); 52 if (LOGD_ENABLED) Log.d(LOGTAG, "Changed searchbox query: " + called); 54 mLastQuery = query; 59 if (LOGD_ENABLED) Log.d(LOGTAG, "Cannot set query: no searchbox interface"); 64 public void setQuery(String query) { 65 maybeSetQuery(query, mTab.getWebView().getSearchBox()) [all...] |
InstantSearchEngine.java | 74 public void startSearch(Context context, String query, Bundle appData, String extraData) { 75 if (DBG) Log.d(TAG, "startSearch(" + query + ")"); 82 mWrapped.startSearch(context, query, appData, extraData); 86 mSearchBox.setQuery(query); 118 public synchronized void onSuggestionsReceived(String query, List<String> suggestions) { 119 if (DBG) Log.d(TAG, "onSuggestionsReceived(" + query + ")"); 121 if (!TextUtils.isEmpty(query)) { 122 mSuggestions.put(query, suggestions); 129 public synchronized List<String> tryWaitForSuggestions(String query) { 130 if (DBG) Log.d(TAG, "tryWait(" + query + ")") [all...] |
/packages/apps/QuickSearchBox/benchmarks/src/com/android/quicksearchbox/benchmarks/ |
SourceLatency.java | 90 String query, long delay) { 93 int length = query.length(); 95 final String prefix = query.substring(0, end); 133 public long checkSource(String src, ComponentName componentName, String query) { 135 return checkSourceInternal(src, searchable, query); 138 private long checkSourceInternal(String src, SearchableInfo searchable, String query) { 142 cursor = getSuggestions(searchable, query); 147 + " for '" + query + "'"); 150 + " for '" + query + "'"); 160 public Cursor getSuggestions(SearchableInfo searchable, String query) { [all...] |
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
GlobalSearchSupportTest.java | 62 Cursor c = mResolver.query(searchUri, null, null, null, null); 70 new SuggestionTesterBuilder(contact).query("D").expectIcon1Uri(true).expectedText1( 77 new SuggestionTesterBuilder(contact).query("foo@ac").expectIcon1Uri(true).expectedIcon2( 85 new SuggestionTesterBuilder(contact).query("D").expectedText1("Deer Dough").expectedText2( 92 new SuggestionTesterBuilder(contact).query("L").expectedText1("Deer Dough").expectedText2( 99 new SuggestionTesterBuilder(contact).query("G").expectedText1("Deer Dough").expectedText2( 106 new SuggestionTesterBuilder(contact).query("S").expectIcon1Uri(false).expectedText1( 115 new SuggestionTesterBuilder(contact).query("1800").expectIcon1Uri(true).expectedText1( 127 Cursor c = mResolver.query(searchUri, null, null, null, null); 164 private final String query; field in class:GlobalSearchSupportTest.SuggestionTester 330 private String query; field in class:GlobalSearchSupportTest.SuggestionTesterBuilder 355 public SuggestionTesterBuilder query(String value) { method in class:GlobalSearchSupportTest.SuggestionTesterBuilder [all...] |
/development/samples/SearchableDictionary/src/com/example/android/searchabledict/ |
DictionaryProvider.java | 85 * the search query as the first element. 89 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:DictionaryProvider 92 // Use the UriMatcher to see what kind of query we have and format the db query accordingly 115 private Cursor getSuggestions(String query) { 116 query = query.toLowerCase(); 125 return mDictionary.getWordMatches(query, columns); 128 private Cursor search(String query) { 129 query = query.toLowerCase() [all...] |
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
TrackerDataHelper.java | 103 * Query tracker data, filtering by given tag 108 public Cursor query(String tag, int limit) { method in class:TrackerDataHelper 111 Cursor cursor = mContext.getContentResolver().query( 128 public Cursor query(int limit) { method in class:TrackerDataHelper 129 return query(null, limit); 133 * Query tracker data, filtering by given tag. mo limit to number of rows 139 public Cursor query(String tag) { method in class:TrackerDataHelper 140 return query(tag, Integer.MAX_VALUE);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/google/ |
GoogleSuggestionProvider.java | 66 private SourceResult emptyIfNull(SourceResult result, Source source, String query) { 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); local 80 emptyIfNull(mSource.queryExternal(query), mSource, query));
|
GoogleSuggestClient.java | 84 public SourceResult queryInternal(String query) { 85 return query(query); 89 public SourceResult queryExternal(String query) { 90 return query(query); 97 private SourceResult query(String query) { method in class:GoogleSuggestClient 98 if (TextUtils.isEmpty(query)) { 106 query = URLEncoder.encode(query, "UTF-8") [all...] |
/cts/tests/tests/app/src/android/app/cts/ |
DownloadManagerTest.java | 19 import android.app.DownloadManager.Query; 106 cursor = mDownloadManager.query(new Query().setFilterById(id)); 256 Query query = new Query(); local 257 cursor = mDownloadManager.query(query); 293 Query query = new Query() local 306 Query query = new Query().setFilterById(downloadId); local 322 Query query = new Query().setFilterByStatus(status); local 355 Query query = new Query(); local [all...] |
/external/llvm/utils/ |
webNLT.pl | 28 $query = "Select DISTINCT(NAME) from Tests"; 29 my $sth = $dbh->prepare($query) || die "Can't prepare statement: $DBI::errstr"; 36 $query = "Select DISTINCT(TEST) from Tests"; 37 my $sth = $dbh->prepare($query) || die "Can't prepare statement: $DBI::errstr";
|
/external/webkit/LayoutTests/fast/url/script-tests/ |
query.js | 1 description("Test URLs that have a query string."); 6 // Allow question marks in the query without escaping 9 // Disabled because this test requires being able to set the query directly. 21 // Escape double quotemarks in the query.
|
/external/webkit/Source/WebCore/css/ |
StyleMedia.cpp | 51 bool StyleMedia::matchMedium(const String& query) const 70 media->setMediaText(query, ec);
|
/external/webkit/Source/WebCore/workers/ |
WorkerLocation.cpp | 69 return m_url.query().isEmpty() ? "" : "?" + m_url.query();
|
/frameworks/base/core/java/android/webkit/ |
SearchBox.java | 28 * The browser or container app can query the page for search results using 29 * SearchBox.query() and receive suggestions by registering a listener on the 36 * Sets the current searchbox query. Note that the caller must call 37 * onchange() to ensure that the search page processes this query. 39 void setQuery(String query); 43 * treat the current query as a verbatim search query (as opposed to a 44 * partially typed search query). As with setQuery, onchange() must be 45 * called to ensure that the search page processes the query. 69 * a change in the typed query (onchange), the user commiting a given quer [all...] |
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStoreTest.java | 46 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, null, null, null); 76 assertNull(mContentResolver.query(mScannerUri, PROJECTION, 84 // query 85 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, 94 assertNull(mContentResolver.query(mScannerUri, PROJECTION, null, null, null));
|
/external/chromium/net/http/ |
http_util_icu.cc | 19 return url.path() + "?" + url.query();
|
/external/qemu/android/ |
hw-control.c | 50 /* handle query */ 51 static void hw_control_do_query( HwControl* h, uint8_t* query, int querylen ); 96 uint8_t* query, 101 T("%s: query %4d '%.*s'", __FUNCTION__, querylen, querylen, query ); 103 q = if_starts_with( query, querylen, "power:light:brightness:" );
|
/external/webkit/Source/JavaScriptCore/wtf/url/api/ |
ParsedURL.h | 48 String query() const;
|