Home
last modified time | relevance | path

Searched refs:IsMoreSuitable (Results 1 - 20 of 20) sorted by relevance

/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
H A Dres_config_impl_test.cpp498 * @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 Dres_config_impl_test.cpp597 * @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 Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
H A Dres_config_impl.h40 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 Dlocale_matcher.h24 static int8_t IsMoreSuitable(const ResLocale *current,
H A Dres_config_impl.h38 bool IsMoreSuitable(const ResConfigImpl *other, const ResConfigImpl *request) const;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_config_impl.cpp212 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 Dhap_manager.cpp144 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig)) { in FindQualifierValueByName()
176 if (!bestResConfig->IsMoreSuitable(resConfig, currentResConfig)) { in FindQualifierValueById()
H A Dres_locale.cpp459 if (LocaleMatcher::IsMoreSuitable(tempCandidate.at(j), tempCandidate.at(j + 1), currentLocale) <= 0) { in FindAndSort()
H A Dlocale_matcher.cpp601 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 Dlocale_matcher.h44 static int8_t IsMoreSuitable(const LocaleInfo *current, const LocaleInfo *other, const LocaleInfo *request);
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp998 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 Di18n_test.cpp1394 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 Dres_config_impl.cpp518 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 Dres_locale.cpp468 if (LocaleMatcher::IsMoreSuitable(tempCandidate.at(j), tempCandidate.at(j + 1), currentLocale) <= 0) { in FindAndSort()
H A Dlocale_matcher.cpp603 int8_t LocaleMatcher::IsMoreSuitable(const ResLocale *current, in IsMoreSuitable() function in OHOS::Global::Resource::LocaleMatcher
H A Dhap_manager.cpp269 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 Dlocale_matcher.cpp37 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 Di18n_timezone.cpp999 if (LocaleMatcher::IsMoreSuitable(bestMatch, matchLocaleList[i], requestLocale.get()) < 0) { in GetFallBack()
/base/global/i18n/interfaces/js/kits/src/
H A Di18n_addon.cpp379 if (LocaleMatcher::IsMoreSuitable(bestMatch, candidateLocales[i], requestLocale) < 0) { in GetBestMatchLocale()

Completed in 27 milliseconds