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.java120 Cursor metadataCursor; in generateFileInfo() local
122 metadataCursor = contentResolver.query(uri, new String[]{ in generateFileInfo()
127 metadataCursor = null; in generateFileInfo()
133 if (metadataCursor != null) { in generateFileInfo()
135 if (metadataCursor.moveToFirst()) { in generateFileInfo()
136 int indexName = metadataCursor.getColumnIndex(OpenableColumns.DISPLAY_NAME); in generateFileInfo()
137 int indexSize = metadataCursor.getColumnIndex(OpenableColumns.SIZE); in generateFileInfo()
139 fileName = metadataCursor.getString(indexName); in generateFileInfo()
142 length = metadataCursor.getLong(indexSize); in generateFileInfo()
149 metadataCursor.close(); in generateFileInfo()
DBluetoothOppReceiveFileInfo.java98 Cursor metadataCursor = contentResolver.query(contentUri, new String[]{ in generateFileInfo() local
101 if (metadataCursor != null) { in generateFileInfo()
103 if (metadataCursor.moveToFirst()) { in generateFileInfo()
104 hint = metadataCursor.getString(0); in generateFileInfo()
105 length = metadataCursor.getLong(1); in generateFileInfo()
106 mimeType = metadataCursor.getString(2); in generateFileInfo()
109 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 …]