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.java226 final Cursor metadataCursor = contentResolver.query(contentUri, in isVirtualDocument() local
228 if (metadataCursor != null) { in isVirtualDocument()
231 if (metadataCursor.moveToNext()) { in isVirtualDocument()
232 flags = metadataCursor.getInt(0); in isVirtualDocument()
238 metadataCursor.close(); in isVirtualDocument()
270 Cursor metadataCursor = null; in generateLocalAttachment() local
287 metadataCursor = contentResolver.query( in generateLocalAttachment()
290 if (metadataCursor != null) { in generateLocalAttachment()
292 if (metadataCursor.moveToNext()) { in generateLocalAttachment()
293 name = metadataCursor.getString(0); in generateLocalAttachment()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppSendFileInfo.java114 Cursor metadataCursor; in generateFileInfo() local
116 metadataCursor = contentResolver.query(uri, new String[]{ in generateFileInfo()
121 metadataCursor = null; in generateFileInfo()
127 if (metadataCursor != null) { in generateFileInfo()
129 if (metadataCursor.moveToFirst()) { in generateFileInfo()
130 int indexName = metadataCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); in generateFileInfo()
131 int indexSize = metadataCursor.getColumnIndex(OpenableColumns.SIZE); in generateFileInfo()
133 fileName = metadataCursor.getString(indexName); in generateFileInfo()
136 length = metadataCursor.getLong(indexSize); in generateFileInfo()
143 metadataCursor.close(); in generateFileInfo()
DBluetoothOppReceiveFileInfo.java101 Cursor metadataCursor = contentResolver.query(contentUri, new String[]{ in generateFileInfo() local
104 if (metadataCursor != null) { in generateFileInfo()
106 if (metadataCursor.moveToFirst()) { in generateFileInfo()
107 hint = metadataCursor.getString(0); in generateFileInfo()
108 length = metadataCursor.getLong(1); in generateFileInfo()
109 mimeType = metadataCursor.getString(2); in generateFileInfo()
112 metadataCursor.close(); in generateFileInfo()
DBluetoothOppUtility.java152 Cursor metadataCursor = in queryTransfersInBatch() local
157 if (metadataCursor == null) { in queryTransfersInBatch()
161 for (metadataCursor.moveToFirst(); !metadataCursor.isAfterLast(); in queryTransfersInBatch()
162 metadataCursor.moveToNext()) { in queryTransfersInBatch()
163 String fileName = metadataCursor.getString(0); in queryTransfersInBatch()
174 metadataCursor.close(); in queryTransfersInBatch()