Home
last modified time | relevance | path

Searched refs:storageCursor (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DMtpDatabase.java138 final Cursor storageCursor = builder.query( in queryRoots() local
166 if (storageCursor.getCount() != 0) { in queryRoots()
170 storageCursor.getColumnIndex(Root.COLUMN_CAPACITY_BYTES); in queryRoots()
172 storageCursor.getColumnIndex(Root.COLUMN_AVAILABLE_BYTES); in queryRoots()
173 while (storageCursor.moveToNext()) { in queryRoots()
177 capacityBytes += storageCursor.getLong(capacityIndex); in queryRoots()
180 availableBytes += storageCursor.getLong(availableIndex); in queryRoots()
189 if (storageCursor.getCount() == 1 && values.containsKey(Root.COLUMN_TITLE)) { in queryRoots()
190 storageCursor.moveToFirst(); in queryRoots()
197 storageCursor.getString( in queryRoots()
[all …]
DMtpDocumentsProvider.java210 try (final Cursor storageCursor = mDatabase.queryDocument( in queryDocument() argument
213 if (!storageCursor.moveToNext()) { in queryDocument()
216 storageName = storageCursor.getString(0); in queryDocument()
217 storageFlags = storageCursor.getInt(1); in queryDocument()