Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 102) sorted by relevance

12345

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_config_test.cpp70 ResConfigImpl *target = new ResConfigImpl; variable
71 target->SetLocaleInfo("zh", nullptr, "CN");
73 EXPECT_TRUE(!(rc->Match(target)));
74 delete target;
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_config_test.cpp70 ResConfigImpl *target = new ResConfigImpl; variable
71 target->SetLocaleInfo("zh", nullptr, "CN");
73 EXPECT_TRUE(!(rc->Match(target)));
74 delete target;
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/
Dfs_hvb.c366 int FsHvbConstructVerityTarget(DmVerityTarget *target, const char *devName, struct hvb_cert *cert) in FsHvbConstructVerityTarget() argument
373 target->start = 0; in FsHvbConstructVerityTarget()
374 target->length = cert->image_len / FS_HVB_SECTOR_BYTES; in FsHvbConstructVerityTarget()
375 target->paras = calloc(1, FS_HVB_VERITY_TARGET_MAX); // simple it, just calloc a big mem in FsHvbConstructVerityTarget()
376 if (target->paras == NULL) { in FsHvbConstructVerityTarget()
388 p = target->paras; in FsHvbConstructVerityTarget()
423 target->paras_len = strlen(target->paras); in FsHvbConstructVerityTarget()
428 static int FsHvbCreateVerityTarget(DmVerityTarget *target, char *devName, struct hvb_verified_data … in FsHvbCreateVerityTarget() argument
438 rc = FsHvbConstructVerityTarget(target, devName, &cert); in FsHvbCreateVerityTarget()
447 void FsHvbDestoryVerityTarget(DmVerityTarget *target) in FsHvbDestoryVerityTarget() argument
[all …]
/base/startup/init/services/sandbox/
Dsandbox.c139 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()
240 tmpMount->target = strdup(dstPath); in AddMountInfoToSandbox()
269 char *target = cJSON_GetStringValue(cJSON_GetObjectItem(item, SANDBOX_SYMLINK_TARGET)); in AddSymbolLinksToSandbox() local
270 BEGET_ERROR_CHECK(target != NULL, return 0, "Get target-name is null"); in AddSymbolLinksToSandbox()
[all …]
/base/global/i18n_lite/frameworks/i18n/src/
Dstr_util.cpp35 void ArrayCopy(std::string *target, const int targetSize, const std::string *source, const int sour… 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()
Dnumber_format_impl.cpp288 …char *target = targetAndSource[0]; // use array to store target and source string, first is target… in AddGroup() local
300 target[addIndex] = ','; in AddGroup()
303 target[addIndex] = source[i]; in AddGroup()
306 target[addIndex] = ','; in AddGroup()
308 target[addIndex] = source[i]; in AddGroup()
311 target[addIndex] = ','; in AddGroup()
313 target[addIndex] = source[i]; in AddGroup()
315 target[addIndex] = source[i]; in AddGroup()
320 target[addIndex] = hasDec ? '.' : '\0'; in AddGroup()
322 target[addIndex + j] = hasDec ? decimal[j] : '\0'; in AddGroup()
[all …]
/base/startup/init/interfaces/innerkits/fs_manager/libfs_dm/
Dfs_dm.c101 DmVerityTarget *target) in LoadDmDeviceTable() argument
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()
148 err = strcpy_s(paras, target->paras_len + 1, target->paras); in LoadDmDeviceTable()
230 int FsDmCreateDevice(char **dmDevPath, const char *devName, DmVerityTarget *target) in FsDmCreateDevice() argument
247 rc = LoadDmDeviceTable(fd, devName, target); in FsDmCreateDevice()
/base/global/i18n_lite/frameworks/i18n/include/
Dstr_util.h27 void ArrayCopy(std::string *target, const int targetSize, const std::string *source, const int sour…
33 bool CleanCharArray(char *target, const int len);
35 int LenCharArray(const char *target);
/base/security/huks/test/unittest/huks_standard_test/module_test/framework_test/common_test/src/
Dhks_template_test.cpp154 const uint32_t target = 3; in TestLogBreak() local
157 if (i == target) { in TestLogBreak()
161 if (i == target) { in TestLogBreak()
201 const uint32_t target = 3; in TestBreak() local
204 if (i == target) { in TestBreak()
208 if (i == target) { in TestBreak()
/base/update/sys_installer/services/module_update/src/
Dmodule_dm.cpp57 DmVerityTarget target; in CreateDmDevice() local
72 ret = FsHvbConstructVerityTarget(&target, deviceName.c_str(), &cert); in CreateDmDevice()
77 ret = FsDmCreateDevice(&devPath, devName.c_str(), &target); in CreateDmDevice()
92 FsHvbDestoryVerityTarget(&target); in CreateDmDevice()
/base/startup/init/services/modules/init_eng/
Dinit_eng.c98 ENG_STATIC void BindMountFile(const char *source, const char *target) in BindMountFile() argument
121 …rintf_s(targetFullPath, PATH_MAX, PATH_MAX - 1, "%s%s", strcmp(target, "/") == 0 ? "" : target, q); 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/notification/distributed_notification_service/frameworks/ans/src/
Dnotification_request.cpp1606 void NotificationRequest::ConvertJsonToNum(NotificationRequest *target, const nlohmann::json &jsonO… in ConvertJsonToNum() argument
1608 if (target == nullptr) { in ConvertJsonToNum()
1616 target->notificationId_ = jsonObject.at("id").get<int32_t>(); in ConvertJsonToNum()
1620 target->color_ = jsonObject.at("color").get<uint32_t>(); in ConvertJsonToNum()
1624 target->deliveryTime_ = jsonObject.at("deliveryTime").get<int64_t>(); in ConvertJsonToNum()
1628 target->autoDeletedTime_ = jsonObject.at("autoDeletedTime").get<int64_t>(); in ConvertJsonToNum()
1632 target->creatorUid_ = jsonObject.at("creatorUid").get<int32_t>(); in ConvertJsonToNum()
1636 target->creatorPid_ = jsonObject.at("creatorPid").get<int32_t>(); in ConvertJsonToNum()
1640 target->creatorUserId_ = jsonObject.at("creatorUserId").get<int32_t>(); in ConvertJsonToNum()
1644 target->receiverUserId_ = jsonObject.at("receiverUserId").get<int32_t>(); in ConvertJsonToNum()
[all …]
Dreminder_request_alarm.cpp129 const time_t target = mktime(&tar); in GetNextTriggerTime() local
130 int8_t nextDayInterval = GetNextAlarm(now, target); in GetNextTriggerTime()
133 if (now >= target) { in GetNextTriggerTime()
135 nextTriggerTime = target + 1 * HOURS_PER_DAY * SECONDS_PER_HOUR; in GetNextTriggerTime()
138 nextTriggerTime = target; in GetNextTriggerTime()
141 nextTriggerTime = target + nextDayInterval * HOURS_PER_DAY * SECONDS_PER_HOUR; in GetNextTriggerTime()
158 int8_t ReminderRequestAlarm::GetNextAlarm(const time_t now, const time_t target) const in GetNextAlarm()
166 int32_t dayCount = now >= target ? 1 : 0; in GetNextAlarm()
Dreminder_request_calendar.cpp86 time_t target = static_cast<time_t>(nextTriggerTime / MILLI_SECONDS); in SetNextTriggerTime() local
87 (void)localtime_r(&target, &dateTime_); in SetNextTriggerTime()
115 const uint16_t &settedYear, const uint8_t &settedMonth, const tm &now, const tm &target) const in GetNextDay()
126 setTime.tm_hour = target.tm_hour; in GetNextDay()
127 setTime.tm_min = target.tm_min; in GetNextDay()
128 setTime.tm_sec = target.tm_sec; in GetNextDay()
172 const time_t target = mktime(&tarTime); in GetNextTriggerTime() local
173 if (target == -1) { in GetNextTriggerTime()
176 if (now < target) { in GetNextTriggerTime()
177 triggerTimeInMilli = ReminderRequest::GetDurationSinceEpochInMilli(target); in GetNextTriggerTime()
[all …]
/base/update/packaging_tools/
DREADME_zh.md83 python build_update.py ./target/ ./target/package -pk ./target/updater_config/rsa_private_key2048.p…
89 python build_update.py -s source.zip ./target/ ./target/package -pk./target/updater_config/rsa_priv…
/base/startup/init/interfaces/innerkits/fs_manager/libfs_hvb/include/
Dfs_hvb.h38 int FsHvbConstructVerityTarget(DmVerityTarget *target, const char *devName, struct hvb_cert *cert);
39 void FsHvbDestoryVerityTarget(DmVerityTarget *target);
/base/startup/init/services/init/standard/
Dswitch_root.c94 static int MountToNewTarget(const char *target) in MountToNewTarget() argument
96 if (target == NULL || *target == '\0') { in MountToNewTarget()
108 strcmp(mountPoint, target) == 0) { in MountToNewTarget()
112 if (snprintf_s(newMountPoint, PATH_MAX, PATH_MAX - 1, "%s%s", target, mountPoint) == -1) { in MountToNewTarget()
/base/powermgr/thermal_manager/utils/native/src/
Dstring_operation.cpp66 bool StringOperation::Compare(const std::string& origin, const std::string& target) in Compare() argument
68 if (origin.compare(target) == COMPARE_SUCCESS) { in Compare()
74 bool StringOperation::Find(const std::string& origin, const std::string& target) in Find() argument
76 if (origin.find(target) != std::string::npos) { in Find()
/base/update/updater/test/unittest/package/
Dpkg_package_unittest.cpp170 std::vector<std::string> target; in TestPackageInfoFail() local
173 target = pkginfomanager->GetOTAVersion(nullptr, "", ""); in TestPackageInfoFail()
174 EXPECT_EQ(target, tmp); in TestPackageInfoFail()
175 target = pkginfomanager->GetOTAVersion(manager, "", ""); in TestPackageInfoFail()
176 EXPECT_EQ(target, tmp); in TestPackageInfoFail()
177 target = pkginfomanager->GetBoardID(nullptr, "", ""); in TestPackageInfoFail()
178 EXPECT_EQ(target, tmp); in TestPackageInfoFail()
179 target = pkginfomanager->GetBoardID(manager, "", ""); in TestPackageInfoFail()
180 EXPECT_EQ(target, tmp); in TestPackageInfoFail()
/base/hiviewdfx/hiview/plugins/faultlogger/common/
Dfaultlog_util.cpp34 std::string GetFormatedTime(uint64_t target) in GetFormatedTime() argument
37 if (target > static_cast<uint64_t>(now)) { in GetFormatedTime()
38 target = target / 1000; // 1000 : convert millisecond to seconds in GetFormatedTime()
41 time_t out = static_cast<time_t>(target); in GetFormatedTime()
/base/startup/init/services/sandbox/include/
Dsandbox.h34 char *target; // 沙盒化后的目录 member
42 char *target; member
/base/powermgr/thermal_manager/utils/native/include/
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);
/base/hiviewdfx/hidumper/frameworks/native/src/executor/
Dfile_stream_dumper.cpp45 std::string target = ptrDumpCfg_->target_; in PreExecute() local
56 BuildFileNames(target, arg_pid, pid, arg_cpuid, cpuid); in PreExecute()
177 void FileStreamDumper::BuildFileNames(const std::string& target, bool arg_pid, int pid, in BuildFileNames() argument
180 DIR* dir = opendir(target.c_str()); in BuildFileNames()
182 std::string dir_name = target; in BuildFileNames()
206 std::string filename = target; in BuildFileNames()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_request_test.cpp444 …Notification::NotificationRequest* target = new Notification::NotificationRequest(myNotificationId… in HWTEST_F() local
445 notificationRequest.ConvertJsonToNum(target, jsonObject); in HWTEST_F()
470 …Notification::NotificationRequest* target = new Notification::NotificationRequest(myNotificationId… in HWTEST_F() local
472 notificationRequest.ConvertJsonToString(target, jsonObject); in HWTEST_F()
473 notificationRequest.ConvertJsonToEnum(target, jsonObject); in HWTEST_F()
474 notificationRequest.ConvertJsonToBool(target, jsonObject); in HWTEST_F()
475 notificationRequest.ConvertJsonToPixelMap(target, jsonObject); in HWTEST_F()
476 bool result1 = notificationRequest.ConvertJsonToNotificationContent(target, jsonObject); in HWTEST_F()
477 bool result2 = notificationRequest.ConvertJsonToNotificationActionButton(target, jsonObject); in HWTEST_F()
478 bool result3 = notificationRequest.ConvertJsonToNotificationFlags(target, jsonObject); in HWTEST_F()
[all …]
/base/useriam/user_auth_framework/
DREADME.md15 …t user authentication of the target Authentication Trust Level (ATL). The target ATL is specified …
48 … Determine the user authentication scheme based on the user credentials entered and the target ATL.
49 2. Authentication result evaluation: Evaluate whether the authentication reaches the target ATL bas…

12345