Home
last modified time | relevance | path

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

12345

/cts/tests/tests/media/src/android/media/cts/
DUtils.java54 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/
DDatabaseUtilsTest.java116 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/
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()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DTestResultsProvider.java120 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/
DUriTest.java300 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/
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()
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()
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.java50 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()
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()
DContacts_PeopleTest.java121 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 …]
DSearchRecentSuggestionsTest.java59 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()
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()
DSettingsTest.java57 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()
DMediaStore_Audio_MediaTest.java42 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/
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/app/src/android/app/cts/
DDownloadManagerTest.java185 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/
DSearchRecentSuggestionsProviderTest.java60 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/
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 …]
DSQLiteOpenHelperTest.java39 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()
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/apps/CtsVerifier/src/com/android/cts/verifier/tv/
DSearchUtil.java54 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()

12345