Home
last modified time | relevance | path

Searched refs:cursor (Results 1 – 2 of 2) 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/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local
239 return cursor.getCount(); in getCallLogCount()