| /base/startup/init/test/unittest/begetctl/ |
| D | begetctl_unittest.cpp | 35 const char *args[] = { variable 38 int ret = BShellEnvDirectExecute(GetShellHandle(), 1, const_cast<char **>(args)); 45 const char *args[] = { variable 48 …t = BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(a… 55 const char *args[] = { variable 58 …t = BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(a… 65 const char *args[] = { variable 68 …t = BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(a… 75 const char *args[] = { variable 78 …t = BShellEnvDirectExecute(GetShellHandle(), sizeof(args) / sizeof(args[0]), const_cast<char **>(a… [all …]
|
| /base/hiviewdfx/hilog/interfaces/js/kits/napi/src/common/napi/ |
| D | util.h | 21 template <typename ReturnType, typename... Args> 23 static constexpr size_t arity = sizeof...(Args); 29 using type = typename std::tuple_element<i, std::tuple<Args...>>::type; 36 template <typename ReturnType, typename... Args> 37 struct function_traits_impl<ReturnType(Args...)> 38 : function_traits_defs<ReturnType, Args...> {}; 40 template <typename ReturnType, typename... Args> 41 struct function_traits_impl<ReturnType(*)(Args...)> 42 : function_traits_defs<ReturnType, Args...> {}; 44 template <typename ClassType, typename ReturnType, typename... Args> [all …]
|
| /base/powermgr/thermal_manager/test/unittest/src/ |
| D | thermal_mgr_dump_test.cpp | 63 std::vector<std::string> args; variable 65 EXPECT_TRUE(ThermalMgrDumper::Dump(args, result)); 69 args.push_back("-h"); 70 EXPECT_TRUE(ThermalMgrDumper::Dump(args, result)); 84 std::vector<std::string> args; variable 87 args.push_back("-d"); 88 EXPECT_TRUE(ThermalMgrDumper::Dump(args, result)); 101 std::vector<std::string> args; variable 105 args.push_back("-t"); 106 EXPECT_TRUE(ThermalMgrDumper::Dump(args, result)); [all …]
|
| /base/powermgr/battery_lite/frameworks/js/builtin/src/ |
| D | battery_module.cpp | 23 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/telephony/ril_adapter/utils/native/include/ |
| D | telephony_log_c.h | 36 #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/security/selinux_adapter/scripts/ |
| D | build_policy_api.py | 134 def build_conf(args, output_conf, file_list, with_developer=False): argument 135 m4_args = ["-D", "build_with_debug=" + args.debug_version] 136 m4_args += ["-D", "build_with_updater=" + args.updater_version] 139 if getattr(args, "product_args", None): 140 m4_args += ["-D", args.product_args] 148 def build_cil(args, output_cil, input_conf): argument 149 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 315 def get_policy_dir_list(args): argument 316 sepolicy_path = os.path.join(args.source_root_dir, "base/security/selinux_adapter/sepolicy/") 318 prepare_build_path(args.policy_dir_list, args.source_root_dir, dir_list, sepolicy_path) [all …]
|
| /base/security/huks/interfaces/kits/liteapi/include/ |
| D | hks_lite_api.h | 27 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); 34 static JSIValue hasKeyItem(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 35 static JSIValue importKeyItem(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 36 static JSIValue exportKeyItem(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); [all …]
|
| /base/powermgr/power_manager/test/unittest/src/ |
| D | power_mgr_dump_test.cpp | 60 * @tc.desc: Test that args in PowerMgrDump is -i. 68 std::vector<std::u16string> args; variable 70 args.push_back(arg); 71 EXPECT_TRUE(g_pmsTest->Dump(fd, args) == ERR_OK); 77 * @tc.desc: Test that args in PowerMgrDump is -k. 85 std::vector<std::u16string> args; variable 87 args.push_back(arg); 88 EXPECT_TRUE(g_pmsTest->Dump(fd, args) == ERR_OK); 94 * @tc.desc: Test that args in PowerMgrDump is -r, -s, -a. 102 std::vector<std::u16string> args; variable [all …]
|
| /base/hiviewdfx/hilog_lite/frameworks/js/builtin/src/ |
| D | hilog_module.cpp | 145 JSIValue HilogModule::Debug(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Debug() argument 147 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_DEBUG); in Debug() 150 JSIValue HilogModule::Info(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Info() argument 152 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_INFO); in Info() 155 JSIValue HilogModule::Error(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Error() argument 157 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_ERROR); in Error() 160 JSIValue HilogModule::Warn(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Warn() argument 162 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_WARN); in Warn() 165 JSIValue HilogModule::Fatal(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum) in Fatal() argument 167 return HilogModule::HilogImpl(thisVal, args, argsNum, LogLevel::LOG_FATAL); in Fatal() [all …]
|
| /base/telephony/core_service/utils/log/include/ |
| D | telephony_log_c.h | 36 #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/update/update_app/common/src/main/ets/util/ |
| D | LogUtils.ts | 31 * @param args 附加信息 33 export function debug(tag: string, message: string, ...args: (string | number)[]): void { 34 Logger.debug(DOMAIN, tag, filterSensitiveInfo(message), ...args); 42 * @param args 附加信息 44 export function log(tag: string, message: string, ...args: (string | number)[]): void { 45 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args); 53 * @param args 附加信息 55 export function info(tag: string, message: string, ...args: (string | number)[]): void { 56 Logger.info(DOMAIN, tag, filterSensitiveInfo(message), ...args); 64 * @param args 附加信息 [all …]
|
| /base/update/packaging_tools/ |
| D | build_module_img.py | 101 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/useriam/face_auth/common/utils/ |
| D | iam_ptr.h | 32 template <typename T, typename... Args> 33 static inline std::shared_ptr<T> MakeShared(Args &&...args) in MakeShared() argument 36 return std::make_shared<T>(std::forward<Args>(args)...); in MakeShared() 42 template <typename T, typename... Args> 43 static inline std::unique_ptr<T> MakeUnique(Args &&...args) in MakeUnique() argument 46 return std::make_unique<T>(std::forward<Args>(args)...); in MakeUnique()
|
| /base/useriam/pin_auth/common/utils/ |
| D | iam_ptr.h | 32 template <typename T, typename... Args> 33 static inline std::shared_ptr<T> MakeShared(Args &&... args) in MakeShared() argument 36 return std::make_shared<T>(std::forward<Args>(args)...); in MakeShared() 42 template <typename T, typename... Args> 43 static inline std::unique_ptr<T> MakeUnique(Args &&... args) in MakeUnique() argument 46 return std::make_unique<T>(std::forward<Args>(args)...); in MakeUnique()
|
| /base/useriam/user_auth_framework/common/utils/ |
| D | iam_ptr.h | 32 template <typename T, typename... Args> 33 static inline std::shared_ptr<T> MakeShared(Args &&... args) in MakeShared() argument 36 return std::make_shared<T>(std::forward<Args>(args)...); in MakeShared() 42 template <typename T, typename... Args> 43 static inline std::unique_ptr<T> MakeUnique(Args &&... args) in MakeUnique() argument 46 return std::make_unique<T>(std::forward<Args>(args)...); in MakeUnique()
|
| /base/security/appverify/interfaces/innerkits/appverify_lite/products/ipcamera/ |
| D | app_verify_base.h | 32 #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/useriam/fingerprint_auth/common/utils/ |
| D | iam_ptr.h | 32 template <typename T, typename... Args> 33 static inline std::shared_ptr<T> MakeShared(Args &&...args) in MakeShared() argument 36 return std::make_shared<T>(std::forward<Args>(args)...); in MakeShared() 42 template <typename T, typename... Args> 43 static inline std::unique_ptr<T> MakeUnique(Args &&...args) in MakeUnique() argument 46 return std::make_unique<T>(std::forward<Args>(args)...); in MakeUnique()
|
| /base/startup/init/services/modules/sysevent/ |
| D | startup_time_event.c | 55 EventArgs *args = (EventArgs *)root; in TraversalEvent() local 56 …int len = GetServiceName(item->paramName, args->buffer + args->currLen, args->bufferLen - args->cu… in TraversalEvent() 57 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent() 59 args->currLen += (uint32_t)len; in TraversalEvent() 61 len = sprintf_s(args->buffer + args->currLen, args->bufferLen - args->currLen, ",%u:%u,%u:%u;", in TraversalEvent() 66 PLUGIN_CHECK(len > 0 && (((uint32_t)len + args->currLen) < args->bufferLen), return -1, in TraversalEvent() 68 args->currLen += (uint32_t)len; in TraversalEvent() 106 EventArgs args = { buffer, MAX_BUFFER_FOR_EVENT, 0 }; in ReportBootEventComplete() local 107 OH_ListTraversal(events, (void *)&args, TraversalEvent, 0); in ReportBootEventComplete() 108 if ((args.currLen > 1) && (args.currLen < MAX_BUFFER_FOR_EVENT)) { in ReportBootEventComplete() [all …]
|
| /base/security/crypto_framework/frameworks/js/jsi/inc/ |
| D | jsi_api.h | 29 static JSIValue CreateMd(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 30 static JSIValue CreateRandom(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 35 static JSIValue Update(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 36 static JSIValue UpdateSync(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 37 static JSIValue Digest(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 38 static JSIValue DigestSync(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 39 static JSIValue GetMdLength(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 42 static JSIValue GenerateRandom(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 43 … static JSIValue GenerateRandomSync(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum); 44 static JSIValue SetSeed(const JSIValue thisVal, const JSIValue *args, uint8_t argsNum);
|
| /base/powermgr/battery_manager/services/native/src/ |
| D | battery_dump.cpp | 62 …:GetBatteryInfo(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args) in GetBatteryInfo() argument 64 if ((args.empty()) || (args[0].compare(u"-i") != 0)) { in GetBatteryInfo() 65 BATTERY_HILOGW(FEATURE_BATT_INFO, "args cannot be empty or invalid"); in GetBatteryInfo() 102 …::MockUnplugged(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u16string>& args) in MockUnplugged() argument 104 if ((args.empty()) || (args[0].compare(u"-u") != 0)) { in MockUnplugged() 105 BATTERY_HILOGW(FEATURE_CHARGING, "args cannot be empty or invalid"); in MockUnplugged() 117 …teryDump::Reset(int32_t fd, sptr<BatteryService>& service, const std::vector<std::u16string>& args) in Reset() argument 119 if ((args.empty()) || (args[0].compare(u"-r") != 0)) { in Reset() 120 BATTERY_HILOGW(FEATURE_CHARGING, "args cannot be empty or invalid"); in Reset() 132 …p::MockCapacity(int32_t fd, sptr<BatteryService> &service, const std::vector<std::u16string> &args) in MockCapacity() argument [all …]
|
| /base/security/crypto_framework/frameworks/js/jsi/src/ |
| D | jsi_md.cpp | 27 JSIValue CryptoFrameworkLiteModule::CreateMd(const JSIValue thisVal, const JSIValue *args, uint8_t … in CreateMd() argument 29 if ((args == nullptr) || (argsNum != ARRAY_INDEX_ONE)) { in CreateMd() 30 LOGE("CreateMd args is err!"); in CreateMd() 33 char *alg = JSI::ValueToString(args[0]); in CreateMd() 69 JSIValue CryptoFrameworkLiteModule::Update(const JSIValue thisVal, const JSIValue *args, uint8_t ar… in Update() argument 71 if ((args == nullptr) || (argsNum != ARRAY_MAX_SIZE)) { in Update() 72 LOGE("Update args is null!"); in Update() 78 …CallbackErrorCodeOrDataResult(thisVal, args[ARRAY_INDEX_ONE], HCF_INVALID_PARAMS, JSI::CreateNull(… in Update() 82 JSIValue inVlaue = JSI::GetNamedProperty(args[ARRAY_INDEX_ZERO], "data"); in Update() 87 …CallbackErrorCodeOrDataResult(thisVal, args[ARRAY_INDEX_ONE], HCF_INVALID_PARAMS, JSI::CreateNull(… in Update() [all …]
|
| /base/request/request/common/database/include/ |
| D | wrapper.h | 35 inline void BindI32(const int32_t value, std::vector<ValueObject> &args) in BindI32() argument 37 args.push_back(ValueObject(value)); in BindI32() 40 inline void BindI64(const int64_t value, std::vector<ValueObject> &args) in BindI64() argument 42 args.push_back(ValueObject(value)); in BindI64() 45 inline void BindDouble(const double value, std::vector<ValueObject> &args) in BindDouble() argument 47 args.push_back(ValueObject(value)); in BindDouble() 50 inline void BindBool(const bool value, std::vector<ValueObject> &args) in BindBool() argument 52 args.push_back(ValueObject(value)); in BindBool() 55 inline void BindString(const rust::str value, std::vector<ValueObject> &args) in BindString() argument 57 args.push_back(ValueObject(std::string(value))); in BindString() [all …]
|
| /base/powermgr/thermal_manager/services/native/src/ |
| D | thermal_mgr_dumper.cpp | 42 bool ThermalMgrDumper::Dump(const std::vector<std::string>& args, std::string& result) in Dump() argument 45 if ((args.size() == 0) || (args[0] == ARGS_HELP)) { in Dump() 55 if (args[0] == ARGS_TEMP_REPORT) { in Dump() 56 SwitchTempReport(args, result, tms); in Dump() 57 } else if (args[0] == ARGS_TEMP_EMULATION) { in Dump() 58 EmulateTempReport(args, result, tms); in Dump() 59 } else if (args[0] == ARGS_THERMALINFO) { in Dump() 62 return DumpPolicy(args, result, tms); in Dump() 67 void ThermalMgrDumper::SwitchTempReport(const std::vector<std::string>& args, in SwitchTempReport() argument 71 if (args.size() >= TEMP_EMUL_PARAM_NUM && args[1] == ARGS_STOP_TEMP_FLAG) { in SwitchTempReport() [all …]
|
| /base/request/request/frameworks/js/napi/cache_download/src/ |
| D | preload_module.cpp | 62 napi_value args[2] = { nullptr }; in download() local 63 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in download() 64 if (GetValueType(env, args[0]) != napi_string || GetValueType(env, args[1]) != napi_object) { in download() 68 size_t urlLength = GetStringLength(env, args[0]); in download() 73 std::string url = GetValueString(env, args[0], urlLength); in download() 76 if (napi_get_named_property(env, args[1], "headers", &headers) == napi_ok in download() 96 napi_value args[1] = { nullptr }; in cancel() local 97 NAPI_CALL(env, napi_get_cb_info(env, info, &argc, args, nullptr, nullptr)); in cancel() 98 if (GetValueType(env, args[0]) != napi_string) { in cancel() 102 size_t urlLength = GetStringLength(env, args[0]); in cancel() [all …]
|
| /base/security/selinux_adapter/scripts/selinux_check/ |
| D | selinux_check_main.py | 25 def get_request_args(args, request): argument 31 request_args.append(os.path.join(args.output_path, "file_contexts")) 34 request_args.append(os.path.join(args.output_path, "all.cil")) 36 request_args.append(os.path.join(args.output_path, "developer/all.cil")) 40 def build_cil(args): argument 41 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 42 "-b", args.user_policy, 44 "-o", os.path.join(args.output_path, "all.cil")] 46 check_policy_cmd = [os.path.join(args.tool_path, "checkpolicy"), 47 "-b", args.developer_policy, [all …]
|