Home
last modified time | relevance | path

Searched refs:bundle2 (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/aging/
H A Daging_util.cpp34 bool AgingUtil::SortTwoAgingBundleInfos(AgingBundleInfo &bundle1, AgingBundleInfo &bundle2) in SortTwoAgingBundleInfos() argument
41 …(bundle1.GetRecentlyUsedTime() >= time10DaysAgo && bundle2.GetRecentlyUsedTime() >= time10DaysAgo)… in SortTwoAgingBundleInfos()
43bundle2.GetRecentlyUsedTime() < time10DaysAgo && bundle2.GetRecentlyUsedTime() >= time20DaysAgo) || in SortTwoAgingBundleInfos()
45bundle2.GetRecentlyUsedTime() < time20DaysAgo && bundle2.GetRecentlyUsedTime() >= time30DaysAgo) || in SortTwoAgingBundleInfos()
46 … (bundle1.GetRecentlyUsedTime() < time30DaysAgo && bundle2.GetRecentlyUsedTime() < time30DaysAgo); in SortTwoAgingBundleInfos()
47 if (sortByUseTimes && (bundle1.GetStartCount() != bundle2.GetStartCount())) { in SortTwoAgingBundleInfos()
48 return bundle1.GetStartCount() < bundle2.GetStartCount(); in SortTwoAgingBundleInfos()
51 return bundle1.GetRecentlyUsedTime() < bundle2.GetRecentlyUsedTime(); in SortTwoAgingBundleInfos()
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/include/aging/
H A Daging_util.h28 static bool SortTwoAgingBundleInfos(AgingBundleInfo &bundle1, AgingBundleInfo &bundle2);
/ohos5.0/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_utils_test.cpp311 sptr<NotificationBundleOption> bundle2 = new NotificationBundleOption("test1", 2); variable
312 TestAddNotification(notificationId, bundle2);
315 auto keys = advancedNotificationService_->GetLocalNotificationKeys(bundle2);
/ohos5.0/foundation/resourceschedule/memmgr/test/unittest/phone/
H A Dreclaim_priority_manager_test.cpp727 std::shared_ptr<BundlePriorityInfo> bundle2 = std::make_shared<BundlePriorityInfo>("app", variable
729 ReclaimPriorityManager::GetInstance().DeleteBundleInfoFromSet(bundle2);
730 EXPECT_NE(bundle1, bundle2);
749 std::shared_ptr<BundlePriorityInfo> bundle2 = std::make_shared<BundlePriorityInfo>("app", variable
758 tolBun2.totalBundlePrioSet_.insert(bundle2);
/ohos5.0/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_manager_test/
H A Dbms_bundle_manager_test.cpp4988 AgingBundleInfo bundle2; variable
4989 bundle2.recentlyUsedTime_ = NUMBER_ONE;
4990 bool ret = util.SortTwoAgingBundleInfos(bundle1, bundle2);
5003 AgingBundleInfo bundle2("bundle2", 0, 0); variable
5005 bundles.push_back(bundle2);