/ohos5.0/base/global/i18n/services/test/unittest/src/ |
H A D | i18n_service_test.cpp | 121 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 159 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 197 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 237 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 250 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 288 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 290 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 303 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 305 EXPECT_EQ(err, I18nErrorCode::SUCCESS); 330 EXPECT_EQ(err, I18nErrorCode::SUCCESS); [all …]
|
/ohos5.0/base/global/i18n/services/src/ |
H A D | i18n_service_ability_client.cpp | 25 sptr<II18nServiceAbility> I18nServiceAbilityClient::GetProxy(I18nErrorCode &err) in GetProxy() 34 err = I18nErrorCode::LOAD_SA_FAILED; in GetProxy() 42 I18nErrorCode err = I18nErrorCode::SUCCESS; in SetSystemLanguage() 52 I18nErrorCode err = I18nErrorCode::SUCCESS; in SetSystemRegion() 62 I18nErrorCode err = I18nErrorCode::SUCCESS; in SetSystemLocale() 72 I18nErrorCode err = I18nErrorCode::SUCCESS; in Set24HourClock() 80 I18nErrorCode I18nServiceAbilityClient::SetUsingLocalDigit(bool flag) in SetUsingLocalDigit() 82 I18nErrorCode err = I18nErrorCode::SUCCESS; in SetUsingLocalDigit() 92 I18nErrorCode err = I18nErrorCode::SUCCESS; in AddPreferredLanguage() 100 I18nErrorCode I18nServiceAbilityClient::RemovePreferredLanguage(int32_t index) in RemovePreferredLanguage() [all …]
|
H A D | i18n_service_ability_stub.cpp | 115 return I18nErrorCode::SUCCESS; in CheckPermission() 123 if (err != I18nErrorCode::SUCCESS) { in SetSystemLanguageInner() 129 if (err != I18nErrorCode::SUCCESS) { in SetSystemLanguageInner() 143 if (err != I18nErrorCode::SUCCESS) { in SetSystemRegionInner() 149 if (err != I18nErrorCode::SUCCESS) { in SetSystemRegionInner() 163 if (err != I18nErrorCode::SUCCESS) { in SetSystemLocaleInner() 169 if (err != I18nErrorCode::SUCCESS) { in SetSystemLocaleInner() 183 if (err != I18nErrorCode::SUCCESS) { in Set24HourClockInner() 189 if (err != I18nErrorCode::SUCCESS) { in Set24HourClockInner() 203 if (err != I18nErrorCode::SUCCESS) { in SetUsingLocalDigitInner() [all …]
|
H A D | i18n_service_ability_proxy.cpp | 30 I18nErrorCode I18nServiceAbilityProxy::SetSystemLanguage(const std::string &language) in SetSystemLanguage() 42 I18nErrorCode I18nServiceAbilityProxy::SetSystemRegion(const std::string ®ion) in SetSystemRegion() 54 I18nErrorCode I18nServiceAbilityProxy::SetSystemLocale(const std::string &locale) in SetSystemLocale() 66 I18nErrorCode I18nServiceAbilityProxy::Set24HourClock(const std::string &flag) in Set24HourClock() 78 I18nErrorCode I18nServiceAbilityProxy::SetUsingLocalDigit(bool flag) in SetUsingLocalDigit() 90 I18nErrorCode I18nServiceAbilityProxy::AddPreferredLanguage(const std::string &language, int32_t in… in AddPreferredLanguage() 103 I18nErrorCode I18nServiceAbilityProxy::RemovePreferredLanguage(int32_t index) in RemovePreferredLanguage() 115 I18nErrorCode I18nServiceAbilityProxy::ProcessReply(int32_t reply) in ProcessReply() 117 I18nErrorCode err = static_cast<I18nErrorCode>(reply); in ProcessReply() 118 if (err != I18nErrorCode::SUCCESS) { in ProcessReply()
|
H A D | i18n_service_ability.cpp | 44 I18nErrorCode I18nServiceAbility::SetSystemLanguage(const std::string &language) in SetSystemLanguage() 49 I18nErrorCode I18nServiceAbility::SetSystemRegion(const std::string ®ion) in SetSystemRegion() 54 I18nErrorCode I18nServiceAbility::SetSystemLocale(const std::string &locale) in SetSystemLocale() 59 I18nErrorCode I18nServiceAbility::Set24HourClock(const std::string &flag) in Set24HourClock() 64 I18nErrorCode I18nServiceAbility::SetUsingLocalDigit(bool flag) in SetUsingLocalDigit() 69 I18nErrorCode I18nServiceAbility::AddPreferredLanguage(const std::string &language, int32_t index) in AddPreferredLanguage() 74 I18nErrorCode I18nServiceAbility::RemovePreferredLanguage(int32_t index) in RemovePreferredLanguage()
|
/ohos5.0/base/global/i18n/services/include/ |
H A D | i18n_service_ability_client.h | 38 static I18nErrorCode SetSystemLanguage(const std::string &language); 46 static I18nErrorCode SetSystemRegion(const std::string ®ion); 54 static I18nErrorCode SetSystemLocale(const std::string &locale); 64 static I18nErrorCode Set24HourClock(const std::string &flag); 73 static I18nErrorCode SetUsingLocalDigit(bool flag); 82 static I18nErrorCode AddPreferredLanguage(const std::string &language, int32_t index); 90 static I18nErrorCode RemovePreferredLanguage(int32_t index); 99 static sptr<II18nServiceAbility> GetProxy(I18nErrorCode &err);
|
H A D | i18n_service_ability_proxy.h | 40 I18nErrorCode SetSystemLanguage(const std::string &language); 48 I18nErrorCode SetSystemRegion(const std::string ®ion); 56 I18nErrorCode SetSystemLocale(const std::string &locale); 66 I18nErrorCode Set24HourClock(const std::string &flag); 75 I18nErrorCode SetUsingLocalDigit(bool flag); 84 I18nErrorCode AddPreferredLanguage(const std::string &language, int32_t index); 92 I18nErrorCode RemovePreferredLanguage(int32_t index); 95 static I18nErrorCode ProcessReply(int32_t reply);
|
H A D | ii18n_service_ability.h | 29 virtual I18nErrorCode SetSystemLanguage(const std::string &language) = 0; 30 virtual I18nErrorCode SetSystemRegion(const std::string ®ion) = 0; 31 virtual I18nErrorCode SetSystemLocale(const std::string &locale) = 0; 32 virtual I18nErrorCode Set24HourClock(const std::string &flag) = 0; 33 virtual I18nErrorCode SetUsingLocalDigit(bool flag) = 0; 34 virtual I18nErrorCode AddPreferredLanguage(const std::string &language, int32_t index) = 0; 35 virtual I18nErrorCode RemovePreferredLanguage(int32_t index) = 0;
|
H A D | i18n_service_ability.h | 34 I18nErrorCode SetSystemLanguage(const std::string &language) override; 35 I18nErrorCode SetSystemRegion(const std::string ®ion) override; 36 I18nErrorCode SetSystemLocale(const std::string &locale) override; 37 I18nErrorCode Set24HourClock(const std::string &flag) override; 38 I18nErrorCode SetUsingLocalDigit(bool flag) override; 39 I18nErrorCode AddPreferredLanguage(const std::string &language, int32_t index) override; 40 I18nErrorCode RemovePreferredLanguage(int32_t index) override;
|
/ohos5.0/base/global/i18n/frameworks/intl/src/ |
H A D | preferred_language.cpp | 198 errCode = I18nErrorCode::FAILED; in SetAppPreferredLanguage() 204 errCode = I18nErrorCode::FAILED; in SetAppPreferredLanguage() 271 return I18nErrorCode::INVALID_LANGUAGE_TAG; in AddPreferredLanguage() 274 I18nErrorCode status = I18nErrorCode::SUCCESS; in AddPreferredLanguage() 282 if (status != I18nErrorCode::SUCCESS) { in AddPreferredLanguage() 294 return I18nErrorCode::REMOVE_PREFERRED_LANGUAGE_FAILED; in RemovePreferredLanguage() 304 return I18nErrorCode::REMOVE_PREFERRED_LANGUAGE_FAILED; in RemovePreferredLanguage() 326 errCode = I18nErrorCode::SUCCESS; in AddNonExistPreferredLanguage() 337 errCode = I18nErrorCode::ADD_PREFERRED_LANGUAGE_EXIST_FAILED; in AddExistPreferredLanguage() 353 errCode = I18nErrorCode::SUCCESS; in AddExistPreferredLanguage() [all …]
|
H A D | i18n_normalizer.cpp | 20 I18nNormalizer::I18nNormalizer(I18nNormalizerMode mode, I18nErrorCode &errorCode) in I18nNormalizer() 34 errorCode = I18nErrorCode::FAILED; in I18nNormalizer() 42 std::string I18nNormalizer::Normalize(const char *text, int32_t length, I18nErrorCode &errorCode) in Normalize() 52 errorCode = I18nErrorCode::FAILED; in Normalize()
|
H A D | system_locale_manager.cpp | 47 const SortOptions &options, I18nErrorCode &status) in GetLanguageInfoArray() 50 status = I18nErrorCode::SUCCESS; in GetLanguageInfoArray() 52 status = I18nErrorCode::NOT_SYSTEM_APP; in GetLanguageInfoArray() 94 const SortOptions &options, I18nErrorCode &status) in GetCountryInfoArray() 97 status = I18nErrorCode::SUCCESS; in GetCountryInfoArray() 99 status = I18nErrorCode::NOT_SYSTEM_APP; in GetCountryInfoArray() 164 std::vector<TimeZoneCityItem> SystemLocaleManager::GetTimezoneCityInfoArray(I18nErrorCode& status) in GetTimezoneCityInfoArray() 167 status = I18nErrorCode::SUCCESS; in GetTimezoneCityInfoArray() 169 status = I18nErrorCode::NOT_SYSTEM_APP; in GetTimezoneCityInfoArray()
|
H A D | locale_config.cpp | 1198 return I18nErrorCode::INVALID_LANGUAGE_TAG; in SetSystemLanguage() 1208 return I18nErrorCode::SUCCESS; in SetSystemLanguage() 1213 return I18nErrorCode::UPDATE_SYSTEM_LANGUAGE_FAILED; in SetSystemLanguage() 1221 return I18nErrorCode::INVALID_REGION_TAG; in SetSystemRegion() 1238 return I18nErrorCode::INVALID_LOCALE_TAG; in SetSystemLocale() 1247 return I18nErrorCode::SUCCESS; in SetSystemLocale() 1263 return I18nErrorCode::INVALID_24_HOUR_CLOCK_TAG; in Set24HourClock() 1274 return I18nErrorCode::SUCCESS; in Set24HourClock() 1278 I18nErrorCode LocaleConfig::SetUsingLocalDigit(bool flag) in SetUsingLocalDigit() 1286 return I18nErrorCode::UPDATE_LOCAL_DIGIT_FAILED; in SetUsingLocalDigit() [all …]
|
/ohos5.0/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | locale_config_test.cpp | 115 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 117 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 130 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 132 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 144 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 146 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 148 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 150 EXPECT_EQ(status, I18nErrorCode::INVALID_REGION_TAG); 324 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 392 EXPECT_EQ(status, I18nErrorCode::SUCCESS); [all …]
|
H A D | i18n_test.cpp | 69 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 71 EXPECT_EQ(status, I18nErrorCode::SUCCESS); 76 I18nErrorCode errCode = I18nErrorCode::SUCCESS; 78 EXPECT_EQ(errCode, I18nErrorCode::SUCCESS); 91 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; 93 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); 97 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); 103 EXPECT_EQ(errorCode, I18nErrorCode::SUCCESS); 123 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; 153 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; [all …]
|
/ohos5.0/base/global/i18n/interfaces/native/inner_api/preferred_language/include/ |
H A D | preferred_language.h | 38 static I18nErrorCode AddPreferredLanguage(const std::string &language, int32_t index); 46 static I18nErrorCode RemovePreferredLanguage(int32_t index); 74 static void SetAppPreferredLanguage(const std::string &language, I18nErrorCode &errCode); 127 std::vector<std::string> &preferredLanguages, I18nErrorCode &errCode); 138 std::vector<std::string> &preferredLanguages, I18nErrorCode &errCode); 154 static I18nErrorCode SetPreferredLanguages(const std::string &preferredLanguages);
|
/ohos5.0/base/global/i18n/frameworks/intl/include/ |
H A D | locale_config.h | 46 static I18nErrorCode SetSystemLanguage(const std::string &languageTag); 54 static I18nErrorCode SetSystemRegion(const std::string ®ionTag); 62 static I18nErrorCode SetSystemLocale(const std::string &localeTag); 72 static I18nErrorCode Set24HourClock(const std::string &option); 81 static I18nErrorCode SetUsingLocalDigit(bool flag); 113 static I18nErrorCode UpdateSystemLocale(const std::string &language); 197 static I18nErrorCode PublishCommonEvent(const std::string &eventType);
|
H A D | system_locale_manager.h | 97 const SortOptions &options, I18nErrorCode &status); 107 I18nErrorCode &status); 114 static std::vector<TimeZoneCityItem> GetTimezoneCityInfoArray(I18nErrorCode &status);
|
H A D | i18n_normalizer.h | 27 I18nNormalizer(I18nNormalizerMode mode, I18nErrorCode &errorCode); 29 std::string Normalize(const char *text, int32_t length, I18nErrorCode &errorCode);
|
/ohos5.0/base/global/i18n/interfaces/js/kits/src/ |
H A D | i18n_system_addon.cpp | 326 I18nErrorCode errCode = I18nErrorCode::SUCCESS; in SetAppPreferredLanguage() 328 if (errCode != I18nErrorCode::SUCCESS) { in SetAppPreferredLanguage() 613 bool success = err == I18nErrorCode::SUCCESS; in SetSystemLanguageImpl() 654 bool success = err == I18nErrorCode::SUCCESS; in SetSystemRegionImpl() 695 bool success = err == I18nErrorCode::SUCCESS; in SetSystemLocaleImpl() 736 bool success = err == I18nErrorCode::SUCCESS; in Set24HourClockImpl() 779 if (err == I18nErrorCode::NO_PERMISSION) { in AddPreferredLanguageImpl() 782 if (err != I18nErrorCode::SUCCESS) { in AddPreferredLanguageImpl() 788 if (err != I18nErrorCode::SUCCESS) { in AddPreferredLanguageImpl() 835 bool success = err == I18nErrorCode::SUCCESS; in RemovePreferredLanguageImpl() [all …]
|
H A D | i18n_normalizer_addon.cpp | 132 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in I18nNormalizerConstructor() 134 if (errorCode != I18nErrorCode::SUCCESS || !obj->normalizer_) { in I18nNormalizerConstructor() 174 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in Normalize() 177 if (errorCode != I18nErrorCode::SUCCESS) { in Normalize()
|
H A D | system_locale_manager_addon.cpp | 135 I18nErrorCode err; in GetLanguageInfoArray() 138 if (err == I18nErrorCode::NOT_SYSTEM_APP) { in GetLanguageInfoArray() 174 I18nErrorCode err; in GetCountryInfoArray() 176 if (err == I18nErrorCode::NOT_SYSTEM_APP) { in GetCountryInfoArray() 186 I18nErrorCode err; in GetTimeZoneCityInfoArray() 188 if (err == I18nErrorCode::NOT_SYSTEM_APP) { in GetTimeZoneCityInfoArray()
|
/ohos5.0/base/global/i18n/frameworks/intl/test/fuzztest/normalizer_fuzzer/ |
H A D | normalizer_fuzzer.cpp | 32 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/ |
H A D | timezone_fuzzer.cpp | 47 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in DoSomethingInterestingWithMyAPI()
|
/ohos5.0/base/global/i18n/frameworks/zone/src/ |
H A D | zone_util.cpp | 271 I18nErrorCode status = I18nErrorCode::SUCCESS; in LookupTimezoneByNITZ() 273 if (status != I18nErrorCode::SUCCESS) { in LookupTimezoneByNITZ() 433 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in GetICUCountryZones() 435 if (errorCode != I18nErrorCode::SUCCESS) { in GetICUCountryZones()
|