Loading android/app/src/com/android/bluetooth/btservice/BluetoothSocketManagerBinder.java +12 −7 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth.btservice; package com.android.bluetooth.btservice; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.bluetooth.IBluetoothSocketManager; import android.bluetooth.IBluetoothSocketManager; import android.os.Binder; import android.os.Binder; import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor; Loading Loading @@ -49,8 +50,12 @@ class BluetoothSocketManagerBinder extends IBluetoothSocketManager.Stub { return null; return null; } } return marshalFd(mService.connectSocketNative( return marshalFd( Utils.getBytesFromAddress(device.getAddress()), mService.connectSocketNative( Utils.getBytesFromAddress( type == BluetoothSocket.TYPE_L2CAP_LE ? device.getAddress() : mService.getIdentityAddress(device.getAddress())), type, type, Utils.uuidToByteArray(uuid), Utils.uuidToByteArray(uuid), port, port, Loading Loading
android/app/src/com/android/bluetooth/btservice/BluetoothSocketManagerBinder.java +12 −7 Original line number Original line Diff line number Diff line Loading @@ -17,6 +17,7 @@ package com.android.bluetooth.btservice; package com.android.bluetooth.btservice; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothDevice; import android.bluetooth.BluetoothSocket; import android.bluetooth.IBluetoothSocketManager; import android.bluetooth.IBluetoothSocketManager; import android.os.Binder; import android.os.Binder; import android.os.ParcelFileDescriptor; import android.os.ParcelFileDescriptor; Loading Loading @@ -49,8 +50,12 @@ class BluetoothSocketManagerBinder extends IBluetoothSocketManager.Stub { return null; return null; } } return marshalFd(mService.connectSocketNative( return marshalFd( Utils.getBytesFromAddress(device.getAddress()), mService.connectSocketNative( Utils.getBytesFromAddress( type == BluetoothSocket.TYPE_L2CAP_LE ? device.getAddress() : mService.getIdentityAddress(device.getAddress())), type, type, Utils.uuidToByteArray(uuid), Utils.uuidToByteArray(uuid), port, port, Loading