Loading android/app/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ <!-- Specifies latency parameters for high priority, balanced and low power GATT configurations. These values represents the number of packets a slave device is allowed to skip. --> peripheral device is allowed to skip. --> <integer name="gatt_high_priority_latency">0</integer> <integer name="gatt_balanced_priority_latency">0</integer> <integer name="gatt_low_power_latency">2</integer> Loading android/app/src/com/android/bluetooth/gatt/GattService.java +6 −6 Original line number Diff line number Diff line Loading @@ -700,14 +700,14 @@ public class GattService extends ProfileService { @Override public void leConnectionUpdate(int clientIf, String address, int minConnectionInterval, int maxConnectionInterval, int slaveLatency, int supervisionTimeout, int peripheralLatency, int supervisionTimeout, int minConnectionEventLen, int maxConnectionEventLen) { GattService service = getService(); if (service == null) { return; } service.leConnectionUpdate(clientIf, address, minConnectionInterval, maxConnectionInterval, slaveLatency, maxConnectionInterval, peripheralLatency, supervisionTimeout, minConnectionEventLen, maxConnectionEventLen); } Loading Loading @@ -2639,7 +2639,7 @@ public class GattService extends ProfileService { int minInterval; int maxInterval; // Slave latency // Peripheral latency int latency; // Link supervision timeout is measured in N * 10ms Loading Loading @@ -2677,21 +2677,21 @@ public class GattService extends ProfileService { } void leConnectionUpdate(int clientIf, String address, int minInterval, int maxInterval, int slaveLatency, int maxInterval, int peripheralLatency, int supervisionTimeout, int minConnectionEventLen, int maxConnectionEventLen) { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (DBG) { Log.d(TAG, "leConnectionUpdate() - address=" + address + ", intervals=" + minInterval + "/" + maxInterval + ", latency=" + slaveLatency + minInterval + "/" + maxInterval + ", latency=" + peripheralLatency + ", timeout=" + supervisionTimeout + "msec" + ", min_ce=" + minConnectionEventLen + ", max_ce=" + maxConnectionEventLen); } gattConnectionParameterUpdateNative(clientIf, address, minInterval, maxInterval, slaveLatency, supervisionTimeout, peripheralLatency, supervisionTimeout, minConnectionEventLen, maxConnectionEventLen); } Loading Loading
android/app/res/values/config.xml +1 −1 Original line number Diff line number Diff line Loading @@ -51,7 +51,7 @@ <!-- Specifies latency parameters for high priority, balanced and low power GATT configurations. These values represents the number of packets a slave device is allowed to skip. --> peripheral device is allowed to skip. --> <integer name="gatt_high_priority_latency">0</integer> <integer name="gatt_balanced_priority_latency">0</integer> <integer name="gatt_low_power_latency">2</integer> Loading
android/app/src/com/android/bluetooth/gatt/GattService.java +6 −6 Original line number Diff line number Diff line Loading @@ -700,14 +700,14 @@ public class GattService extends ProfileService { @Override public void leConnectionUpdate(int clientIf, String address, int minConnectionInterval, int maxConnectionInterval, int slaveLatency, int supervisionTimeout, int peripheralLatency, int supervisionTimeout, int minConnectionEventLen, int maxConnectionEventLen) { GattService service = getService(); if (service == null) { return; } service.leConnectionUpdate(clientIf, address, minConnectionInterval, maxConnectionInterval, slaveLatency, maxConnectionInterval, peripheralLatency, supervisionTimeout, minConnectionEventLen, maxConnectionEventLen); } Loading Loading @@ -2639,7 +2639,7 @@ public class GattService extends ProfileService { int minInterval; int maxInterval; // Slave latency // Peripheral latency int latency; // Link supervision timeout is measured in N * 10ms Loading Loading @@ -2677,21 +2677,21 @@ public class GattService extends ProfileService { } void leConnectionUpdate(int clientIf, String address, int minInterval, int maxInterval, int slaveLatency, int maxInterval, int peripheralLatency, int supervisionTimeout, int minConnectionEventLen, int maxConnectionEventLen) { enforceCallingOrSelfPermission(BLUETOOTH_PERM, "Need BLUETOOTH permission"); if (DBG) { Log.d(TAG, "leConnectionUpdate() - address=" + address + ", intervals=" + minInterval + "/" + maxInterval + ", latency=" + slaveLatency + minInterval + "/" + maxInterval + ", latency=" + peripheralLatency + ", timeout=" + supervisionTimeout + "msec" + ", min_ce=" + minConnectionEventLen + ", max_ce=" + maxConnectionEventLen); } gattConnectionParameterUpdateNative(clientIf, address, minInterval, maxInterval, slaveLatency, supervisionTimeout, peripheralLatency, supervisionTimeout, minConnectionEventLen, maxConnectionEventLen); } Loading