/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | res_config_test.cpp | 70 auto target = std::make_shared<ResConfigImpl>(); in HWTEST_F() local 71 target->SetLocaleInfo("zh", nullptr, "CN"); in HWTEST_F() 73 EXPECT_TRUE(!(rc->Match(target))); in HWTEST_F() 96 auto target = std::make_shared<ResConfigImpl>(); in HWTEST_F() local 97 target->SetLocaleInfo("zh", nullptr, "CN"); in HWTEST_F() 98 target->CompleteScript(); in HWTEST_F() 99 EXPECT_TRUE(target->IsCompletedScript()); in HWTEST_F() 100 target->CompleteScript(); in HWTEST_F()
|
/device/soc/rockchip/common/sdk_linux/include/trace/events/ |
H A D | cpuhp.h | 12 TP_PROTO(unsigned int cpu, int target, int idx, int (*fun)(unsigned int)), 14 TP_ARGS(cpu, target, idx, fun), 16 TP_STRUCT__entry(__field(unsigned int, cpu) __field(int, target) __field(int, idx) __field(void *, fun)), 18 TP_fast_assign(__entry->cpu = cpu; __entry->target = target; __entry->idx = idx; __entry->fun = fun;), 20 TP_printk("cpu: %04u target: %3d step: %3d (%ps)", __entry->cpu, __entry->target, __entry->idx, 25 TP_PROTO(unsigned int cpu, int target, int idx, int (*fun)(unsigned int, struct hlist_node *), 28 TP_ARGS(cpu, target, idx, fun, node), 30 TP_STRUCT__entry(__field(unsigned int, cpu) __field(int, target) __fiel [all...] |
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/ |
H A D | test_util.cpp | 122 bool TestUtil::IsValidTarget(const string &target) in IsValidTarget() argument 124 return regex_match(target, regex("^[a-zA-Z0-9_\\/]+$")); in IsValidTarget() 127 string TestUtil::BuildCommand(CmdType type, const string &target) in BuildCommand() argument 129 if (!IsValidTarget(target)) { in BuildCommand() 130 HIVIEW_LOGW("BuildCommand failed, by target invalid"); in BuildCommand() 137 cmd = "killall " + target; in BuildCommand() 140 cmd = "rm " + target + "/*"; in BuildCommand() 143 cmd = "pidof " + target; in BuildCommand() 152 string TestUtil::ExecCmd(CmdType type, const string &target) in ExecCmd() argument 154 string cmd = BuildCommand(type, target); in ExecCmd() 236 GetDightStrArr(const string &target) GetDightStrArr() argument [all...] |
H A D | test_util.h | 38 static std::string BuildCommand(CmdType type, const std::string &target); 49 static std::string ExecCmd(CmdType type, const std::string &target); 51 static bool IsValidTarget(const std::string &target); 52 static std::list<std::string> GetDightStrArr(const std::string &target);
|
/base/startup/init/test/unittest/fs_manager/ |
H A D | libfs_hvb_unittest.cpp | 142 DmVerityTarget target; in HWTEST_F() local 148 ret = FsHvbConstructVerityTarget(&target, nullptr, &cert); in HWTEST_F() 150 ret = FsHvbConstructVerityTarget(&target, devName, nullptr); in HWTEST_F() 155 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F() 159 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F() 165 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F() 176 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F() 180 ret = FsHvbConstructVerityTarget(&target, devName, &cert); in HWTEST_F() 186 DmVerityTarget target; in HWTEST_F() local 188 target in HWTEST_F() [all...] |
/base/msdp/device_status/rust/subsystem/device_profile/binding/src/ |
H A D | fusion_security.cpp | 77 static CIString* Clone(CIString* target); 78 static void Destruct(CIString* target); 79 static const char* GetData(CIString* target); 98 CIString* CString::Clone(CIString* target) in Clone() argument 100 CString* t = static_cast<CString*>(target); in Clone() 105 void CString::Destruct(CIString* target) in Destruct() argument 107 CString* t = static_cast<CString*>(target); in Destruct() 112 const char* CString::GetData(CIString* target) in GetData() argument 114 CString* t = static_cast<CString*>(target); in GetData()
|
/base/startup/init/services/sandbox/ |
H A D | sandbox.c | 42 #define SANDBOX_SYMLINK_TARGET "target-name" 139 if (info->target != NULL) { in FreeSandboxMountInfo() 140 free(info->target); in FreeSandboxMountInfo() 141 info->target = NULL; in FreeSandboxMountInfo() 157 if (info->target != NULL) { in FreeSandboxLinkInfo() 158 free(info->target); in FreeSandboxLinkInfo() 159 info->target = NULL; in FreeSandboxLinkInfo() 180 return strcmp(info->target, mountTarget); in CompareSandboxListForMountTarget() 241 tmpMount->target = strdup(dstPath); in AddMountInfoToSandbox() 242 BEGET_ERROR_CHECK(tmpMount->target ! in AddMountInfoToSandbox() 271 char *target = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_SYMLINK_TARGET)); AddSymbolLinksToSandbox() local 431 BindMount(const char *source, const char *target, unsigned long flags, SandboxTag tag) BindMount() argument 481 char target[PATH_MAX] = {}; MountSandboxNode() local [all...] |
/base/update/updateservice/frameworks/js/napi/session/include/ |
H A D | napi_structs_base.h | 46 void AssignValue(T *const source, T *&target) in AssignValue() 48 if (target == nullptr) { in AssignValue() 49 target = new (std::nothrow) T(); in AssignValue() 51 if ((target != nullptr) && (source != nullptr)) { in AssignValue() 52 *(target) = *(source); in AssignValue()
|
/base/global/i18n_lite/frameworks/i18n/src/ |
H A D | str_util.cpp | 35 void ArrayCopy(std::string *target, const int targetSize, const std::string *source, const int sourceSize)
in ArrayCopy() argument 37 if (target == nullptr || source == nullptr || (sourceSize > targetSize)) {
in ArrayCopy() 41 target[i] = source[i];
in ArrayCopy() 81 bool CleanCharArray(char *target, const int len)
in CleanCharArray() argument 83 errno_t ret = memset_s(target, len, 0, len);
in CleanCharArray() 90 int LenCharArray(const char *target)
in LenCharArray() argument 92 if (target == nullptr) {
in LenCharArray() 95 return strlen(target);
in LenCharArray()
|
H A D | number_format_impl.cpp | 288 char *target = targetAndSource[0]; // use array to store target and source string, first is target string
in AddGroup() local 289 int targetLen = len[0]; // use array to store target length and source length, first is target length
in AddGroup() 290 char *source = targetAndSource[1]; // use array to store target and source string, second is source string
in AddGroup() 291 int sourceLen = len[1]; // use array to store target length and source length, second is source length
in AddGroup() 300 target[addIndex] = ',';
in AddGroup() 303 target[addIndex] = source[i];
in AddGroup() 306 target[addInde in AddGroup() 327 DelZero(char *target, int len, int delNum, bool onlyZero) const DelZero() argument 421 FillMinDecimal(const char *target, int len, int addSize, bool isDec) const FillMinDecimal() argument [all...] |
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | res_config_test.cpp | 70 ResConfigImpl *target = new ResConfigImpl; in HWTEST_F() local 71 target->SetLocaleInfo("zh", nullptr, "CN"); in HWTEST_F() 73 EXPECT_TRUE(!(rc->Match(target))); in HWTEST_F() 74 delete target; in HWTEST_F()
|
/device/soc/rockchip/common/vendor/drivers/devfreq/ |
H A D | rockchip_dmc_common.c | 80 unsigned long vop_last_rate, target = 0; in rockchip_dmcfreq_vop_bandwidth_update() local 118 target = common_info->vop_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_update() 128 if (target < common_info->vop_frame_bw_tbl[i].freq) { in rockchip_dmcfreq_vop_bandwidth_update() 129 target = common_info->vop_frame_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_update() 136 common_info->vop_req_rate = target; in rockchip_dmcfreq_vop_bandwidth_update() 138 if (target > vop_last_rate) { in rockchip_dmcfreq_vop_bandwidth_update() 148 unsigned long target = 0; in rockchip_dmcfreq_vop_bandwidth_request() local 157 target = common_info->vop_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_request() 162 if (!target) { in rockchip_dmcfreq_vop_bandwidth_request()
|
/device/soc/rockchip/rk3588/kernel/drivers/devfreq/ |
H A D | rockchip_dmc_common.c | 81 unsigned long vop_last_rate, target = 0; in rockchip_dmcfreq_vop_bandwidth_update() local 117 target = common_info->vop_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_update() 126 if (target < common_info->vop_frame_bw_tbl[i].freq) in rockchip_dmcfreq_vop_bandwidth_update() 127 target = common_info->vop_frame_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_update() 133 common_info->vop_req_rate = target; in rockchip_dmcfreq_vop_bandwidth_update() 135 if (target > vop_last_rate) { in rockchip_dmcfreq_vop_bandwidth_update() 145 unsigned long target = 0; in rockchip_dmcfreq_vop_bandwidth_request() local 154 target = common_info->vop_bw_tbl[i].freq; in rockchip_dmcfreq_vop_bandwidth_request() 159 if (!target) in rockchip_dmcfreq_vop_bandwidth_request()
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/ |
H A D | fs_hvb.c | 395 * target->paras is verity table target, format as below; 404 int FsHvbConstructVerityTarget(DmVerityTarget *target, const char *devName, struct hvb_cert *cert) in FsHvbConstructVerityTarget() argument 411 FS_HVB_RETURN_ERR_IF_NULL(target); in FsHvbConstructVerityTarget() 415 target->start = 0; in FsHvbConstructVerityTarget() 416 target->length = cert->image_len / FS_HVB_SECTOR_BYTES; in FsHvbConstructVerityTarget() 417 target->paras = calloc(1, FS_HVB_VERITY_TARGET_MAX); // simple it, just calloc a big mem in FsHvbConstructVerityTarget() 418 if (target->paras == NULL) { in FsHvbConstructVerityTarget() 419 BEGET_LOGE("error, alloc target paras"); in FsHvbConstructVerityTarget() 429 p = target in FsHvbConstructVerityTarget() 480 FsHvbCreateVerityTarget(DmVerityTarget *target, char *devName, struct hvb_verified_data *vd) FsHvbCreateVerityTarget() argument 499 FsHvbDestoryVerityTarget(DmVerityTarget *target) FsHvbDestoryVerityTarget() argument 510 DmVerityTarget target = {0}; FsHvbSetupHashtree() local [all...] |
/device/soc/hisilicon/hi3861v100/sdk_liteos/build/scripts/ |
H A D | pkt_builder.py | 136 self.BuildUpgBin(target = ota_ori_file)
141 def BuildUpgBoot(self, target = None, source = None):
153 image_file = os.path.join(pkt_dir_path, '%s_flash_boot_ota.bin'%app_name) if target is None else target
158 def BuildUpgBin(self, target = None):
175 image_file = os.path.join(pkt_dir_path, '%s_ota.bin'%app_name) if target is None else target
180 def BuildUpgBurnBin(self, target = None):
197 image_file = os.path.join(pkt_dir_path, '%s_ota_unencrypt.bin'%app_name) if target is None else target
[all...] |
/device/soc/rockchip/common/kernel/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_descriptor_mapping.h | 58 * @param target The value to map to 61 int ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, void *target); 67 * @param target Pointer to a pointer which will receive the stored value 70 int ump_descriptor_mapping_get(ump_descriptor_mapping *map, int descriptor, void **target); 76 * @param target Pointer to replace the current value with 79 int ump_descriptor_mapping_set(ump_descriptor_mapping *map, int descriptor, void *target);
|
H A D | ump_kernel_descriptor_mapping.c | 63 int ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, void *target) in ump_descriptor_mapping_allocate_mapping() argument 95 map->table->mappings[descriptor] = target; in ump_descriptor_mapping_allocate_mapping() 102 int ump_descriptor_mapping_get(ump_descriptor_mapping *map, int descriptor, void **target) in ump_descriptor_mapping_get() argument 108 *target = map->table->mappings[descriptor]; in ump_descriptor_mapping_get() 110 } else *target = NULL; in ump_descriptor_mapping_get() 115 int ump_descriptor_mapping_set(ump_descriptor_mapping *map, int descriptor, void *target) in ump_descriptor_mapping_set() argument 120 map->table->mappings[descriptor] = target; in ump_descriptor_mapping_set()
|
/device/soc/rockchip/common/vendor/drivers/gpu/arm/mali400/ump/common/ |
H A D | ump_kernel_descriptor_mapping.h | 59 * @param target The value to map to 62 int ump_descriptor_mapping_allocate_mapping(ump_descriptor_mapping *map, void *target); 68 * @param target Pointer to a pointer which will receive the stored value 71 int ump_descriptor_mapping_get(ump_descriptor_mapping *map, int descriptor, void **target); 77 * @param target Pointer to replace the current value with 80 int ump_descriptor_mapping_set(ump_descriptor_mapping *map, int descriptor, void *target);
|
/device/soc/rockchip/common/sdk_linux/kernel/ |
H A D | cpu.c | 52 * @target: The target state 65 enum cpuhp_state target; member 179 trace_cpuhp_enter(cpu, st->target, state, cb); in cpuhp_invoke_callback() 192 trace_cpuhp_multi_enter(cpu, st->target, state, cbm, node); in cpuhp_invoke_callback() 206 trace_cpuhp_multi_enter(cpu, st->target, state, cbm, node); in cpuhp_invoke_callback() 236 trace_cpuhp_multi_enter(cpu, st->target, state, cbm, node); in cpuhp_invoke_callback() 480 static inline enum cpuhp_state cpuhp_set_state(struct cpuhp_cpu_state *st, enum cpuhp_state target) in cpuhp_set_state() argument 487 st->target = target; in cpuhp_set_state() 532 cpuhp_kick_ap(struct cpuhp_cpu_state *st, enum cpuhp_state target) cpuhp_kick_ap() argument 647 cpuhp_up_callbacks(unsigned int cpu, struct cpuhp_cpu_state *st, enum cpuhp_state target) cpuhp_up_callbacks() argument 957 enum cpuhp_state target = max((int)st->target, CPUHP_AP_OFFLINE); take_cpu_down() local 1068 cpuhp_down_callbacks(unsigned int cpu, struct cpuhp_cpu_state *st, enum cpuhp_state target) cpuhp_down_callbacks() argument 1087 _cpu_down(unsigned int cpu, int tasks_frozen, enum cpuhp_state target) _cpu_down() argument 1158 cpu_down_maps_locked(unsigned int cpu, enum cpuhp_state target) cpu_down_maps_locked() argument 1166 cpu_down(unsigned int cpu, enum cpuhp_state target) cpu_down() argument 1259 enum cpuhp_state target = min((int)st->target, CPUHP_AP_ONLINE); notify_cpu_starting() local 1299 _cpu_up(unsigned int cpu, int tasks_frozen, enum cpuhp_state target) _cpu_up() argument 1361 cpu_up(unsigned int cpu, enum cpuhp_state target) cpu_up() argument 2304 int target, ret; write_cpuhp_target() local [all...] |
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/ |
H A D | hks_template_test.cpp | 152 const uint32_t target = 3; in TestLogBreak() local 155 if (i == target) { in TestLogBreak() 159 if (i == target) { in TestLogBreak() 199 const uint32_t target = 3; in TestBreak() local 202 if (i == target) { in TestBreak() 206 if (i == target) { in TestBreak()
|
/base/startup/init/services/modules/init_eng/ |
H A D | init_eng.c | 98 ENG_STATIC void BindMountFile(const char *source, const char *target) in BindMountFile() argument 120 // OK, now get sub dir and combine it with target in BindMountFile() 121 int ret = snprintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q); in BindMountFile() 123 PLUGIN_LOGE("Failed to build target path"); in BindMountFile() 126 PLUGIN_LOGI("target full path is %s", targetFullPath); in BindMountFile() 144 ENG_STATIC void DebugFilesOverlay(const char *source, const char *target) in DebugFilesOverlay() argument 170 DebugFilesOverlay(srcPath, target); in DebugFilesOverlay() 172 BindMountFile(srcPath, target); in DebugFilesOverlay()
|
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/ |
H A D | fs_dm.c | 101 DmVerityTarget *target, bool needDmVerity) in LoadDmDeviceTable() 111 FS_DM_RETURN_ERR_IF_NULL(target); in LoadDmDeviceTable() 112 FS_DM_RETURN_ERR_IF_NULL(target->paras); in LoadDmDeviceTable() 114 parasTotalSize = DM_ALIGN(sizeof(*io) + sizeof(*ts) + target->paras_len + 1); in LoadDmDeviceTable() 138 ts->sector_start = target->start; in LoadDmDeviceTable() 139 ts->length = target->length; in LoadDmDeviceTable() 144 BEGET_LOGE("error 0x%x, cp target type", err); in LoadDmDeviceTable() 148 err = strcpy_s(paras, target->paras_len + 1, target->paras); in LoadDmDeviceTable() 151 BEGET_LOGE("error 0x%x, cp target para in LoadDmDeviceTable() 100 LoadDmDeviceTable(int fd, const char *devName, DmVerityTarget *target, bool needDmVerity) LoadDmDeviceTable() argument 230 FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target) FsDmCreateDevice() argument 382 FsDmCreateLinearDevice(const char *devName, char *dmBlkName, uint64_t dmBlkNameLen, DmVerityTarget *target) FsDmCreateLinearDevice() argument [all...] |
/base/global/i18n_lite/frameworks/i18n/include/ |
H A D | str_util.h | 27 void ArrayCopy(std::string *target, const int targetSize, const std::string *source, const int sourceSize);
33 bool CleanCharArray(char *target, const int len);
35 int LenCharArray(const char *target);
|
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/ |
H A D | erofs_mount_overlay.c | 233 INIT_STATIC int ConstructLinearTarget(DmVerityTarget *target, const char *dev, uint64_t mapStart, uint64_t mapLength)
in ConstructLinearTarget() argument 235 if (target == NULL || dev == NULL) {
in ConstructLinearTarget() 239 target->start = 0;
in ConstructLinearTarget() 240 target->length = mapLength / SECTOR_SIZE;
in ConstructLinearTarget() 241 target->paras = calloc(1, MAX_BUFFER_LEN);
in ConstructLinearTarget() 242 if (target->paras == NULL) {
in ConstructLinearTarget() 243 BEGET_LOGE("Failed to calloc target paras");
in ConstructLinearTarget() 247 if (snprintf_s(target->paras, MAX_BUFFER_LEN, MAX_BUFFER_LEN - 1, "%s %llu", dev, mapStart / SECTOR_SIZE) < 0) {
in ConstructLinearTarget() 248 BEGET_LOGE("Failed to copy target paras.");
in ConstructLinearTarget() 251 target in ConstructLinearTarget() 256 DestoryLinearTarget(DmVerityTarget *target) DestoryLinearTarget() argument [all...] |
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/interdrv/common/cipher/src/drv/cipher_v1.0/compat/ |
H A D | drv_klad.c | 36 hi_s32 hal_cipher_klad_config(hi_u32 chn_id, hi_u32 opt_id, hi_cipher_klad_target target, hi_bool is_decrypt) in hal_cipher_klad_config() argument 50 ctrl.bits.type = target; in hal_cipher_klad_config() 196 hi_cipher_ca_type root_key, hi_cipher_klad_target target, const hi_u8 *data_in, hi_u32 key_len) in drv_cipher_klad_load_key() 203 hi_log_chk_param_return(target >= HI_CIPHER_KLAD_TARGET_BUTT); in drv_cipher_klad_load_key() 209 ret = hal_cipher_klad_config(chn_id, otp_id, target, HI_TRUE); in drv_cipher_klad_load_key() 235 hi_cipher_klad_target target, hi_u8 *clean_key, hi_u8 *encrypt_key, hi_u32 key_len) in drv_cipher_klad_encrypt_key() 241 hi_log_chk_param_return(target >= HI_CIPHER_KLAD_TARGET_BUTT); in drv_cipher_klad_encrypt_key() 253 if (target == HI_CIPHER_KLAD_TARGET_RSA) { in drv_cipher_klad_encrypt_key() 195 drv_cipher_klad_load_key(hi_u32 chn_id, hi_cipher_ca_type root_key, hi_cipher_klad_target target, const hi_u8 *data_in, hi_u32 key_len) drv_cipher_klad_load_key() argument 234 drv_cipher_klad_encrypt_key(hi_cipher_ca_type root_key, hi_cipher_klad_target target, hi_u8 *clean_key, hi_u8 *encrypt_key, hi_u32 key_len) drv_cipher_klad_encrypt_key() argument
|