Searched refs:cursor (Results 1 – 3 of 3) sorted by relevance
65 Cursor cursor = in getMaxGeneration() local72 if (cursor != null) { in getMaxGeneration()73 if (cursor.moveToFirst()) { in getMaxGeneration()75 cursor.getLong( in getMaxGeneration()76 cursor.getColumnIndex(MediaStore.MediaColumns.GENERATION_ADDED)); in getMaxGeneration()78 cursor.close(); in getMaxGeneration()107 Cursor cursor = in getListOfIdsFromMediaStore() local117 while (cursor != null && cursor.moveToNext()) { in getListOfIdsFromMediaStore()118 builder.add(cursor.getLong(cursor.getColumnIndex(MediaStore.MediaColumns._ID))); in getListOfIdsFromMediaStore()121 if (cursor != null) { in getListOfIdsFromMediaStore()[all …]
244 Cursor cursor = null; in removeContentInDLApp() local247 cursor = getDLManager().query(query); in removeContentInDLApp()248 int columnIndex = cursor.getColumnIndex(DownloadManager.COLUMN_ID); in removeContentInDLApp()249 long[] removeIds = new long[cursor.getCount() - 1]; in removeContentInDLApp()250 Log.d(TEST_TAG, String.format("Remove Size is = %d", cursor.getCount())); in removeContentInDLApp()251 for (int i = 0; i < (cursor.getCount() - 1); i++) { in removeContentInDLApp()252 cursor.moveToNext(); in removeContentInDLApp()253 removeIds[i] = cursor.getLong(columnIndex); in removeContentInDLApp()259 if (cursor != null) { in removeContentInDLApp()260 cursor.close(); in removeContentInDLApp()[all …]
234 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local236 return cursor.getCount(); in getCallLogCount()