QBluetoothSocketPrivateAndroid::writeData(): return correct number of bytes written
The Java APIs take size as a qint32. The code was doing the conversion,
but the return value and the bytesWritten() signal were still using the
unmodified qint64 value.
This could provide incorrect results if the users try to write more
than INT_MAX bytes.
Amends 52142177d765544b66a564c7e0fe235bc9a28f52 that introduced the
Android backend.
Pick-to: 6.9 6.8 6.5
Change-Id: Id02c93fb794cdc3b72298e2b83d9fe300f9365e8
Reviewed-by: Juha Vuolle <juha.vuolle@qt.io>