/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/ |
H A D | res_config_impl_test.cpp | 498 * @tc.desc: Test ResConfig IsMoreSuitable 506 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 507 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F() 515 * @tc.desc: Test ResConfig IsMoreSuitable 523 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 524 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F() 532 * @tc.desc: Test ResConfig IsMoreSuitable 540 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 541 EXPECT_FALSE(other->IsMoreSuitable(current, request)); in HWTEST_F() 549 * @tc.desc: Test ResConfig IsMoreSuitable [all...] |
/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
H A D | res_config_impl_test.cpp | 597 * @tc.desc: Test ResConfig IsMoreSuitable 605 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 606 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F() 611 * @tc.desc: Test ResConfig IsMoreSuitable 619 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 620 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F() 625 EXPECT_TRUE(current->IsMoreSuitable(other, request)); in HWTEST_F() 626 EXPECT_TRUE(other->IsMoreSuitable(current, request)); in HWTEST_F() 631 * @tc.desc: Test ResConfig IsMoreSuitable 639 EXPECT_TRUE(current->IsMoreSuitable(othe in HWTEST_F() [all...] |
/base/global/resource_management/frameworks/resmgr/include/ |
H A D | locale_matcher.h | 24 static int8_t IsMoreSuitable(const ResLocale *current,
|
H A D | res_config_impl.h | 40 bool IsMoreSuitable(const std::shared_ptr<ResConfigImpl> other, const std::shared_ptr<ResConfigImpl> request,
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
H A D | locale_matcher.h | 24 static int8_t IsMoreSuitable(const ResLocale *current,
|
H A D | res_config_impl.h | 38 bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request) const;
|
/base/global/resource_management_lite/frameworks/resmgr_lite/src/ |
H A D | res_config_impl.cpp | 212 bool ResConfigImpl::IsMoreSuitable(const ResConfigImpl *other, in IsMoreSuitable() function in OHOS::Global::Resource::ResConfigImpl 217 LocaleMatcher::IsMoreSuitable(this->GetResLocale(), other->GetResLocale(), in IsMoreSuitable()
|
H A D | hap_manager.cpp | 144 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig)) { in FindQualifierValueByName() 176 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig)) { in FindQualifierValueById()
|
H A D | res_locale.cpp | 459 if (LocaleMatcher::IsMoreSuitable(tempCandidate.at(j), tempCandidate.at(j + 1), currentLocale) <= 0) { in FindAndSort()
|
H A D | locale_matcher.cpp | 601 int8_t LocaleMatcher::IsMoreSuitable(const ResLocale *current, in IsMoreSuitable() function in OHOS::Global::Resource::LocaleMatcher
|
/base/global/i18n/interfaces/native/inner_api/i18n/include/ |
H A D | locale_matcher.h | 44 static int8_t IsMoreSuitable(const LocaleInfo *current, const LocaleInfo *other, const LocaleInfo *request);
|
/base/global/i18n/frameworks/intl/test/unittest/ |
H A D | intl_test_extent.cpp | 998 LocaleMatcher::IsMoreSuitable(nullptr, other, nullptr); in HWTEST_F() 999 LocaleMatcher::IsMoreSuitable(nullptr, nullptr, nullptr); in HWTEST_F() 1003 LocaleMatcher::IsMoreSuitable(currentHE.get(), otherIW.get(), request); in HWTEST_F() 1005 LocaleMatcher::IsMoreSuitable(currentTL, other, request); in HWTEST_F() 1006 LocaleMatcher::IsMoreSuitable(other, currentTL, request); in HWTEST_F() 1009 LocaleMatcher::IsMoreSuitable(currentJI, otherYI, request); in HWTEST_F() 1010 LocaleMatcher::IsMoreSuitable(otherYI, currentJI, request); in HWTEST_F() 1013 LocaleMatcher::IsMoreSuitable(currentJW.get(), otherJV.get(), request); in HWTEST_F() 1014 LocaleMatcher::IsMoreSuitable(otherJV.get(), currentJW.get(), request); in HWTEST_F() 1017 LocaleMatcher::IsMoreSuitable(currentI in HWTEST_F() [all...] |
H A D | i18n_test.cpp | 1394 int8_t res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F() 1399 res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F() 1404 res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F() 1408 res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F() 1417 res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F() 1422 res = LocaleMatcher::IsMoreSuitable(current, other, request); in HWTEST_F()
|
/base/global/resource_management/frameworks/resmgr/src/ |
H A D | res_config_impl.cpp | 518 bool ResConfigImpl::IsMoreSuitable(const std::shared_ptr<ResConfigImpl> other, in IsMoreSuitable() function in OHOS::Global::Resource::ResConfigImpl 528 int8_t preferredResult = LocaleMatcher::IsMoreSuitable(this->GetResLocale(), other->GetResLocale(), in IsMoreSuitable() 535 int8_t result = LocaleMatcher::IsMoreSuitable(this->GetResLocale(), other->GetResLocale(), in IsMoreSuitable()
|
H A D | res_locale.cpp | 468 if (LocaleMatcher::IsMoreSuitable(tempCandidate.at(j), tempCandidate.at(j + 1), currentLocale) <= 0) { in FindAndSort()
|
H A D | locale_matcher.cpp | 603 int8_t LocaleMatcher::IsMoreSuitable(const ResLocale *current, in IsMoreSuitable() function in OHOS::Global::Resource::LocaleMatcher
|
H A D | hap_manager.cpp | 269 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig, density)) { in MatchBestResource() 298 if (bestOverlayResConfig->IsMoreSuitable(bestResConfig, currentResConfig, density)) { in GetBestMatchResource()
|
/base/global/i18n/frameworks/intl/src/ |
H A D | locale_matcher.cpp | 37 if (IsMoreSuitable(bestMatch, candidateLocales[i], requestLocale) < 0) { in GetBestMatchedLocale() 44 int8_t LocaleMatcher::IsMoreSuitable(const LocaleInfo *current, const LocaleInfo *other, const LocaleInfo *request) in IsMoreSuitable() function in OHOS::Global::I18n::LocaleMatcher
|
H A D | i18n_timezone.cpp | 999 if (LocaleMatcher::IsMoreSuitable(bestMatch, matchLocaleList[i], requestLocale.get()) < 0) { in GetFallBack()
|
/base/global/i18n/interfaces/js/kits/src/ |
H A D | i18n_addon.cpp | 379 if (LocaleMatcher::IsMoreSuitable(bestMatch, candidateLocales[i], requestLocale) < 0) { in GetBestMatchLocale()
|