From 58837b82501efeda11d82f369cb15bea9f0987d4 Mon Sep 17 00:00:00 2001 From: Katherine Lai Date: Thu, 24 Feb 2022 23:24:48 +0000 Subject: floss: Add GetDiscoverableTimeout API Bug: 196885500 Tag: #floss Test: Verify API output with btclient Change-Id: I41061cce090c9e96fb6f27352334bd56c3faa312 --- system/gd/rust/linux/client/src/command_handler.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'system/gd/rust/linux/client/src/command_handler.rs') diff --git a/system/gd/rust/linux/client/src/command_handler.rs b/system/gd/rust/linux/client/src/command_handler.rs index 9f9f280c85..284654e444 100644 --- a/system/gd/rust/linux/client/src/command_handler.rs +++ b/system/gd/rust/linux/client/src/command_handler.rs @@ -269,6 +269,7 @@ impl CommandHandler { let name = adapter_dbus.get_name(); let uuids = adapter_dbus.get_uuids(); let is_discoverable = adapter_dbus.get_discoverable(); + let discoverable_timeout = adapter_dbus.get_discoverable_timeout(); let cod = adapter_dbus.get_bluetooth_class(); let multi_adv_supported = adapter_dbus.is_multi_advertisement_supported(); let le_ext_adv_supported = adapter_dbus.is_le_extended_advertising_supported(); @@ -276,6 +277,7 @@ impl CommandHandler { print_info!("Name: {}", name); print_info!("State: {}", if enabled { "enabled" } else { "disabled" }); print_info!("Discoverable: {}", is_discoverable); + print_info!("DiscoverableTimeout: {}s", discoverable_timeout); print_info!("Class: {:#06x}", cod); print_info!("IsMultiAdvertisementSupported: {}", multi_adv_supported); print_info!("IsLeExtendedAdvertisingSupported: {}", le_ext_adv_supported); -- cgit v1.2.3