Home
last modified time | relevance | path

Searched refs:args (Results 1 – 25 of 470) sorted by relevance

12345678910>>...19

/base/startup/init/test/unittest/begetctl/
Dbegetctl_unittest.cpp38 const char *args[] = { variable
41 BShellEnvDirectExecute(GetShellHandle(), 1, const_cast<char **>(args));
47 const char *args[] = { variable
50 …BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(args)…
56 const char *args[] = { variable
59 …BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(args)…
65 const char *args[] = { variable
68 …BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(args)…
74 const char *args[] = { variable
77 …BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(args)…
[all …]
/base/powermgr/battery_manager/test/unittest/src/
Dbattery_dump_test.cpp49 std::vector<std::u16string> args; variable
51 args.push_back(arg);
52 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK);
64 std::vector<std::u16string> args; variable
66 args.push_back(arg);
67 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK);
79 std::vector<std::u16string> args; variable
81 args.push_back(arg);
82 EXPECT_EQ(g_service->Dump(fd, args), ERR_OK);
94 std::vector<std::u16string> args; variable
[all …]
/base/telephony/ril_adapter/utils/native/include/
Dtelephony_log_c.h36 #define DECORATOR_HILOG(op, fmt, args...) \ argument
38 op(LOG_CORE, fmt, ##args); \
49 #define DECORATOR_HILOG(op, fmt, args...) …
52 …##args); …
56 #define TELEPHONY_LOGE(fmt, args...) DECORATOR_HILOG(HILOG_ERROR, fmt, ##args) argument
57 #define TELEPHONY_LOGW(fmt, args...) DECORATOR_HILOG(HILOG_WARN, fmt, ##args) argument
58 #define TELEPHONY_LOGI(fmt, args...) DECORATOR_HILOG(HILOG_INFO, fmt, ##args) argument
59 #define TELEPHONY_LOGF(fmt, args...) DECORATOR_HILOG(HILOG_FATAL, fmt, ##args) argument
60 #define TELEPHONY_LOGD(fmt, args...) DECORATOR_HILOG(HILOG_DEBUG, fmt, ##args) argument
/base/telephony/core_service/utils/log/include/
Dtelephony_log_c.h36 #define DECORATOR_HILOG(op, fmt, args...) \ argument
38 op(LOG_CORE, fmt, ##args); \
49 #define DECORATOR_HILOG(op, fmt, args...) …
52 …##args); …
56 #define TELEPHONY_LOGE(fmt, args...) DECORATOR_HILOG(HILOG_ERROR, fmt, ##args) argument
57 #define TELEPHONY_LOGW(fmt, args...) DECORATOR_HILOG(HILOG_WARN, fmt, ##args) argument
58 #define TELEPHONY_LOGI(fmt, args...) DECORATOR_HILOG(HILOG_INFO, fmt, ##args) argument
59 #define TELEPHONY_LOGF(fmt, args...) DECORATOR_HILOG(HILOG_FATAL, fmt, ##args) argument
/base/powermgr/battery_lite/frameworks/js/builtin/src/
Dbattery_module.cpp23 void SuccessCallBack(const JSIValue thisVal, const JSIValue args, JSIValue jsiValue) in SuccessCallBack() argument
25 if (JSI::ValueIsUndefined(args)) { in SuccessCallBack()
28 JSIValue success = JSI::GetNamedProperty(args, CB_SUCCESS); in SuccessCallBack()
29 JSIValue complete = JSI::GetNamedProperty(args, CB_COMPLETE); in SuccessCallBack()
44 JSIValue BatteryModule::GetBatterySOC(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in GetBatterySOC() argument
48 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in GetBatterySOC()
55 SuccessCallBack(thisVal, args[0], result); in GetBatterySOC()
60 JSIValue BatteryModule::GetChargingStatus(const JSIValue thisVal, const JSIValue *args, uint8_t arg… in GetChargingStatus() argument
64 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in GetChargingStatus()
71 SuccessCallBack(thisVal, args[0], result); in GetChargingStatus()
[all …]
/base/startup/init/services/modules/sysevent/
Dstartup_time_event.c54 EventArgs *args = (EventArgs *)root; in TraversalEvent() local
55 …int len = GetServiceName(item->paramName, args->buffer + args->currLen, args->bufferLen - args->cu… in TraversalEvent()
56 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
58 args->currLen += (uint32_t)len; in TraversalEvent()
60 len = sprintf_s(args->buffer + args->currLen, args->bufferLen - args->currLen, ",%u:%u,%u:%u;", in TraversalEvent()
65 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent()
67 args->currLen += (uint32_t)len; in TraversalEvent()
80 EventArgs args = { buffer, MAX_BUFFER_FOR_EVENT, 0 }; in ReportBootEventComplete() local
81 OH_ListTraversal(events, (void *)&args, TraversalEvent, 0); in ReportBootEventComplete()
82 if ((args.currLen > 1) && (args.currLen < MAX_BUFFER_FOR_EVENT)) { in ReportBootEventComplete()
[all …]
/base/security/appverify/interfaces/innerkits/appverify_lite/products/ipcamera/
Dapp_verify_base.h32 #define LOG_INFO(fmt, args...) HILOG_INFO(LOG_DOMAIN, "[%s:%d]: "fmt, __FUNCTION__, __LINE__, ##arg… argument
33 #define LOG_DEBUG(fmt, args...) HILOG_DEBUG(LOG_DOMAIN, "[%s:%d]: "fmt, __FUNCTION__, __LINE__, ##a… argument
34 #define LOG_WARN(fmt, args...) HILOG_WARN(LOG_DOMAIN, "[%s:%d]: "fmt, __FUNCTION__, __LINE__, ##arg… argument
35 #define LOG_ERROR(fmt, args...) HILOG_ERROR(LOG_DOMAIN, "[%s:%d]: "fmt, __FUNCTION__, __LINE__, ##a… argument
36 #define LOG_PRINT_STR(fmt, args...) HILOG_INFO(LOG_DOMAIN, "[%s:%d]: "fmt, __FUNCTION__, __LINE__, … argument
/base/hiviewdfx/hiview/plugins/faultlogger/service/sanitizer_collector/
Dsanitizerd_log.h33 #define SANITIZERD_DECORATOR_HILOG(op, fmt, args...) … argument
35 …op(SANITIZERD_LABEL, "[%{public}s:%{public}d] " fmt, FILE_NAME(__FILE__), __LINE__, ##args); …
38 #define SANITIZERD_LOGF(fmt, args...) SANITIZERD_DECORATOR_HILOG(OHOS::HiviewDFX::HiLog::Fatal, fmt… argument
39 #define SANITIZERD_LOGE(fmt, args...) SANITIZERD_DECORATOR_HILOG(OHOS::HiviewDFX::HiLog::Error, fmt… argument
40 #define SANITIZERD_LOGW(fmt, args...) SANITIZERD_DECORATOR_HILOG(OHOS::HiviewDFX::HiLog::Warn, fmt,… argument
41 #define SANITIZERD_LOGI(fmt, args...) SANITIZERD_DECORATOR_HILOG(OHOS::HiviewDFX::HiLog::Info, fmt,… argument
/base/powermgr/power_manager/test/unittest/src/
Dpower_mgr_dump_test.cpp66 std::vector<std::u16string> args; variable
68 args.push_back(arg);
69 EXPECT_TRUE(g_pmsTest->Dump(fd, args) == ERR_OK);
81 std::vector<std::u16string> args; variable
83 args.push_back(arg);
84 EXPECT_TRUE(g_pmsTest->Dump(fd, args) == ERR_OK);
96 std::vector<std::u16string> args; variable
100 args.push_back(arg);
101 args.push_back(arg1);
102 args.push_back(arg2);
[all …]
/base/security/selinux_adapter/scripts/
Dbuild_policy_api.py132 def build_conf(args, output_conf, file_list): argument
133 m4_args = ["-D", "build_with_debug=" + args.debug_version]
134 m4_args += ["-D", "build_with_updater=" + args.updater_version]
142 def build_cil(args, output_cil, input_conf): argument
143 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"),
301 def get_policy_dir_list(args): argument
302 sepolicy_path = os.path.join(args.source_root_dir, "base/security/selinux_adapter/sepolicy/")
304 prepare_build_path(args.policy_dir_list, args.source_root_dir, dir_list, sepolicy_path)
328 def get_policy_file_list(args, dir_list_object): argument
329 build_root = os.path.abspath(os.path.join(args.tool_path, "../../.."))
[all …]
Dbuild_contexts.py153 def check_common_contexts(args, contexts_file): argument
162 check_cmd = [os.path.join(args.tool_path, "sefcontext_compile"),
164 "-p", args.policy_file,
182 def check_sehap_contexts(args, contexts_file, domain): argument
218 check_cmd = [os.path.join(args.tool_path, "sefcontext_compile"),
220 "-p", args.policy_file,
231 def build_file_contexts(args, output_path, policy_path, all_policy_path): argument
232 if args.components == "default":
246 build_bin_cmd = [os.path.join(args.tool_path, "sefcontext_compile"),
247 "-o", os.path.join(args.dst_dir, "file_contexts.bin"),
[all …]
/base/update/update_app/common/src/main/ets/util/
DLogUtils.ts33 export function debug(tag: string, message: string, ...args: (string | number)[]): void {
34 Logger.debug(DOMAIN, tag, filterSensitiveInfo(message), ...args);
44 export function log(tag: string, message: string, ...args: (string | number)[]): void {
45 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args);
55 export function info(tag: string, message: string, ...args: (string | number)[]): void {
56 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args);
66 export function warn(tag: string, message: string, ...args: (string | number)[]): void {
67 Logger.warn(DOMAIN, tag, filterSensitiveInfo(message), ...args);
77 export function error(tag: string, message: string, ...args: (string | number)[]): void {
78 Logger.error(DOMAIN, tag, filterSensitiveInfo(message), ...args);
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/
Dhilog_module.cpp142 JSIValue HilogModule::Debug(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Debug() argument
144 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_DEBUG); in Debug()
147 JSIValue HilogModule::Info(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Info() argument
149 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_INFO); in Info()
152 JSIValue HilogModule::Error(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Error() argument
154 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_ERROR); in Error()
157 JSIValue HilogModule::Warn(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Warn() argument
159 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_WARN); in Warn()
162 JSIValue HilogModule::Fatal(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Fatal() argument
164 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_FATAL); in Fatal()
[all …]
/base/update/packaging_tools/
Dbuild_module_img.py101 def build_image(args): argument
103 if args.sparse_image:
105 if args.build_image_tools_path:
106 env_path = ':'.join(args.build_image_tools_path)
108 src_dir = args.input_path
109 device = args.output_image_path
111 if "ext4" == args.fs_type:
114 elif "f2fs" == args.fs_type:
117 elif "cpio" == args.fs_type:
126 dac_config = args.dac_config
[all …]
/base/sensors/miscdevice/interfaces/plugin/vibrator/src/
Dvibrator_js.cpp62 static napi_value VibrateTime(napi_env env, napi_value args[], size_t argc) in VibrateTime() argument
66 NAPI_ASSERT(env, GetInt32Value(env, args[0], duration), "Get int number fail"); in VibrateTime()
71 if (argc >= 2 && IsMatchType(env, args[1], napi_function)) { in VibrateTime()
72 NAPI_CALL(env, napi_create_reference(env, args[1], 1, &asyncCallbackInfo->callback[0])); in VibrateTime()
85 static napi_value VibrateEffectId(napi_env env, napi_value args[], size_t argc) in VibrateEffectId() argument
89 …NAPI_ASSERT(env, GetStringValue(env, args[0], effectId), "Wrong argument type. String or function … in VibrateEffectId()
94 if (argc >= 2 && IsMatchType(env, args[1], napi_function)) { in VibrateEffectId()
95 NAPI_CALL(env, napi_create_reference(env, args[1], 1, &asyncCallbackInfo->callback[0])); in VibrateEffectId()
108 static bool GetCallbackInfo(const napi_env &env, napi_value args[], in GetCallbackInfo() argument
112 CHKPF(args); in GetCallbackInfo()
[all …]
/base/hiviewdfx/hitrace/frameworks/native/
Dhitracechain.cpp59 va_list args; in Tracepoint() local
61 va_start(args, fmt); in Tracepoint()
62 ::HiTraceChainTracepointInner(HITRACE_CM_DEFAULT, type, &(id.id_), fmt, args); in Tracepoint()
63 va_end(args); in Tracepoint()
71 va_list args; in Tracepoint() local
73 va_start(args, fmt); in Tracepoint()
74 ::HiTraceChainTracepointInner(mode, type, &(id.id_), fmt, args); in Tracepoint()
75 va_end(args); in Tracepoint()
/base/powermgr/battery_lite/frameworks/js/builtin/include/
Dbattery_module.h28 static JSIValue GetBatterySOC(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
29 … static JSIValue GetChargingStatus(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
30 static JSIValue GetHealthStatus(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
31 static JSIValue GetPluggedType(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
32 static JSIValue GetVoltage(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
33 static JSIValue GetTechnology(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
34 static JSIValue GetTemperature(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
/base/time/time_service/services/dfx/src/
Dtime_cmd_dispatcher.cpp24 bool TimeCmdDispatcher::Dispatch(int fd, const std::vector<std::string> &args) in Dispatch() argument
26 if (args.empty() || args.at(0) == "-h") { in Dispatch()
33 std::string cmdTitle = getCmdTitle(fd, args); in Dispatch()
36 handler->second->DoAction(fd, args); in Dispatch()
47 std::string TimeCmdDispatcher::getCmdTitle(int fd, const std::vector<std::string> &args) in getCmdTitle() argument
50 for (unsigned long i = 0; i < args.size() - 1; i++) { in getCmdTitle()
51 formatTitle += args.at(i); in getCmdTitle()
/base/security/huks/frameworks/crypto_lite/js/builtin/src/
Dcipher_module.cpp23 JSIValue CipherModule::Rsa(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Rsa() argument
26 if ((args == nullptr) || argsNum == 0 || JSI::ValueIsUndefined(args[0])) { in Rsa()
30 JSIValue success = JSI::GetNamedProperty(args[0], CB_SUCCESS); in Rsa()
31 JSIValue fail = JSI::GetNamedProperty(args[0], CB_FAIL); in Rsa()
32 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in Rsa()
33 char *strAction = JSI::GetStringProperty(args[0], "action"); in Rsa()
34 char *strKey = JSI::GetStringProperty(args[0], "key"); in Rsa()
35 char *strText = JSI::GetStringProperty(args[0], "text"); in Rsa()
36 char *strTransformation = JSI::GetStringProperty(args[0], "transformation"); in Rsa()
97 JSIValue CipherModule::Aes(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Aes() argument
[all …]
/base/security/huks/interfaces/kits/liteapi/include/
Dhks_lite_api.h27 static JSIValue generateKeyItem(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
28 static JSIValue initSession(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
29 static JSIValue updateSession(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
30 static JSIValue finishSession(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
31 static JSIValue abortSession(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
32 static JSIValue deleteKeyItem(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
33 static JSIValue isKeyItemExist(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
/base/update/updateservice/services/firmware/utils/include/
Dfirmware_log.h31 #define FIRMWARE_LONG_LOGD(fmt, args) PRINT_LONG_LOGD(FIRMWARE_UPDATE_LABEL, fmt, args) argument
32 #define FIRMWARE_LONG_LOGI(fmt, args) PRINT_LONG_LOGI(FIRMWARE_UPDATE_LABEL, fmt, args) argument
33 #define FIRMWARE_LONG_LOGE(fmt, args) PRINT_LONG_LOGE(FIRMWARE_UPDATE_LABEL, fmt, args) argument
/base/powermgr/powermgr_lite/interfaces/kits/battery/js/builtin/src/
Dbattery_module.cpp22 void SuccessCallBack(const JSIValue thisVal, const JSIValue args, JSIValue jsiValue) in SuccessCallBack() argument
24 if (JSI::ValueIsUndefined(args)) { in SuccessCallBack()
27 JSIValue success = JSI::GetNamedProperty(args, CB_SUCCESS); in SuccessCallBack()
28 JSIValue complete = JSI::GetNamedProperty(args, CB_COMPLETE); in SuccessCallBack()
42 JSIValue BatteryModule::GetStatus(const JSIValue thisVal, const JSIValue* args, uint8_t argsNum) in GetStatus() argument
45 if ((args == nullptr) || (argsNum == 0) || JSI::ValueIsUndefined(args[0])) { in GetStatus()
55 SuccessCallBack(thisVal, args[0], result); in GetStatus()
/base/hiviewdfx/hilog_lite/frameworks/js/builtin/include/
Dhilog_module.h37 static JSIValue Debug(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
38 static JSIValue Info(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
39 static JSIValue Error(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
40 static JSIValue Warn(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
41 static JSIValue Fatal(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
42 static JSIValue IsLoggable(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
45 …static JSIValue HilogImpl(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum, int level…
47 const JSIValue thisVal, const JSIValue *args, uint8_t argsNum, HilogVector *params);
/base/sensors/medical_sensor/services/medical_sensor/src/
Dmedical_dump.cpp46 bool MedicalSensorDump::DumpSensorHelp(int32_t fd, const std::vector<std::u16string> &args) in DumpSensorHelp() argument
48 if ((args.empty()) || (args[0].compare(u"-h") != 0)) { in DumpSensorHelp()
67 const std::vector<MedicalSensor> &sensors, const std::vector<std::u16string> &args) in DumpSensorList() argument
69 if ((args.empty()) || (args[0].compare(u"-l") != 0)) { in DumpSensorList()
87 …ump::DumpSensorChannel(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpSensorChannel() argument
89 if ((args.empty()) || (args[0].compare(u"-c") != 0)) { in DumpSensorChannel()
114 ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpOpeningSensor() argument
116 if ((args.empty()) || (args[0].compare(u"-o") != 0)) { in DumpOpeningSensor()
131 …orDump::DumpSensorData(int32_t fd, ClientInfo &clientInfo, const std::vector<std::u16string> &args) in DumpSensorData() argument
133 if ((args.empty()) || (args[0].compare(u"-d") != 0)) { in DumpSensorData()
[all …]
/base/security/permission_lite/services/js_api/src/
Dperm_module.cpp23 JSIValue PermModule::CheckSelfPerm(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in CheckSelfPerm() argument
26 if ((args == nullptr) || argsNum == 0 || JSI::ValueIsUndefined(args[0])) { in CheckSelfPerm()
30 JSIValue success = JSI::GetNamedProperty(args[0], CB_SUCCESS); in CheckSelfPerm()
31 JSIValue fail = JSI::GetNamedProperty(args[0], CB_FAIL); in CheckSelfPerm()
32 JSIValue complete = JSI::GetNamedProperty(args[0], CB_COMPLETE); in CheckSelfPerm()
33 char *permission = JSI::GetStringProperty(args[0], "permission"); in CheckSelfPerm()

12345678910>>...19