Searched refs:query (Results 1 - 25 of 104) sorted by relevance

12345

/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDirectCursorDriver.java24 * A cursor driver that uses the given query directly.
47 public Cursor query(CursorFactory factory, String[] selectionArgs) { method in class:SQLiteDirectCursorDriver
48 // Compile the query
49 SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, 0, selectionArgs);
55 query.bindString(i + 1, selectionArgs[i]);
60 mCursor = new SQLiteCursor(mDatabase, this, mEditTable, query);
62 mCursor = factory.newCursor(mDatabase, this, mEditTable, query);
65 mQuery = query;
66 query = null;
70 if (query !
[all...]
H A DSQLiteQueryBuilder.java53 * Mark the query as DISTINCT.
55 * @param distinct if true the query is DISTINCT, otherwise it isn't
71 * Sets the list of tables to query. Multiple tables can be specified to perform a join.
76 * @param inTables the list of tables to query on
83 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded
84 * by parenthesis and ANDed with the selection passed to {@link #query}. The final
87 * WHERE (<append chunk 1><append chunk2>) AND (<query() selection parameter>)
99 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded
100 * by parenthesis and ANDed with the selection passed to {@link #query}. The final
103 * WHERE (<append chunk 1><append chunk2>) AND (<query() selectio
263 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder
302 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder
[all...]
H A DSQLiteCursorDriver.java28 * Executes the query returning a Cursor over the result set.
34 Cursor query(CursorFactory factory, String[] bindArgs); method in interface:SQLiteCursorDriver
H A DSQLiteQuery.java24 * A SQLite program that represents a query that reads the resulting rows into a CursorWindow.
33 /** The SQL used to create this query */
42 * Create a persistent query object.
44 * @param db The database that this query object is associated with
45 * @param query The SQL string for this query.
48 /* package */ SQLiteQuery(SQLiteDatabase db, String query, int offsetIndex, String[] bindArgs) { argument
49 super(db, query);
52 mQuery = query;
60 * @return number of total rows in the query
[all...]
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/
H A DDbSSLSessionCacheTest.java75 Cursor query = null;
77 query = helper.getReadableDatabase().query(DbSSLSessionCache.SSL_CACHE_TABLE,
81 assertTrue(query.moveToFirst()); // one row inserted
82 String hostPort = query.getString(0);
85 query.close();
116 Cursor query = helper.getReadableDatabase().query(DbSSLSessionCache.SSL_CACHE_TABLE,
120 int cnt = query.getCount();
122 assertTrue(query
[all...]
H A DSuggestionProvider.java63 public Cursor query(Uri url, String[] projectionIn, String selection, method in class:SuggestionProvider
68 String query = url.getLastPathSegment();
72 addRow(cursor, query + suffix);
H A DUriTest.java382 testHierarchical("http", "google.com", "/p1/p2", "query", "fragment");
387 testHierarchical("http", "google.com", "", "query", "fragment");
388 testHierarchical("http", "google.com", "", "query", null);
389 testHierarchical("http", null, "/", "query", null);
393 String path, String query, String fragment) {
402 if (query != null) {
403 sb.append('?').append(query);
421 uriString, ssp, uri, scheme, authority, path, query, fragment);
423 uriString, ssp, uri, scheme, authority, path, query, fragment);
430 uriString, ssp, uri, scheme, authority, path, query, fragmen
392 testHierarchical(String scheme, String authority, String path, String query, String fragment) argument
474 compareHierarchical(String uriString, String ssp, Uri uri, String scheme, String authority, String path, String query, String fragment) argument
[all...]
H A DDatabaseLocaleTest.java65 private String[] query(String sql) { method in class:DatabaseLocaleTest
83 String[] results = query("SELECT data FROM test");
93 results = query("SELECT data FROM test ORDER BY data COLLATE LOCALIZED ASC");
H A DDatabaseStatementTest.java83 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
137 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
159 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
182 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID");
204 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
229 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID");
264 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID");
313 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
H A DDatabasePerformanceTests.java161 mCursor = c.getContentResolver().query(People.CONTENT_URI, PEOPLE_PROJECTION, null,
294 .query("t1", COLUMNS, where[i], null, null, null, null);
332 .query("t1", COLUMNS, where[i], null, null, null, null);
373 .query("t1", COLUMNS, where[i], null, null, null, null);
411 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null,
451 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null,
491 mDatabase.query("t1 INNER JOIN t2 ON t1.c = t2.c", COLUMNS, null,
543 .query("t1", COLUMNS, where[i], null, null, null, null);
582 .query("t1", COLUMNS, where[i], null, null, null, null);
616 mDatabase.query("t
[all...]
H A DNewDatabasePerformanceTests.java202 .query("t1", COLUMNS, where[i], null, null, null, null);
239 .query("t1", COLUMNS, where[i], null, null, null, null);
279 .query("t1", COLUMNS, where[i], null, null, null, null);
316 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null,
355 mDatabase.query("t1 INNER JOIN t2 ON t1.b = t2.b", COLUMNS, null,
394 mDatabase.query("t1 INNER JOIN t2 ON t1.c = t2.c", COLUMNS, null,
445 .query("t1", COLUMNS, where[i], null, null, null, null);
483 .query("t1", COLUMNS, where[i], null, null, null, null);
516 mDatabase.query("t1", COLUMNS, null, null, null, null, null);
549 mDatabase.query("t
[all...]
/frameworks/base/core/java/android/speech/
H A DRecognitionResult.java23 * RecognitionResult is a passive object that stores a single recognized query
85 * A factory method to create a RecognitionResult for a web search query.
87 * @param query the query string.
89 * @param url the url that performs the search with the query.
91 public static RecognitionResult newWebResult(String query, String html, String url) { argument
92 return new RecognitionResult(WEB_SEARCH_RESULT, query, html, url);
99 * @param query the query string associated with that action.
101 public static RecognitionResult newActionResult(int action, String query) { argument
157 RecognitionResult(int type, int action, String query) argument
167 RecognitionResult(int type, String query, String html, String url) argument
177 RecognitionResult(int type, String query, int phoneType, boolean callAction) argument
[all...]
/frameworks/base/core/java/android/provider/
H A DSubscribedFeeds.java64 public static Cursor query(ContentResolver cr, String[] projection) { method in class:SubscribedFeeds.Feeds
65 return cr.query(CONTENT_URI, projection, null, null, DEFAULT_SORT_ORDER);
68 public static Cursor query(ContentResolver cr, String[] projection, method in class:SubscribedFeeds.Feeds
70 return cr.query(CONTENT_URI, projection, where,
174 public static Cursor query(ContentResolver cr, String[] projection) { method in class:SubscribedFeeds.Accounts
175 return cr.query(CONTENT_URI, projection, null, null, DEFAULT_SORT_ORDER);
178 public static Cursor query(ContentResolver cr, String[] projection, method in class:SubscribedFeeds.Accounts
180 return cr.query(CONTENT_URI, projection, where,
H A DCalendar.java147 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Calendars
150 return cr.query(CONTENT_URI, projection, where,
537 public static final Cursor query(ContentResolver cr, String[] projection) { method in class:Calendar.Events
538 return cr.query(CONTENT_URI, projection, null, null, DEFAULT_SORT_ORDER);
541 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Events
543 return cr.query(CONTENT_URI, projection, where,
736 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Instances
741 return cr.query(builder.build(), projection, Calendars.SELECTED + "=1",
745 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Instances
755 return cr.query(builde
913 public static final Cursor query(ContentResolver cr, int startDay, int numDays) { method in class:Calendar.BusyBits
1061 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.CalendarAlerts
[all...]
H A DBrowser.java212 return cr.query(BOOKMARKS_URI,
224 return cr.query(BOOKMARKS_URI,
244 Cursor c = cr.query(
287 Cursor c = cr.query(BOOKMARKS_URI, projection, "visits > 0", null,
316 Cursor c = cr.query(
349 Cursor c = cr.query(
388 Cursor c = cr.query(BOOKMARKS_URI,
493 Cursor c = cr.query(
521 // (i.e. remove google.com/query= blah blah blah)
533 * @param where Clause to be used to limit the query fro
[all...]
/frameworks/base/telephony/tests/TelephonyTest/src/com/android/telephonytest/unit/
H A DCallerInfoUnitTest.java79 * Same as testEmergencyIsProperlySet but uses the async query api.
83 QueryRunner query;
85 query = new QueryRunner("911");
86 query.runAndCheckCompletion();
89 query = new QueryRunner("tel:911");
90 query.runAndCheckCompletion();
93 query = new QueryRunner("18001234567");
94 query.runAndCheckCompletion();
164 * query, so we have to use a thread with its own looper.
177 // Run the query i
[all...]
/frameworks/base/core/java/android/net/
H A DUri.java100 <scheme>://<authority><path>?<query>
267 * Gets the decoded query component from this URI. The query comes after
268 * the query separator ('?') and before the fragment separator ('#'). This
272 * @return the decoded query or null if there isn't one
277 * Gets the encoded query component from this URI. The query comes after
278 * the query separator ('?') and before the fragment separator ('#'). This
282 * @return the encoded query or null if there isn't one
583 private Part query; field in class:Uri.StringUri
1089 private final Part query; field in class:Uri.HierarchicalUri
1092 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument
1269 private Part query; field in class:Uri.Builder
1377 query(Part query) argument
1388 query(String query) argument
1395 encodedQuery(String query) argument
[all...]
H A DMailTo.java76 // Parse out the query parameters
77 String query = email.getQuery();
78 if (query != null ) {
79 String[] queries = query.split("&");
H A DUrlQuerySanitizer.java100 * A functor used to sanitize a single query value.
590 * Parse the query parameters out of an encoded URL.
591 * Works by extracting the query portion from the URL and then
592 * calling parseQuery(). If there is no query portion it is
593 * treated as if the query portion is an empty string.
598 String query;
600 query = url.substring(queryIndex + 1);
603 query = "";
605 parseQuery(query);
609 * Parse a query
615 parseQuery(String query) argument
[all...]
/frameworks/base/core/java/android/app/
H A DSearchManager.java194 * activity and every query-search application must have one.</li>
197 * {@link android.content.Intent Intent}. The text to search (query string) for is provided by
258 * <p>The primary form of suggestions is known as <i>queried suggestions</i> and is based on query
260 * the available data. In certain situations - for example, when no query text has been typed yet -
261 * an application may also opt to provide <i>zero-query suggestions</i>.
262 * These would typically be drawn from the same data source, but because no partial query text is
271 * <ul><li>Using formatting information found in the metadata, the user's query text (whatever
272 * has been typed so far) will be formatted into a query and sent to the suggestions
278 * <li>If the user types another key, or changes the query in any way, the above steps are repeated
284 * the query tex
1786 triggerSearch(String query, ComponentName launchActivity, Bundle appSearchData) argument
1978 getSuggestions(SearchableInfo searchable, String query) argument
1993 getSuggestions(SearchableInfo searchable, String query, int limit) argument
[all...]
H A DISearchManager.aidl40 void triggerSearch(in String query,
/frameworks/base/tests/AndroidTests/EnabledTestApp/src/com/android/unit_tests/enabled_app/
H A DDisabledProvider.java34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:DisabledProvider
H A DEnabledProvider.java34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:EnabledProvider
/frameworks/base/core/java/android/content/
H A DSyncStateContentProviderHelper.java30 * and implements query/insert/update/delete to access that table using the
102 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, method in class:SyncStateContentProviderHelper.Provider
108 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs,
111 throw new UnsupportedOperationException("Cannot query URL: " + url);
176 Cursor c = dbSrc.query(SYNC_STATE_TABLE,
194 Cursor c = db.query(SYNC_STATE_TABLE, ACCOUNT_PROJECTION, null, null, null, null, null);
222 Cursor c = db.query(SYNC_STATE_TABLE, null, ACCOUNT_WHERE,
/frameworks/base/core/java/com/android/internal/content/
H A DSyncStateContentProviderHelper.java30 * and implements query/insert/update/delete to access that table using the
80 public Cursor query(SQLiteDatabase db, String[] projection, method in class:SyncStateContentProviderHelper
82 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs,
107 Cursor c = db.query(SYNC_STATE_TABLE, ACCOUNT_PROJECTION, null, null, null, null, null);

Completed in 395 milliseconds

12345