Home
last modified time | relevance | path

Searched refs:target (Results 1 - 25 of 116) sorted by relevance

12345

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
H A Dres_config_test.cpp70 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()
/base/update/updateservice/frameworks/js/napi/session/include/
H A Dnapi_structs_base.h46 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/startup/init/test/unittest/fs_manager/
H A Dlibfs_hvb_unittest.cpp142 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 Dfusion_security.cpp77 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()
H A Dfusion_device_profile.cpp63 static void Destruct(CIProfileEvents* target) in Destruct() argument
65 CHKPV(target); in Destruct()
66 if (target->profileEvents == nullptr) { in Destruct()
67 delete target; in Destruct()
69 delete [] target->profileEvents; in Destruct()
70 delete target; in Destruct()
/base/hiviewdfx/hiview/plugins/reliability/leak_detectors/test/
H A Dtest_util.cpp122 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 Dtest_util.h38 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/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dres_config_test.cpp70 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()
/base/startup/init/services/sandbox/
H A Dsandbox.c42 #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/global/i18n_lite/frameworks/i18n/src/
H A Dstr_util.cpp35 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 Dnumber_format_impl.cpp288 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/i18n_lite/frameworks/i18n/include/
H A Dstr_util.h27 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/libfs_hvb/
H A Dfs_hvb.c395 * 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...]
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
H A Dhks_template_test.cpp152 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 Dinit_eng.c98 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/telephony/telephony_data/opkey_version/src/
H A Dopkey_version_result_set_bridge.cpp53 int OpkeyVersionResultSetBridge::OnGo(int32_t start, int32_t target, DataShare::ResultSetBridge::Writer &writer) in OnGo() argument
56 if ((start < 0) || (target < 0) || (start > target)) { in OnGo()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
H A Dfs_dm.c101 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/update/sys_installer/services/module_update/src/
H A Dmodule_dm.cpp57 DmVerityTarget target; in CreateDmDevice() local
72 ret = FsHvbConstructVerityTarget(&target, deviceName.c_str(), &cert); in CreateDmDevice()
74 LOG(ERROR) << "create dm verity target error " << ret; in CreateDmDevice()
77 ret = FsDmCreateDevice(&devPath, devName.c_str(), &target); in CreateDmDevice()
92 FsHvbDestoryVerityTarget(&target); in CreateDmDevice()
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/include/
H A Dfs_dm.h38 int FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target);
40 int FsDmCreateLinearDevice(const char *devName, char *dmBlkName, uint64_t dmBlkNameLen, DmVerityTarget *target);
/base/startup/init/interfaces/innerkits/fs_manager/erofs_overlay/
H A Derofs_mount_overlay.c233 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...]
/base/msdp/device_status/test/unittest/utils/src/
H A Dutility_test.cpp75 std::string target = "0"; in HWTEST_F() local
76 bool ret = Utility::IsInteger(target); in HWTEST_F()
89 std::string target = "123"; in HWTEST_F() local
90 bool ret = Utility::IsInteger(target); in HWTEST_F()
103 std::string target = " 0"; in HWTEST_F() local
104 bool ret = Utility::IsInteger(target); in HWTEST_F()
117 std::string target = "-0"; in HWTEST_F() local
118 bool ret = Utility::IsInteger(target); in HWTEST_F()
131 std::string target = "-1"; in HWTEST_F() local
132 bool ret = Utility::IsInteger(target); in HWTEST_F()
145 std::string target = "-10"; HWTEST_F() local
159 std::string target = "123"; HWTEST_F() local
173 std::string target = "-123"; HWTEST_F() local
187 std::string target = "0123"; HWTEST_F() local
201 std::string target = "A01"; HWTEST_F() local
215 std::string target = "A-10"; HWTEST_F() local
229 std::string target = " 123A"; HWTEST_F() local
243 std::string target = " 123 A"; HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_request.cpp2059 NotificationRequest *target, const nlohmann::json &jsonObject) in ConvertJsonToNumExt()
2064 target->updateDeadLine_ = jsonObject.at("updateDeadLine").get<int64_t>(); in ConvertJsonToNumExt()
2068 target->finishDeadLine_ = jsonObject.at("finishDeadLine").get<int64_t>(); in ConvertJsonToNumExt()
2072 target->ownerUserId_ = jsonObject.at("ownerUserId").get<int32_t>(); in ConvertJsonToNumExt()
2076 target->ownerUid_ = jsonObject.at("ownerUid").get<int32_t>(); in ConvertJsonToNumExt()
2081 target->notificationControlFlags_ = jsonObject.at("notificationControlFlags").get<uint32_t>(); in ConvertJsonToNumExt()
2085 void NotificationRequest::ConvertJsonToNum(NotificationRequest *target, const nlohmann::json &jsonObject) in ConvertJsonToNum() argument
2087 if (target == nullptr) { in ConvertJsonToNum()
2095 target->notificationId_ = jsonObject.at("id").get<int32_t>(); in ConvertJsonToNum()
2099 target in ConvertJsonToNum()
2058 ConvertJsonToNumExt( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNumExt() argument
2137 ConvertJsonToString(NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToString() argument
2171 ConvertJsonToEnum(NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToEnum() argument
2197 ConvertJsonToBool(NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToBool() argument
2245 ConvertJsonToBoolExt(NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToBoolExt() argument
2254 ConvertJsonToPixelMap(NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToPixelMap() argument
2284 ConvertJsonToNotificationContent( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNotificationContent() argument
2310 ConvertJsonToNotificationActionButton( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNotificationActionButton() argument
2336 ConvertJsonToNotificationDistributedOptions( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNotificationDistributedOptions() argument
2363 ConvertJsonToNotificationFlags( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNotificationFlags() argument
2389 ConvertJsonToNotificationBundleOption( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToNotificationBundleOption() argument
2415 ConvertJsonToAgentBundle( NotificationRequest *target, const nlohmann::json &jsonObject) ConvertJsonToAgentBundle() argument
[all...]
H A Dreminder_request_calendar.cpp80 const time_t target = mktime(&dateTime); in AddExcludeDate() local
81 if (target == -1) { in AddExcludeDate()
85 excludeDates_.insert(ReminderRequest::GetDurationSinceEpochInMilli(target)); in AddExcludeDate()
110 const time_t target = mktime(&dateTime); in IsInExcludeDate() local
111 if (target == -1) { in IsInExcludeDate()
115 uint64_t notificationTime = ReminderRequest::GetDurationSinceEpochInMilli(target); in IsInExcludeDate()
202 time_t target = static_cast<time_t>(nextTriggerTime / MILLI_SECONDS); in SetNextTriggerTime() local
203 (void)localtime_r(&target, &dateTime_); in SetNextTriggerTime()
231 const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) const in GetNextDay()
242 setTime.tm_hour = target in GetNextDay()
376 time_t target = mktime(&startTime); CalcLastStartDateTime() local
398 const time_t target = mktime(&tarTime); GetNextTriggerTime() local
477 const time_t target = mktime(&tar); GetTimeInstantMilli() local
[all...]
/base/hiviewdfx/hiview/base/utility/
H A Dfreeze_json_util.cpp32 bool IncludeWith(std::list<std::string> list, const std::string& target) in IncludeWith() argument
35 if (target == *it) { in IncludeWith()
170 bool HasBeenWrapped(const std::string& target) in HasBeenWrapped() argument
173 if (target.size() < minLen) { in HasBeenWrapped()
176 char head = target[0]; in HasBeenWrapped()
177 char foot = target[target.size() - 1]; in HasBeenWrapped()
/base/powermgr/thermal_manager/utils/native/include/
H A Dstring_operation.h28 static bool Compare(const std::string& origin, const std::string& target);
29 static bool Find(const std::string& origin, const std::string& target);

Completed in 19 milliseconds

12345