/cts/tests/tests/media/src/android/media/cts/ |
D | Utils.java | 54 StringBuilder query = new StringBuilder(); in setAppOps() local 55 query.append("appops get "); in setAppOps() 56 query.append(packageName); in setAppOps() 57 query.append(" "); in setAppOps() 58 query.append(operation); in setAppOps() 59 String queryStr = query.toString(); in setAppOps()
|
/cts/tests/tests/database/src/android/database/cts/ |
D | DatabaseUtilsTest.java | 116 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testBindObjectToProgram() 129 cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testBindObjectToProgram() 149 Cursor cursor = db.query(TABLE_NAME, PROJECTION, null, null, null, null, null); in testCreateDbFromSqlStatements() 160 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToContentValues() 180 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorDoubleToCursorValues() 199 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testCursorIntToContentValues() 228 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, null, null, null, null, null); in testcursorLongToContentValues() 257 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorRowToContentValues() 272 Cursor cursor = mDatabase.query(TABLE_NAME, TEST_PROJECTION, in testCursorStringToContentValues() 315 Cursor cursor = mDatabase.query("test_copy", TEST_PROJECTION, null, null, null, null, null); in testCursorStringToInsertHelper() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/contacts/ |
D | DeletedContactUtil.java | 40 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()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/ |
D | TestResultsProvider.java | 120 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs, in query() method in TestResultsProvider 122 SQLiteQueryBuilder query = new SQLiteQueryBuilder(); in query() local 123 query.setTables(TABLE_NAME); in query() 131 query.appendWhere(_ID); in query() 132 query.appendWhere("="); in query() 133 query.appendWhere(uri.getPathSegments().get(1)); in query() 137 query.appendWhere(COLUMN_TEST_NAME); in query() 138 query.appendWhere("="); in query() 139 query.appendWhere("\"" + uri.getPathSegments().get(1) + "\""); in query() 147 return query.query(db, projection, selection, selectionArgs, null, null, sortOrder); in query()
|
/cts/tests/tests/net/src/android/net/cts/ |
D | UriTest.java | 300 String path, String query, String fragment) { in testHierarchical() argument 309 if (query != null) { in testHierarchical() 310 sb.append('?').append(query); in testHierarchical() 328 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 330 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 337 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 339 uriString, ssp, uri, scheme, authority, path, query, fragment); in testHierarchical() 349 .encodedQuery(query) in testHierarchical() 354 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() 356 uriString, ssp, built, scheme, authority, path, query, fragment); in testHierarchical() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | Settings_SystemTest.java | 70 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() 115 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings() 130 c = cr.query(System.CONTENT_URI, null, null, null, null); in testSystemSettings()
|
D | MediaStore_Audio_Genres_MembersTest.java | 45 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 …]
|
D | MediaStore_Audio_ArtistsTest.java | 41 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()
|
D | MediaStore_Audio_GenresTest.java | 43 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()
|
D | MediaStoreTest.java | 41 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()
|
D | MediaStore_Audio_Artists_AlbumsTest.java | 45 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()
|
D | MediaStore_Audio_AlbumsTest.java | 50 assertNotNull(c = mContentResolver.query( in testGetContentUri() 54 assertNotNull(c = mContentResolver.query( in testGetContentUri() 61 assertNull(mContentResolver.query(Albums.getContentUri(volume), null, null, null, null)); in testGetContentUri() 91 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, in testStoreAudioAlbums() 143 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() 151 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioAlbums() 158 Cursor c = mContentResolver.query(audioAlbumsUri, null, selection, selectionArgs, null); in testStoreAudioAlbums() 183 Cursor c = mContentResolver.query(uri, null, null, null, null); in testAlbumArt() 196 c = mContentResolver.query(albumart, null, null, null, null); in testAlbumArt()
|
D | Settings_NameValueTableTest.java | 35 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()
|
D | Contacts_PeopleTest.java | 121 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testAddToGroup() 127 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup() 150 cursor = mProvider.query(People.CONTENT_URI, PEOPLE_PROJECTION, in testAddToGroup() 157 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup() 169 cursor = mProvider.query(mPeopleRowsAdded.get(1), PEOPLE_PROJECTION, in testAddToGroup() 174 cursor = mProvider.query(mGroupRowsAdded.get(0), GROUPS_PROJECTION, in testAddToGroup() 194 cursor = mProvider.query(mPeopleRowsAdded.get(2), PEOPLE_PROJECTION, in testAddToGroup() 211 cursor = mProvider.query(Groups.CONTENT_URI, GROUPS_PROJECTION, in testAddToGroup() 229 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testMarkAsContacted() 236 cursor = mProvider.query(mPeopleRowsAdded.get(0), PEOPLE_PROJECTION, in testMarkAsContacted() [all …]
|
D | SearchRecentSuggestionsTest.java | 59 Cursor c = mTestSRSProvider.query(mTestUri, null, null, null, null); in testSearchRecentSuggestions() 73 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions() 98 c = mTestSRSProvider.query(mTestUri, SearchRecentSuggestions.QUERIES_PROJECTION_2LINE, in testSearchRecentSuggestions() 140 Cursor cursor = mTestSRSProvider.query(mTestUri, in testSuggestionsTable() 175 cursor = mTestSRSProvider.query(mTestUri, in testSuggestionsTable() 203 cursor = mTestSRSProvider.query(uri, projection, null, null, null); in waitForCursorCount()
|
D | MediaStore_Audio_PlaylistsTest.java | 43 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()
|
D | SettingsTest.java | 57 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 74 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 87 cursor = provider.query(Settings.System.CONTENT_URI, SYSTEM_PROJECTION, in testSystemTable() 113 cursor = provider.query(Settings.Global.CONTENT_URI, SECURE_PROJECTION, in testSecureTable() 153 cr.query(uri, SELECT_VALUE, NAME_EQ_PLACEHOLDER, in tryBadTableAccess() 177 Cursor c = cr.query(uri, SELECT_VALUE, NAME_EQ_PLACEHOLDER, in tryBadTableAccess()
|
D | MediaStore_Audio_MediaTest.java | 42 assertNotNull(c = mContentResolver.query( in testGetContentUri() 46 assertNotNull(c = mContentResolver.query( in testGetContentUri() 53 assertNull(mContentResolver.query(Media.getContentUri(volume), null, null, null, null)); in testGetContentUri() 59 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(externalPath), null, null, in testGetContentUriForPath() 65 … assertNotNull(c = mContentResolver.query(Media.getContentUriForPath(internalPath), null, null, in testGetContentUriForPath() 91 Cursor c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioMedia() 134 c = mContentResolver.query(uri, null, null, null, null); in testStoreAudioMedia() 169 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioMedia() 177 c = mContentResolver.query(filterUri, null, null, null, null); in testStoreAudioMedia()
|
/cts/tests/tests/permission/src/android/permission/cts/ |
D | ContactsProviderTest.java | 38 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/app/src/android/app/cts/ |
D | DownloadManagerTest.java | 185 cursor = mDownloadManager.query(new Query().setFilterById(id)); in testMinimumDownload() 354 Query query = new Query(); in clearDownloads() local 355 cursor = mDownloadManager.query(query); in clearDownloads() 391 Query query = new Query(); in getTotalNumberDownloads() local 392 cursor = mDownloadManager.query(query); in getTotalNumberDownloads() 404 Query query = new Query().setFilterById(downloadId); in assertDownloadQueryableById() local 405 cursor = mDownloadManager.query(query); in assertDownloadQueryableById() 420 Query query = new Query().setFilterByStatus(status); in assertDownloadQueryableByStatus() local 421 cursor = mDownloadManager.query(query); in assertDownloadQueryableByStatus() 435 cursor = mDownloadManager.query(new Query().setFilterById(id)); in assertSuccessfulDownload() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | SearchRecentSuggestionsProviderTest.java | 60 Cursor c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 64 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 68 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider() 72 c = s.query(contentUri, null, null, selArgs, null); in testSearchRecentSuggestionsProvider()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteQueryBuilderTest.java | 135 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 …]
|
D | SQLiteOpenHelperTest.java | 39 String editTable, SQLiteQuery query) { 40 return new MockCursor(db, masterQuery, editTable, query); 132 SQLiteQuery query) { in MockCursor() argument 133 super(db, driver, editTable, query); in MockCursor()
|
D | DatabaseStatementTest.java | 86 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/apps/CtsVerifier/src/com/android/cts/verifier/tv/ |
D | SearchUtil.java | 54 String query, String expectedResult) { in verifySearchResult() argument 59 selectionArg = new String[] { query }; in verifySearchResult() 61 uriBuilder.appendPath(query); in verifySearchResult() 67 try (Cursor c = provider.query(uri, null, selection, selectionArg, null, null)) { in verifySearchResult()
|