/frameworks/base/core/java/android/database/sqlite/ |
H A D | SQLiteDirectCursorDriver.java | 47 public Cursor query(CursorFactory factory, String[] selectionArgs) { argument 49 SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, 0, selectionArgs); 53 int numArgs = selectionArgs == null ? 0 : selectionArgs.length; 55 query.bindString(i + 1, selectionArgs[i]);
|
H A D | SQLiteContentHelper.java | 40 * @param selectionArgs Query argument values, or {@code null} for no argument. 47 String[] selectionArgs) throws FileNotFoundException { 49 MemoryFile file = simpleQueryForBlobMemoryFile(db, sql, selectionArgs); 70 String[] selectionArgs) throws IOException { 71 Cursor cursor = db.rawQuery(sql, selectionArgs); 46 getBlobColumnAsAssetFile(SQLiteDatabase db, String sql, String[] selectionArgs) argument 69 simpleQueryForBlobMemoryFile(SQLiteDatabase db, String sql, String[] selectionArgs) argument
|
H A D | SQLiteQueryBuilder.java | 244 * @param selectionArgs You may include ?s in selection, which 245 * will be replaced by the values from selectionArgs, in order 264 String selection, String[] selectionArgs, String groupBy, 266 return query(db, projectionIn, selection, selectionArgs, groupBy, having, sortOrder, 281 * @param selectionArgs You may include ?s in selection, which 282 * will be replaced by the values from selectionArgs, in order 303 String selection, String[] selectionArgs, String groupBy, 310 projectionIn, selection, selectionArgs, groupBy, having, 317 mFactory, sql, selectionArgs, 334 * @param selectionArgs Yo 263 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder) argument 302 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument 353 buildQuery( String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument 424 buildUnionSubQuery( String typeDiscriminatorColumn, String[] unionColumns, Set<String> columnsPresentInTable, int computedColumnsOffset, String typeDiscriminatorValue, String selection, String[] selectionArgs, String groupBy, String having) argument [all...] |
H A D | SQLiteDatabase.java | 1044 * @param selectionArgs You may include ?s in selection, which will be 1045 * replaced by the values from selectionArgs, in order that they 1064 String selection, String[] selectionArgs, String groupBy, 1066 return queryWithFactory(null, distinct, table, columns, selection, selectionArgs, 1082 * @param selectionArgs You may include ?s in selection, which will be 1083 * replaced by the values from selectionArgs, in order that they 1103 String selection, String[] selectionArgs, String groupBy, 1109 cursorFactory, sql, selectionArgs, findEditTable(table)); 1122 * @param selectionArgs You may include ?s in selection, which will be 1123 * replaced by the values from selectionArgs, i 1063 query(boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument 1101 queryWithFactory(CursorFactory cursorFactory, boolean distinct, String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument 1139 query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy) argument 1176 query(String table, String[] columns, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) argument 1193 rawQuery(String sql, String[] selectionArgs) argument 1208 rawQueryWithFactory( CursorFactory cursorFactory, String sql, String[] selectionArgs, String editTable) argument 1264 rawQuery(String sql, String[] selectionArgs, int initialRead, int maxRead) argument [all...] |
/frameworks/base/tests/AndroidTests/EnabledTestApp/src/com/android/unit_tests/enabled_app/ |
H A D | DisabledProvider.java | 34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
|
H A D | EnabledProvider.java | 34 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 47 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 51 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
|
/frameworks/base/core/java/android/content/ |
H A D | ContentProviderClient.java | 48 String[] selectionArgs, String sortOrder) throws RemoteException { 49 return mContentProvider.query(url, projection, selection, selectionArgs, sortOrder); 69 public int delete(Uri url, String selection, String[] selectionArgs) argument 71 return mContentProvider.delete(url, selection, selectionArgs); 76 String[] selectionArgs) throws RemoteException { 77 return mContentProvider.update(url, values, selection, selectionArgs); 96 public EntityIterator queryEntities(Uri uri, String selection, String[] selectionArgs, argument 98 return mContentProvider.queryEntities(uri, selection, selectionArgs, sortOrder); 47 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 75 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
|
H A D | AsyncQueryHandler.java | 54 public String[] selectionArgs; field in class:AsyncQueryHandler.WorkerArgs 81 args.selection, args.selectionArgs, 100 args.selectionArgs, args.orderBy); 114 args.selectionArgs); 118 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs); 170 * @param selectionArgs You may include ?s in selection, which will be 171 * replaced by the values from selectionArgs, in the order that they 178 String[] projection, String selection, String[] selectionArgs, 189 args.selectionArgs = selectionArgs; 177 startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument 218 startQueryEntities(int token, Object cookie, Uri uri, String selection, String[] selectionArgs, String orderBy) argument 285 startUpdate(int token, Object cookie, Uri uri, ContentValues values, String selection, String[] selectionArgs) argument 313 startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs) argument [all...] |
H A D | IContentProvider.java | 43 String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, 46 String[] selectionArgs, String sortOrder) throws RemoteException; 51 String[] selectionArgs, String sortOrder) 57 public int delete(Uri url, String selection, String[] selectionArgs) argument 60 String[] selectionArgs) throws RemoteException; 42 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument 45 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 50 queryEntities(Uri url, String selection, String[] selectionArgs, String sortOrder) argument 59 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
|
H A D | SyncableContentProvider.java | 173 String selection, String[] selectionArgs); 182 protected abstract int deleteInternal(Uri url, String selection, String[] selectionArgs); argument 202 String selection, String[] selectionArgs, String sortOrder); 172 updateInternal(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 201 queryInternal(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
|
H A D | ContentProviderNative.java | 86 String[] selectionArgs = null; 88 selectionArgs = new String[num]; 90 selectionArgs[i] = data.readString(); 99 selectionArgs, sortOrder, observer, window); 114 String[] selectionArgs = data.readStringArray(); 116 EntityIterator entityIterator = queryEntities(url, selection, selectionArgs, 178 String[] selectionArgs = data.readStringArray(); 180 int count = delete(url, selection, selectionArgs); 193 String[] selectionArgs = data.readStringArray(); 195 int count = update(url, values, selection, selectionArgs); 293 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument 340 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 358 queryEntities(Uri url, String selection, String[] selectionArgs, String sortOrder) argument 496 delete(Uri url, String selection, String[] selectionArgs) argument 518 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument [all...] |
H A D | ContentProvider.java | 114 String selection, String[] selectionArgs, String sortOrder, 118 selection, selectionArgs, sortOrder); 128 String selection, String[] selectionArgs, String sortOrder) { 131 selectionArgs, sortOrder); 137 public EntityIterator queryEntities(Uri uri, String selection, String[] selectionArgs, argument 140 return ContentProvider.this.queryEntities(uri, selection, selectionArgs, sortOrder); 172 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 174 return ContentProvider.this.delete(uri, selection, selectionArgs); 178 String[] selectionArgs) { 180 return ContentProvider.this.update(uri, values, selection, selectionArgs); 113 bulkQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument 127 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 177 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument 444 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 450 queryEntities(Uri uri, String selection, String[] selectionArgs, String sortOrder) argument 526 delete(Uri uri, String selection, String[] selectionArgs) argument 546 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument [all...] |
H A D | SearchRecentSuggestionsProvider.java | 213 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 224 count = db.delete(sSuggestions, selection, selectionArgs); 307 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 315 if (TextUtils.isEmpty(selectionArgs[0])) { 319 String like = "%" + selectionArgs[0] + "%"; 370 selectionArgs, null, null, sortOrder, 381 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
|
H A D | ContentProviderOperation.java | 207 String[] selectionArgs = 220 numRows = provider.delete(mUri, mSelection, selectionArgs); 222 numRows = provider.update(mUri, values, mSelection, selectionArgs); 234 final Cursor cursor = provider.query(mUri, projection, mSelection, selectionArgs, null); 542 public Builder withSelection(String selection, String[] selectionArgs) { argument 548 if (selectionArgs == null) { 551 mSelectionArgs = new String[selectionArgs.length]; 552 System.arraycopy(selectionArgs, 0, mSelectionArgs, 0, selectionArgs.length);
|
H A D | AbstractSyncableContentProvider.java | 267 final String selection, final String[] selectionArgs) { 276 url, values, selection, selectionArgs); 283 int result = updateInternal(url, values, selection, selectionArgs); 305 final String[] selectionArgs) { 313 int numRows = mSyncState.asContentProvider().delete(url, selection, selectionArgs); 319 int result = deleteInternal(url, selection, selectionArgs); 506 final String selection, final String[] selectionArgs, 511 url, projection, selection, selectionArgs, sortOrder); 513 return queryInternal(url, projection, selection, selectionArgs, sortOrder); 618 String selection, String[] selectionArgs); 266 update(final Uri url, final ContentValues values, final String selection, final String[] selectionArgs) argument 304 delete(final Uri url, final String selection, final String[] selectionArgs) argument 505 query(final Uri url, final String[] projection, final String selection, final String[] selectionArgs, final String sortOrder) argument 617 updateInternal(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 627 deleteInternal(Uri url, String selection, String[] selectionArgs) argument 646 queryInternal(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument [all...] |
H A D | DefaultDataHandler.java | 183 String[] selectionArgs = new String[attrLen]; 185 selectionArgs[i] = atts.getValue(i+2); 187 mContentResolver.delete(u, atts.getValue(1), selectionArgs);
|
H A D | SyncStateContentProviderHelper.java | 102 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument 108 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs, 143 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) { argument 147 return db.update(SYNC_STATE_TABLE, values, selection, selectionArgs);
|
H A D | ContentResolver.java | 186 * @param selectionArgs You may include ?s in selection, which will be 187 * replaced by the values from selectionArgs, in the order that they 196 String selection, String[] selectionArgs, String sortOrder) { 202 Cursor qCursor = provider.query(uri, projection, selection, selectionArgs, sortOrder); 277 * @param selectionArgs You may include ?s in selection, which will be 278 * replaced by the values from selectionArgs, in the order that they 290 String selection, String[] selectionArgs, String sortOrder) throws RemoteException { 297 provider.queryEntities(uri, selection, selectionArgs, sortOrder); 702 public final int delete(Uri url, String where, String[] selectionArgs) argument 709 return provider.delete(url, where, selectionArgs); 195 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 289 queryEntities(Uri uri, String selection, String[] selectionArgs, String sortOrder) argument 730 update(Uri uri, ContentValues values, String where, String[] selectionArgs) argument [all...] |
/frameworks/base/core/java/com/google/android/mms/util/ |
H A D | SqliteWrapper.java | 69 String[] projection, String selection, String[] selectionArgs, String sortOrder) { 71 return resolver.query(uri, projection, selection, selectionArgs, sortOrder); 89 ContentValues values, String where, String[] selectionArgs) { 91 return resolver.update(uri, values, where, selectionArgs); 100 String where, String[] selectionArgs) { 102 return resolver.delete(uri, where, selectionArgs); 68 query(Context context, ContentResolver resolver, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 88 update(Context context, ContentResolver resolver, Uri uri, ContentValues values, String where, String[] selectionArgs) argument 99 delete(Context context, ContentResolver resolver, Uri uri, String where, String[] selectionArgs) argument
|
/frameworks/base/test-runner/android/test/mock/ |
H A D | MockContentProvider.java | 58 String[] selectionArgs, String sortOrder, IContentObserver observer, 64 public int delete(Uri url, String selection, String[] selectionArgs) argument 97 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument 105 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, argument 111 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 57 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | SyncStateContentProviderHelper.java | 81 String selection, String[] selectionArgs, String sortOrder) { 82 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs, 95 String selection, String[] selectionArgs) { 96 return db.update(SYNC_STATE_TABLE, values, selection, selectionArgs); 80 query(SQLiteDatabase db, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument 94 update(SQLiteDatabase db, ContentValues values, String selection, String[] selectionArgs) argument
|
/frameworks/base/core/java/android/database/ |
H A D | DatabaseUtils.java | 621 public static long longForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { argument 624 return longForQuery(prog, selectionArgs); 634 public static long longForQuery(SQLiteStatement prog, String[] selectionArgs) { argument 635 if (selectionArgs != null) { 636 int size = selectionArgs.length; 638 bindObjectToProgram(prog, i + 1, selectionArgs[i]); 649 public static String stringForQuery(SQLiteDatabase db, String query, String[] selectionArgs) { argument 652 return stringForQuery(prog, selectionArgs); 662 public static String stringForQuery(SQLiteStatement prog, String[] selectionArgs) { argument 663 if (selectionArgs ! [all...] |
/frameworks/base/tests/FrameworkTest/tests/src/android/content/ |
H A D | AbstractTableMergerTest.java | 407 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 412 return mDb.query(TABLE_NAME, projection, selection, selectionArgs, 415 return mDb.query(DELETED_TABLE_NAME, projection, selection, selectionArgs, 442 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 446 return mDb.delete(TABLE_NAME, selection, selectionArgs); 448 return mDb.delete(DELETED_TABLE_NAME, selection, selectionArgs); 454 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument 458 return mDb.update(TABLE_NAME, values, selection, selectionArgs); 460 return mDb.update(DELETED_TABLE_NAME, values, selection, selectionArgs); 539 String[] selectionArgs) { 538 updateInternal(Uri url, ContentValues values, String selection, String[] selectionArgs) argument 543 deleteInternal(Uri url, String selection, String[] selectionArgs) argument 551 queryInternal(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument [all...] |
H A D | ContentProviderOperationTest.java | 145 String[] selectionArgs, String sortOrder) { 164 String[] selectionArgs, String sortOrder) { 180 String[] selectionArgs, String sortOrder) { 196 String[] selectionArgs, String sortOrder) { 264 String[] selectionArgs = new String[]{"a", null, null, "b", null}; 273 .withSelection("unused", selectionArgs) 529 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument 542 public int delete(Uri uri, String selection, String[] selectionArgs) { argument 546 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
|
/frameworks/base/tests/AndroidTests/src/com/android/unit_tests/activity/ |
H A D | LocalProvider.java | 86 String[] selectionArgs, String sort) { 105 Cursor ret = qb.query(db, projectionIn, selection, selectionArgs, 85 query(Uri url, String[] projectionIn, String selection, String[] selectionArgs, String sort) argument
|