/frameworks/support/persistence/db-framework/src/main/java/androidx/sqlite/db/framework/ |
FrameworkSQLiteDatabase.java | 149 public Cursor query(String query) { method in class:FrameworkSQLiteDatabase 150 return query(new SimpleSQLiteQuery(query)); 154 public Cursor query(String query, Object[] bindArgs) { method in class:FrameworkSQLiteDatabase 155 return query(new SimpleSQLiteQuery(query, bindArgs)); 160 public Cursor query(final SupportSQLiteQuery supportQuery) { method in class:FrameworkSQLiteDatabase 164 String editTable, SQLiteQuery query) { [all...] |
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/solver/binderprovider/ |
GuavaListenableFutureQueryResultBinderProvider.kt | 26 import androidx.room.solver.query.result.GuavaListenableFutureQueryResultBinder 27 import androidx.room.solver.query.result.QueryResultBinder 44 override fun provide(declared: DeclaredType, query: ParsedQuery): QueryResultBinder { 52 declared.typeArguments.first(), query)
|
/frameworks/support/room/compiler/src/main/kotlin/androidx/room/vo/ |
QueryParameter.kt | 19 import androidx.room.solver.query.parameter.QueryParameterAdapter 28 // this is the name used in the query. Might be different for kotlin queries
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/parser/ |
SqlParserTest.kt | 62 assertErrors("EXPLAIN QUERY PLAN SELECT * FROM users", 106 // this is an invalid query, b/64539805 107 val query = SqlParser.parse("UPDATE trips SET trips.title=:title") 108 assertThat(query.errors, not(emptyList())) 113 val query = SqlParser.parse("UPDATE trips SET title=:title WHERE trips.id=:id") 114 assertThat(query.errors, `is`(emptyList())) 119 val query = SqlParser.parse("SELECT a.name, b.last_name from user a, book b") 120 assertThat(query.errors, `is`(emptyList())) 121 assertThat(query.tables, `is`(setOf(Table("user", "a"), 127 val query = SqlParser.parse("SELECT a.name, b.last_name from user a, book b" [all...] |
/frameworks/support/samples/Support7Demos/src/main/java/com/example/android/supportv7/app/ |
SearchActivity.java | 35 // Get the intent, verify the action and get the query 38 String query = intent.getStringExtra(SearchManager.QUERY); local 41 suggestions.saveRecentQuery(query, null);
|
/packages/apps/Dialer/java/com/android/contacts/common/util/ |
SearchUtil.java | 153 * @param query The query string to clean. 154 * @return The cleaned query. Empty string if all characters are cleaned out. 156 public static String cleanStartAndEndOfSearchQuery(String query) { 158 while (start < query.length()) { 159 int codePoint = query.codePointAt(start); 166 if (start == query.length()) { 171 int end = query.length() - 1; 173 if (Character.isLowSurrogate(query.charAt(end))) { 177 int codePoint = query.codePointAt(end) [all...] |
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/ |
SearchResultLoader.java | 11 * Loads a sorted list of Search results for a given query. 17 public SearchResultLoader(Context context, String query) { 19 mQuery = query;
|
/libcore/luni/src/test/java/libcore/java/sql/ |
OldPreparedStatementTest.java | 181 String query = "insert into zoo(id, family, name) values(?, ?, 'unknown animal')"; local 182 ps = conn.prepareStatement(query); 200 String query = "update zoo set name='Masha', family=? where id=?;"; local 201 ps = conn.prepareStatement(query); 221 String query = "create table hutch (id integer not null, animal_id integer, address char(20), primary key (id));"; local 222 ps = conn.prepareStatement(query); 233 String query = "select name, family from zoo where id = ?"; local 234 ps = conn.prepareStatement(query); 245 String query = "select name, family from zoo where id = ?"; local 246 ps = conn.prepareStatement(query); 256 String query = "update zoo set name='Masha', family=? where id=?;"; local 293 String query = "select * from zoo where id = ?"; local 344 String query = "update zoo set name='Masha', family='cat' where id=?;"; local 371 String query = "update zoo set name='Masha', family='cat' where id=?;"; local 384 String query = "select * from zoo where id = ?"; local 408 String query = "select * from zoo where id = ?"; local 440 String query = "select * from zoo where id = ? and family=?"; local 487 String query = "insert into type (IntVal) values (?);"; local 542 String query = "insert into type (LongVal) values (?);"; local 595 String query = "insert into type (FloatVal) values (?);"; local 648 String query = "insert into type (DoubleVal) values (?);"; local 704 String query = "insert into type (charStr) values (?);"; local 776 String query = "insert into type (TText) values (?);"; local 856 String query = "insert into type (TextVal) values (?);"; local 931 String query = "insert into type (MText) values (?);"; local 1000 String query = "insert into type (LText) values (?);"; local 1069 String query = "insert into type (Sint) values (?);"; local 1137 String query = "insert into type (BoolVal) values (?);"; local 1196 String query = "insert into type (Tint) values (?);"; local 1263 String query = "insert into type (LBlob) values (?);"; local 1311 String query = "insert into type (DecVal) values (?);"; local 1359 String query = "insert into type (dateVal) values (?);"; local 1417 String query = "insert into type (dateVal) values (?);"; local 1462 String query = "insert into type (BoolVal, IntVal) values ('true', ?);"; local 1554 String query = "insert into person (name, address) values ('Hans', ?);"; local 1638 String query = "insert into type (IntVal) values (?);"; local 1737 String query = "insert into type (IntVal) values (?);"; local 1830 String query = "insert into type (IntVal) values (?);"; local 1926 String query = "insert into type (timeVal) values (?);"; local 1986 String query = "insert into type (timeVal) values (?);"; local 2038 String query = "insert into type (TS) values (?);"; local 2113 String query = "insert into type (timeVal) values (?);"; local 2161 String query = "insert into type (TText) values (?);"; local 2179 String query = "insert into type (TText) values (?);"; local 2211 String query = "insert into type (TText) values (?);"; local 2226 String query = "insert into type (TText) values (?);"; local 2237 String query = "insert into type (TText) values (?);"; local 2252 String query = "insert into type (TText) values (?);"; local [all...] |
/packages/apps/Launcher3/src/com/android/launcher3/allapps/search/ |
DefaultAppSearchAlgorithm.java | 48 public void doSearch(final String query, 50 final ArrayList<ComponentKey> result = getTitleMatchResult(query); 55 callback.onSearchResult(query, result); 60 private ArrayList<ComponentKey> getTitleMatchResult(String query) { 61 // Do an intersection of the words in the query and each title, and filter out all the 62 // apps that don't match all of the words in the query. 63 final String queryTextLower = query.toLowerCase(); 74 public static boolean matches(AppInfo info, String query, StringMatcher matcher) { 75 int queryLength = query.length(); 95 matcher.matches(query, title.substring(i, i + queryLength))) [all...] |
/cts/tests/tests/permission/src/android/permission/cts/ |
ContactsProviderTest.java | 30 * Verifies that query(ContactsContract.Contacts.CONTENT_URI) requires 38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, 40 fail("query(ContactsContract.Contacts.CONTENT_URI) did not throw SecurityException" 66 * Verifies that query(ContactsContract.Profile.CONTENT_URI) requires 74 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, 76 fail("query(ContactsContract.Profile.CONTENT_URI) did not throw SecurityException" 122 * Verifies that query(ContactsContract.CommonDataKinds.Phone.ENTERPRISE_CONTENT_URI) requires 130 getContext().getContentResolver().query( 133 fail("query(ContactsContract.CommonDataKinds.Phone.ENTERPRISE_CONTENT_URI) did not" 141 * Verifies that query(ContactsContract.RawContactsEntity.CORP_CONTENT_URI) require [all...] |
/external/skia/include/views/ |
SkEventSink.h | 39 /** Returns true if the sink (or one of its subclasses) understands the event as a query. 42 bool doQuery(SkEvent* query);
|
/external/skqp/include/views/ |
SkEventSink.h | 39 /** Returns true if the sink (or one of its subclasses) understands the event as a query. 42 bool doQuery(SkEvent* query);
|
/external/swiftshader/third_party/LLVM/utils/ |
plotNLT.pl | 36 $query = "Select RUN, VALUE from Tests where TEST = '$test' AND NAME = '$prog' ORDER BY RUN"; 37 #print "\n$query\n"; 39 my $sth = $dbh->prepare( $query) || die "Can't prepare statement: $DBI::errstr";;
|
/external/tensorflow/tensorflow/core/kernels/data/sql/ |
query_connection.h | 25 // This interface allows a user to connect to a database, execute a query, and 30 // Presently, a `QueryConnection` instance can only handle one query at a time. 43 // execute `query` against the database. 48 virtual Status Open(const string& data_source_name, const string& query, 52 // Retrieves the next row of the result set of the query from the most recent
|
/external/v8/src/inspector/ |
search-util.h | 19 const String16& query, bool caseSensitive,
|
/external/wpa_supplicant_8/hs20/server/www/ |
redirect.php | 15 $row = $db->query("SELECT rowid,* FROM sessions WHERE id='$id'")->fetch();
|
/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
|
/frameworks/support/room/compiler/src/test/kotlin/androidx/room/writer/ |
SQLiteOpenHelperWriterTest.kt | 66 val query = SQLiteOpenHelperWriter(database) 68 assertThat(query, `is`("CREATE TABLE IF NOT EXISTS" + 85 val query = SQLiteOpenHelperWriter(database) 87 assertThat(query, `is`("CREATE TABLE IF NOT EXISTS" + 104 val query = SQLiteOpenHelperWriter(database) 106 assertThat(query, `is`("CREATE TABLE IF NOT EXISTS" + 124 val query = SQLiteOpenHelperWriter(database) 126 assertThat(query, `is`("CREATE TABLE IF NOT EXISTS" +
|
/packages/apps/Dialer/java/com/android/dialer/main/impl/toolbar/ |
SearchBarListener.java | 28 /** Called when the search query updates. */ 29 void onSearchQueryUpdated(String query);
|
/packages/apps/Dialer/java/com/android/dialer/searchfragment/common/ |
SearchCursor.java | 33 * Notifies the cursor that the query has updated. 37 boolean updateQuery(@NonNull String query);
|
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/ |
QueryTask.java | 41 * Creates a new query task. 43 * @param query Query to run. 47 * get called on. If null, the method is called on the query thread. 50 public QueryTask(String query, int queryLimit, SuggestionCursorProvider<C> provider, 52 mQuery = query; 76 public static <C extends SuggestionCursor> void startQuery(String query, 82 QueryTask<C> task = new QueryTask<C>(query, maxResults, provider, handler,
|
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)
|
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/query/ |
SearchQueryUtils.java | 17 package com.android.settings.intelligence.search.query; 22 * Utils for Query-time operations. 30 * Returns "difference" between resultName and query string. resultName must contain all 31 * characters from query as a prefix to a word, in the same order. 37 * resultName: Abcde, query: Abcde, Returns 0 38 * resultName: Abcde, query: abc, Returns 2 39 * resultName: Abcde, query: ab, Returns 3 40 * resultName: Abcde, query: bc, Returns NAME_NO_MATCH 41 * resultName: Abcde, query: xyz, Returns NAME_NO_MATCH 42 * resultName: Abc de, query: de, Returns [all...] |
/packages/apps/TV/src/com/android/tv/search/ |
SearchInterface.java | 37 List<SearchResult> search(String query, int limit, int action);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/ |
DownloadManagerWrapper.java | 20 import android.app.DownloadManager.Query; 84 public Cursor query(final Query query) { method in class:DownloadManagerWrapper 87 return mDownloadManager.query(query); 92 Log.e(TAG, "Can't query the download manager", e);
|