Home
last modified time | relevance | path

Searched refs:TxPowerLevel (Results 1 – 7 of 7) sorted by relevance

/tools/netsim/rust/daemon/src/bluetooth/
Dadvertise_settings.rs43 pub tx_power_level: TxPowerLevel,
117 tx_power_level: Option<TxPowerLevel>,
145 pub fn tx_power_level(&mut self, tx_power_level: TxPowerLevel) -> &mut Self { in tx_power_level()
218 pub struct TxPowerLevel { struct
223 impl TxPowerLevel { implementation
226 TxPowerLevel { dbm } in new()
230 impl Default for TxPowerLevel { implementation
232 TxPowerLevel { dbm: TX_POWER_LOW_DBM } in default()
236 impl TryFrom<&TxPowerProto> for TxPowerLevel { implementation
245 TxPowerProto::TxPowerLevel(level) => match level.enum_value_or_default() { in try_from()
[all …]
Dadvertise_data.rs23 use super::advertise_settings::TxPowerLevel;
46 pub fn builder(device_name: String, tx_power_level: TxPowerLevel) -> AdvertiseDataBuilder { in builder()
53 tx_power_level: TxPowerLevel, in from_proto() argument
94 tx_power_level: TxPowerLevel,
102 pub fn new(device_name: String, tx_power_level: TxPowerLevel) -> Self { in new()
206 let tx_power = TxPowerLevel::new(1); in test_from_proto_succeeds()
240 TxPowerLevel::new(0), in test_from_proto_fails()
250 let tx_power = TxPowerLevel::new(1); in test_from_proto_sets_proto_field()
266 let ad = AdvertiseData::builder(device_name.clone(), TxPowerLevel::default()) in test_set_device_name_succeeds()
284 let data = AdvertiseData::builder(device_name, TxPowerLevel::default()) in test_set_device_name_fails()
[all …]
Dbeacon.rs17 AdvertiseMode, AdvertiseSettings, AdvertiseSettingsBuilder, TxPowerLevel,
82 advertise_data: AdvertiseData::builder(device_name.clone(), TxPowerLevel::default()) in new()
85 scan_response_data: AdvertiseData::builder(device_name, TxPowerLevel::default()) in new()
105 .map(TxPowerLevel::try_from) in from_proto()
478 let tx_power = TxPowerProto::TxPowerLevel(AdvertiseTxPowerProto::MEDIUM.into()); in test_beacon_patch()
/tools/netsim/rust/cli/src/
Dargs.rs529 Level(TxPowerLevel),
546 let level_parser = clap::value_parser!(TxPowerLevel); in parse_ref()
556 TxPowerLevel::value_variants().iter().map(|v| v.to_possible_value().unwrap()).chain( in possible_values()
576 pub enum TxPowerLevel { enum
659 TxPower::Level(level) => TxPowerProto::TxPowerLevel( in from()
661 TxPowerLevel::UltraLow => AdvertiseTxPowerProto::ULTRA_LOW, in from()
662 TxPowerLevel::Low => AdvertiseTxPowerProto::LOW, in from()
663 TxPowerLevel::Medium => AdvertiseTxPowerProto::MEDIUM, in from()
664 TxPowerLevel::High => AdvertiseTxPowerProto::HIGH, in from()
Drequests.rs345 tx_power: Some(TxPowerProto::TxPowerLevel(AdvertiseTxPowerProto::ULTRA_LOW.into())), in test_beacon_create_all_params_ble()
488 tx_power: Some(TxPowerProto::TxPowerLevel(AdvertiseTxPowerProto::HIGH.into())), in test_beacon_create_ble_tx_power()
Ddisplay.rs327 advertise_settings::Tx_power::TxPowerLevel(level) => { in fmt()
/tools/netsim/rust/proto/src/
Dmodel.rs1486 …::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(v)) => ::protobuf::EnumOrUn… in tx_power_level()
1497 … ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(..)) => true, in has_tx_power_level()
1504 ….tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(::protobuf::Enu… in set_tx_power_level()
1555 …::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(e)) => ::std::option::Optio… in generated_message_descriptor_data()
1559 … message.tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(e)); in generated_message_descriptor_data()
1606 ….tx_power = ::std::option::Option::Some(advertise_settings::Tx_power::TxPowerLevel(is.read_enum_or… in merge_from()
1647 &advertise_settings::Tx_power::TxPowerLevel(v) => { in compute_size()
1679 &advertise_settings::Tx_power::TxPowerLevel(v) => { in write_to_with_cached_sizes()
1776 TxPowerLevel(::protobuf::EnumOrUnknown<AdvertiseTxPower>), enumerator