Home
last modified time | relevance | path

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

123

/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java134 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
161 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
174 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
182 if (selection != null && selection.length() > 0) { in update()
183 selection = idSelection + " AND " + selection; in update()
185 selection = idSelection; in update()
192 if (selection != null && selection.length() > 0) { in update()
193 selection = testNameSelection + " AND " + selection; in update()
195 selection = testNameSelection; in update()
204 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/hostsidetests/inputmethodservice/deviceside/lib/src/android/inputmethodservice/cts/db/
DDatabase.java61 public Cursor query(final String table, final String[] projection, final String selection, in query() argument
64 .query(table, projection, selection, selectionArgs, null /* groupBy */, in query()
72 public int delete(final String table, final String selection, final String[] selectionArgs) { in delete() argument
73 return mHelper.getWritableDatabase().delete(table, selection, selectionArgs); in delete()
76 public int update(final String table, final ContentValues values, final String selection, in update() argument
78 return mHelper.getWritableDatabase().update(table, values, selection, selectionArgs); in update()
/cts/tests/tests/content/src/android/content/cts/
DMockContentProvider.java141 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
148 if (null == selection) { in delete()
150 selection = "1"; in delete()
152 count = db.delete("TestTable1", selection, selectionArgs); in delete()
157 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
161 count = db.delete("TestTable2", selection, selectionArgs); in delete()
166 (!TextUtils.isEmpty(selection) ? " AND (" + selection + ')' : ""), in delete()
258 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
260 return query(uri, projection, selection, selectionArgs, sortOrder, null); in query()
264 public Cursor query(Uri uri, String[] projection, String selection, in query() argument
[all …]
DDummyProvider.java115 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
122 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query()
162 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
168 int count = db.update(tbName, values, selection, selectionArgs); in update()
179 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
185 int count = db.delete(tbName, selection, selectionArgs); in delete()
/cts/hostsidetests/inputmethodservice/deviceside/provider/src/android/inputmethodservice/cts/provider/
DEventProvider.java70 final @Nullable String selection, @Nullable final String[] selectionArgs, in query() argument
77 + " selection=" + uriHelper.buildSelection(selection) in query()
83 uriHelper.table, projection, uriHelper.buildSelection(selection), in query()
108 public int delete(@NonNull final Uri uri, @Nullable final String selection, in delete() argument
114 + " selection=" + uriHelper.buildSelection(selection) in delete()
118 final int count = mDatabase.delete(uriHelper.table, uriHelper.buildSelection(selection), in delete()
129 final @Nullable String selection, @Nullable final String[] selectionArgs) { in update() argument
135 + " selection=" + uriHelper.buildSelection(selection) in update()
140 uriHelper.buildSelection(selection), uriHelper.buildSelectionArgs(selectionArgs)); in update()
/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()
/cts/tests/JobScheduler/src/android/jobscheduler/
DDummyJobContentProvider.java104 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
111 Cursor c = db.query(tbName, projection, selection, selectionArgs, null, null, sortOrder); in query()
131 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
137 int count = db.update(tbName, values, selection, selectionArgs); in update()
148 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
154 int count = db.delete(tbName, selection, selectionArgs); in delete()
/cts/hostsidetests/incident/apps/batterystatsapp/src/com/android/server/cts/device/batterystats/
DBatteryStatsProvider.java35 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
51 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
56 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/hostsidetests/appsecurity/test-apps/EncryptionApp/src/com/android/cts/encryptionapp/
DUnawareProvider.java38 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
54 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
59 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
DAwareProvider.java38 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
54 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
59 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/
DUtilsProvider.java37 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
53 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
58 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { in update() argument
/cts/hostsidetests/appsecurity/test-apps/PermissionDeclareApp/src/com/android/cts/permissiondeclareapp/
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
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
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
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
/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/content/test-apps/CtsSyncInvalidAccountAuthorityTestCases/src/android/content/sync/cts/
DStubProvider.java34 @Nullable String selection, @Nullable String[] selectionArgs, in query() argument
50 public int delete(@NonNull Uri uri, @Nullable String selection, in delete() argument
57 @Nullable String selection, @Nullable String[] selectionArgs) { in update() argument
/cts/hostsidetests/content/test-apps/SyncAccountAccessStubs/src/com/android/cts/stub/
DStubProvider.java34 @Nullable String selection, @Nullable String[] selectionArgs, in query() argument
50 public int delete(@NonNull Uri uri, @Nullable String selection, in delete() argument
57 @Nullable String selection, @Nullable String[] selectionArgs) { in update() argument
/cts/hostsidetests/services/activityandwindowmanager/windowmanager/dndsourceapp/src/android/wm/cts/dndsourceapp/
DDragSourceContentProvider.java43 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() argument
63 public int delete(Uri uri, String selection, String[] selectionArgs) { in delete() argument
68 public int update(Uri uri, ContentValues values, String selection, String[] selectionArgs) { 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/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

123