Home
last modified time | relevance | path

Searched refs:query (Results 1 – 25 of 205) sorted by relevance

123456789

/cts/tests/tests/database/src/android/database/cts/
DDatabaseUtilsTest.java118 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram()
131 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testBindObjectToProgram()
151 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements()
162 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues()
182 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToCursorValues()
201 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testCursorIntToContentValues()
230 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testcursorLongToContentValues()
259 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorRowToContentValues()
274 cursor = mDatabase.query("boolean_test", new String[] {"value"}, in testCursorRowToContentValues()
290 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorStringToContentValues()
[all …]
DDatabaseUtils_InsertHelperTest.java100 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testInsert()
125 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testInsert()
157 cursor = mDatabase.query(TEST_TABLE_NAME, projection, "_id = " + id, in testInsert()
202 Cursor cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testReplace()
221 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testReplace()
240 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testReplace()
267 cursor = mDatabase.query(TEST_TABLE_NAME, projection, null, null, null, null, null); in testReplace()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java154 Cursor cursor = sqliteQueryBuilder.query(mDatabase, new String[] { "name", "age" }, in testSetCursorFactory()
162 String editTable, SQLiteQuery query) { in testSetCursorFactory()
163 return new MockCursor(masterQuery, editTable, query); in testSetCursorFactory()
168 cursor = sqliteQueryBuilder.query(mDatabase, new String[] { "name", "age" }, in testSetCursorFactory()
176 String editTable, SQLiteQuery query) { in MockCursor() argument
177 super(driver, editTable, query); in MockCursor()
235 final String query = qb.buildQuery(null, null, null, null, null, null); in testAppendWhereStandalone() local
236 assertTrue(query.contains("(A) AND (B) AND (C)")); in testAppendWhereStandalone()
245 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testQuery()
265 cursor = sqliteQueryBuilder.query(mDatabase, in testQuery()
[all …]
DDatabaseStatementTest.java86 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testExecuteStatement()
140 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementLongBinding()
162 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementStringBinding()
185 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementClearBindings()
207 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testSimpleStringBinding()
232 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in testStatementMultipleBindings()
267 Cursor c = mDatabase.query("test", null, null, null, null, null, "ROWID"); in run()
316 Cursor c = mDatabase.query("test", null, null, null, null, null, null); in testStatementConstraint()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTestBase.java128 Cursor cursor = context.getContentResolver().query(downloadUri, null, null, null); in getMediaStoreUri()
210 Cursor c = context.getContentResolver().query(uri, projections, null, null, null); in getFileData()
306 DownloadManager.Query query = new DownloadManager.Query(); in clearDownloads() local
307 cursor = mDownloadManager.query(query); in clearDownloads()
343 DownloadManager.Query query = new DownloadManager.Query(); in getTotalNumberDownloads() local
344 cursor = mDownloadManager.query(query); in getTotalNumberDownloads()
356 DownloadManager.Query query = new DownloadManager.Query().setFilterById(downloadId); in assertDownloadQueryableById() local
357 cursor = mDownloadManager.query(query); in assertDownloadQueryableById()
372 … DownloadManager.Query query = new DownloadManager.Query().setFilterByStatus(status); in assertDownloadQueryableByStatus() local
373 cursor = mDownloadManager.query(query); in assertDownloadQueryableByStatus()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java390 String path, String query, String fragment) { in testHierarchical() argument
399 if (query != null) { in testHierarchical()
400 sb.append('?').append(query); in testHierarchical()
418 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
420 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
427 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
429 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
439 .encodedQuery(query) in testHierarchical()
444 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
446 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
[all …]
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_Audio_Genres_MembersTest.java79 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp()
85 c = mContentResolver.query(uri, null, null, null, null); in setUp()
104 assertNotNull(c = mContentResolver.query( in testGetContentUri()
115 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
134 c = mContentResolver.query(membersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
175 c = mContentResolver.query(membersUri, in testStoreAudioGenresMembersExternal()
187 c = mContentResolver.query(membersUri, null, in testStoreAudioGenresMembersExternal()
198 c = mContentResolver.query(allMembersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
212 c = mContentResolver.query(allMembersUri, null, in testStoreAudioGenresMembersExternal()
224 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
[all …]
DSearchRecentSuggestionsTest.java60 Cursor c = mTestSRSProvider.query(mTestUri, null, null, null, null); in testSearchRecentSuggestions()
74 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions()
99 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions()
141 Cursor cursor = mTestSRSProvider.query(mTestUri, in testSuggestionsTable()
176 cursor = mTestSRSProvider.query(mTestUri, in testSuggestionsTable()
204 cursor = mTestSRSProvider.query(uri, projection, null, null, null); in waitForCursorCount()
DMediaStore_Audio_ArtistsTest.java71 assertNotNull(c = mContentResolver.query( in testGetContentUri()
94 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
127 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
135 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
142 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DDeletedContactUtil.java40 Cursor cursor = resolver.query(uri, projection, null, null, null); in queryDeletedTimestampForContactId()
56 Cursor cursor = resolver.query(URI, projection, null, null, null); in getCount()
69 public static List<String[]> query(ContentResolver resolver, String[] projection) { in query() method in DeletedContactUtil
70 Cursor cursor = resolver.query(URI, projection, null, null, null); in query()
83 Cursor cursor = resolver.query(URI, projection, selection, args, null); in querySinceTimestamp()
DContacts_PeopleTest.java123 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testAddToGroup()
129 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
152 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testAddToGroup()
159 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
171 cursor = mProvider.query(mPeopleRowsAdded.get(1), PEOPLE_PROJECTION, in testAddToGroup()
176 cursor = mProvider.query(mGroupRowsAdded.get(0), GROUPS_PROJECTION, in testAddToGroup()
196 cursor = mProvider.query(mPeopleRowsAdded.get(2), PEOPLE_PROJECTION, in testAddToGroup()
213 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup()
231 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testMarkAsContacted()
240 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testMarkAsContacted()
DContactsTest.java100 Cursor cursor = mProvider.query(People.CONTENT_URI, in testPeopleTable()
123 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
138 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testPeopleTable()
172 Cursor cursor = mProvider.query(Groups.CONTENT_URI, in testGroupsTable()
188 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testGroupsTable()
281 Cursor cursor = mProvider.query(Phones.CONTENT_URI, in testPhonesTable()
302 cursor = mProvider.query(Phones.CONTENT_URI, PHONES_PROJECTION, in testPhonesTable()
316 cursor = mProvider.query(Phones.CONTENT_URI, PHONES_PROJECTION, in testPhonesTable()
364 Cursor cursor = mProvider.query( in testOrganizationsTable()
386 cursor = mProvider.query(Organizations.CONTENT_URI, ORGANIZATIONS_PROJECTION, in testOrganizationsTable()
[all …]
DContactsContract_AllUriTest.java272 try (Cursor c = mResolver.query(uri, in getColumns()
286 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
295 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryExecutable()
304 try (Cursor c = mResolver.query( in checkQueryExecutable()
316 try (Cursor c = mResolver.query( in checkQueryExecutable()
334 try (Cursor c = mResolver.query(uri, projection, selection, in checkQueryNotExecutable()
530 try (Cursor c = mResolver.query( in checkColumnAccessible()
554 try (Cursor c = mResolver.query(uri, projection, selection, in checkColumnNotAccessibleInner()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DLockedMessageTest.java81 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_atMostOneLockedMessage()
101 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testLockedMessage_getNoLockedMessage()
106 Cursor smCursor = mContentResolver.query(smsUri, null, null, null); in testLockedMessage_getNoLockedMessage()
109 Cursor cursor = mContentResolver.query(Telephony.MmsSms.CONTENT_LOCKED_URI, null, null, in testLockedMessage_getNoLockedMessage()
118 Cursor cursor = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage()
128 Cursor cursorAfterReadUpdate = mContentResolver.query(mmsUri, null, null, null); in insertMmsWithLockedMessage()
144 Cursor cursor = mContentResolver.query(smsUri, null, null, null); in insertSmsWithLockedMessage()
154 Cursor cursorAfterReadUpdate = mContentResolver.query(smsUri, null, null, null); in insertSmsWithLockedMessage()
DMmsTest.java83 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsInsert_insertSendReqSucceeds()
104 Cursor cursor = mContentResolver.query(uri, null, null, null); in testMmsDelete()
134 Cursor mmsCursor = mContentResolver.query(mmsUri, null, null, null); in testMmsInsert_canInsertTextMms()
140 Cursor partCursor = mContentResolver.query(partUri, null, null, null); in testMmsInsert_canInsertTextMms()
164 Cursor msgCursor = mContentResolver.query(Sent.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsSent()
183 Cursor msgCursor = mContentResolver.query(Draft.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsDraft()
202 Cursor msgCursor = mContentResolver.query(Inbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsInbox()
221 Cursor msgCursor = mContentResolver.query(Outbox.CONTENT_URI, null, null, null, in testInsertMessageBoxUri_canSaveAndQueryMmsOutbox()
237 .query(Telephony.Mms.CONTENT_URI, null, null, null, in testMmsQuery_retrieveAllWhenSelectorNotSpecified()
275 .query(Telephony.Mms.CONTENT_URI, null, selection, null, null); in testMmsQuery_retrieveAllFailedMmsWhenSelectorSpecified()
[all …]
DSmsConversationTest.java78 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
82 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_snippetEqualsMostRecentMessageBody()
103 .query(Telephony.Sms.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
107 .query(Conversations.CONTENT_URI, null, null, null); in testQueryConversation_returnsCorrectMessageCount()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java165 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in TestResultsProvider
167 SQLiteQueryBuilder query = new SQLiteQueryBuilder(); in query() local
168 query.setTables(TABLE_NAME); in query()
176 query.appendWhere(_ID); in query()
177 query.appendWhere("="); in query()
178 query.appendWhere(uri.getPathSegments().get(1)); in query()
182 query.appendWhere(COLUMN_TEST_NAME); in query()
183 query.appendWhere("="); in query()
184 query.appendWhere("\"" + uri.getPathSegments().get(1) + "\""); in query()
205 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCrossProfileCalendarTest.java157 assertThrows(UnsupportedOperationException.class, () -> mResolver.query( in testPrimaryProfile_cannotAccessWorkCalendarsWhenDisabled()
167 assertThrows(UnsupportedOperationException.class, () -> mResolver.query( in testPrimaryProfile_cannotAccessWorkEventsWhenDisabled()
177 assertThrows(UnsupportedOperationException.class, () -> mResolver.query( in testPrimaryProfile_cannotAccessWorkInstancesWhenDisabled()
195 final Cursor cursor = mResolver.query( in testPrimaryProfile_getCorrectWorkCalendarsWhenEnabled()
225 final Cursor cursor = mResolver.query( in testPrimaryProfile_getCorrectWorkEventsWhenEnabled()
249 final Cursor cursor = mResolver.query( in testPrimaryProfile_getCorrectWorkInstancesWhenEnabled()
274 final Cursor cursor = mResolver.query( in testPrimaryProfile_getCorrectWorkInstancesByDayWhenEnabled()
294 final Cursor cursor = mResolver.query( in testPrimaryProfile_canAccessWorkInstancesSearch1()
310 final Cursor cursor = mResolver.query( in testPrimaryProfile_canAccessWorkInstancesSearch2()
326 final Cursor cursor = mResolver.query( in testPrimaryProfile_canAccessWorkInstancesSearchByDay()
[all …]
/cts/tests/tests/permission/src/android/permission/cts/
DContactsProviderTest.java38 getContext().getContentResolver().query(ContactsContract.Contacts.CONTENT_URI, in testQueryContacts()
74 getContext().getContentResolver().query(ContactsContract.Profile.CONTENT_URI, in testQueryProfile()
130 getContext().getContentResolver().query( in testQueryPhoneEnterprise()
149 getContext().getContentResolver().query( in testRawContactsEntityCorp()
/cts/tests/tests/content/src/android/content/cts/
DSearchRecentSuggestionsProviderTest.java59 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
63 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
67 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
71 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
DContentResolverTest.java313 mCursor = mContentResolver.query(TABLE1_URI, null, null, null); in testQuery()
336 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs()
349 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_WithSqlSelectionArgs()
397 mCursor = mContentResolver.query(TABLE1_URI, sortCols, queryArgs, null); in testQuery_SqlSortingFromBundleArgs()
417 mCursor = mContentResolver.query(TABLE1_URI, null, queryArgs, null); in testQuery_SqlSortingFromBundleArgs()
441 mCursor = mContentResolver.query( in testQuery_PagedResults()
472 mContentResolver.query(null, null, null, null, null); in testQuery_NullUriThrows()
482 mCursor = mContentResolver.query(REMOTE_CRASH_URI, null, null, null, null); in testCrashingQuery()
507 Cursor cursor = mContentResolver.query(TABLE1_URI, null, null, null, null, in testCancelableQuery_WhenNotCanceled_ReturnsResultSet()
518 mContentResolver.query(TABLE1_URI, null, null, null, null, cancellationSignal); in testCancelableQuery_WhenCanceledBeforeQuery_ThrowsImmediately()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DUtils.java91 StringBuilder query = new StringBuilder(); in setAppOps() local
92 query.append("appops get "); in setAppOps()
93 query.append(packageName); in setAppOps()
94 query.append(" "); in setAppOps()
95 query.append(operation); in setAppOps()
96 String queryStr = query.toString(); in setAppOps()
/cts/tests/tests/carrierapi/src/android/carrierapi/cts/
DApnDatabaseTest.java140 Cursor cursor = mContentResolver.query( in testValidCase()
163 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
180 cursor = mContentResolver.query(uri, apnProjection, selection, selectionArgs, null); in testValidCase()
221 Cursor cursor = mContentResolver.query( in testQueryConflictCase()
235 cursor = mContentResolver.query( in testQueryConflictCase()
276 Cursor cursor = mContentResolver.query( in testUpdateConflictCase()
302 cursor = mContentResolver.query( in testUpdateConflictCase()
344 Cursor cursor = mContentResolver.query( in testDeleteConflictCase()
365 cursor = mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in testDeleteConflictCase()
378 cursor = mContentResolver.query(uri, testProjection, selection, selectionArgs, null); in testDeleteConflictCase()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerRequestPinTest.java100 final ShortcutQuery query = new ShortcutQuery() in testRequestPinShortcut()
107 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut()
164 final ShortcutQuery query = new ShortcutQuery() in testRequestPinShortcut_multiLaunchers()
171 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers()
226 final ShortcutQuery query = new ShortcutQuery() in testRequestPinShortcut_multiLaunchers_withDynamic()
233 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers_withDynamic()
276 final ShortcutQuery query = new ShortcutQuery() in testRequestPinShortcut_multiLaunchers_withDynamic()
283 final List<ShortcutInfo> shortcuts = getLauncherApps().getShortcuts(query, in testRequestPinShortcut_multiLaunchers_withDynamic()
/cts/tests/tests/provider/src/android/provider/cts/contacts/account/
DContactsContract_Subquery.java56 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, null, null, null)) { in testProviderStatus_addedContacts()
61 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()
67 try (Cursor cursor = mResolver.query(Contacts.CONTENT_URI, null, in testProviderStatus_addedContacts()

123456789