Home
last modified time | relevance | path

Searched refs:metadataCursor (Results 1 – 4 of 4) sorted by relevance

/packages/apps/UnifiedEmail/src/com/android/mail/compose/
DAttachmentsView.java235 Cursor metadataCursor = null; in generateLocalAttachment() local
237 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 …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java112 Cursor metadataCursor; in generateFileInfo() local
114 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()
DBluetoothOppReceiveFileInfo.java96 Cursor metadataCursor = contentResolver.query(contentUri, new String[] { in generateFileInfo() local
99 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()
DBluetoothOppUtility.java144 Cursor metadataCursor = context.getContentResolver().query(BluetoothShare.CONTENT_URI, in queryTransfersInBatch() local
149 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()