Searched refs:cursor (Results 1 – 4 of 4) sorted by relevance
243 Cursor cursor = null; in removeContentInDLApp() local246 cursor = getDLManager().query(query); in removeContentInDLApp()247 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_ID); in removeContentInDLApp()248 long[] removeIds = new long[cursor.getCount() - 1]; in removeContentInDLApp()249 Log.d(TEST_TAG, String.format("Remove Size is = %d", cursor.getCount())); in removeContentInDLApp()250 for (int i = 0; i < (cursor.getCount() - 1); i++) { in removeContentInDLApp()251 cursor.moveToNext(); in removeContentInDLApp()252 removeIds[i] = cursor.getLong(columnIndex); in removeContentInDLApp()258 if (cursor != null) { in removeContentInDLApp()259 cursor.close(); in removeContentInDLApp()[all …]
123 Cursor cursor = downloadManager.query(new Query()); in removeAllCurrentDownloads() local125 if (cursor.moveToFirst()) { in removeAllCurrentDownloads()127 int index = cursor.getColumnIndex(DownloadManager.COLUMN_ID); in removeAllCurrentDownloads()128 long downloadId = cursor.getLong(index); in removeAllCurrentDownloads()130 } while (cursor.moveToNext()); in removeAllCurrentDownloads()133 cursor.close(); in removeAllCurrentDownloads()
94 Cursor cursor = getInstrumentation().getContext().getContentResolver().query( in launchContacts() local96 Assert.assertTrue("There are not enough contacts", cursor.getCount() > MIN_CONTACT_COUNT); in launchContacts()
237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local239 return cursor.getCount(); in getCallLogCount()