diff options
author | Sravan Kumar V <sravankumar@codeaurora.org> | 2016-02-25 17:31:08 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2016-03-10 04:57:06 -0800 |
commit | a4c180849729959965086923fd4d30956a7ea6bc (patch) | |
tree | 02dc6e66264e78f0dfcbc060b3c061a71467ca8d /src/com/android/bluetooth/opp/BluetoothOppService.java | |
parent | 3e4ad7ca18c240486e473de1386b719202b28d13 (diff) | |
download | android_packages_apps_Bluetooth-a4c180849729959965086923fd4d30956a7ea6bc.tar.gz android_packages_apps_Bluetooth-a4c180849729959965086923fd4d30956a7ea6bc.tar.bz2 android_packages_apps_Bluetooth-a4c180849729959965086923fd4d30956a7ea6bc.zip |
Bluetooth-OPP: Use long instead of int
This patch fixes issue of problems in sending/receiving files
which cannot be accomodated in int type of Java. Instead of using
int, long data type is used.
Change-Id: I58c9b49f59d47f6f162156eb6594e66731732580
Diffstat (limited to 'src/com/android/bluetooth/opp/BluetoothOppService.java')
-rw-r--r-- | src/com/android/bluetooth/opp/BluetoothOppService.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/bluetooth/opp/BluetoothOppService.java b/src/com/android/bluetooth/opp/BluetoothOppService.java index 27519cc5b..c7c867051 100644 --- a/src/com/android/bluetooth/opp/BluetoothOppService.java +++ b/src/com/android/bluetooth/opp/BluetoothOppService.java @@ -158,7 +158,7 @@ public class BluetoothOppService extends Service { @Override public void onCreate() { super.onCreate(); - if (V) Log.v(TAG, "onCreate"); + if (D) Log.d(TAG, "onCreate"); mAdapter = BluetoothAdapter.getDefaultAdapter(); mShares = Lists.newArrayList(); mBatchs = Lists.newArrayList(); @@ -658,9 +658,9 @@ public class BluetoothOppService extends Service { cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.VISIBILITY)), cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.USER_CONFIRMATION)), cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.STATUS)), - cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)), - cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)), - cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)), + cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)), + cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)), + cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)), cursor.getInt(cursor.getColumnIndexOrThrow(Constants.MEDIA_SCANNED)) != Constants.MEDIA_SCANNED_NOT_SCANNED); if (V) { @@ -808,10 +808,10 @@ public class BluetoothOppService extends Service { } info.mStatus = newStatus; - info.mTotalBytes = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); - info.mCurrentBytes = cursor.getInt(cursor + info.mTotalBytes = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TOTAL_BYTES)); + info.mCurrentBytes = cursor.getLong(cursor .getColumnIndexOrThrow(BluetoothShare.CURRENT_BYTES)); - info.mTimestamp = cursor.getInt(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); + info.mTimestamp = cursor.getLong(cursor.getColumnIndexOrThrow(BluetoothShare.TIMESTAMP)); info.mMediaScanned = (cursor.getInt(cursor.getColumnIndexOrThrow(Constants.MEDIA_SCANNED)) != Constants.MEDIA_SCANNED_NOT_SCANNED); if (confirmUpdated) { |