/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDirectCursorDriver.java | 23 * A cursor driver that uses the given query directly. 40 public Cursor query(CursorFactory factory, String[] selectionArgs) { method in class:SQLiteDirectCursorDriver 41 // Compile the query 42 SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, 0, selectionArgs); 48 query.bindString(i + 1, selectionArgs[i]); 53 mCursor = new SQLiteCursor(mDatabase, this, mEditTable, query); 55 mCursor = factory.newCursor(mDatabase, this, mEditTable, query); 58 mQuery = query; 59 query = null; 63 if (query ! [all...] |
H A D | SQLiteQueryBuilder.java | 54 * Mark the query as DISTINCT. 56 * @param distinct if true the query is DISTINCT, otherwise it isn't 72 * Sets the list of tables to query. Multiple tables can be specified to perform a join. 77 * @param inTables the list of tables to query on 84 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded 85 * by parenthesis and ANDed with the selection passed to {@link #query}. The final 88 * WHERE (<append chunk 1><append chunk2>) AND (<query() selection parameter>) 103 * Append a chunk to the WHERE clause of the query. All chunks appended are surrounded 104 * by parenthesis and ANDed with the selection passed to {@link #query}. The final 107 * WHERE (<append chunk 1><append chunk2>) AND (<query() selectio 277 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder 316 public Cursor query(SQLiteDatabase db, String[] projectionIn, method in class:SQLiteQueryBuilder [all...] |
H A D | SQLiteCursorDriver.java | 28 * Executes the query returning a Cursor over the result set. 34 Cursor query(CursorFactory factory, String[] bindArgs); method in interface:SQLiteCursorDriver
|
H A D | SQLiteQuery.java | 24 * A SQLite program that represents a query that reads the resulting rows into a CursorWindow. 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); 59 * @return number of total rows in the query 98 * Get the column count for the statement. Only valid on query based
|
H A D | SqliteWrapper.java | 56 public static Cursor query(Context context, ContentResolver resolver, Uri uri, method in class:SqliteWrapper 59 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); 61 Log.e(TAG, "Catch a SQLiteException when query: ", e);
|
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/ |
H A D | TrackerDataHelper.java | 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); 139 public Cursor query(String tag) { method in class:TrackerDataHelper 140 return query(tag, Integer.MAX_VALUE);
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | SelectionBuilder.java | 96 * Execute query using the current internal state as {@code WHERE} clause. 99 public Cursor query(SQLiteDatabase db, String table, String[] columns, String orderBy) { method in class:SelectionBuilder 100 return query(db, table, columns, null, null, orderBy, null); 104 * Execute query using the current internal state as {@code WHERE} clause. 106 public Cursor query(SQLiteDatabase db, String table, String[] columns, String groupBy, method in class:SelectionBuilder 108 return db.query(table, columns, getSelection(), getSelectionArgs(), groupBy, having,
|
H A D | SyncStateContentProviderHelper.java | 30 * and implements query/insert/update/delete to access that table using the 85 public Cursor query(SQLiteDatabase db, String[] projection, method in class:SyncStateContentProviderHelper 87 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs, 118 Cursor c = db.query(SYNC_STATE_TABLE, ACCOUNT_PROJECTION, null, null, null, null, null);
|
/frameworks/base/core/java/android/app/ |
H A D | SearchManager.java | 84 * to obtain the query string from Intent.ACTION_SEARCH. 86 public final static String QUERY = "query"; 92 * to obtain the query string typed in by the user. 124 * to obtain the keycode that the user used to trigger this query. It will be zero if the 139 * the initial query should be selected when the global search activity is started, so 140 * that the user can easily replace it with another query. 295 * used when forming the suggestion's query. 452 * @param selectInitialQuery If true, the intial query will be preselected, which means that 454 * query is being inserted. If false, the selection point will be placed at the end of the 455 * inserted query 577 triggerSearch(String query, ComponentName launchActivity, Bundle appSearchData) argument 711 getSuggestions(SearchableInfo searchable, String query) argument 726 getSuggestions(SearchableInfo searchable, String query, int limit) argument [all...] |
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | CallerInfoTest.java | 80 * Same as testEmergencyIsProperlySet but uses the async query api. 84 QueryRunner query; 86 query = new QueryRunner("911"); 87 query.runAndCheckCompletion(); 90 query = new QueryRunner("tel:911"); 91 query.runAndCheckCompletion(); 94 query = new QueryRunner("18001234567"); 95 query.runAndCheckCompletion(); 165 * query, so we have to use a thread with its own looper. 178 // Run the query i [all...] |
/frameworks/base/core/java/android/net/ |
H A D | Uri.java | 100 <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 1091 private final Part query; field in class:Uri.HierarchicalUri 1094 HierarchicalUri(String scheme, Part authority, PathPart path, Part query, Part fragment) argument 1271 private Part query; field in class:Uri.Builder 1379 query(Part query) argument 1390 query(String query) argument 1397 encodedQuery(String query) argument [all...] |
H A D | MailTo.java | 76 // Parse out the query parameters 77 String query = email.getQuery(); 78 if (query != null ) { 79 String[] queries = query.split("&");
|
H A D | UrlQuerySanitizer.java | 100 * 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/provider/ |
H A D | Applications.java | 76 public static Cursor search(ContentResolver resolver, String query) { argument 77 Uri searchUri = CONTENT_URI.buildUpon().appendPath(SEARCH_PATH).appendPath(query).build(); 78 return resolver.query(searchUri, null, null, null, null);
|
H A D | Calendar.java | 211 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Calendars 214 return cr.query(CONTENT_URI, projection, where, 712 subCursor = mResolver.query(Reminders.CONTENT_URI, REMINDERS_PROJECTION, 717 subCursor = mProvider.query(Reminders.CONTENT_URI, REMINDERS_PROJECTION, 734 subCursor = mResolver.query(Attendees.CONTENT_URI, ATTENDEES_PROJECTION, 739 subCursor = mProvider.query(Attendees.CONTENT_URI, ATTENDEES_PROJECTION, 764 subCursor = mResolver.query(ExtendedProperties.CONTENT_URI, EXTENDED_PROJECTION, 769 subCursor = mProvider.query(ExtendedProperties.CONTENT_URI, EXTENDED_PROJECTION, 810 public static final Cursor query(ContentResolver cr, String[] projection) { method in class:Calendar.Events 811 return cr.query(CONTENT_UR 814 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Events 853 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Instances 862 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.Instances 1087 public static final Cursor query(ContentResolver cr, int startDay, int numDays) { method in class:Calendar.EventDays 1251 public static final Cursor query(ContentResolver cr, String[] projection, method in class:Calendar.CalendarAlerts [all...] |
/frameworks/base/core/tests/coretests/src/android/app/ |
H A D | SuggestionProvider.java | 63 public Cursor query(Uri url, String[] projectionIn, String selection, method in class:SuggestionProvider 68 String query = url.getLastPathSegment(); 72 addRow(cursor, query + suffix);
|
/frameworks/base/core/jni/ |
H A D | android_database_SQLiteCompiledSql.cpp | 75 // includes the query itself. 76 const char *query = env->GetStringUTFChars(sqlString, NULL); local 77 char *message = (char*) malloc(strlen(query) + 50); 80 strcat(message, query); 82 env->ReleaseStringUTFChars(sqlString, query);
|
/frameworks/base/core/tests/coretests/src/android/net/ |
H A D | UriTest.java | 392 testHierarchical("http", "google.com", "/p1/p2", "query", "fragment"); 397 testHierarchical("http", "google.com", "", "query", "fragment"); 398 testHierarchical("http", "google.com", "", "query", null); 399 testHierarchical("http", null, "/", "query", null); 403 String path, String query, String fragment) { 412 if (query != null) { 413 sb.append('?').append(query); 431 uriString, ssp, uri, scheme, authority, path, query, fragment); 433 uriString, ssp, uri, scheme, authority, path, query, fragment); 440 uriString, ssp, uri, scheme, authority, path, query, fragmen 402 testHierarchical(String scheme, String authority, String path, String query, String fragment) argument 484 compareHierarchical(String uriString, String ssp, Uri uri, String scheme, String authority, String path, String query, String fragment) argument [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
H A D | DatabaseLocaleTest.java | 65 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 D | DatabaseStatementTest.java | 87 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 141 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 163 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 186 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 208 Cursor c = mDatabase.query("test", null, null, null, null, null, null); 233 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 268 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); 317 Cursor c = mDatabase.query("test", null, null, null, null, null, null);
|
H A D | DatabasePerformanceTests.java | 161 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 D | NewDatabasePerformanceTests.java | 202 .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/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/ |
H A D | DisabledProvider.java | 34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:DisabledProvider
|
H A D | EnabledProvider.java | 34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, method in class:EnabledProvider
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderClient.java | 46 /** see {@link ContentProvider#query} */ 47 public Cursor query(Uri url, String[] projection, String selection, method in class:ContentProviderClient 49 return mContentProvider.query(url, projection, selection, selectionArgs, sortOrder);
|