/external/chromium_org/chrome/browser/devtools/ |
devtools_file_system_indexer.cc | 62 vector<FilePath> Search(string query); 171 vector<FilePath> Index::Search(string query) { 173 const char* data = query.c_str(); 175 trigram_chars.reserve(query.size()); 176 for (size_t i = 0; i < query.size(); ++i) 179 for (size_t i = 0; i + 2 < query.size(); ++i) { 466 const string& query, 475 query, 481 const string& query, 484 vector<FilePath> file_paths = g_trigram_index.Get().Search(query); [all...] |
/external/chromium_org/url/ |
url_canon.h | 184 // Converts query strings into a custom encoding. The embedder can supply an 196 // converter supports. This is used only for the query encoding conversion, 454 // Query: Prepends the ? if needed. 467 const Component& query, 472 const Component& query, 557 // Use for mailto URLs. This "canonicalizes" the url into a path and query 559 // the query encoding if there is a query. This is because a mailto URL is 561 // etc. which would influence a query encoding normally are irrelevant. 600 query(NULL) 623 const CHAR* query; member in struct:url::URLComponentSource [all...] |
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
ContentResolverTest.java | 132 assertNull(shadowContentResolver.query(null, null, null, null, null)); 135 assertThat((TestCursor) shadowContentResolver.query(null, null, null, null, null), 141 assertNull(shadowContentResolver.query(uri21, null, null, null, null)); 142 assertNull(shadowContentResolver.query(uri22, null, null, null, null)); 149 assertThat((TestCursor) shadowContentResolver.query(uri21, null, null, null, null), 151 assertThat((TestCursor) shadowContentResolver.query(uri22, null, null, null, null), 165 Cursor cursor = shadowContentResolver.query(uri21, projection, selection, selectionArgs, sortOrder); 325 @Override public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) { 344 assertNotNull(contentResolver.query(uri, null, null, null, null)); 349 assertNull(contentResolver.query(unrelated, null, null, null, null)) [all...] |
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
SearchBar.java | 68 * Listener for search query changes 73 * Method invoked when the search bar detects a change in the query. 75 * @param query The current full query. 77 public void onSearchQueryChange(String query); 80 * <p>Method invoked when the search query is submitted.</p> 85 * @param query The query being submitted. 87 public void onSearchQuerySubmit(String query); 92 * @param query The query set in the search bar at the time the IME is being dismissed [all...] |
/frameworks/support/v7/appcompat/src/android/support/v7/widget/ |
SuggestionsAdapter.java | 107 * Enables query refinement for all suggestions. This means that an additional icon 109 * copied to the query text field. 120 * Returns the current query refinement preference. 121 * @return value of query refinement preference 138 * in a worker thread, so it's OK if the query is slow (e.g. round trip for suggestions). 144 String query = (constraint == null) ? "" : constraint.toString(); local 155 cursor = getSearchManagerSuggestions(mSearchable, query, QUERY_LIMIT); 163 Log.w(LOG_TAG, "Search suggestions query threw an exception.", e); 200 // Check if the Cursor indicates that the query is not complete and show the spinner 399 * Gets the text to show in the query field when a suggestion is selected 412 String query = getColumnString(cursor, SearchManager.SUGGEST_COLUMN_QUERY); local [all...] |
/packages/apps/Gallery2/src/com/android/photos/data/ |
PhotoProvider.java | 40 * accessed by this provider. Use Photos.CONTENT_URI to query all photos and 41 * videos. Use Albums.CONTENT_URI to query all albums. Use Metadata.CONTENT_URI 42 * to query metadata about a photo or video, based on the ID of the media. Use 44 * ImageCache.ORIGINAL_CONTENT_URI to query the path of the thumbnail, preview, 89 * The image_type query parameter required for requesting a specific 282 Cursor cursor = query(uri, PROJECTION_MIME_TYPE, null, null, null); 308 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:PhotoProvider 310 return query(uri, projection, selection, selectionArgs, sortOrder, null); 314 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:PhotoProvider 321 Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal) 456 String query = SQLiteQueryBuilder.buildQueryString(false, table, BASE_COLUMNS_ID, local 518 protected Cursor query(String table, String[] columns, String selection, method in class:PhotoProvider [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
ContentResolverTest.java | 304 mCursor = mContentResolver.query(TABLE1_URI, null, null, null, null); 322 mCursor = mContentResolver.query(TABLE1_URI, null, selection, null, null); 334 mCursor = mContentResolver.query(TABLE1_URI, null, selection, null, null); 346 mContentResolver.query(null, null, null, null, null); 356 mCursor = mContentResolver.query(REMOTE_CRASH_URI, null, null, null, null); 382 Cursor cursor = mContentResolver.query(TABLE1_URI, null, null, null, null, 393 mContentResolver.query(TABLE1_URI, null, null, null, null, cancellationSignal); 423 // Build an unsatisfiable 5-way cross-product query over 100 values but 430 mContentResolver.query(TABLE1_CROSS_URI, null, 438 // We want to confirm that the query really was running and then go [all...] |
/external/chromium_org/gpu/command_buffer/service/ |
gpu_tracer.cc | 393 GLuint query; local 395 glGenQueries(1, &query); 396 glQueryCounter(query, GL_TIMESTAMP); 398 glGetQueryObjectui64v(query, GL_QUERY_RESULT, &gl_now); 403 glDeleteQueries(1, &query);
|
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/ |
rebaselineserver.py | 234 test = self.query['test'][0] 235 baseline_target = self.query['baseline-target'][0] 236 baseline_move_to = self.query['baseline-move-to'][0] 263 test_name, _ = os.path.splitext(self.query['test'][0]) 264 mode = self.query['mode'][0]
|
/frameworks/base/core/java/android/service/textservice/ |
SpellCheckerService.java | 386 final CharSequence query = originalText.subSequence(wordStart, wordEnd); local 387 final TextInfo ti = new TextInfo(query, 0, query.length(), cookie, 388 query.hashCode()); 391 Log.d(TAG, "Adapter: word (" + (wordItems.size() - 1) + ") " + query);
|
/frameworks/base/services/core/java/com/android/server/pm/ |
PreferredComponent.java | 195 public boolean sameSet(List<ResolveInfo> query, int priority) { 197 return query == null; 199 if (query == null) { 202 final int NQ = query.size(); 206 ResolveInfo ri = query.get(i);
|
/cts/tests/tests/database/src/android/database/cts/ |
DatabaseCursorTest.java | 129 Cursor testCursor = mDatabase.query("test", null, null, null, null, null, null); 164 Cursor testCursor = getTestCursor(mDatabase.query("test", null, null, null, null, null, 230 Cursor testCursor = getTestCursor(mDatabase.query("test", null, "_id > 1000", null, null, 272 Cursor testCursor = getTestCursor(mDatabase.query("test", null, null, null, null, null, 330 Cursor testCursor = getTestCursor(mDatabase.query("test", new String[] { "data" }, 365 Cursor testCursor = getTestCursor(mDatabase.query("test", new String[] { "data" }, null, 401 Cursor testCursor = getTestCursor(mDatabase.query("test", new String[] { "txt", "data" }, 469 * Test the ability of a subclass of SQLiteCursor to change its query arguments. 475 String editTable, SQLiteQuery query) { 476 return new SQLiteCursor(db, masterQuery, editTable, query) { [all...] |
/external/chromium_org/chrome/browser/chromeos/drive/ |
search_metadata_unittest.cc | 28 // query text parameter to FixedPatternStringSearchIgnoringCaseAndAccents. 33 base::i18n::FixedPatternStringSearchIgnoringCaseAndAccents query( 35 return FindAndHighlight(text, &query, highlighted_text); 201 // The query is all in lower case. 387 const std::string query = kQueries[i]; local 390 query, local 399 ASSERT_TRUE(result->empty()) << ": " << query << " should not match"; 430 EXPECT_FALSE(FindAndHighlightWrapper("text", "query", &highlighted_text)); 435 EXPECT_FALSE(FindAndHighlightWrapper("", "query", &highlighted_text)); 501 base::i18n::FixedPatternStringSearchIgnoringCaseAndAccents query( [all...] |
/external/chromium_org/chrome/browser/ui/webui/ |
downloads_dom_handler.cc | 327 DownloadQuery query; local 328 query.AddFilter(DownloadQuery::FILTER_QUERY, *search_terms_.get()); 329 query.Search(all_items.begin(), all_items.end(), &filtered_items); 505 DownloadQuery query; local 507 query.AddFilter(DownloadQuery::FILTER_QUERY, *search_terms_.get()); 509 query.AddFilter(base::Bind(&IsDownloadDisplayable)); 510 query.AddSorter(DownloadQuery::SORT_START_TIME, DownloadQuery::DESCENDING); 511 query.Limit(kMaxDownloads); 512 query.Search(all_items.begin(), all_items.end(), &filtered_items);
|
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseCursorTest.java | 112 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 146 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 210 Cursor c = mDatabase.query("test", null, "_id > 1000", null, null, null, null); 250 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 302 Cursor c = mDatabase.query("test", new String[]{"data"}, null, null, null, null, null); 338 Cursor c = mDatabase.query("test", new String[]{"data"}, null, null, null, null, null); 375 Cursor c = mDatabase.query("test", new String[]{"txt", "data"}, null, null, null, null, null); 441 * Test the ability of a subclass of SQLiteCursor to change its query arguments. 448 SQLiteQuery query) { 449 return new SQLiteCursor(db, masterQuery, editTable, query) { [all...] |
/libcore/luni/src/test/java/libcore/java/sql/ |
OldConnectionTest.java | 860 String[] inc_queries = { "", " ", "not query" }; 947 String query = "call welcomeAnimal(3, 'Petya', 'Cock')"; local 948 cstmt = conn.prepareCall(query, ResultSet.TYPE_FORWARD_ONLY, 956 String query = "call welcomeAnimal(3, 'Petya', 'Dino')"; 957 cstmt = conn.prepareCall(query, ResultSet.TYPE_FORWARD_ONLY, 1060 String query = "call welcomeAnimal(?, ?, ?)"; local 1938 String query = "insert into zoo (id, name, family) values (?, ?, ?);"; local 1999 String query = "insert into zoo (id, name, family) values (?, ?, ?);"; local 2024 String query = "insert into zoo (id, name, family) values (?, ?, ?);"; local [all...] |
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
MetadataDbHelper.java | 330 final Cursor cursor = defaultDb.query(MetadataDbHelper.CLIENT_TABLE_NAME, 390 final Cursor cursor = defaultDb.query(CLIENT_TABLE_NAME, 416 final Cursor cursor = defaultDb.query(CLIENT_TABLE_NAME, 430 final Cursor cursor = defaultDb.query(CLIENT_TABLE_NAME, 577 final Cursor cursor = db.query(METADATA_TABLE_NAME, 607 final Cursor cursor = db.query(METADATA_TABLE_NAME, 636 * @param downloadId the download ID to query about 643 final Cursor cursor = defaultDb.query(CLIENT_TABLE_NAME, CLIENT_TABLE_COLUMNS, [all...] |
/external/chromium_org/chrome/common/extensions/docs/examples/extensions/fx/ |
bg.js | 10 // Map of hostname suffixes or URLs without query params to sounds. 27 // Map of query parameter words to sounds. 286 var query = match[2]; 287 var parts = query.split("&"); 292 console.log("query == " + q); 327 // Now try a direct URL match (without query string). 329 var query = url.indexOf("?"); 330 if (query > 0) { 331 url = tab.url.substring(0, query);
|
/external/chromium_org/third_party/libxml/src/ |
uri.c | 202 * Parse the query part of an URI 243 * Parse the query part of an URI 245 * query = *uric 263 if (uri->query != NULL) 264 xmlFree(uri->query); 266 uri->query = STRNDUP(*str, cur - *str); 268 uri->query = xmlURIUnescapeString(*str, cur - *str, NULL); 270 /* Save the raw bytes of the query as well. 760 * relative-ref = relative-part [ "?" query ] [ "#" fragment ] 818 * scheme ":" hier-part [ "?" query ] [ "#" fragment [all...] |
/external/libxml2/ |
uri.c | 233 * Parse the query part of an URI 274 * Parse the query part of an URI 276 * query = *uric 294 if (uri->query != NULL) 295 xmlFree(uri->query); 297 uri->query = STRNDUP(*str, cur - *str); 299 uri->query = xmlURIUnescapeString(*str, cur - *str, NULL); 301 /* Save the raw bytes of the query as well. 791 * relative-ref = relative-part [ "?" query ] [ "#" fragment ] 849 * scheme ":" hier-part [ "?" query ] [ "#" fragment [all...] |
/external/chromium_org/chrome/browser/drive/ |
drive_api_util.cc | 67 base::string16 query = base::UTF8ToUTF16(original_query); local 72 for (size_t index = query.find_first_not_of(base::kWhitespaceUTF16); 74 index = query.find_first_not_of(base::kWhitespaceUTF16, index)) { 75 bool is_exclusion = (query[index] == '-'); 78 if (index == query.length()) { 85 if (query[begin_token] == '"') { 86 // Quoted query. 88 size_t end_token = query.find('"', begin_token); 91 // However, the query is built by user manually, so here we treat 94 end_token = query.length() [all...] |
/external/chromium_org/chrome/browser/safe_browsing/ |
safe_browsing_util.cc | 383 if (canonicalized_query && final_parsed.query.len > 0) { 385 final_parsed.query.begin, final_parsed.query.len); 434 const std::string query = canon_query; local 439 // the query parameters, and also up to 4 paths formed by starting at the root 453 if (!query.empty()) 454 paths->push_back(path + "?" + query);
|
/external/chromium_org/components/bookmarks/browser/ |
bookmark_index.cc | 65 // Used when finding the set of bookmarks that match a query. Each match 67 // query as well as the set of nodes that contain those terms in their titles. 69 // List of terms matching the query. 145 const base::string16 query = Normalize(input_query); local 146 std::vector<base::string16> terms = ExtractQueryWords(query); 164 parser.ParseQueryNodes(query, &query_nodes.get()); 211 // Check that the result matches the query. The previous search 213 // of QueryParser may filter it out. For example, the query 342 const base::string16& query) { 344 if (query.empty() [all...] |
/external/chromium_org/content/browser/geolocation/ |
network_location_request.cc | 196 std::string query(url.query()); 197 if (!query.empty()) 198 query += "&"; 199 query += "key=" + net::EscapeQueryParamValue(api_key, true); 201 replacements.SetQueryStr(query);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/ |
FileSystemWorkspaceBinding.js | 322 * @param {string} query 327 searchInFileContent: function(path, query, caseSensitive, isRegex, callback) 339 result = WebInspector.ContentProvider.performSearchInContent(content, query, caseSensitive, isRegex); 367 var query = queriesToRun.shift(); 368 this._searchInPath(searchConfig.isRegex() ? "" : query, progress, innerCallback.bind(this)); 398 * @param {string} query 402 _searchInPath: function(query, progress, callback) 405 InspectorFrontendHost.searchInPath(requestId, this._fileSystem.path(), query);
|