Searched refs:selectionArgs (Results 1 - 25 of 42) sorted by relevance

12

/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteDirectCursorDriver.java40 public Cursor query(CursorFactory factory, String[] selectionArgs) { argument
42 SQLiteQuery query = new SQLiteQuery(mDatabase, mSql, 0, selectionArgs);
46 int numArgs = selectionArgs == null ? 0 : selectionArgs.length;
48 query.bindString(i + 1, selectionArgs[i]);
H A DSQLiteContentHelper.java40 * @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 DSqliteWrapper.java57 String[] projection, String selection, String[] selectionArgs, String sortOrder) {
59 return resolver.query(uri, projection, selection, selectionArgs, sortOrder);
77 ContentValues values, String where, String[] selectionArgs) {
79 return resolver.update(uri, values, where, selectionArgs);
88 String where, String[] selectionArgs) {
90 return resolver.delete(uri, where, selectionArgs);
56 query(Context context, ContentResolver resolver, Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
76 update(Context context, ContentResolver resolver, Uri uri, ContentValues values, String where, String[] selectionArgs) argument
87 delete(Context context, ContentResolver resolver, Uri uri, String where, String[] selectionArgs) argument
H A DSQLiteQueryBuilder.java258 * @param selectionArgs You may include ?s in selection, which
259 * will be replaced by the values from selectionArgs, in order
278 String selection, String[] selectionArgs, String groupBy,
280 return query(db, projectionIn, selection, selectionArgs, groupBy, having, sortOrder,
295 * @param selectionArgs You may include ?s in selection, which
296 * will be replaced by the values from selectionArgs, in order
317 String selection, String[] selectionArgs, String groupBy,
324 projectionIn, selection, selectionArgs, groupBy, having,
331 mFactory, sql, selectionArgs,
348 * @param selectionArgs Yo
277 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder) argument
316 query(SQLiteDatabase db, String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
367 buildQuery( String[] projectionIn, String selection, String[] selectionArgs, String groupBy, String having, String sortOrder, String limit) argument
439 buildUnionSubQuery( String typeDiscriminatorColumn, String[] unionColumns, Set<String> columnsPresentInTable, int computedColumnsOffset, String typeDiscriminatorValue, String selection, String[] selectionArgs, String groupBy, String having) argument
[all...]
/frameworks/base/core/tests/coretests/EnabledTestApp/src/com/android/frameworks/coretests/enabled_app/
H A DDisabledProvider.java34 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 DEnabledProvider.java34 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 DContentProviderClient.java48 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);
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 DAsyncQueryHandler.java53 public String[] selectionArgs; field in class:AsyncQueryHandler.WorkerArgs
80 args.selection, args.selectionArgs,
101 args.selectionArgs);
105 args.result = resolver.delete(args.uri, args.selection, args.selectionArgs);
157 * @param selectionArgs You may include ?s in selection, which will be
158 * replaced by the values from selectionArgs, in the order that they
165 String[] projection, String selection, String[] selectionArgs,
176 args.selectionArgs = selectionArgs;
234 ContentValues values, String selection, String[] selectionArgs) {
164 startQuery(int token, Object cookie, Uri uri, String[] projection, String selection, String[] selectionArgs, String orderBy) argument
233 startUpdate(int token, Object cookie, Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
261 startDelete(int token, Object cookie, Uri uri, String selection, String[] selectionArgs) argument
[all...]
H A DIContentProvider.java44 String selection, String[] selectionArgs, String sortOrder, IContentObserver observer,
47 String[] selectionArgs, String sortOrder) throws RemoteException;
52 public int delete(Uri url, String selection, String[] selectionArgs) argument
55 String[] selectionArgs) throws RemoteException;
43 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
46 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
54 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
H A DContentProviderNative.java89 // String selection, String[] selectionArgs...
92 String[] selectionArgs = null;
94 selectionArgs = new String[num];
96 selectionArgs[i] = data.readString();
112 selectionArgs, sortOrder, observer, window);
184 String[] selectionArgs = data.readStringArray();
186 int count = delete(url, selection, selectionArgs);
199 String[] selectionArgs = data.readStringArray();
201 int count = update(url, values, selection, selectionArgs);
291 String selection, String[] selectionArgs, Strin
289 bulkQueryInternal( Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window, BulkCursorToCursorAdaptor adaptor) argument
352 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
361 query(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
459 delete(Uri url, String selection, String[] selectionArgs) argument
481 update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
[all...]
H A DSearchRecentSuggestionsProvider.java213 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 DContentProvider.java171 String selection, String[] selectionArgs, String sortOrder,
175 selection, selectionArgs, sortOrder);
185 String selection, String[] selectionArgs, String sortOrder) {
188 selectionArgs, sortOrder);
220 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
222 return ContentProvider.this.delete(uri, selection, selectionArgs);
226 String[] selectionArgs) {
228 return ContentProvider.this.update(uri, values, selection, selectionArgs);
513 selectionArgs,
528 * @param selectionArgs Yo
170 bulkQuery(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
184 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
225 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
535 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
613 delete(Uri uri, String selection, String[] selectionArgs) argument
632 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
[all...]
H A DContentProviderOperation.java210 String[] selectionArgs =
223 numRows = provider.delete(mUri, mSelection, selectionArgs);
225 numRows = provider.update(mUri, values, mSelection, selectionArgs);
237 final Cursor cursor = provider.query(mUri, projection, mSelection, selectionArgs, null);
563 public Builder withSelection(String selection, String[] selectionArgs) { argument
569 if (selectionArgs == null) {
572 mSelectionArgs = new String[selectionArgs.length];
573 System.arraycopy(selectionArgs, 0, mSelectionArgs, 0, selectionArgs.length);
H A DDefaultDataHandler.java183 String[] selectionArgs = new String[attrLen];
185 selectionArgs[i] = atts.getValue(i+2);
187 mContentResolver.delete(u, atts.getValue(1), selectionArgs);
/frameworks/base/core/java/com/android/internal/content/
H A DSelectionBuilder.java50 public SelectionBuilder append(String selection, Object... selectionArgs) { argument
52 if (selectionArgs != null && selectionArgs.length > 0) {
66 if (selectionArgs != null) {
67 for (Object arg : selectionArgs) {
H A DSyncStateContentProviderHelper.java86 String selection, String[] selectionArgs, String sortOrder) {
87 return db.query(SYNC_STATE_TABLE, projection, selection, selectionArgs,
100 String selection, String[] selectionArgs) {
101 return db.update(SYNC_STATE_TABLE, values, selection, selectionArgs);
85 query(SQLiteDatabase db, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
99 update(SQLiteDatabase db, ContentValues values, String selection, String[] selectionArgs) argument
/frameworks/base/core/java/com/google/android/mms/util/
H A DSqliteWrapper.java69 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/src/android/test/mock/
H A DMockIContentProvider.java50 String[] selectionArgs, String sortOrder, IContentObserver observer,
56 public int delete(Uri url, String selection, String[] selectionArgs) argument
82 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument
87 public EntityIterator queryEntities(Uri url, String selection, String[] selectionArgs, argument
92 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
49 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
H A DMockContentProvider.java71 String[] selectionArgs, String sortOrder, IContentObserver observer,
77 public int delete(Uri url, String selection, String[] selectionArgs) argument
79 return MockContentProvider.this.delete(url, selection, selectionArgs);
105 public Cursor query(Uri url, String[] projection, String selection, String[] selectionArgs, argument
108 selectionArgs, sortOrder);
112 public int update(Uri url, ContentValues values, String selection, String[] selectionArgs) argument
114 return MockContentProvider.this.update(url, values, selection, selectionArgs);
169 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
189 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, argument
195 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { argument
70 bulkQuery(Uri url, String[] projection, String selection, String[] selectionArgs, String sortOrder, IContentObserver observer, CursorWindow window) argument
[all...]
/frameworks/base/tests/LocationTracker/src/com/android/locationtracker/data/
H A DTrackerProvider.java86 public int delete(Uri uri, String selection, String[] selectionArgs) { argument
88 int result = db.delete(TABLE_NAME, selection, selectionArgs);
112 String[] selectionArgs, String sortOrder) {
116 selectionArgs, null, null, sortOrder);
123 String[] selectionArgs) {
111 query(Uri uri, String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
122 update(Uri uri, ContentValues values, String selection, String[] selectionArgs) argument
H A DTrackerDataHelper.java110 String[] selectionArgs = (tag == null ? null : new String[] {tag});
113 selection, selectionArgs, null);
/frameworks/base/core/tests/coretests/src/android/pim/vcard/test_utils/
H A DExportTestProvider.java94 String selection, String[] selectionArgs, String sortOrder) {
100 TestCase.assertEquals(1, selectionArgs.length);
101 final int id = Integer.parseInt(selectionArgs[0]);
109 String selection, String[] selectionArgs, String sortOrder) {
113 TestCase.assertNull(selectionArgs);
93 queryEntities(Uri uri, String selection, String[] selectionArgs, String sortOrder) argument
108 query(Uri uri,String[] projection, String selection, String[] selectionArgs, String sortOrder) argument
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DCallerInfoAsyncQuery.java316 String[] selectionArgs;
342 selectionArgs = new String[] { number.toUpperCase() };
348 selectionArgs = null;
354 if (selectionArgs != null) {
355 for (int i = 0; i < selectionArgs.length; i++) {
356 Log.d(LOG_TAG, "==> selectionArgs[" + i + "]: " + selectionArgs[i]);
384 selectionArgs, // selectionArgs
/frameworks/base/core/java/android/database/
H A DDatabaseUtils.java621 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/core/tests/coretests/src/android/content/
H A DContentProviderOperationTest.java145 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

Completed in 267 milliseconds

12