/developtools/hiperf/test/unittest/common/native/ |
H A D | option_test.cpp | 45 Option::RegisterMainOption(TEST_OPTION_CMD_1, TEST_OPTION_HELP, OptionAlwaysFalse); in SetUp() 46 Option::RegisterMainOption(TEST_OPTION_CMD_2, TEST_OPTION_HELP, OptionAlwaysFalse); in SetUp() 47 Option::RegisterMainOption(TEST_OPTION_CMD_3, TEST_OPTION_HELP, OptionAlwaysFalse); in SetUp() 52 Option::ClearMainOptions(); in TearDown() 63 Option::RegisterMainOption(TEST_OPTION_CMD_NO_PREFIX, TEST_OPTION_HELP, OptionAlwaysFalse), in HWTEST_F() 66 Option::RegisterMainOption(TEST_OPTION_CMD_ERR_PREFIX, TEST_OPTION_HELP, OptionAlwaysFalse), in HWTEST_F() 69 Option::RegisterMainOption(TEST_OPTION_CMD_EMPTY, TEST_OPTION_HELP, OptionAlwaysFalse), in HWTEST_F() 72 EXPECT_EQ(Option::RegisterMainOption("-tf", TEST_OPTION_HELP, OptionAlwaysFalse), true); in HWTEST_F() 73 EXPECT_EQ(Option::RegisterMainOption("-tf", TEST_OPTION_HELP, OptionAlwaysFalse), false); in HWTEST_F() 74 EXPECT_EQ(Option in HWTEST_F() [all...] |
H A D | option_debug_test.cpp | 54 Option::ClearMainOptions(); in SetUp() 63 Option::ClearMainOptions(); in TearDown() 109 EXPECT_EQ(Option::GetMainOptions().size(), 8u); in HWTEST_F() 111 EXPECT_EQ(Option::GetMainOptions().size(), 7u); in HWTEST_F()
|
H A D | command_test.cpp | 49 ASSERT_EQ(Option::RegisterMainOption(TEST_OPTION_TRUE, TEST_OPTION_HELP, OptionAlwaysTrue), in SetUp() 51 ASSERT_EQ(Option::RegisterMainOption(TEST_OPTION_FALSE, TEST_OPTION_HELP, OptionAlwaysFalse), in SetUp() 66 Option::ClearMainOptions(); in TearDown()
|
/developtools/global_resource_tool/src/ |
H A D | cmd_parser.cpp | 27 { "inputPath", required_argument, nullptr, Option::INPUTPATH }, 28 { "packageName", required_argument, nullptr, Option::PACKAGENAME }, 29 { "outputPath", required_argument, nullptr, Option::OUTPUTPATH }, 30 { "resHeader", required_argument, nullptr, Option::RESHEADER }, 31 { "forceWrite", no_argument, nullptr, Option::FORCEWRITE }, 32 { "version", no_argument, nullptr, Option::VERSION}, 33 { "modules", required_argument, nullptr, Option::MODULES }, 34 { "json", required_argument, nullptr, Option::JSON }, 35 { "startId", required_argument, nullptr, Option::STARTID }, 36 { "fileList", required_argument, nullptr, Option [all...] |
H A D | resconfig_parser.cpp | 57 callback(Option::FORCEWRITE, ""); in Init() 66 Option::JSON, callback)); in InitFileListCommand() 68 Option::PACKAGENAME, callback)); in InitFileListCommand() 70 Option::OUTPUTPATH, callback)); in InitFileListCommand() 72 Option::STARTID, callback)); in InitFileListCommand() 74 Option::DEPENDENTRY, callback)); in InitFileListCommand() 76 Option::IDS, callback)); in InitFileListCommand() 78 Option::DEFINED_IDS, callback)); in InitFileListCommand() 80 Option::INPUTPATH, callback)); in InitFileListCommand() 82 Option in InitFileListCommand() [all...] |
/developtools/hiperf/src/ |
H A D | option_debug.cpp | 128 Option::RegisterMainOption("--nodebug", "disable debug log, usage format: --nodebug [command] [args]", in RegisterMainCommandDebug() 130 Option::RegisterMainOption("--debug", "show debug log, usage format: --debug [command] [args]", in RegisterMainCommandDebug() 132 Option::RegisterMainOption("--verbose", "show debug log, usage format: --verbose [command] [args]", in RegisterMainCommandDebug() 134 Option::RegisterMainOption("--much", "show extremely much debug log, usage format: --much [command] [args]", in RegisterMainCommandDebug() 136 Option::RegisterMainOption("--mixlog", "mix the log in output, usage format: --much [command] [args]", in RegisterMainCommandDebug() 138 Option::RegisterMainOption("--logpath", in RegisterMainCommandDebug() 145 Option::RegisterMainOption("--logtag", tagUsage.c_str(), OnLogTag); in RegisterMainCommandDebug() 147 Option::RegisterMainOption("--hilog", "use hilog not file to record log", OnHiLog); in RegisterMainCommandDebug()
|
H A D | subcommand_report.cpp | 39 if (!Option::GetOptionValue(args, "-i", recordFile_[FIRST])) { in ParseOption() 42 if (!Option::GetOptionValue(args, "-o", reportFile_)) { in ParseOption() 45 if (!Option::GetOptionValue(args, "--diff", recordFile_[SECOND])) { in ParseOption() 52 if (!Option::GetOptionValue(args, "--sort", reportOption_.sortKeys_)) { in ParseOption() 56 if (!Option::GetOptionValue(args, "--symbol-dir", symbolsPaths_)) { in ParseOption() 59 if (!Option::GetOptionValue(args, "--limit-percent", reportOption_.heatLimit_)) { in ParseOption() 63 if (!Option::GetOptionValue(args, "-s", showCallStack_)) { in ParseOption() 66 if (!Option::GetOptionValue(args, "--call-stack", showCallStack_)) { in ParseOption() 70 if (!Option::GetOptionValue(args, "--call-stack-limit-percent", in ParseOption() 75 if (!Option in ParseOption() [all...] |
H A D | subcommand_record.cpp | 204 if (!Option::GetOptionValue(args, "-a", targetSystemWide_)) { in GetOptions() 212 if (!Option::GetOptionValue(args, "--exclude-hiperf", excludeHiperf_)) { in GetOptions() 215 if (!Option::GetOptionValue(args, "-z", compressData_)) { in GetOptions() 218 if (!Option::GetOptionValue(args, "--no-inherit", noInherit_)) { in GetOptions() 221 if (!Option::GetOptionValue(args, "--offcpu", offCPU_)) { in GetOptions() 224 if (!Option::GetOptionValue(args, "--delay-unwind", delayUnwind_)) { in GetOptions() 227 if (!Option::GetOptionValue(args, "--disable-unwind", disableUnwind_)) { in GetOptions() 230 if (!Option::GetOptionValue(args, "--disable-callstack-expand", disableCallstackExpend_)) { in GetOptions() 233 if (!Option::GetOptionValue(args, "--enable-debuginfo-symbolic", enableDebugInfoSymbolic_)) { in GetOptions() 236 if (!Option in GetOptions() [all...] |
H A D | subcommand_stat.cpp | 65 if (!Option::GetOptionValue(args, "-a", targetSystemWide_)) { in ParseOption() 74 if (!Option::GetOptionValue(args, "-c", selectCpus_)) { in ParseOption() 78 if (!Option::GetOptionValue(args, "-d", timeStopSec_)) { in ParseOption() 82 if (!Option::GetOptionValue(args, "-i", timeReportMs_)) { in ParseOption() 86 if (!Option::GetOptionValue(args, "-e", selectEvents_)) { in ParseOption() 90 if (!Option::GetOptionValue(args, "-g", selectGroups_)) { in ParseOption() 94 if (!Option::GetOptionValue(args, "--no-inherit", noCreateNew_)) { in ParseOption() 98 if (!Option::GetOptionValue(args, "--app", appPackage_)) { in ParseOption() 105 if (!Option::GetOptionValue(args, "--chkms", checkAppMs_)) { in ParseOption() 108 if (!Option in ParseOption() [all...] |
H A D | subcommand.cpp | 32 if (!Option::GetOptionValue(args, "--dumpoptions", dumpOptions_)) { in OnSubCommandOptions() 35 if (!Option::GetOptionValue(args, "--help", showHelp_) in OnSubCommandOptions() 36 || !Option::GetOptionValue(args, "-h", showHelp_)) { in OnSubCommandOptions()
|
H A D | subcommand_dump.cpp | 66 if (!Option::GetOptionValue(args, "--head", dumpHeader_)) { in ParseOption() 70 if (!Option::GetOptionValue(args, "-f", dumpFeatures_)) { in ParseOption() 74 if (!Option::GetOptionValue(args, "-d", dumpData_)) { in ParseOption() 78 if (!Option::GetOptionValue(args, "--sympath", dumpSymbolsPaths_)) { in ParseOption() 82 if (!Option::GetOptionValue(args, "--elf", elfFileName_)) { in ParseOption() 86 if (!Option::GetOptionValue(args, "-i", dumpFileName_)) { in ParseOption() 90 if (!Option::GetOptionValue(args, "--proto", protobufDumpFileName_)) { in ParseOption() 95 if (!Option::GetOptionValue(args, "-o", outputFilename_)) { in ParseOption() 98 if (!Option::GetOptionValue(args, "--export", exportSampleIndex_)) { in ParseOption()
|
H A D | subcommand_help.cpp | 39 const auto &mainOptions = Option::GetMainOptions(); in OnHelp()
|
H A D | main.cpp | 106 Option::ClearMainOptions(); in main()
|
H A D | command.cpp | 34 auto commandOption = Option::FindMainOption(arguments.front()); in DispatchCommands()
|
/developtools/hiperf/demo/cpp/ |
H A D | hiperf_example_cmd.cpp | 41 struct Option { struct 142 USED_FUNCTION void LoopFunction(milliseconds timeOutMS, const Option &option) in LoopFunction() 188 inline void Loop(milliseconds timeOutMS, const Option &option) in Loop() 195 USED_FUNCTION void CallStack10(int currentStack, const Option &option) in CallStack10() 202 USED_FUNCTION void CallStack9(int currentStack, const Option &option) in CallStack9() 214 USED_FUNCTION void CallStack8(int currentStack, const Option &option) in CallStack8() 226 USED_FUNCTION void CallStack7(int currentStack, const Option &option) in CallStack7() 238 USED_FUNCTION void CallStack6(int currentStack, const Option &option) in CallStack6() 250 USED_FUNCTION void CallStack5(int currentStack, const Option &option) in CallStack5() 262 USED_FUNCTION void CallStack4(int currentStack, const Option [all...] |
/developtools/hiperf/include/ |
H A D | subcommand_help.h | 34 Option::RegisterMainOption("--help", "show help", OnHelp); in SubCommandHelp() 35 Option::RegisterMainOption("-h", "show help", OnHelp); in SubCommandHelp()
|
/developtools/hdc/hdc_rust/src/transfer/ |
H A D | base.rs | 39 static mut CAN_COMPRESS: Option<BOOL_> = Option::None; in get_instance() 69 fn process_head(&self) -> Option<JoinHandle<()>> { in process_head()
|
H A D | buffer.rs | 53 static mut CONNECT_TYPE_MAP: Option<ConnectTypeMap_> = None; in get_instance() 68 pub async fn get(session_id: u32) -> Option<ConnectType> { 308 static mut UART_MAP: Option<UartMap_> = None; in get_instance() 412 static mut TCP_RECVER: Option<ChannelMap_> = None; in get_instance()
|
H A D | uart.rs | 93 pub head: Option<UartHead>, 144 fn process_head(&self) -> Option<JoinHandle<()>> { in process_head()
|
H A D | uart_wrapper.rs | 67 static mut INSTANCE: Option<WaiterManager> = None; in get_instance() 171 static mut INSTANCE: Option<DataQueue_> = None; in get_instance() 179 async fn get_package(session_id: u32, index: usize) -> Option<OutputData> { 233 async fn get_stop_flag(session_id: u32) -> Option<u8> {
|
/developtools/hdc/hdc_rust/src/daemon_lib/ |
H A D | shell.rs | 87 pub cmd: Option<String>, 111 fn init_pty_process(cmd: Option<String>, _channel_id: u32) -> io::Result<PtyProcess> { in init_pty_process() 166 cmd: Option<String>, 317 option_cmd: Option<String>, in new() 355 static mut PTY_CHILD_MAP: Option<PtyChildProcessMap_> = None; in get_instance() 363 pub async fn get(session_id: u32, channel_id: u32) -> Option<Child_> { 390 static mut PTY_MAP: Option<PtyMap_> = None; in get_instance() 398 pub async fn get(session_id: u32, channel_id: u32) -> Option<Arc<PtyTask>> {
|
/developtools/hdc/hdc_rust/src/common/ |
H A D | filemanager.rs | 26 path: Option<String>, 27 file: Option<File>,
|
H A D | base.rs | 112 pub fn get_file_name(s: &mut String) -> Option<String> { in get_file_name() 205 pub fn tlv_to_stringmap(tlv: &str) -> Option<HashMap<&str, &str>> { in tlv_to_stringmap() 266 pub fn get_relative_path(base_path: &String , local_path: &String) -> Option<String> { in get_relative_path()
|
/developtools/hdc/hdc_rust/src/host/ |
H A D | parser.rs | 27 pub command: Option<HdcCommand>, 83 let mut cmd_opt: Option<HdcCommand> = None; in split_opt_and_cmd() 166 pub command: Option<HdcCommand>,
|
H A D | host_app.rs | 56 static mut HOSTAPPTASKMAP: Option<HostAppTaskMap_> = None; in get_instance() 79 pub async fn remove(session_id: u32, channel_id: u32) -> Option<HostAppTask_> { 85 pub async fn get(session_id: u32, channel_id: u32) -> Option<HostAppTask_> {
|