Searched refs:cursor (Results 1 – 2 of 2) 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 …]
237 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local239 return cursor.getCount(); in getCallLogCount()