Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 53fe28b7 authored by Wei Wang's avatar Wei Wang Committed by Andre Eisenbach
Browse files

LE: Add oneway attribute to Gatt callbacks

Adding the 'oneway' attribute to the GattService interface definition
prevents applications from blocking callbacks.

Bug: 15489651
Change-Id: Id7fcf7f95539092f03e5773ca318b5472b55cb4d
parent d5bb6225
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -22,7 +22,7 @@ import android.os.ParcelUuid;
 * Callback definitions for interacting with BLE / GATT
 * @hide
 */
interface IBluetoothGattCallback {
oneway interface IBluetoothGattCallback {
    void onClientRegistered(in int status, in int clientIf);
    void onClientConnectionState(in int status, in int clientIf,
                                 in boolean connected, in String address);
@@ -63,7 +63,7 @@ interface IBluetoothGattCallback {
                             in int charInstId, in ParcelUuid charUuid,
                             in byte[] value);
    void onReadRemoteRssi(in String address, in int rssi, in int status);
    oneway void onAdvertiseStateChange(in int advertiseState, in int status);
    oneway void onMultiAdvertiseCallback(in int status);
    void onAdvertiseStateChange(in int advertiseState, in int status);
    void onMultiAdvertiseCallback(in int status);
    void onConfigureMTU(in String address, in int mtu, in int status);
}