Home
last modified time | relevance | path

Searched refs:version (Results 1 - 25 of 433) sorted by relevance

12345678910>>...18

/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/common/
H A Ddas_version_util.c56 int32_t StringToVersion(const char* verStr, VersionStruct* version) in StringToVersion() argument
58 CHECK_PTR_RETURN_ERROR_CODE(version, "version"); in StringToVersion()
80 version->first = (uint32_t)strtoul(subVer, NULL, DEC); in StringToVersion()
86 version->second = (uint32_t)strtoul(subVer, NULL, DEC); in StringToVersion()
92 version->third = (uint32_t)strtoul(subVer, NULL, DEC); in StringToVersion()
102 int32_t VersionToString(const VersionStruct *version, char *verStr, uint32_t len) in VersionToString() argument
104 CHECK_PTR_RETURN_ERROR_CODE(version, "version"); in VersionToString()
108 if (sprintf_s(tmpStr, TMP_VERSION_STR_LEN, "%u.%u.%u", version in VersionToString()
126 AddSingleVersionToJson(CJson *jsonObj, const VersionStruct *version) AddSingleVersionToJson() argument
150 GetSingleVersionFromJson(const CJson* jsonObj, VersionStruct *version) GetSingleVersionFromJson() argument
169 InitGroupAndModuleVersion(VersionStruct *version) InitGroupAndModuleVersion() argument
213 CJson* version = CreateJson(); AddVersionToJson() local
[all...]
/base/security/device_security_level/services/dslm/
H A Ddslm_core_defines.h42 uint32_t version; member
69 static inline uint8_t VersionToMajor(uint32_t version) in VersionToMajor() argument
71 // shift 16 bit to get version first 8 bit data as the main version in VersionToMajor()
72 return (version & 0xFF0000U) >> 16U; in VersionToMajor()
75 static inline uint8_t VersionToMinor(uint32_t version) in VersionToMinor() argument
77 // get version middle 8 bit data as the minor version in VersionToMinor()
78 return (version & 0xFF00U) >> 8U; in VersionToMinor()
81 static inline uint8_t VersionToPatch(uint32_t version) in VersionToPatch() argument
[all...]
H A Ddslm_inner_process.c87 uint32_t version = 0; in VerifyDeviceInfoResponse() local
92 ret = ParseDeviceSecInfoResponse(buff, &nonce, &version, &cred); in VerifyDeviceInfoResponse()
97 device->version = version; in VerifyDeviceInfoResponse()
/base/hiviewdfx/hiview/base/event_store/utility/reader/include/
H A Dcontent_reader_factory.h28 void Register(int8_t version, std::shared_ptr<ContentReader> reader);
29 std::shared_ptr<ContentReader> Get(int8_t version);
37 ReaderRegister(int8_t version, std::shared_ptr<ContentReader> reader) in ReaderRegister() argument
39 ContentReaderFactory::GetInstance().Register(version, reader); in ReaderRegister()
44 #define REGISTER_CONTENT_READER(version, className) \
49 const ReaderRegister Register##className::g_readerGegister(version, std::make_shared<className>())
/base/hiviewdfx/hiview/base/event_store/utility/reader/
H A Dcontent_reader_factory.cpp20 void ContentReaderFactory::Register(int8_t version, std::shared_ptr<ContentReader> reader) in Register() argument
22 readerMap_.insert(std::pair<int8_t, std::shared_ptr<ContentReader>>(version, reader)); in Register()
25 std::shared_ptr<ContentReader> ContentReaderFactory::Get(int8_t version) in Get() argument
27 auto itr = readerMap_.find(version); in Get()
/base/global/timezone/tool/update_tool/
H A Ddownload_iana.py33 version = file.readline().strip()
34 return version
37 def try_download(file_type, try_version, save_path, version):
38 if try_version == version:
39 print('current version is already the lastest version.')
59 def download(file_type, save_path, version):
65 print('start to find the lastest version of tzdata and tzcode.')
70 version)
95 version_file_path = file_dir + "/../../data/prebuild/posix/version
[all...]
/base/update/sys_installer/services/module_update/util/src/
H A Dmodule_ipc_helper.cpp22 void ReadSaVersion(MessageParcel &reply, SaVersion &version) in ReadSaVersion() argument
24 version.apiVersion = reply.ReadUint32(); in ReadSaVersion()
25 version.versionCode = reply.ReadUint32(); in ReadSaVersion()
26 version.patchVersion = reply.ReadUint32(); in ReadSaVersion()
29 void WriteSaVersion(MessageParcel &data, const SaVersion &version) in WriteSaVersion() argument
31 data.WriteUint32(version.apiVersion); in WriteSaVersion()
32 data.WriteUint32(version.versionCode); in WriteSaVersion()
33 data.WriteUint32(version.patchVersion); in WriteSaVersion()
40 ReadSaVersion(reply, info.version); in ReadSaInfo()
47 WriteSaVersion(data, info.version); in WriteSaInfo()
[all...]
H A Dmodule_file.cpp121 std::optional<string> version = package["version"].As<string>(); in ParseHmpVersionInfo() local
122 if (!version.has_value()) { in ParseHmpVersionInfo()
123 LOG(ERROR) << "Hmpinfo: Failed to get version val"; in ParseHmpVersionInfo()
132 versionInfo.version = version.value(); in ParseHmpVersionInfo()
162 LOG(ERROR) << "SaVersion: Invalid version: " << versionStr; in ParseSaVersion()
165 info.version.apiVersion = static_cast<uint32_t>(std::stoi(versionVec.at(API_VERSION_INDEX))); in ParseSaVersion()
166 info.version.versionCode = static_cast<uint32_t>(std::stoi(versionVec.at(VERSION_CODE_INDEX))); in ParseSaVersion()
167 info.version in ParseSaVersion()
359 ParseVersion(const string &version, const string &split, std::vector<string> &versionVec) ParseVersion() argument
[all...]
/base/security/security_guard/frameworks/common/collect/test/unittest/src/
H A Ddata_collect_kit_test.cpp92 static std::string version = "0"; in HWTEST_F() local
96 info.version = version.c_str(); in HWTEST_F()
114 static std::string version = "0"; in HWTEST_F() local
118 info.version = version.c_str(); in HWTEST_F()
136 static std::string version = "0"; in HWTEST_F() local
140 info.version = version.c_str(); in HWTEST_F()
158 static std::string version in HWTEST_F() local
180 static std::string version = "0"; HWTEST_F() local
[all...]
/base/telephony/core_service/utils/vcard/src/
H A Dvcard_decoder.cpp70 std::string version; in GetVersion() local
76 version = line.substr(index + std::string(VCARD_TYPE_VERSION).length() + 1); in GetVersion()
80 return version; in GetVersion()
83 std::shared_ptr<VCardDecoder> VCardDecoder::GetDecoder(const std::string &version) in GetDecoder() argument
85 TELEPHONY_LOGI("Get version result %{public}s", version.c_str()); in GetDecoder()
86 if (version.find(std::string(VERSION_30)) != std::string::npos) { in GetDecoder()
89 if (version.find(std::string(VERSION_40)) != std::string::npos) { in GetDecoder()
/base/security/access_token/services/common/database/src/
H A Dsqlite_helper.cpp29 SqliteHelper::SqliteHelper(const std::string& dbName, const std::string& dbPath, int32_t version) in SqliteHelper() argument
30 : dbName_(dbName), dbPath_(dbPath), currentVersion_(version), db_(nullptr) in SqliteHelper()
58 int32_t version = GetVersion(); in Open() local
59 if (version == currentVersion_) { in Open()
64 if (version == DataBaseVersion::VERISION_0) { in Open()
67 if (version < currentVersion_) { in Open()
68 OnUpdate(version); in Open()
170 int32_t version = 0; in GetVersion() local
172 version = statement.GetColumnInt(0); in GetVersion()
174 ACCESSTOKEN_LOG_INFO(LABEL, "Version: %{public}d", version); in GetVersion()
[all...]
/base/accesscontrol/sandbox_manager/services/common/database/src/
H A Dsqlite_helper.cpp26 SqliteHelper::SqliteHelper(const std::string &dbName, const std::string &dbPath, int32_t version) in SqliteHelper() argument
27 : dbName_(dbName), dbPath_(dbPath), currentVersion_(version), db_(nullptr) in SqliteHelper()
52 int32_t version = GetVersion(); in Open() local
53 if (version == currentVersion_) { in Open()
58 if (version == 0) { in Open()
61 if (version < currentVersion_) { in Open()
163 int32_t version = 0; in GetVersion() local
165 version = statement.GetColumnInt(0); in GetVersion()
167 SANDBOXMANAGER_LOG_INFO(LABEL, "version: %{public}d", version); in GetVersion()
[all...]
/base/security/dlp_permission_service/interfaces/inner_api/dlp_permission/src/
H A Ddlp_permission_public_interface.cpp51 uint32_t version = params.version; in GenerateDlpGeneralInfo() local
53 uint32_t version = CURRENT_VERSION; in GenerateDlpGeneralInfo() local
56 dlp_general_info[DLP_VERSION_LOW_CAMEL_CASE] = version; in GenerateDlpGeneralInfo()
66 if (version >= HMAC_VERSION) { in GenerateDlpGeneralInfo()
83 params.version = jsonObj.at(DLP_VERSION).get<uint32_t>(); in ParseDlpGeneralInfo()
86 params.version = jsonObj.at(DLP_VERSION_LOW_CAMEL_CASE).get<uint32_t>(); in ParseDlpGeneralInfo()
107 } else if (params.version >= HMAC_VERSION) { in ParseDlpGeneralInfo()
/base/startup/appspawn/service/hnp/base/
H A Dhnp_json.c96 cJSON *versionItem = cJSON_GetObjectItem(json, "version"); in ParseJsonStreamToHnpCfgInfo()
98 HNP_LOGE("get version info in cfg unsuccess."); in ParseJsonStreamToHnpCfgInfo()
101 ret = strcpy_s(hnpCfg->version, HNP_VERSION_LEN, versionItem->valuestring); in ParseJsonStreamToHnpCfgInfo()
173 cJSON_AddStringToObject(root, "version", hnpCfg->version); in GetHnpJsonBuff()
203 const char *version) in HnpInstallHnpExistCheck()
216 if (version == NULL) { in HnpInstallHnpExistCheck()
219 if ((versionJson != NULL) && (strcmp(versionJson->valuestring, version) == 0)) { in HnpInstallHnpExistCheck()
240 cJSON *version = cJSON_GetObjectItem(hnpItem, "current_version"); in HnpPackageVersionUpdateAll() local
241 if (version in HnpPackageVersionUpdateAll()
202 HnpInstallHnpExistCheck(cJSON *hnpItemArr, const char *name, cJSON **hnpItemOut, int *hnpIndex, const char *version) HnpInstallHnpExistCheck() argument
377 HnpOtherPackageInstallCheck(const char *name, const char *version, int packageIndex, cJSON *json) HnpOtherPackageInstallCheck() argument
472 cJSON *version = cJSON_GetObjectItem(hnpItem, "current_version"); HnpPackageInfoGet() local
498 HnpPackageInfoHnpDelete(const char *packageName, const char *name, const char *version) HnpPackageInfoHnpDelete() argument
579 char *version = NULL; HnpNeedUnInstallHnpVersionGet() local
606 char *version = NULL; HnpCurrentVersionGet() local
650 char *version = NULL; HnpCurrentVersionUninstallCheck() local
[all...]
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
H A Dprovision_verify_test.cpp34 "version-name": "1.0.0",
39 "version-code": 2,
40 "version-name": "1.1.0",
59 "version-code": 2,
60 "version-name": "2.0.0",
79 "version-code": 2,
80 "version-name": "2.0.0",
99 "version-code": 3,
100 "version-name": "3.0.0",
125 "version
[all...]
/base/security/device_auth/services/legacy/authenticators/inc/account_unrelated/
H A Ddas_version_util.h63 int32_t VersionToString(const VersionStruct *version, char *verStr, uint32_t len);
64 int32_t StringToVersion(const char* verStr, VersionStruct* version);
66 int32_t AddSingleVersionToJson(CJson *jsonObj, const VersionStruct *version);
67 int32_t GetSingleVersionFromJson(const CJson* jsonObj, VersionStruct *version);
68 void InitGroupAndModuleVersion(VersionStruct *version);
/base/security/security_guard/test/unittest/mock/rdb/
H A Drdb_helper.h35 const RdbStoreConfig &config, int version, RdbOpenCallback &openCallback, int &errCode) = 0;
42 MOCK_METHOD4(GetRdbStore, std::shared_ptr<RdbStore>(const RdbStoreConfig &config, int version,
49 const RdbStoreConfig &config, int version, RdbOpenCallback &openCallback, int &errCode) in GetRdbStore()
54 return instance_->GetRdbStore(config, version, openCallback, errCode); in GetRdbStore()
48 GetRdbStore( const RdbStoreConfig &config, int version, RdbOpenCallback &openCallback, int &errCode) GetRdbStore() argument
/base/security/security_guard/test/fuzztest/collect/reportsecurityinfo_fuzzer/
H A Dreport_security_info_fuzzer.cpp35 std::string version(reinterpret_cast<const char*>(data), size); in ReportSecurityInfoFuzzTest()
36 info.version = version.c_str(); in ReportSecurityInfoFuzzTest()
/base/security/huks/interfaces/kits/napi/src/v8/
H A Dhuks_napi_get_sdk_version.cpp51 napi_value version = nullptr; in HuksNapiGetSdkVersion() local
52 napi_create_string_latin1(env, reinterpret_cast<const char *>(sdkVersion->data), NAPI_AUTO_LENGTH, &version); in HuksNapiGetSdkVersion()
55 return version; in HuksNapiGetSdkVersion()
/base/hiviewdfx/hiview/base/event_store/test/unittest/common/
H A Dsys_event_store_utility_test.cpp102 ASSERT_GT(header.version, 0); in TestHeaderOfDocReader()
203 auto version = ContentReader::ReadFmtVersion(dbFileStream); in HWTEST_F() local
204 ASSERT_EQ(version, EventStore::EVENT_DATA_FORMATE_VERSION::VERSION1); in HWTEST_F()
205 std::shared_ptr<ContentReader> reader = ContentReaderFactory::GetInstance().Get(version); in HWTEST_F()
212 ASSERT_EQ(header.version, EventStore::EVENT_DATA_FORMATE_VERSION::VERSION1); in HWTEST_F()
217 version = ContentReader::ReadFmtVersion(dbFileStream); in HWTEST_F()
218 ASSERT_EQ(version, EventStore::EVENT_DATA_FORMATE_VERSION::VERSION2); in HWTEST_F()
219 reader = ContentReaderFactory::GetInstance().Get(version); in HWTEST_F()
223 ASSERT_EQ(header.version, EventStore::EVENT_DATA_FORMATE_VERSION::VERSION2); in HWTEST_F()
238 auto version in HWTEST_F() local
[all...]
/base/telephony/sms_mms/frameworks/js/napi/include/
H A Dnapi_mms.h71 uint16_t version = 0; member
79 uint16_t version = DEFAULT_ERROR; member
98 uint16_t version = DEFAULT_ERROR; member
110 uint16_t version = DEFAULT_ERROR; member
118 uint16_t version = DEFAULT_ERROR; member
134 uint16_t version = DEFAULT_ERROR; member
143 uint16_t version = DEFAULT_ERROR; member
147 uint16_t version = DEFAULT_ERROR; member
156 uint16_t version = DEFAULT_ERROR; member
/base/security/selinux_adapter/scripts/
H A Dbuild_policy_api.py156 def add_version(version, string):
157 return "".join([string, "_", version])
164 def deal_with_roletype(version, cil_write, elem_list, type_set, file, line):
171 cil_write.write('(typeattribute ' + add_version(version, sub_string) + ')\n')
173 sub_string, add_version(version, sub_string))
177 def deal_with_typeattribute(version, cil_write, elem_list, type_set, file, line):
185 sub_string, add_version(version, sub_string))
189 def deal_with_typeattributeset(version, cil_write, elem_list, type_set, file, line):
197 elem_list[index + 1] = elem.replace(sub_string, add_version(version, sub_string))
201 def deal_with_policy(version, cil_writ
[all...]
/base/hiviewdfx/hiview/plugins/event_store/event_export/task/include/
H A Devent_write_handler.h31 // event version
32 std::string version; member
43 CachedEvent(std::string& version, std::string& domain, std::string& name, std::string& eventStr) in CachedEvent()
44 : version(version), domain(domain), name(name), eventStr(eventStr) {} in CachedEvent()
51 // item: <system version, domain, sequecen, sysevent content>
80 // <key: <module name, system version>, value: writer>
/base/request/request/test/unittest/cpp_test/fwkTest/src/
H A Drequest_test.cpp136 notifyData->version = Version::API9; in HWTEST_F()
144 notifyData->version = Version::API10; in HWTEST_F()
149 notifyData->version = Version::API9; in HWTEST_F()
168 notifyData->version = Version::API10; in HWTEST_F()
172 notifyData->version = Version::API9; in HWTEST_F()
176 notifyData->version = Version::API10; in HWTEST_F()
179 notifyData->version = Version::API10; in HWTEST_F()
182 notifyData->version = Version::API9; in HWTEST_F()
185 notifyData->version = Version::API9; in HWTEST_F()
204 notifyData->version in HWTEST_F()
[all...]
/base/security/security_guard/frameworks/common/collect/src/
H A Devent_info.cpp19 EventInfo::EventInfo(int64_t eventId, std::string version, std::string content) in EventInfo() argument
22 version_ = version; in EventInfo()

Completed in 15 milliseconds

12345678910>>...18