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

Commit 2accca5e authored by Martin Brabham's avatar Martin Brabham
Browse files

Floss: ClearFilterAcceptList Topshim API

Bug: 228987981
Test: mma -j $(nproc)
Test: ./build.py
Tag: #floss
Change-Id: Ia23e6eb902f40cec89d7313953ac2e2a8e6139bf
parent fdb4d768
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -133,4 +133,16 @@ impl AdapterService for AdapterServiceImpl {
            sink.success(Empty::default()).await.unwrap();
        })
    }

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

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

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