/base/global/i18n/frameworks/intl/src/ |
D | measure_data.cpp | 316 void GetDefaultPreferredUnit(const string ®ion, 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 ®ion, 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/ |
D | measure_data.h | 26 …PreferredUnit(const std::string ®ion, const std::string &type, std::vector<std::string> &units); 27 …referredUnit(const std::string ®ion, const std::string &usage, std::vector<std::string> &units); 28 …referredUnit(const std::string ®ion, const std::string &usage, std::vector<std::string> &units); 29 …referredUnit(const std::string ®ion, const std::string &usage, std::vector<std::string> &units);
|
/base/global/i18n_lite/frameworks/i18n/src/ |
D | measure_format_impl.cpp | 106 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/ |
D | i18n_test.cpp | 345 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/ |
D | DataFetcher.java | 307 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/ |
D | measure_format_impl.h | 56 std::string *units = nullptr; variable
|
/base/startup/appspawn/interfaces/innerkits_new/client/ |
D | appspawn_msg.c | 235 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/ |
D | dcm_attest.c | 426 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/ |
D | README.md | 27 … attacks simulated in labs. Devices at this level must have high-security units, such as dedicated…
|