Loading android/app/src/com/android/bluetooth/gatt/GattService.java +11 −11 Original line number Diff line number Diff line Loading @@ -2888,6 +2888,17 @@ public class GattService extends ProfileService { db.add(GattDbElement.createSecondaryService(service.getUuid())); } for (BluetoothGattService includedService : service.getIncludedServices()) { int inclSrvcHandle = includedService.getInstanceId(); if (mHandleMap.checkServiceExists(includedService.getUuid(), inclSrvcHandle)) { db.add(GattDbElement.createIncludedService(inclSrvcHandle)); } else { Log.e(TAG, "included service with UUID " + includedService.getUuid() + " not found!"); } } for (BluetoothGattCharacteristic characteristic : service.getCharacteristics()) { int permission = ((characteristic.getKeySize() - 7) << 12) + characteristic.getPermissions(); Loading @@ -2901,17 +2912,6 @@ public class GattService extends ProfileService { } } for (BluetoothGattService includedService : service.getIncludedServices()) { int inclSrvcHandle = includedService.getInstanceId(); if (mHandleMap.checkServiceExists(includedService.getUuid(), inclSrvcHandle)) { db.add(GattDbElement.createIncludedService(inclSrvcHandle)); } else { Log.e(TAG, "included service with UUID " + includedService.getUuid() + " not found!"); } } gattServerAddServiceNative(serverIf, db); } Loading Loading
android/app/src/com/android/bluetooth/gatt/GattService.java +11 −11 Original line number Diff line number Diff line Loading @@ -2888,6 +2888,17 @@ public class GattService extends ProfileService { db.add(GattDbElement.createSecondaryService(service.getUuid())); } for (BluetoothGattService includedService : service.getIncludedServices()) { int inclSrvcHandle = includedService.getInstanceId(); if (mHandleMap.checkServiceExists(includedService.getUuid(), inclSrvcHandle)) { db.add(GattDbElement.createIncludedService(inclSrvcHandle)); } else { Log.e(TAG, "included service with UUID " + includedService.getUuid() + " not found!"); } } for (BluetoothGattCharacteristic characteristic : service.getCharacteristics()) { int permission = ((characteristic.getKeySize() - 7) << 12) + characteristic.getPermissions(); Loading @@ -2901,17 +2912,6 @@ public class GattService extends ProfileService { } } for (BluetoothGattService includedService : service.getIncludedServices()) { int inclSrvcHandle = includedService.getInstanceId(); if (mHandleMap.checkServiceExists(includedService.getUuid(), inclSrvcHandle)) { db.add(GattDbElement.createIncludedService(inclSrvcHandle)); } else { Log.e(TAG, "included service with UUID " + includedService.getUuid() + " not found!"); } } gattServerAddServiceNative(serverIf, db); } Loading