summaryrefslogtreecommitdiff
path: root/system/gd/rust/linux/service/src
diff options
context:
space:
mode:
authorKatherine Lai <laikatherine@google.com>2022-02-24 23:24:48 +0000
committerKatherine Lai <laikatherine@google.com>2022-02-25 18:31:11 +0000
commit58837b82501efeda11d82f369cb15bea9f0987d4 (patch)
tree6290ffa46186dc833989d15569ded987e992c04b /system/gd/rust/linux/service/src
parent4da5be342b703b01db3916848a095a438b05faa3 (diff)
floss: Add GetDiscoverableTimeout API
Bug: 196885500 Tag: #floss Test: Verify API output with btclient Change-Id: I41061cce090c9e96fb6f27352334bd56c3faa312
Diffstat (limited to 'system/gd/rust/linux/service/src')
-rw-r--r--system/gd/rust/linux/service/src/iface_bluetooth.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/system/gd/rust/linux/service/src/iface_bluetooth.rs b/system/gd/rust/linux/service/src/iface_bluetooth.rs
index 07488e11f4..2447ccefb3 100644
--- a/system/gd/rust/linux/service/src/iface_bluetooth.rs
+++ b/system/gd/rust/linux/service/src/iface_bluetooth.rs
@@ -147,22 +147,27 @@ impl IBluetooth for IBluetoothDBus {
#[dbus_method("GetDiscoverable")]
fn get_discoverable(&self) -> bool {
- true
+ dbus_generated!()
+ }
+
+ #[dbus_method("GetDiscoverableTimeout")]
+ fn get_discoverable_timeout(&self) -> u32 {
+ dbus_generated!()
}
#[dbus_method("SetDiscoverable")]
fn set_discoverable(&self, mode: bool, duration: u32) -> bool {
- true
+ dbus_generated!()
}
#[dbus_method("IsMultiAdvertisementSupported")]
fn is_multi_advertisement_supported(&self) -> bool {
- true
+ dbus_generated!()
}
#[dbus_method("IsLeExtendedAdvertisingSupported")]
fn is_le_extended_advertising_supported(&self) -> bool {
- true
+ dbus_generated!()
}
#[dbus_method("StartDiscovery")]