Home
last modified time | relevance | path

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

1234567

/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 …]
/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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java134 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in TestResultsProvider
136 SQLiteQueryBuilder query = new SQLiteQueryBuilder(); in query() local
137 query.setTables(TABLE_NAME); in query()
145 query.appendWhere(_ID); in query()
146 query.appendWhere("="); in query()
147 query.appendWhere(uri.getPathSegments().get(1)); in query()
151 query.appendWhere(COLUMN_TEST_NAME); in query()
152 query.appendWhere("="); in query()
153 query.appendWhere("\"" + uri.getPathSegments().get(1) + "\""); in query()
161 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
/cts/tests/tests/net/src/android/net/cts/
DUriTest.java311 String path, String query, String fragment) { in testHierarchical() argument
320 if (query != null) { in testHierarchical()
321 sb.append('?').append(query); in testHierarchical()
339 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
341 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
348 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
350 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical()
360 .encodedQuery(query) in testHierarchical()
365 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
367 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical()
[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/provider/src/android/provider/cts/
DSettings_SystemTest.java70 StringBuilder query = new StringBuilder(); in enableAppOps() local
71 query.append("appops get "); in enableAppOps()
72 query.append(getInstrumentation().getContext().getPackageName()); in enableAppOps()
73 query.append(" android:write_settings"); in enableAppOps()
74 String queryStr = query.toString(); in enableAppOps()
101 Cursor c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
121 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
136 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
DMediaStore_Audio_Genres_MembersTest.java45 Cursor c = mContentResolver.query(uri, null, null, null, null); in setUp()
51 c = mContentResolver.query(uri, null, null, null, null); in setUp()
69 assertNotNull(c = mContentResolver.query( in testGetContentUri()
75 assertNotNull(c = mContentResolver.query( in testGetContentUri()
86 assertNull(mContentResolver.query(Members.getContentUri(volume, 1), null, null, null, in testGetContentUri()
94 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresMembersExternal()
113 c = mContentResolver.query(membersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
153 c = mContentResolver.query(membersUri, in testStoreAudioGenresMembersExternal()
165 c = mContentResolver.query(membersUri, null, in testStoreAudioGenresMembersExternal()
174 c = mContentResolver.query(allMembersUri, null, null, null, null); in testStoreAudioGenresMembersExternal()
[all …]
DMediaStore_Audio_ArtistsTest.java41 assertNotNull(c = mContentResolver.query( in testGetContentUri()
45 assertNotNull(c = mContentResolver.query( in testGetContentUri()
52 assertNull(mContentResolver.query(Artists.getContentUri(volume), null, null, null, null)); in testGetContentUri()
80 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
113 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
121 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioArtists()
128 Cursor c = mContentResolver.query(artistsUri, null, selection, selectionArgs, null); in testStoreAudioArtists()
DMediaStore_Audio_GenresTest.java43 assertNotNull(c = mContentResolver.query( in testGetContentUri()
48 assertNotNull(c = mContentResolver.query( in testGetContentUri()
59 assertNull(mContentResolver.query(Genres.getContentUri(volume), null, null, null, null)); in testGetContentUri()
71 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal()
82 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioGenresExternal()
121 cursor = mContentResolver.query(audioGenresUri, null, null, null, null); in testGetContentUriForAudioId()
131 cursor = mContentResolver.query(audioGenresUri, null, null, null, null); in testGetContentUriForAudioId()
DMediaStoreTest.java41 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, null, null, null); in setUp()
67 assertNull(mContentResolver.query(mScannerUri, PROJECTION, in testGetMediaScannerUri()
76 Cursor c = mContentResolver.query(mScannerUri, PROJECTION, in testGetMediaScannerUri()
85 assertNull(mContentResolver.query(mScannerUri, PROJECTION, null, null, null)); in testGetMediaScannerUri()
DMediaStore_Audio_Artists_AlbumsTest.java45 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri()
50 assertNotNull(c = mContentResolver.query(contentUri, null, null, null, null)); in testGetContentUri()
55 assertNull(mContentResolver.query(MediaStore.Audio.Artists.Albums.getContentUri(volume, 1), in testGetContentUri()
72 Cursor c = mContentResolver.query(audioMediaUri, new String[] { Media.ARTIST_ID }, null, in testStoreAudioArtistsAlbums()
90 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
133 c = mContentResolver.query(artistsAlbumsUri, null, null, null, null); in testStoreAudioArtistsAlbums()
DMediaStore_Audio_AlbumsTest.java51 assertNotNull(c = mContentResolver.query( in testGetContentUri()
55 assertNotNull(c = mContentResolver.query( in testGetContentUri()
62 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); in testGetContentUri()
92 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums()
144 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums()
152 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums()
159 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, null); in testStoreAudioAlbums()
184 Cursor c = mContentResolver.query(uri, null, null, null, null); in testAlbumArt()
197 c = mContentResolver.query(albumart, null, null, null, null); in testAlbumArt()
DSettings_NameValueTableTest.java35 Cursor c = cr.query(uri, null, null, null, null); in testPutString()
42 c = cr.query(uri, null, null, null, null); in testPutString()
49 c = cr.query(uri, null, selection, null, null); in testPutString()
59 c = cr.query(uri, null, null, null, null); in testPutString()
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_PlaylistsTest.java43 assertNotNull(c = mContentResolver.query( in testGetContentUri()
50 assertNotNull(c = mContentResolver.query( in testGetContentUri()
60 assertNull(mContentResolver.query(Playlists.getContentUri(volume), null, null, null, in testGetContentUri()
79 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal()
98 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioPlaylistsExternal()
DMediaStore_Images_ThumbnailsTest.java107 c = Thumbnails.query(mContentResolver, uri, null); in testQueryInternalThumbnails()
132 Cursor c = mContentResolver.query(stringUri, in testQueryExternalMiniThumbnails()
184 c = mContentResolver.query(Uri.parse(stringUrl), in testQueryExternalMiniThumbnails()
198 c = mContentResolver.query(Uri.parse(stringUrl), in testQueryExternalMiniThumbnails()
222 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri("internal"), null, null, in testGetContentUri()
225 assertNotNull(c = mContentResolver.query(Thumbnails.getContentUri("external"), null, null, in testGetContentUri()
231 assertNull(mContentResolver.query(Thumbnails.getContentUri(volume), null, null, null, in testGetContentUri()
252 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreImagesMediaExternal()
283 Cursor c = mContentResolver.query( in testThumbnailGenerationAndCleanup()
303 c = mContentResolver.query( in testThumbnailGenerationAndCleanup()
[all …]
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java201 cursor = mDownloadManager.query(new Query().setFilterById(id)); in testMinimumDownload()
370 Query query = new Query(); in clearDownloads() local
371 cursor = mDownloadManager.query(query); in clearDownloads()
407 Query query = new Query(); in getTotalNumberDownloads() local
408 cursor = mDownloadManager.query(query); in getTotalNumberDownloads()
420 Query query = new Query().setFilterById(downloadId); in assertDownloadQueryableById() local
421 cursor = mDownloadManager.query(query); in assertDownloadQueryableById()
436 Query query = new Query().setFilterByStatus(status); in assertDownloadQueryableByStatus() local
437 cursor = mDownloadManager.query(query); in assertDownloadQueryableByStatus()
451 cursor = mDownloadManager.query(new Query().setFilterById(id)); in assertSuccessfulDownload()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DMockMediaLibraryService2.java172 String query, Bundle extras) { in onSearch() argument
173 if (SEARCH_QUERY.equals(query)) { in onSearch()
174 mSession.notifySearchResultChanged(controllerInfo, query, SEARCH_RESULT_COUNT, in onSearch()
176 } else if (SEARCH_QUERY_TAKES_TIME.equals(query)) { in onSearch()
182 controllerInfo, query, SEARCH_RESULT_COUNT, extras); in onSearch()
185 } else if (SEARCH_QUERY_EMPTY_RESULT.equals(query)) { in onSearch()
186 mSession.notifySearchResultChanged(controllerInfo, query, 0, extras); in onSearch()
194 ControllerInfo controllerInfo, String query, int page, int pageSize, in onGetSearchResult() argument
196 if (SEARCH_QUERY.equals(query)) { in onGetSearchResult()
DUtils.java70 StringBuilder query = new StringBuilder(); in setAppOps() local
71 query.append("appops get "); in setAppOps()
72 query.append(packageName); in setAppOps()
73 query.append(" "); in setAppOps()
74 query.append(operation); in setAppOps()
75 String queryStr = query.toString(); in setAppOps()
DMediaSession2_PermissionTest.java304 final String query = "testPlayFromSearch"; in testPlayFromSearch() local
307 createController(mSession.getToken()).playFromSearch(query, null); in testPlayFromSearch()
311 assertEquals(query, mCallback.mQuery); in testPlayFromSearch()
316 createController(mSession.getToken()).playFromSearch(query, null); in testPlayFromSearch()
361 final String query = "testPrepareFromSearch"; in testPrepareFromSearch() local
364 createController(mSession.getToken()).prepareFromSearch(query, null); in testPrepareFromSearch()
368 assertEquals(query, mCallback.mQuery); in testPrepareFromSearch()
373 createController(mSession.getToken()).prepareFromSearch(query, null); in testPrepareFromSearch()
380 final String query = "testChangingPermissionWithSetAllowedCommands"; in testChangingPermissionWithSetAllowedCommands() local
389 controller.prepareFromSearch(query, null); in testChangingPermissionWithSetAllowedCommands()
[all …]
/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()
/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()
/cts/tests/tests/database/src/android/database/sqlite/cts/
DSQLiteQueryBuilderTest.java135 Cursor cursor = sqliteQueryBuilder.query(mDatabase, new String[] { "name", "age" }, in testSetCursorFactory()
142 String editTable, SQLiteQuery query) { in testSetCursorFactory()
143 return new MockCursor(db, masterQuery, editTable, query); in testSetCursorFactory()
148 cursor = sqliteQueryBuilder.query(mDatabase, new String[] { "name", "age" }, in testSetCursorFactory()
156 String editTable, SQLiteQuery query) { in MockCursor() argument
157 super(db, driver, editTable, query); in MockCursor()
209 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testQuery()
229 cursor = sqliteQueryBuilder.query(mDatabase, in testQuery()
284 Cursor cursor = sqliteQueryBuilder.query(mDatabase, in testCancelableQuery_WhenNotCanceled_ReturnsResultSet()
300 sqliteQueryBuilder.query(mDatabase, in testCancelableQuery_WhenCanceledBeforeQuery_ThrowsImmediately()
[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()

1234567