Home
last modified time | relevance | path

Searched refs:I18nErrorCode (Results 1 – 25 of 35) sorted by relevance

12

/ohos5.0/base/global/i18n/services/test/unittest/src/
H A Di18n_service_test.cpp121 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 Di18n_service_ability_client.cpp25 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 Di18n_service_ability_stub.cpp115 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 Di18n_service_ability_proxy.cpp30 I18nErrorCode I18nServiceAbilityProxy::SetSystemLanguage(const std::string &language) in SetSystemLanguage()
42 I18nErrorCode I18nServiceAbilityProxy::SetSystemRegion(const std::string &region) 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 Di18n_service_ability.cpp44 I18nErrorCode I18nServiceAbility::SetSystemLanguage(const std::string &language) in SetSystemLanguage()
49 I18nErrorCode I18nServiceAbility::SetSystemRegion(const std::string &region) 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 Di18n_service_ability_client.h38 static I18nErrorCode SetSystemLanguage(const std::string &language);
46 static I18nErrorCode SetSystemRegion(const std::string &region);
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 Di18n_service_ability_proxy.h40 I18nErrorCode SetSystemLanguage(const std::string &language);
48 I18nErrorCode SetSystemRegion(const std::string &region);
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 Dii18n_service_ability.h29 virtual I18nErrorCode SetSystemLanguage(const std::string &language) = 0;
30 virtual I18nErrorCode SetSystemRegion(const std::string &region) = 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 Di18n_service_ability.h34 I18nErrorCode SetSystemLanguage(const std::string &language) override;
35 I18nErrorCode SetSystemRegion(const std::string &region) 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 Dpreferred_language.cpp198 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 Di18n_normalizer.cpp20 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 Dsystem_locale_manager.cpp47 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 Dlocale_config.cpp1198 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 Dlocale_config_test.cpp115 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 Di18n_test.cpp69 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 Dpreferred_language.h38 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 Dlocale_config.h46 static I18nErrorCode SetSystemLanguage(const std::string &languageTag);
54 static I18nErrorCode SetSystemRegion(const std::string &regionTag);
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 Dsystem_locale_manager.h97 const SortOptions &options, I18nErrorCode &status);
107 I18nErrorCode &status);
114 static std::vector<TimeZoneCityItem> GetTimezoneCityInfoArray(I18nErrorCode &status);
H A Di18n_normalizer.h27 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 Di18n_system_addon.cpp326 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 Di18n_normalizer_addon.cpp132 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 Dsystem_locale_manager_addon.cpp135 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 Dnormalizer_fuzzer.cpp32 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/global/i18n/frameworks/intl/test/fuzztest/timezone_fuzzer/
H A Dtimezone_fuzzer.cpp47 I18nErrorCode errorCode = I18nErrorCode::SUCCESS; in DoSomethingInterestingWithMyAPI()
/ohos5.0/base/global/i18n/frameworks/zone/src/
H A Dzone_util.cpp271 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()

12