Home
last modified time | relevance | path

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

/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()
DBluetoothOppUtility.java151 Cursor metadataCursor = in queryTransfersInBatch() local
156 if (metadataCursor == null) { in queryTransfersInBatch()
160 for (metadataCursor.moveToFirst(); !metadataCursor.isAfterLast(); in queryTransfersInBatch()
161 metadataCursor.moveToNext()) { in queryTransfersInBatch()
162 String fileName = metadataCursor.getString(0); in queryTransfersInBatch()
173 metadataCursor.close(); in queryTransfersInBatch()
194 Cursor metadataCursor = context.getContentResolver().query(uri, new String[]{ in openReceivedFile() local
196 if (metadataCursor != null) { in openReceivedFile()
198 if (metadataCursor.moveToFirst()) { in openReceivedFile()
199 path = Uri.parse(metadataCursor.getString(0)); in openReceivedFile()
[all …]
DBluetoothOppReceiveFileInfo.java95 Cursor metadataCursor = contentResolver.query(contentUri, new String[]{ in generateFileInfo() local
98 if (metadataCursor != null) { in generateFileInfo()
100 if (metadataCursor.moveToFirst()) { in generateFileInfo()
101 hint = metadataCursor.getString(0); in generateFileInfo()
102 length = metadataCursor.getLong(1); in generateFileInfo()
103 mimeType = metadataCursor.getString(2); in generateFileInfo()
106 metadataCursor.close(); in generateFileInfo()