/tools/netsim/proto/ |
D | Android.bp | 11 name: "netsim-protos", 13 "netsim/common.proto", 14 "netsim/frontend.proto", 15 "netsim/hci_packet.proto", 16 "netsim/model.proto", 17 "netsim/packet_streamer.proto", 18 "netsim/startup.proto", 19 "netsim/stats.proto", 24 name: "netsim-grpc-gen-defaults", 30 " -Itools/netsim/proto" + [all …]
|
D | CMakeLists.txt | 28 SOURCES netsim/common.proto netsim/config.proto netsim/hci_packet.proto 29 netsim/model.proto netsim/startup.proto netsim/stats.proto 42 # For netsim-cli (netsim-cli-proto-lib) 44 SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} SOURCES netsim/frontend.proto 49 TARGET netsim-cli-proto-lib LICENSE Apache-2.0 SRC ${NETSIM_FRONTEND_GRPC_SRC} 53 netsim-cli-proto-lib PRIVATE ${PROTOBUF_INCLUDE_DIR} .. 58 SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR} SOURCES netsim/packet_streamer.proto 73 android_license(TARGET "netsim-cli-proto-lib" LIBNAME None SPDX None
|
/tools/netsim/ui/ |
D | CMakeLists.txt | 17 set(INSTALL_NETSIM_UI_DIR "${CMAKE_INSTALL_PREFIX}/netsim-ui" 18 CACHE PATH "The directory the netsim web UI is installed in") 24 # Add netsim-ui into objs 26 ${CMAKE_CURRENT_LIST_DIR}/dist/index.html>netsim-ui/index.html; 27 ${CMAKE_CURRENT_LIST_DIR}/dist/dev.html>netsim-ui/dev.html; 28 … ${CMAKE_CURRENT_LIST_DIR}/dist/assets/grid-background.svg>netsim-ui/assets/grid-background.svg; 29 …${CMAKE_CURRENT_LIST_DIR}/dist/assets/hexagonal-background.png>netsim-ui/assets/hexagonal-backgrou… 30 ${CMAKE_CURRENT_LIST_DIR}/dist/assets/netsim-logo-b.svg>netsim-ui/assets/netsim-logo-b.svg; 31 ${CMAKE_CURRENT_LIST_DIR}/dist/assets/netsim-logo.svg>netsim-ui/assets/netsim-logo.svg; 32 … ${CMAKE_CURRENT_LIST_DIR}/dist/assets/polar-background.svg>netsim-ui/assets/polar-background.svg; [all …]
|
D | Android.bp | 19 "//tools/netsim:__subpackages__", 24 // netsim web UI's index.html 28 sub_dir: "bin/netsim-ui", 32 // netsim web UI's JavaScript files 36 sub_dir: "bin/netsim-ui/js", 43 sub_dir: "bin/netsim-ui/js", 50 sub_dir: "bin/netsim-ui/js", 57 sub_dir: "bin/netsim-ui/js", 64 sub_dir: "bin/netsim-ui/js", 71 sub_dir: "bin/netsim-ui/js", [all …]
|
D | README.md | 5 ## netsim web UI 7 This directory contains the Web UI for netsim. 18 cd $REPO/tools/netsim/ui 28 Command for translating netsim's model.proto into model.ts: 45 - `tsproto` translates netsim's model.proto into model.ts
|
/tools/netsim/ |
D | CMakeLists.txt | 17 project(netsim) project 26 message(STATUS "Building netsim standalone.") 42 TARGET netsim LICENSE Apache-2.0 INSTALL . SRC rust/netsim.cc 43 DEPS frontend-client grpc++ netsim-cli-proto-lib netsim-cli-rust-lib 52 netsim-cli-proto-lib 53 netsim-daemon 66 TARGET netsim-test LICENSE Apache-2.0 74 netsim-cli-proto-lib 75 netsim-daemon 76 netsim-proto [all …]
|
D | Android.bp | 17 "//tools/netsim:__subpackages__", 119 out: ["netsim-daemon/src/ffi.rs.cc"], 127 out: ["netsim-daemon/src/ffi.rs.h"], 135 out: ["netsim-cli/src/ffi.rs.cc"], 143 out: ["netsim-cli/src/ffi.rs.h"], 168 name: "lib-netsim", 260 "lib-netsim", 261 "lib-netsim-frontend-proto", 277 name: "netsim-test", 302 "lib-netsim-frontend-proto", [all …]
|
/tools/netsim/scripts/ |
D | format_code.sh | 22 find $REPO/tools/netsim/src \( -name '*.cc' -o -name '*.h' \) \ 25 find $REPO/tools/netsim/proto \( -name '*.proto' \) \ 30 find $REPO/tools/netsim/rust \( \ 31 -path $REPO/tools/netsim/rust/target -prune -false \ 36 find $REPO/tools/netsim/ui/ts \( -name '*.ts' \) \ 40 find $REPO/tools/netsim \( -name '*.java' \) \ 42 find $REPO/tools/netsim \( -name '*.java' \) \ 47 --recursive $REPO/tools/netsim 50 find $REPO/tools/netsim \( -name 'CMakeLists.txt' \) \ 52 find $REPO/tools/netsim/cmake \( -name "*.cmake" \) \
|
D | build_ui.sh | 21 cd $REPO/tools/netsim/ui 31 bash $REPO/tools/netsim/scripts/format_code.sh
|
/tools/netsim/rust/ |
D | CMakeLists.txt | 8 corrosion_set_env_vars(netsim-common CARGO_HOME=${Rust_CARGO_HOME}) 10 netsim-daemon 20 netsim-cli 25 netsim-proto 50 corrosion_set_env_vars(netsim-cli CXXFLAGS=${CXXFLAGS}) 51 corrosion_set_env_vars(netsim-daemon CXXFLAGS=${CXXFLAGS}) 57 corrosion_add_target_rustflags(netsim-cli ${RUSTFLAGS}) 58 corrosion_add_target_rustflags(netsim-daemon ${RUSTFLAGS}) 73 # 2. export CARGO_HOME=$REPO_EMU/tools/netsim/objs/rust/.cargo 74 # 3. cd $REPO_EMU/tools/netsim [all …]
|
/tools/netsim/src/ |
D | netsim-packet-streamer-client.cc | 20 using netsim::common::ChipKind; 26 auto channel = netsim::packet::CreateChannel(""); in main() 28 std::unique_ptr<netsim::packet::PacketStreamer::Stub> stub = in main() 29 netsim::packet::PacketStreamer::NewStub(channel); in main() 33 netsim::packet::PacketRequest initial_request; in main() 34 netsim::packet::Stream bt_stream = stub->StreamPackets(&context); in main()
|
/tools/netsim/rust/cli/ |
D | netsim-cli.md | 1 # Command Line Interface for Netsim (netsim) 4 * `netsim [Options] <COMMAND>` 14 * Usage: `netsim version` 16 * Usage: `netsim radio <RADIO_TYPE> <STATUS> <NAME>` 22 * Usage: `netsim move <NAME> <X> <Y> [Z]` 29 * Usage: `netsim devices [OPTIONS]` 33 * Usage: `netsim beacon <COMMAND>` 36 * Usage: `netsim beacon create <COMMAND>` 39 … * Usage: `netsim beacon create ble [DEVICE_NAME | DEVICE_NAME CHIP_NAME] [OPTIONS]` 64 * Usage: `netsim beacon patch <COMMAND>` [all …]
|
D | Cargo.toml | 2 name = "netsim-cli" 21 netsim-proto = { path = "../proto" } 22 netsim-common = { path = "../common" }
|
/tools/netsim/src/util/ |
D | os_utils.cc | 31 namespace netsim { namespace 68 return std::string(env_p) + netsim::filesystem::slash + discovery.subdir; in GetDiscoveryDirectory() 74 if (discovery_dir.back() != netsim::filesystem::slash.back()) in GetNetsimIniFilepath() 75 discovery_dir.append(netsim::filesystem::slash); in GetNetsimIniFilepath() 85 if (!netsim::filesystem::exists(filepath)) { in GetServerAddress() 89 if (!netsim::filesystem::is_regular_file(filepath)) { in GetServerAddress()
|
D | os_utils_test.cc | 24 namespace netsim { namespace 31 EXPECT_TRUE(netsim::filesystem::exists(dir)); in TEST()
|
/tools/netsim/guide/src/development/ |
D | README.md | 3 This section walks you through building netsim from source. 8 * To build with emulator, follow the [netsim with emulator](#netsim_with_emulator) 9 section to build netsim by `cmake` in `emu-master-dev` manifest branch. 11 * To build with cuttlefish, follow the [netsim with 12 cuttlefish](#netsim_with_cuttlefish) to build netsim by `soong` in `aosp-master` 17 The *netsim* network simulator is built as a component of 50 ## <a name="netsim_with_emulator"></a>Build netsim with emulator 52 For developing netsim alongside emulator, start with the OS specific build 104 ### Emulator incremental netsim build 109 cd /repo/emu-master-dev/tools/netsim [all …]
|
/tools/netsim/testing/netsim-grpc/ |
D | README.md | 14 NetsimClient() is the Netsim gRPC Frontend Client Service connecting to netsim daemon. 15 Users should use a NetsimClient to interact with netsim daemon by calling the provided APIs. 18 from netsim import netsim 20 netsim_client = netsim.NetsimClient() 25 - `get_version()`: Get the version of the netsim daemon. 26 - `get_devices()`: Get detailed information for all devices connected to netsim daemon.
|
/tools/netsim/src/backend/ |
D | grpc_client.cc | 37 namespace netsim { namespace 43 using Stream = ::grpc::ClientReaderWriter<netsim::packet::PacketRequest, 44 netsim::packet::PacketResponse>; 57 std::unique_ptr<netsim::packet::PacketStreamer::Stub> stub_; 76 stub_ = netsim::packet::PacketStreamer::NewStub(channel_); in StreamPackets() 92 netsim::packet::PacketResponse response; in ReadPacketResponseLoop() 117 netsim::packet::PacketRequest request; in WritePacketRequest()
|
D | grpc_server.cc | 35 namespace netsim { namespace 39 using netsim::common::ChipKind; 44 using netsim::startup::Chip; 104 auto result = netsim::device::AddChipCxx( in StreamPackets() 121 netsim::transport::RegisterGrpcTransport(chip_id); in StreamPackets() 125 netsim::transport::UnregisterGrpcTransport(chip_id); in StreamPackets() 129 netsim::device::RemoveChipCxx(device_id, chip_id); in StreamPackets()
|
/tools/netsim/proto/netsim/ |
D | frontend.proto | 17 package netsim.frontend; 21 import "netsim/model.proto"; 35 // Get the version of the netsim service. 62 // List all Captures currently connected on netsim. 71 // Returns the version of the netsim service 73 // Version of netsim service 83 netsim.model.DeviceCreate device = 1; 88 // Returns the device created in netsim 91 netsim.model.Device device = 1; 109 netsim.model.Device device = 2; [all …]
|
D | stats.proto | 17 package netsim.stats; 33 // Radio statistics for a netsim session. 60 // Frontend statistics for a netsim session representing count of API calls 74 // Statistics for a netsim session. 84 // The version of netsim daemon
|
D | model.proto | 17 package netsim.model; 19 import "netsim/common.proto"; 45 // Radio Type used by netsim-grpc in testing module 56 // Model of a Chip in netsim 59 netsim.common.ChipKind kind = 1; 219 netsim.common.ChipKind kind = 1; 236 // Device model for netsim 266 // Scene model for netsim 272 // Capture model for netsim 277 netsim.common.ChipKind chip_kind = 2; [all …]
|
/tools/netsim/rust/proto/ |
D | CMakeLists.txt | 3 corrosion_set_env_vars(netsim-proto RUST_BACKTRACE=full) 10 corrosion_set_env_vars(netsim-proto 17 corrosion_set_env_vars(netsim-proto CMAKE=${CMAKE_COMMAND}) 22 netsim-proto "-Clink-args=-Wl,-rpath,${CMAKE_LIBRARY_OUTPUT_DIRECTORY}")
|
/tools/netsim/src/hci/ |
D | rust_device.cc | 24 namespace netsim::hci::facade { namespace 25 void RustDevice::Tick() { ::netsim::hci::facade::Tick(*callbacks_); } in Tick() 33 ::netsim::hci::facade::ReceiveLinkLayerPacket( in ReceiveLinkLayerPacket()
|
/tools/netsim/src/frontend/ |
D | frontend_server.cc | 31 namespace netsim { namespace 42 grpc::ServerWriter<netsim::frontend::GetCaptureResponse> *grpc_writer) in CxxServerResponseWritable() 59 netsim::frontend::GetCaptureResponse response; in put_chunk() 70 mutable grpc::ServerWriter<netsim::frontend::GetCaptureResponse> 83 reply->set_version(std::string(netsim::GetVersion())); in GetVersion() 184 const netsim::frontend::GetCaptureRequest *request, in GetCapture() 185 grpc::ServerWriter<netsim::frontend::GetCaptureResponse> *grpc_writer) { in GetCapture()
|