Merge "Add min_ce/max_ce parameters to requestLeConnectionUpdate()"
This commit is contained in:
@@ -1514,22 +1514,24 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
* @return true, if the request is send to the Bluetooth stack.
|
* @return true, if the request is send to the Bluetooth stack.
|
||||||
* @hide
|
* @hide
|
||||||
*/
|
*/
|
||||||
public boolean requestLeConnectionUpdate(int minConnectionInterval,
|
public boolean requestLeConnectionUpdate(int minConnectionInterval, int maxConnectionInterval,
|
||||||
int maxConnectionInterval,
|
int slaveLatency, int supervisionTimeout,
|
||||||
int slaveLatency, int supervisionTimeout) {
|
int minConnectionEventLen, int maxConnectionEventLen) {
|
||||||
if (DBG) {
|
if (DBG) {
|
||||||
Log.d(TAG, "requestLeConnectionUpdate() - min=(" + minConnectionInterval
|
Log.d(TAG, "requestLeConnectionUpdate() - min=(" + minConnectionInterval
|
||||||
+ ")" + (1.25 * minConnectionInterval)
|
+ ")" + (1.25 * minConnectionInterval)
|
||||||
+ "msec, max=(" + maxConnectionInterval + ")"
|
+ "msec, max=(" + maxConnectionInterval + ")"
|
||||||
+ (1.25 * maxConnectionInterval) + "msec, latency=" + slaveLatency
|
+ (1.25 * maxConnectionInterval) + "msec, latency=" + slaveLatency
|
||||||
+ ", timeout=" + supervisionTimeout + "msec");
|
+ ", timeout=" + supervisionTimeout + "msec" + ", min_ce="
|
||||||
|
+ minConnectionEventLen + ", max_ce=" + maxConnectionEventLen);
|
||||||
}
|
}
|
||||||
if (mService == null || mClientIf == 0) return false;
|
if (mService == null || mClientIf == 0) return false;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
mService.leConnectionUpdate(mClientIf, mDevice.getAddress(),
|
mService.leConnectionUpdate(mClientIf, mDevice.getAddress(),
|
||||||
minConnectionInterval, maxConnectionInterval,
|
minConnectionInterval, maxConnectionInterval,
|
||||||
slaveLatency, supervisionTimeout);
|
slaveLatency, supervisionTimeout,
|
||||||
|
minConnectionEventLen, maxConnectionEventLen);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user