blob: 184148cda14f0dd97aeff1a6d66edb3248113102 [file] [log] [blame]
// Copyright 2021 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.bluetooth.hfp.test;
/// Configure behavior for connections to remote peers.
table ConnectionBehavior {
/// When true, HFP will immediately conenct to peers when they are
/// discovered. Defaults to true if missing.
1: bool autoconnect;
};
/// Provides additional methods not in `Hfp` that are strictly for testing.
[Discoverable]
protocol HfpTest {
/// Set the value of the AG battery indicator.
///
/// `level` must be within the range 0-5 inclusive. Values outside of this
/// range cause the channel to close.
BatteryIndicator(uint8 level);
/// Configure the connection behavior when the component discovers new peers.
SetConnectionBehavior(ConnectionBehavior behavior);
};