Merge "Add synchronization to all mDeviceBusy state changes."
This commit is contained in:
@@ -1153,7 +1153,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
characteristic.getInstanceId(), AUTHENTICATION_NONE);
|
characteristic.getInstanceId(), AUTHENTICATION_NONE);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1187,7 +1189,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
new ParcelUuid(uuid), startHandle, endHandle, AUTHENTICATION_NONE);
|
new ParcelUuid(uuid), startHandle, endHandle, AUTHENTICATION_NONE);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1234,7 +1238,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
AUTHENTICATION_NONE, characteristic.getValue());
|
AUTHENTICATION_NONE, characteristic.getValue());
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1276,7 +1282,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
descriptor.getInstanceId(), AUTHENTICATION_NONE);
|
descriptor.getInstanceId(), AUTHENTICATION_NONE);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1317,7 +1325,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
AUTHENTICATION_NONE, descriptor.getValue());
|
AUTHENTICATION_NONE, descriptor.getValue());
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1384,7 +1394,9 @@ public final class BluetoothGatt implements BluetoothProfile {
|
|||||||
mService.endReliableWrite(mClientIf, mDevice.getAddress(), true);
|
mService.endReliableWrite(mClientIf, mDevice.getAddress(), true);
|
||||||
} catch (RemoteException e) {
|
} catch (RemoteException e) {
|
||||||
Log.e(TAG, "", e);
|
Log.e(TAG, "", e);
|
||||||
mDeviceBusy = false;
|
synchronized (mDeviceBusyLock) {
|
||||||
|
mDeviceBusy = false;
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user