Home
last modified time | relevance | path

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

/platform_testing/libraries/media-helper/src/android/test/mediahelper/
DMediaStoreHelper.java65 Cursor cursor = in getMaxGeneration() local
72 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() local
117 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 …]
/platform_testing/tests/functional/downloadapp/src/com/android/functional/downloadapp/
DDownloadAppTestHelper.java244 Cursor cursor = null; in removeContentInDLApp() local
247 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 …]
/platform_testing/tests/jank/dialer/src/com/android/dialer/janktests/
DDialerJankTests.java234 Cursor cursor = getInstrumentation().getContext().getContentResolver() in getCallLogCount() local
236 return cursor.getCount(); in getCallLogCount()