Home
last modified time | relevance | path

Searched refs:selection (Results 1 – 25 of 35) sorted by relevance

12

/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java120 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
147 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
160 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
168 if (selection != null && selection.length() > 0) { in update()
169 selection = idSelection + " AND " + selection; in update()
171 selection = idSelection; in update()
178 if (selection != null && selection.length() > 0) { in update()
179 selection = testNameSelection + " AND " + selection; in update()
181 selection = testNameSelection; in update()
190 int numUpdated = db.update(TABLE_NAME, values, selection, selectionArgs); in update()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDatabaseAsserts.java167 String[] projection, String selection, String[] selectionArgs, String sortOrder, in assertStoredValuesInUriMatchExactly() argument
169 final Cursor cursor = resolver.query(uri, projection, selection, selectionArgs, sortOrder); in assertStoredValuesInUriMatchExactly()
268 StringBuilder selection = new StringBuilder(); in buildIdSelection() local
269 selection.append(BaseColumns._ID + " in "); in buildIdSelection()
270 selection.append("("); in buildIdSelection()
272 if (i != 0) selection.append(","); in buildIdSelection()
273 selection.append(ids[i]); in buildIdSelection()
275 selection.append(")"); in buildIdSelection()
276 return selection.toString(); in buildIdSelection()
286 final String selection = buildIdSelection(ids); in checkProjection() local
[all …]
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java132 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
139 if (null == selection) { in delete()
141 selection = "1"; in delete()
143 count = db.delete("TestTable1", selection, selectionArgs); in delete()
148 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
152 count = db.delete("TestTable2", selection, selectionArgs); in delete()
157 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
234 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
236 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
240 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
[all …]
DDummyProvider.java118 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
125 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query()
165 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
171 int count = db.update(tbName, values, selection, selectionArgs); in update()
182 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
188 int count = db.delete(tbName, selection, selectionArgs); in delete()
DContentProviderTest.java239 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
259 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
265 public int update(Uri uri, ContentValues values, String selection, in update() argument
310 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
330 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
332 return mDb.query("files", projection, selection, selectionArgs, null, null, null); in query()
336 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/tests/tests/provider/src/android/provider/cts/
DSettings_SystemTest.java50 String selection = System.NAME + "=\"" + INT_FIELD + "\""; in deleteTestedRows() local
51 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
53 selection = System.NAME + "=\"" + LONG_FIELD + "\""; in deleteTestedRows()
54 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
56 selection = System.NAME + "=\"" + FLOAT_FIELD + "\""; in deleteTestedRows()
57 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
59 selection = System.NAME + "=\"" + STRING_FIELD + "\""; in deleteTestedRows()
60 cr.delete(System.CONTENT_URI, selection, null); in deleteTestedRows()
DMediaStore_Audio_ArtistsTest.java76 String selection = Artists.ARTIST + "=?"; in testStoreAudioArtists() local
80 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
96 mContentResolver.update(artistsUri, artistValues, selection, selectionArgs); in testStoreAudioArtists()
104 mContentResolver.delete(artistsUri, selection, selectionArgs); in testStoreAudioArtists()
128 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
DMediaStoreTest.java63 String selection = MediaStore.MEDIA_SCANNER_VOLUME + "=?"; in testGetMediaScannerUri() local
68 selection, selectionArgs, null)); in testGetMediaScannerUri()
77 selection, selectionArgs, null); in testGetMediaScannerUri()
DTelephonyProviderTest.java90 String selection = Carriers.CURRENT + " IS NOT NULL"; in testAccessToApns() local
93 APN_PROJECTION, selection, selectionArgs, null); in testAccessToApns()
DSettings_NameValueTableTest.java48 String selection = NameValueTable.NAME + "=\"" + name + "\""; in testPutString() local
49 c = cr.query(uri, null, selection, null, null); in testPutString()
58 cr.delete(uri, selection, null); in testPutString()
DContactsContract_TestDataBuilder.java168 StringBuilder selection = new StringBuilder(); in loadUsingValues() local
175 if (selection.length() != 0) { in loadUsingValues()
176 selection.append(" AND "); in loadUsingValues()
179 selection.append(column); in loadUsingValues()
181 selection.append(" NOT NULL"); in loadUsingValues()
183 selection.append("=?"); in loadUsingValues()
188 selection.toString(), in loadUsingValues()
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
DPrivateContentProviderGranting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
DPermissionContentProviderPathRestricting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
DPermissionContentProviderPath.java18 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
39 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
45 public int update(Uri uri, ContentValues values, String selection, in update() argument
DPrivateContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
DPermissionContentProviderGranting.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
DAmbiguousContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
DPermissionContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareAppCompat/src/com/android/cts/permissiondeclareappcompat/
DAmbiguousContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
/cts/hostsidetests/devicepolicy/app/IntentSender/src/com/android/cts/intent/sender/
DBasicContentProvider.java34 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
55 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
61 public int update(Uri uri, ContentValues values, String selection, in update() argument
/cts/tests/tests/telephony/src/android/telephony/cts/
DMmsPduProvider.java39 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
58 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
64 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/tools/vm-tests-tf/etc/
Dstarttests53 selection=$1
55 if [ "$selection" = "--portable" ]; then
56 selection=$2;
85 if [ "$selection" = "--help" ]; then
156 if [ "$selection" == "" ] || [ "$jtitle" == "$selection" ]; then
/cts/hostsidetests/appsecurity/test-apps/SplitApp/feature/src/com/android/cts/splitapp/
DFeatureProvider.java61 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
77 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
82 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/tests/tests/webkit/src/android/webkit/cts/
DMockContentProvider.java46 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
61 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
67 public int update(Uri uri, ContentValues values, String selection, in update() argument
/cts/tests/tests/accounts/common/src/android/accounts/cts/common/
DAuthenticatorContentProvider.java124 String selection, in query() argument
141 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
146 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument

12