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

Commit fb722821 authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: DisconnectAllAcls Topshim API

Bug: 228987097
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: Ib59494ad71fab1eeb23a5606f4c0b3f58096174e
parent 5e9c4ebd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -145,4 +145,11 @@ impl AdapterService for AdapterServiceImpl {
            sink.success(Empty::default()).await.unwrap();
        })
    }

    fn disconnect_all_acls(&mut self, ctx: RpcContext<'_>, _req: Empty, sink: UnarySink<Empty>) {
        self.btif_intf.lock().unwrap().disconnect_all_acls();
        ctx.spawn(async move {
            sink.success(Empty::default()).await.unwrap();
        })
    }
}
+4 −0
Original line number Diff line number Diff line
@@ -1024,6 +1024,10 @@ impl BluetoothInterface {
        ccall!(self, clear_filter_accept_list)
    }

    pub fn disconnect_all_acls(&self) -> i32 {
        ccall!(self, disconnect_all_acls)
    }

    pub(crate) fn get_profile_interface(
        &self,
        profile: SupportedProfiles,