/base/hiviewdfx/faultloggerd/tools/process_dump/ |
H A D | dfx_unwind_remote.cpp | 80 bool DfxUnwindRemote::UnwindProcess(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, in UnwindProcess() argument 84 DFXLOGW("start unwind process."); in UnwindProcess() 85 if (process == nullptr || unwinder == nullptr) { in UnwindProcess() 86 DFXLOGW("%{public}s::process or unwinder is not initialized.", __func__); in UnwindProcess() 90 SetCrashProcInfo(process->processInfo_.processName, process->processInfo_.pid, in UnwindProcess() 91 process->processInfo_.uid); in UnwindProcess() 92 int unwCnt = UnwindKeyThread(request, process, unwinder, vmPid) ? 1 : 0; in UnwindProcess() 96 unwCnt += UnwindOtherThread(process, unwinder, vmPid); in UnwindProcess() 101 if (process in UnwindProcess() 127 UnwindKeyThread(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, pid_t vmPid) UnwindKeyThread() argument 177 UnwindOtherThread(std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, pid_t vmPid) UnwindOtherThread() argument 234 InitTargetKeyThreadRegs(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process) InitTargetKeyThreadRegs() argument 245 InitOtherThreadRegs(std::shared_ptr<DfxProcess> process) InitOtherThreadRegs() argument 258 InitProcessAllThreadRegs(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process) InitProcessAllThreadRegs() argument [all...] |
H A D | printer.cpp | 44 void Printer::PrintDumpHeader(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, in PrintDumpHeader() argument 47 if (process == nullptr || request == nullptr) { in PrintDumpHeader() 61 headerInfo += "Pid:" + std::to_string(process->processInfo_.pid) + "\n" + in PrintDumpHeader() 62 "Uid:" + std::to_string(process->processInfo_.uid) + "\n" + in PrintDumpHeader() 63 "Process name:" + process->processInfo_.processName + "\n"; in PrintDumpHeader() 64 DfxRingBufferWrapper::GetInstance().AppendBuf("Pid:%d\n", process->processInfo_.pid); in PrintDumpHeader() 65 DfxRingBufferWrapper::GetInstance().AppendBuf("Uid:%d\n", process->processInfo_.uid); in PrintDumpHeader() 66 DfxRingBufferWrapper::GetInstance().AppendBuf("Process name:%s\n", process->processInfo_.processName.c_str()); in PrintDumpHeader() 69 DfxProcess::GetProcessLifeCycle(process->processInfo_.pid).c_str()); in PrintDumpHeader() 72 PrintReason(request, process, unwinde in PrintDumpHeader() 111 PrintReason(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, std::string& reasonInfo) PrintReason() argument 276 PrintThreadFaultStackByConfig(std::shared_ptr<DfxProcess> process, std::shared_ptr<DfxThread> thread, std::shared_ptr<Unwinder> unwinder) PrintThreadFaultStackByConfig() argument 297 PrintThreadOpenFiles(std::shared_ptr<DfxProcess> process) PrintThreadOpenFiles() argument [all...] |
H A D | dfx_unwind_remote.h | 39 bool UnwindProcess(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, 41 bool InitProcessAllThreadRegs(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process); 45 bool UnwindKeyThread(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, 47 int UnwindOtherThread(std::shared_ptr<DfxProcess> process, std::shared_ptr<Unwinder> unwinder, 51 bool InitTargetKeyThreadRegs(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process); 52 void InitOtherThreadRegs(std::shared_ptr<DfxProcess> process);
|
H A D | printer.h | 36 static void PrintDumpHeader(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process, 44 static void PrintThreadFaultStackByConfig(std::shared_ptr<DfxProcess> process, std::shared_ptr<DfxThread> thread, 46 static void PrintThreadOpenFiles(std::shared_ptr<DfxProcess> process); 49 static void PrintReason(std::shared_ptr<ProcessDumpRequest> request, std::shared_ptr<DfxProcess> process,
|
H A D | dfx_stack_info_formatter.h | 36 DfxStackInfoFormatter(std::shared_ptr<DfxProcess> process, std::shared_ptr<ProcessDumpRequest> request) in DfxStackInfoFormatter() argument 37 : process_(process), request_(request) {}; in DfxStackInfoFormatter()
|
H A D | cppcrash_reporter.h | 31 CppCrashReporter(uint64_t time, std::shared_ptr<DfxProcess> process, int32_t dumpMode) \ in CppCrashReporter() argument 32 : time_(time), dumpMode_(dumpMode), process_(process) in CppCrashReporter()
|
/base/hiviewdfx/faultloggerd/test/unittest/process_dump/ |
H A D | process_dump_test.cpp | 69 std::shared_ptr<DfxProcess> process = DfxProcess::Create(getpid(), getpid()); in HWTEST_F() local 70 EXPECT_EQ(false, process == nullptr) << "DfxProcessTest001 Failed"; in HWTEST_F() 76 * @tc.desc: test init process threads 92 auto process = DfxProcess::Create(pid, pid); in HWTEST_F() local 93 EXPECT_EQ(true, process != nullptr) << "DfxProcessTest002 Failed"; in HWTEST_F() 105 std::shared_ptr<DfxProcess> process = DfxProcess::Create(getpid(), getpid()); in HWTEST_F() local 106 auto ret = process->InitOtherThreads(); in HWTEST_F() 108 auto threads = process->GetOtherThreads(); in HWTEST_F() 110 process->ClearOtherThreads(); in HWTEST_F() 111 threads = process in HWTEST_F() 124 std::shared_ptr<DfxProcess> process = DfxProcess::Create(getpid(), getpid()); HWTEST_F() local 200 std::shared_ptr<DfxProcess> process = DfxProcess::Create(pid, pid); HWTEST_F() local 223 std::shared_ptr<DfxProcess> process = DfxProcess::Create(pid, pid); HWTEST_F() local [all...] |
/base/notification/eventhandler/frameworks/eventhandler/test/unittest/ |
H A D | lib_event_handler_trace_test.cpp | 128 auto process = []() { in TraceFlagTest() local 131 Wait(process); in TraceFlagTest() 241 auto process = []() { in HWTEST_F() local 244 Wait(process); in HWTEST_F() 277 auto process = []() { in HWTEST_F() local 280 Wait(process); in HWTEST_F() 481 auto process = []() { in HWTEST_F() local 484 auto f = [&runner, &process]() { in HWTEST_F() 485 Wait(process); in HWTEST_F() 524 auto process in HWTEST_F() local 574 auto process = []() { HWTEST_F() local [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/pubkeyexchange_fuzzer/ |
H A D | pubkeyexchange_fuzzer.cpp | 67 res = server->process(server, clientOut, &serverOut, &serverState); in PubkeyExchangeTest02() 71 res = client->process(client, serverOut, &clientOut, &clientState); in PubkeyExchangeTest02() 161 (void)self->process(nullptr, &in, &out, &state); in PubkeyExchangeTest12() 172 (void)self->process(self, nullptr, &out, &state); in PubkeyExchangeTest13() 182 (void)self->process(self, &in, nullptr, &state); in PubkeyExchangeTest14() 193 (void)self->process(self, &in, &out, nullptr); in PubkeyExchangeTest15() 206 (void)self->process(self, &in, &out, &state); in PubkeyExchangeTest16() 220 (void)self->process(self, &in, &out, &state); in PubkeyExchangeTest17() 232 (void)self->process(self, failEvent, &out, &state); in PubkeyExchangeTest18() 246 (void)self->process(sel in PubkeyExchangeTest19() [all...] |
/base/security/device_auth/test/unittest/tdd_framework/unit_test/services/session_manager/session/v2/expand_sub_session/expand_process_lib/ |
H A D | pub_key_exchange_test.cpp | 117 res = server->process(server, clientOut, &serverOut, &serverState); in HWTEST_F() 124 res = client->process(client, serverOut, &clientOut, &clientState); in HWTEST_F() 226 int32_t res = self->process(nullptr, &in, &out, &state); in HWTEST_F() 239 int32_t res = self->process(self, nullptr, &out, &state); in HWTEST_F() 252 int32_t res = self->process(self, &in, nullptr, &state); in HWTEST_F() 265 int32_t res = self->process(self, &in, &out, nullptr); in HWTEST_F() 281 int32_t res = self->process(self, &in, &out, &state); in HWTEST_F() 297 int32_t res = self->process(self, &in, &out, &state); in HWTEST_F() 312 int32_t res = self->process(self, failEvent, &out, &state); in HWTEST_F() 329 int32_t res = self->process(sel in HWTEST_F() [all...] |
H A D | auth_code_import_test.cpp | 117 res = server->process(server, clientOut, &serverOut, &serverState); in HWTEST_F() 124 res = client->process(client, serverOut, &clientOut, &clientState); in HWTEST_F() 226 int32_t res = self->process(nullptr, &in, &out, &state); in HWTEST_F() 239 int32_t res = self->process(self, nullptr, &out, &state); in HWTEST_F() 252 int32_t res = self->process(self, &in, nullptr, &state); in HWTEST_F() 265 int32_t res = self->process(self, &in, &out, nullptr); in HWTEST_F() 281 int32_t res = self->process(self, &in, &out, &state); in HWTEST_F() 297 int32_t res = self->process(self, &in, &out, &state); in HWTEST_F() 312 int32_t res = self->process(self, failEvent, &out, &state); in HWTEST_F() 329 int32_t res = self->process(sel in HWTEST_F() [all...] |
H A D | save_trusted_info_test.cpp | 249 res = server->process(server, clientOut, &serverOut, &serverState); in HWTEST_F() 257 res = client->process(client, serverOut, &clientOut, &clientState); in HWTEST_F() 297 res = server->process(server, clientOut, &serverOut, &serverState); in HWTEST_F() 305 res = client->process(client, serverOut, &clientOut, &clientState); in HWTEST_F() 414 int32_t res = self->process(nullptr, &in, &out, &state); in HWTEST_F() 427 int32_t res = self->process(self, nullptr, &out, &state); in HWTEST_F() 440 int32_t res = self->process(self, &in, nullptr, &state); in HWTEST_F() 453 int32_t res = self->process(self, &in, &out, nullptr); in HWTEST_F() 469 int32_t res = self->process(self, &in, &out, &state); in HWTEST_F() 485 int32_t res = self->process(sel in HWTEST_F() [all...] |
/base/security/device_auth/test/fuzztest/authenticators/account_related/auth/isoauthtask_fuzzer/ |
H A D | isoauthtask_fuzzer.cpp | 222 task->process(task, in, out, &status); in IsoAuthTaskTest06() 241 ret = task->process(task, in, out, &status); in IsoAuthTaskTest07() 258 ret = task->process(task, in, out, &status); in IsoAuthTaskTest08() 276 ret = task->process(task, in, out, &status); in IsoAuthTaskTest09() 296 ret = task->process(task, in, out, &status); in IsoAuthTaskTest10() 314 ret = task->process(task, in, out, &status); in IsoAuthTaskTest11() 332 ret = task->process(task, in, out, &status); in IsoAuthTaskTest12() 350 ret = task->process(task, in, out, &status); in IsoAuthTaskTest13() 368 ret = task->process(task, in, out, &status); in IsoAuthTaskTest14() 386 ret = task->process(tas in IsoAuthTaskTest15() [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/authcodeimport_fuzzer/ |
H A D | authcodeimport_fuzzer.cpp | 81 res = server->process(server, clientOut, &serverOut, &serverState); in AuthCodeImportTest002() 93 res = client->process(client, serverOut, &clientOut, &clientState); in AuthCodeImportTest002() 217 int32_t res = self->process(nullptr, &in, &out, &state); in AuthCodeImportTest110() 232 int32_t res = self->process(self, nullptr, &out, &state); in AuthCodeImportTest111() 247 int32_t res = self->process(self, &in, nullptr, &state); in AuthCodeImportTest112() 262 int32_t res = self->process(self, &in, &out, nullptr); in AuthCodeImportTest113() 280 int32_t res = self->process(self, &in, &out, &state); in AuthCodeImportTest114() 298 int32_t res = self->process(self, &in, &out, &state); in AuthCodeImportTest115() 317 int32_t res = self->process(self, failEvent, &out, &state); in AuthCodeImportTest116() 340 int32_t res = self->process(sel in AuthCodeImportTest117() [all...] |
/base/startup/appspawn/service/devicedebug/ |
H A D | devicedebug_main.c | 30 DEVICEDEBUG_CMD_PROCESS_FUNC process; member 41 "\r\n kill send a signal to a process\r\n"); in DeviceDebugShowHelp() 74 DEVICEDEBUG_LOGI("devicedebug manager process start."); in main() 84 ret = cmdInfo->process(argc, argv); in main() 87 DEVICEDEBUG_LOGI("devicedebug manager process exit. ret=%{public}d \r\n", ret); in main()
|
/base/security/device_security_level/baselib/utils/src/ |
H A D | utils_work_queue.c | 44 WorkProcess process; // callback func member 80 worker->process(worker->dataBuff, worker->dataLen); in WorkQueueThread() 227 uint32_t QueueWork(WorkQueue *queue, WorkProcess process, uint8_t *data, uint32_t length) in QueueWork() argument 229 if ((queue == NULL) || (process == NULL)) { in QueueWork() 248 worker->process = process; in QueueWork()
|
/base/security/device_auth/test/fuzztest/session_manager/session/v2/auth_sub_session/authsubsession_fuzzer/ |
H A D | authsubsession_fuzzer.cpp | 84 res = server->process(server, clientOut, &serverOut); in AuthSubSessionTest02() 88 res = client->process(client, serverOut, &clientOut); in AuthSubSessionTest02() 123 res = server->process(server, clientOut, &serverOut); in AuthSubSessionTest03() 127 res = client->process(client, serverOut, &clientOut); in AuthSubSessionTest03() 175 res = server->process(server, clientOut, &serverOut); in AuthSubSessionTest05() 179 res = client->process(client, serverOut, &clientOut); in AuthSubSessionTest05() 213 res = server->process(server, clientOut, &serverOut); in AuthSubSessionTest06() 217 res = client->process(client, serverOut, &clientOut); in AuthSubSessionTest06() 265 res = server->process(server, clientOut, &serverOut); in AuthSubSessionTest08() 269 res = client->process(clien in AuthSubSessionTest08() [all...] |
/base/security/device_auth/test/fuzztest/protocol/ecspeke_fuzzer/ |
H A D | ecspeke_fuzzer.cpp | 83 res = server->process(server, clientOut, &serverOut); in ECSpekeTest02() 87 res = client->process(client, serverOut, &clientOut); in ECSpekeTest02() 127 res = server->process(server, clientOut, &serverOut); in ECSpekeTest03() 131 res = client->process(client, serverOut, &clientOut); in ECSpekeTest03() 166 res = server->process(server, clientOut, &serverOut); in ECSpekeTest04() 170 res = client->process(client, serverOut, &clientOut); in ECSpekeTest04() 318 res = self->process(nullptr, &recvMsg, &sendMsg); in ECSpekeTest17() 330 res = self->process(self, nullptr, &sendMsg); in ECSpekeTest18() 342 res = self->process(self, &recvMsg, nullptr); in ECSpekeTest19() 357 res = self->process(sel in ECSpekeTest20() [all...] |
/base/security/device_auth/test/fuzztest/protocol/dlspeke_fuzzer/ |
H A D | dlspeke_fuzzer.cpp | 83 res = server->process(server, clientOut, &serverOut); in DlSpekeTest02() 87 res = client->process(client, serverOut, &clientOut); in DlSpekeTest02() 127 res = server->process(server, clientOut, &serverOut); in DlSpekeTest03() 131 res = client->process(client, serverOut, &clientOut); in DlSpekeTest03() 166 res = server->process(server, clientOut, &serverOut); in DlSpekeTest04() 170 res = client->process(client, serverOut, &clientOut); in DlSpekeTest04() 312 res = self->process(nullptr, &recvMsg, &sendMsg); in DlSpekeTest16() 324 res = self->process(self, nullptr, &sendMsg); in DlSpekeTest17() 336 res = self->process(self, &recvMsg, nullptr); in DlSpekeTest18() 351 res = self->process(sel in DlSpekeTest19() [all...] |
/base/security/device_auth/test/fuzztest/session_manager/session/v2/expand_sub_session/expand_process_lib/savetrustedinfo_fuzzer/ |
H A D | savetrustedinfo_fuzzer.cpp | 253 (void)self->process(nullptr, &in, &out, &state); in SaveTrustedInfoTest11() 262 (void)self->process(self, nullptr, &out, &state); in SaveTrustedInfoTest12() 272 (void)self->process(self, &in, nullptr, &state); in SaveTrustedInfoTest13() 281 (void)self->process(self, &in, &out, nullptr); in SaveTrustedInfoTest14() 293 (void)self->process(self, &in, &out, &state); in SaveTrustedInfoTest15() 305 (void)self->process(self, &in, &out, &state); in SaveTrustedInfoTest16() 316 (void)self->process(self, failEvent, &out, &state); in SaveTrustedInfoTest17() 328 (void)self->process(self, failEvent, &out, &state); in SaveTrustedInfoTest18() 339 (void)self->process(self, invalidMsg, &out, &state); in SaveTrustedInfoTest19() 350 (void)self->process(sel in SaveTrustedInfoTest20() [all...] |
/base/startup/appspawn/service/hnp/ |
H A D | hnp_main.c | 32 HNP_CMD_PROCESS_FUNC process;
member 93 HNP_LOGI("native manager process start.");
in main() 103 ret = cmdInfo->process(argc, argv);
in main() 109 HNP_LOGI("native manager process exit. ret=%{public}d \r\n", ret);
in main()
|
H A D | hnpcli_main.c | 32 HNP_CMD_PROCESS_FUNC process;
member 84 HNP_LOGI("native manager process start.");
in main() 94 ret = cmdInfo->process(argc, argv);
in main() 99 HNP_LOGI("native manager process exit. ret=%{public}d ", ret);
in main()
|
/base/hiviewdfx/hidumper/test/scripts/testModule/ |
H A D | utils.py | 118 process = subprocess.Popen(
127 output = process.stdout.readline()
129 process.kill()
133 process.kill()
|
/base/print/print_fwk/services/print_service/src/ |
H A D | print_http_server_manager.cpp | 61 std::shared_ptr<PrintHttpRequestProcess> process) in StartServer() 70 svr->Post("^/.*", [process](const httplib::Request &req, httplib::Response &res, in StartServer() 73 if (process != nullptr) { in StartServer() 74 process->ProcessRequest(req, res, content_reader); in StartServer() 60 StartServer(std::shared_ptr<httplib::Server> svr, std::shared_ptr<PrintHttpRequestProcess> process) StartServer() argument
|
/base/powermgr/power_manager/power_dialog/hvigor/ |
H A D | hvigor-wrapper.js | 15 "use strict";var e=require("path"),t=require("os"),n=require("fs"),r=require("child_process"),u=require("process"),o=require("tty"),i=require("util"),s=require("url"),c=require("constants"),a=require("stream"),l=require("assert"),f=require("zlib"),d=require("net"),D=require("crypto"),p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},h={},E={},m=p&&p.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(E,"__esModule",{value:!0}),E.maxPathLength=E.isMac=E.isLinux=E.isWindows=void 0;const y=m(t),C="Windows_NT",F="Darwin";function g(){return y.default.type()===C}function A(){return y.default.type()===F}E.isWindows=g,E.isLinux=function(){return"Linux"===y.default.type()},E.isMac=A,E.maxPathLength=function(){return A()?1016:g()?259:4095},Object.defineProperty(h,"__esModule",{value:!0}),h.LOG_LEVEL=h.ANALYZE=h.PARALLEL=h.INCREMENTAL=h.DAEMON=h.DOT=h.PROPERTIES=h.HVIGOR_ARK_COMPILE_MAX_SIZE=h.HVIGOR_POOL_CACHE_TTL=h.HVIGOR_POOL_CACHE_CAPACITY=h.HVIGOR_POOL_MAX_CORE_SIZE=h.HVIGOR_POOL_MAX_SIZE=h.ENABLE_SIGN_TASK_KEY=h.HVIGOR_CACHE_DIR_KEY=h.WORK_SPACE=h.PROJECT_CACHES=h.HVIGOR_USER_HOME_DIR_NAME=h.DEFAULT_PACKAGE_JSON=h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME=h.PNPM=h.HVIGOR=h.NPM_TOOL=h.PNPM_TOOL=h.HVIGOR_ENGINE_PACKAGE_NAME=void 0;const v=E;h.HVIGOR_ENGINE_PACKAGE_NAME="@ohos/hvigor",h.PNPM_TOOL=(0,v.isWindows)()?"pnpm.cmd":"pnpm",h.NPM_TOOL=(0,v.isWindows)()?"npm.cmd":"npm",h.HVIGOR="hvigor",h.PNPM="pnpm",h.DEFAULT_HVIGOR_CONFIG_JSON_FILE_NAME="hvigor-config.json5",h.DEFAULT_PACKAGE_JSON="package.json",h.HVIGOR_USER_HOME_DIR_NAME=".hvigor",h.PROJECT_CACHES="project_caches";var S=h.WORK_SPACE="workspace";h.HVIGOR_CACHE_DIR_KEY="hvigor.cacheDir",h.ENABLE_SIGN_TASK_KEY="enableSignTask",h.HVIGOR_POOL_MAX_SIZE="hvigor.pool.maxSize",h.HVIGOR_POOL_MAX_CORE_SIZE="hvigor.pool.maxCoreSize",h.HVIGOR_POOL_CACHE_CAPACITY="hvigor.pool.cache.capacity",h.HVIGOR_POOL_CACHE_TTL="hvigor.pool.cache.ttl",h.HVIGOR_ARK_COMPILE_MAX_SIZE="hvigor.arkCompile.maxSize",h.PROPERTIES="properties",h.DOT=".",h.DAEMON="daemon",h.INCREMENTAL="incremental",h.PARALLEL="typeCheck",h.ANALYZE="analyze",h.LOG_LEVEL="logLevel";var w={},O={};Object.defineProperty(O,"__esModule",{value:!0}),O.logError=O.logInfo=O.logErrorAndExit=void 0,O.logErrorAndExit=function(e){e instanceof Error?console.error(e.message):console.error(e),process.exit(-1)},O.logInfo=function(e){console.log(e)},O.logError=function(e){console.error(e)};var _=p&&p.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var u=Object.getOwnPropertyDescriptor(t,n);u&&!("get"in u?!t.__esModule:u.writable||u.configurable)||(u={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,u)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),b=p&&p.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),B=p&&p.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&_(t,e,n);return b(t,e),t};Object.defineProperty(w,"__esModule",{value:!0});var P=w.executeBuild=void 0;const k=B(n),I=B(e),x=O,N=r;P=w.executeBuild=function(e){const t=I.resolve(e,"node_modules","@ohos","hvigor","bin","hvigor.js");try{const e=k.realpathSync(t),n=process.argv.slice(2),r=(0,N.spawn)("node",[e,...n],{env:process.env});r.stdout.on("data",(e=>{(0,x.logInfo)(`${e.toString().trim()}`)})),r.stderr.on("data",(e=>{(0,x.logError)(`${e.toString().trim()}`)})),r.on("exit",((e,t)=>{process.exit(null!=e?e:-1)}))}catch(n){(0,x.logErrorAndExit)(`Error: ENOENT: no such file ${t},delete ${e} and retry.`)}};var R,T,M,L,j,$={},H={},G={exports:{}},V={exports:{}};function U(){if(T)return R;T=1;var e=1e3,t=60*e,n=60*t,r=24*n,u=7*r,o=365.25*r;function i(e,t,n,r){var u=t>=1.5*n;return Math.round(e/n)+" "+r+(u?"s":"")}return R=function(s,c){c=c||{};var a=typeof s;if("string"===a&&s.length>0)return function(i){if((i=String(i)).length>100)return;var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(!s)return;var c=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return c*o;case"weeks":case"week":case"w":return c*u;case"days":case"day":case"d":return c*r;case"hours":case"hour":case"hrs":case"hr":case"h":return c*n;case"minutes":case"minute":case"mins":case"min":case"m":return c*t;case"seconds":case"second":case"secs":case"sec":case"s":return c*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return c;default:return}}(s);if("number"===a&&isFinite(s))return c.long?function(u){var o=Math.abs(u);if(o>=r)return i(u,o,r,"day");if(o>=n)return i(u,o,n,"hour");if(o>=t)return i(u,o,t,"minute");if(o>=e)return i(u,o,e,"second");return u+" ms"}(s):function(u){var o=Math.abs(u);if(o>=r)return Math.round(u/r)+"d";if(o>=n)return Math.round(u/n)+"h";if(o>=t)return Math.round(u/t)+"m";if(o>=e)return Math.round(u/e)+"s";return u+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))}}function J(){if(L)return M;return L=1,M=function(e){function t(e){let r,u,o,i=null;function s(...e){if(!s.enabled)return;const n=s,u=Number(new Date),o=u-(r||u);n.diff=o,n.prev=r,n.curr=u,r=u,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let i=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,((r,u)=>{if("%%"===r)return"%";i++;const o=t.formatters[u];if("function"==typeof o){const t=e[i];r=o.call(n,t),e.splice(i,1),i--}return r})),t.formatArgs.call(n,e);(n.log||t.log).apply(n,e)}return s.namespace=e,s.useColors=t.useColors(),s.color=t.selectColor(e),s.extend=n,s.destroy=t.destroy,Object.defineProperty(s,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==i?i:(u!==t.namespaces&&(u=t.namespaces,o=t.enabled(e)),o),set:e=>{i=e}}),"function"==typeof t.init&&t.init(s),s}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){if(e instanceof Error)return e.stack||e.message;return e},t.disable=function(){const e=[...t.names.map(r),...t.skips.map(r).map((e=>"-"+e))].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];const r=("string"==typeof e?e:"").split(/[\s,]+/),u=r.length;for(n=0;n<u;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(new RegExp("^"+e.slice(1)+"$")):t.names.push(new RegExp("^"+e+"$")))},t.enabled=function(e){if("*"===e[e.length-1])return!0;let n,r;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=U(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach((n=>{t[n]=e[n]})),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t},M}var W,z,K,q,Y,Z,X={exports:{}};function Q(){return z||(z=1,W=(e,t)=>{t=t||process.argv;const n=e.startsWith("-")?"":1===e.length?"-":"--",r=t.indexOf(n+e),u=t.indexOf("--");return-1!==r&&(-1===u||r<u)}),W}function ee(){if(q)return K;q=1;const e=t,n=Q(),r=process.env;let u;function o(t){const o=function(t){if(!1===u)return 0;if(n("color=16m")||n("color=full")||n("color=truecolor"))return 3;if(n("color=256"))return 2;if(t&&!t.isTTY&&!0!==u)return 0;const o=u?1:0;if("win32"===process.platform){const t=e.release().split(".");return Number(process.versions.node.split(".")[0])>=8&&Number(t[0])>=10&&Number(t[2])>=10586?Number(t[2])>=14931?3:2:1}if("CI"in r)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI"].some((e=>e in r))||"codeship"===r.CI_NAME?1:o;if("TEAMCITY_VERSION"in r)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(r.TEAMCITY_VERSION)?1:0;if("truecolor"===r.COLORTERM)return 3;if("TERM_PROGRAM"in r){const e=parseInt((r.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(r.TERM_PROGRAM){case"iTerm.app":return e>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(r.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(r.TERM)||"COLORTERM"in r?1:(r.TERM,o)}(t);return function(e){return 0!==e&&{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}(o)}return n("no-color")||n("no-colors")||n("color=false")?u=!1:(n("color")||n("colors")||n("color=true")||n("color=always"))&&(u=!0),"FORCE_COLOR"in r&&(u=0===r.FORCE_COLOR.length||0!==parseInt(r.FORCE_COLOR,10)),K={supportsColor:o,stdout:o(process [all...] |