Home
last modified time | relevance | path

Searched refs:units (Results 1 – 9 of 9) sorted by relevance

/base/global/i18n/frameworks/intl/src/
Dmeasure_data.cpp316 void GetDefaultPreferredUnit(const string &region, const string &type, vector<string> &units) in GetDefaultPreferredUnit() argument
321 units.assign(USAGE_DEFAULT_GB.at(type).begin(), USAGE_DEFAULT_GB.at(type).end()); in GetDefaultPreferredUnit()
327 units.assign(USAGE_DEFAULT_US.at(type).begin(), USAGE_DEFAULT_US.at(type).end()); in GetDefaultPreferredUnit()
333 units.assign(USAGE_DEFAULT_001.at(type).begin(), USAGE_DEFAULT_001.at(type).end()); in GetDefaultPreferredUnit()
340 void GetFallbackPreferredUnit(const string &region, const string &usage, vector<string> &units) in GetFallbackPreferredUnit() argument
345 units.assign(USAGE_MX.at(usage).begin(), USAGE_MX.at(usage).end()); in GetFallbackPreferredUnit()
352 units.assign(USAGE_NL.at(usage).begin(), USAGE_NL.at(usage).end()); in GetFallbackPreferredUnit()
361 units.assign(USAGE_NO.at(usage).begin(), USAGE_NO.at(usage).end()); in GetFallbackPreferredUnit()
368 units.assign(USAGE_SE.at(usage).begin(), USAGE_SE.at(usage).end()); in GetFallbackPreferredUnit()
375 units.assign(USAGE_US.at(usage).begin(), USAGE_US.at(usage).end()); in GetFallbackPreferredUnit()
[all …]
/base/global/i18n/frameworks/intl/include/
Dmeasure_data.h26 …PreferredUnit(const std::string &region, const std::string &type, std::vector<std::string> &units);
27 …referredUnit(const std::string &region, const std::string &usage, std::vector<std::string> &units);
28 …referredUnit(const std::string &region, const std::string &usage, std::vector<std::string> &units);
29 …referredUnit(const std::string &region, const std::string &usage, std::vector<std::string> &units);
/base/global/i18n_lite/frameworks/i18n/src/
Dmeasure_format_impl.cpp106 if (target.compare(units[i]) == 0) { in SearchUnits()
178 if (units != nullptr || formattedUnits != nullptr) { in Init()
234 units = new std::string[unitCount]; in ParseUnits()
235 if (units == nullptr) { in ParseUnits()
249 units[count] = std::string(unitsList, begin, end - begin); in ParseUnits()
255 units[count] = std::string(unitsList, begin, end - begin); in ParseUnits()
288 if (units != nullptr) { in DeallocateMemory()
289 delete[] units; in DeallocateMemory()
290 units = nullptr; in DeallocateMemory()
/base/global/i18n/frameworks/intl/test/unittest/
Di18n_test.cpp345 std::vector<std::string> units; variable
347 GetDefaultPreferredUnit(regionTags[i], usage, units);
348 EXPECT_EQ(units.size(), 3);
349 units.clear();
362 std::vector<std::string> units; variable
364 GetFallbackPreferredUnit(regionTags1[i], usage, units);
365 EXPECT_EQ(units.size(), 2);
366 units.clear();
371 GetFallbackPreferredUnit(regionTag2, usage, units);
372 EXPECT_EQ(units.size(), 2);
[all …]
/base/global/i18n_lite/tools/i18n-dat-tool/src/main/java/ohos/global/i18n/
DDataFetcher.java307 String[] units = values[1].split("\\|"); in getMeasureDataUnit() local
313 for (int i = 0; i < units.length; i++) { in getMeasureDataUnit()
323 unitsJson.put(units[i], typedUnitsJson); in getMeasureDataUnit()
343 JSONObject units = getMeasureDataUnit(values); in writeMeasureData() local
344 languageJson.put("units", units); in writeMeasureData()
/base/global/i18n_lite/frameworks/i18n/include/
Dmeasure_format_impl.h56 std::string *units = nullptr; variable
/base/startup/appspawn/interfaces/innerkits_new/client/
Dappspawn_msg.c235 uint32_t units = CalcFlagsUnits(maxCount); in SetFlagsTlv() local
236 …WN_LOGV("SetFlagsTlv maxCount %{public}d type %{public}d units %{public}d", maxCount, type, units); in SetFlagsTlv()
237 uint32_t flagsLen = sizeof(AppSpawnTlv) + sizeof(AppSpawnMsgFlags) + sizeof(uint32_t) * units; in SetFlagsTlv()
245 (*msgFlags)->count = units; in SetFlagsTlv()
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_attest.c426 uint32_t units = start[1] - '0'; in AddYears() local
427 units += years; in AddYears()
428 tens += units / 10; /* 10 is base */ in AddYears()
429 units %= 10; /* 10 is base */ in AddYears()
431 end[1] = units + '0'; in AddYears()
/base/security/device_security_level/
DREADME.md27 … attacks simulated in labs. Devices at this level must have high-security units, such as dedicated…