Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 4 of 4) sorted by relevance

/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java243 Cursor cursor = null; in removeContentInDLApp() local
246 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 …]
/platform_testing/tests/androidbvt/src/com/android/androidbvt/
DFrameworkDownloadTests.java123 Cursor cursor = downloadManager.query(new Query()); in removeAllCurrentDownloads() local
125 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()
/platform_testing/tests/jank/sysapp/src/com/android/sysapp/janktests/
DContactsJankTests.java94 Cursor cursor = getInstrumentation().getContext().getContentResolver().query( in launchContacts() local
96 Assert.assertTrue("There are not enough contacts", cursor.getCount() > MIN_CONTACT_COUNT); in launchContacts()
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local
239 return cursor.getCount(); in getCallLogCount()