Home
last modified time | relevance | path

Searched refs:ChipKind (Results 1 – 25 of 29) sorted by relevance

12

/tools/netsim/rust/proto/src/
Dcommon.rs30 pub enum ChipKind { enum
43 impl ::protobuf::Enum for ChipKind { implementation
50 fn from_i32(value: i32) -> ::std::option::Option<ChipKind> { in from_i32() argument
52 0 => ::std::option::Option::Some(ChipKind::UNSPECIFIED), in from_i32()
53 1 => ::std::option::Option::Some(ChipKind::BLUETOOTH), in from_i32()
54 2 => ::std::option::Option::Some(ChipKind::WIFI), in from_i32()
55 3 => ::std::option::Option::Some(ChipKind::UWB), in from_i32()
56 4 => ::std::option::Option::Some(ChipKind::BLUETOOTH_BEACON), in from_i32()
61 const VALUES: &'static [ChipKind] = &[
62 ChipKind::UNSPECIFIED,
[all …]
Dstartup.rs441 pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
579 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in compute_size()
613 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in write_to_with_cached_sizes()
657 self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED); in clear()
Dmodel.rs349 pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
686 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in compute_size()
727 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in write_to_with_cached_sizes()
775 self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED); in clear()
2244 pub kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
2414 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in compute_size()
2447 if self.kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in write_to_with_cached_sizes()
2489 self.kind = ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED); in clear()
3261 pub chip_kind: ::protobuf::EnumOrUnknown<super::common::ChipKind>,
3390 if self.chip_kind != ::protobuf::EnumOrUnknown::new(super::common::ChipKind::UNSPECIFIED) { in compute_size()
[all …]
/tools/netsim/src/backend/
Dgrpc_server.cc39 using netsim::common::ChipKind;
84 case common::ChipKind::BLUETOOTH: in StreamPackets()
87 case common::ChipKind::WIFI: in StreamPackets()
90 case common::ChipKind::UWB: in StreamPackets()
153 common::ChipKind chip_kind) { in ProcessRequests()
161 if (chip_kind == common::ChipKind::BLUETOOTH) { in ProcessRequests()
171 } else if (chip_kind == common::ChipKind::WIFI) { in ProcessRequests()
183 } else if (chip_kind == common::ChipKind::UWB) { in ProcessRequests()
Dbackend_packet_hub.h30 using netsim::common::ChipKind;
/tools/netsim/rust/cli/src/
Dresponse.rs21 common::ChipKind,
306 pub fn chip_kind_to_string(chip_kind: ChipKind) -> String { in chip_kind_to_string()
308 ChipKind::UNSPECIFIED => "UNSPECIFIED".to_string(), in chip_kind_to_string()
309 ChipKind::BLUETOOTH => "BLUETOOTH".to_string(), in chip_kind_to_string()
310 ChipKind::WIFI => "WIFI".to_string(), in chip_kind_to_string()
311 ChipKind::UWB => "UWB".to_string(), in chip_kind_to_string()
312 ChipKind::BLUETOOTH_BEACON => "BLUETOOTH_BEACON".to_string(), in chip_kind_to_string()
341 chip_kind: ChipKind::BLUETOOTH.into(), in capture_1()
349 chip_kind: ChipKind::WIFI.into(), in capture_1_wifi()
357 chip_kind: ChipKind::BLUETOOTH.into(), in capture_2()
[all …]
Drequests.rs74 common::ChipKind,
108 chip.kind = ChipKind::WIFI.into(); in get_expected_radio()
113 chip.kind = ChipKind::UWB.into(); in get_expected_radio()
123 chip.kind = ChipKind::BLUETOOTH.into(); in get_expected_radio()
293 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_create_device_req_bytes()
319 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_patch_device_req_bytes()
560 kind: ChipKind::BLUETOOTH_BEACON.into(), in test_beacon_create_ble_with_address()
594 kind: ChipKind::BLUETOOTH_BEACON.into(), in test_beacon_patch_ble_with_address()
Dargs.rs20 use netsim_proto::common::ChipKind;
108 chip.kind = ChipKind::WIFI.into(); in get_request_bytes()
113 chip.kind = ChipKind::UWB.into(); in get_request_bytes()
123 chip.kind = ChipKind::BLUETOOTH.into(); in get_request_bytes()
171 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_request_bytes()
198 kind: ChipKind::BLUETOOTH_BEACON.into(), in get_request_bytes()
/tools/netsim/rust/daemon/src/transport/
Dsocket.rs23 use netsim_proto::common::ChipKind;
85 kind: ChipKind::BLUETOOTH, in handle_hci_client()
100 chip_kind: ChipKind::BLUETOOTH, in handle_hci_client()
117 let _ = reader(tcp_rx, ChipKind::BLUETOOTH, result.chip_id); in handle_hci_client()
132 fn reader(mut tcp_rx: TcpStream, kind: ChipKind, chip_id: ChipIdentifier) -> std::io::Result<()> { in reader() argument
134 if let ChipKind::BLUETOOTH = kind { in reader()
Dfd.rs31 use netsim_proto::common::ChipKind;
189 ChipKindEnum::BLUETOOTH => ChipKind::BLUETOOTH, in run_fd_transport()
190 ChipKindEnum::WIFI => ChipKind::WIFI, in run_fd_transport()
191 ChipKindEnum::UWB => ChipKind::UWB, in run_fd_transport()
192 _ => ChipKind::UNSPECIFIED, in run_fd_transport()
197 ChipKind::BLUETOOTH => { in run_fd_transport()
203 ChipKind::WIFI => wireless::CreateParam::Wifi(wireless::wifi::CreateParams {}), in run_fd_transport()
204 ChipKind::UWB => wireless::CreateParam::Uwb(wireless::uwb::CreateParams { in run_fd_transport()
Dwebsocket.rs21 use netsim_proto::common::ChipKind;
93 kind: ChipKind::BLUETOOTH, in run_websocket_transport()
108 chip_kind: ChipKind::BLUETOOTH, in run_websocket_transport()
/tools/netsim/rust/daemon/src/captures/
Dcapture.rs36 use netsim_proto::{common::ChipKind, model::Capture as ProtoCapture};
55 pub chip_kind: ChipKind,
87 pub fn new(chip_kind: ChipKind, chip_id: ChipIdentifier, device_name: String) -> Self { in new() argument
89 ChipKind::UWB => "pcapng".to_string(), in new()
123 ChipKind::BLUETOOTH => LinkType::BluetoothHciH4WithPhdr, in start_capture()
124 ChipKind::BLUETOOTH_BEACON => LinkType::BluetoothHciH4WithPhdr, in start_capture()
125 ChipKind::WIFI => LinkType::Ieee80211RadioTap, in start_capture()
126 ChipKind::UWB => LinkType::FiraUci, in start_capture()
Dcaptures_handler.rs34 use netsim_proto::common::ChipKind;
63 fn get_file(id: ChipIdentifier, device_name: String, chip_kind: ChipKind) -> Result<File> { in get_file()
66 ChipKind::UWB => "pcapng", in get_file()
257 ChipKind::BLUETOOTH => wrap_bt_packet(direction, packet_type, packet), in handle_packet()
258 ChipKind::WIFI => match radiotap::into_pcap(packet) { in handle_packet()
262 ChipKind::UWB => { in handle_packet()
/tools/netsim/ui/ts/netsim/
Dmodel.ts4 import type {ChipKind} from './common';
49 kind: ChipKind;
212 kind: ChipKind;
285 chipKind: ChipKind;
Dcommon.ts6 export enum ChipKind { enum
/tools/netsim/src/
Dnetsim-packet-streamer-client.cc20 using netsim::common::ChipKind;
37 ChipKind::BLUETOOTH); in main()
/tools/netsim/testing/netsim-grpc/src/netsim_grpc/
Dnetsim_client.py125 chip.kind = common.ChipKind.WIFI
128 chip.kind = common.ChipKind.UWB
134 chip.kind = common.ChipKind.BLUETOOTH
/tools/netsim/rust/daemon/src/
Devents.rs17 use netsim_proto::common::ChipKind;
60 pub chip_kind: ChipKind,
Dservice.rs205 use netsim_proto::common::ChipKind; in new_test_beacon()
242 kind: ChipKind::BLUETOOTH_BEACON.into(), in new_test_beacon()
/tools/netsim/rust/daemon/src/wireless/
Dmocked.rs19 use netsim_proto::common::ChipKind as ProtoChipKind;
/tools/netsim/proto/netsim/
Dcommon.proto20 enum ChipKind { enum
Dmodel.proto59 netsim.common.ChipKind kind = 1;
219 netsim.common.ChipKind kind = 1;
277 netsim.common.ChipKind chip_kind = 2;
Dstartup.proto59 common.ChipKind kind = 1; // the kind of chip
/tools/netsim/ui/ts/
Ddevice-info.ts9 enum ChipKind { enum
485 chip.kind === ChipKind.BLUETOOTH_BEACON && chip.bleBeacon;
/tools/netsim/rust/daemon/src/grpc_server/
Dbackend.rs25 use netsim_proto::common::ChipKind as ProtoChipKind;

12