Loading framework/java/android/bluetooth/BluetoothGatt.java +32 −0 Original line number Diff line number Diff line Loading @@ -1506,6 +1506,38 @@ public final class BluetoothGatt implements BluetoothProfile { return true; } /** * Request an LE connection parameter update. * * <p>This function will send an LE connection parameters update request to the remote device. * * @return true, if the request is send to the Bluetooth stack. * @hide */ public boolean requestLeConnectionUpdate(int minConnectionInterval, int maxConnectionInterval, int slaveLatency, int supervisionTimeout) { if (DBG) { Log.d(TAG, "requestLeConnectionUpdate() - min=(" + minConnectionInterval + ")" + (1.25 * minConnectionInterval) + "msec, max=(" + maxConnectionInterval + ")" + (1.25 * maxConnectionInterval) + "msec, latency=" + slaveLatency + ", timeout=" + supervisionTimeout + "msec"); } if (mService == null || mClientIf == 0) return false; try { mService.leConnectionUpdate(mClientIf, mDevice.getAddress(), minConnectionInterval, maxConnectionInterval, slaveLatency, supervisionTimeout); } catch (RemoteException e) { Log.e(TAG, "", e); return false; } return true; } /** * Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} * with {@link BluetoothProfile#GATT} as argument Loading Loading
framework/java/android/bluetooth/BluetoothGatt.java +32 −0 Original line number Diff line number Diff line Loading @@ -1506,6 +1506,38 @@ public final class BluetoothGatt implements BluetoothProfile { return true; } /** * Request an LE connection parameter update. * * <p>This function will send an LE connection parameters update request to the remote device. * * @return true, if the request is send to the Bluetooth stack. * @hide */ public boolean requestLeConnectionUpdate(int minConnectionInterval, int maxConnectionInterval, int slaveLatency, int supervisionTimeout) { if (DBG) { Log.d(TAG, "requestLeConnectionUpdate() - min=(" + minConnectionInterval + ")" + (1.25 * minConnectionInterval) + "msec, max=(" + maxConnectionInterval + ")" + (1.25 * maxConnectionInterval) + "msec, latency=" + slaveLatency + ", timeout=" + supervisionTimeout + "msec"); } if (mService == null || mClientIf == 0) return false; try { mService.leConnectionUpdate(mClientIf, mDevice.getAddress(), minConnectionInterval, maxConnectionInterval, slaveLatency, supervisionTimeout); } catch (RemoteException e) { Log.e(TAG, "", e); return false; } return true; } /** * Not supported - please use {@link BluetoothManager#getConnectedDevices(int)} * with {@link BluetoothProfile#GATT} as argument Loading