Searched refs:metadataCursor (Results 1 – 4 of 4) sorted by relevance
235 Cursor metadataCursor = null; in generateLocalAttachment() local237 metadataCursor = contentResolver.query( in generateLocalAttachment()240 if (metadataCursor != null) { in generateLocalAttachment()242 if (metadataCursor.moveToNext()) { in generateLocalAttachment()243 attachment.setName(metadataCursor.getString(0)); in generateLocalAttachment()244 attachment.size = metadataCursor.getInt(1); in generateLocalAttachment()247 metadataCursor.close(); in generateLocalAttachment()259 metadataCursor = getOptionalColumn(contentResolver, contentUri, in generateLocalAttachment()261 if (metadataCursor != null && metadataCursor.moveToNext()) { in generateLocalAttachment()262 attachment.setName(metadataCursor.getString(0)); in generateLocalAttachment()[all …]
112 Cursor metadataCursor; in generateFileInfo() local114 metadataCursor = contentResolver.query(uri, new String[] { in generateFileInfo()119 metadataCursor = null; in generateFileInfo()121 if (metadataCursor != null) { in generateFileInfo()123 if (metadataCursor.moveToFirst()) { in generateFileInfo()124 fileName = metadataCursor.getString( in generateFileInfo()125 metadataCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME)); in generateFileInfo()126 length = metadataCursor.getLong( in generateFileInfo()127 metadataCursor.getColumnIndex(OpenableColumns.SIZE)); in generateFileInfo()131 metadataCursor.close(); in generateFileInfo()
96 Cursor metadataCursor = contentResolver.query(contentUri, new String[] { in generateFileInfo() local99 if (metadataCursor != null) { in generateFileInfo()101 if (metadataCursor.moveToFirst()) { in generateFileInfo()102 hint = metadataCursor.getString(0); in generateFileInfo()103 length = metadataCursor.getLong(1); in generateFileInfo()104 mimeType = metadataCursor.getString(2); in generateFileInfo()107 metadataCursor.close(); in generateFileInfo()
144 Cursor metadataCursor = context.getContentResolver().query(BluetoothShare.CONTENT_URI, in queryTransfersInBatch() local149 if (metadataCursor == null) { in queryTransfersInBatch()153 for (metadataCursor.moveToFirst(); !metadataCursor.isAfterLast(); metadataCursor in queryTransfersInBatch()155 String fileName = metadataCursor.getString(0); in queryTransfersInBatch()164 metadataCursor.close(); in queryTransfersInBatch()