Home
last modified time | relevance | path

Searched refs:bundleUid (Results 1 - 5 of 5) sorted by relevance

/base/notification/distributed_notification_service/services/ans/include/
H A Dnotification_preferences_database.h38 * @param bundleUid Indicates bundle uid.
43 const std::string &bundleName, const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots);
180 bool RemoveBundleFromDisturbeDB(const std::string &bundleKey, const int32_t &bundleUid);
191 const int32_t &bundleUid);
205 * @param bundleUid Indicates to the bundle uid.
208 bool RemoveAllSlotsFromDisturbeDB(const std::string &bundleKey, const int32_t &bundleUid);
226 bool RemoveEnabledDbByBundleName(std::string bundleName, const int32_t &bundleUid);
237 const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots);
242 bool CheckBundle(const std::string &bundleName, const int32_t &bundleUid);
246 const std::string &bundleKey, const BundleType &type, const T &t, const int32_t &bundleUid);
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Dsystem_dialog_connect_stb.cpp57 if (!root.contains("bundleName") || !root.contains("bundleUid")) { in OnAbilityConnectDone()
61 if (!root["bundleName"].is_string() || !root["bundleUid"].is_number_integer()) { in OnAbilityConnectDone()
66 int32_t bundleUid = root["bundleUid"]; in OnAbilityConnectDone() local
68 bundleName, bundleUid); in OnAbilityConnectDone()
H A Dnotification_preferences_database.cpp251 const std::string &bundleName, const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots) in PutSlotsToDisturbeDB()
267 bool result = SlotToEntry(bundleName, bundleUid, iter, values); in PutSlotsToDisturbeDB()
273 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in PutSlotsToDisturbeDB()
586 bool NotificationPreferencesDatabase::CheckBundle(const std::string &bundleName, const int32_t &bundleUid) in CheckBundle() argument
588 std::string bundleKeyStr = KEY_BUNDLE_LABEL + bundleName + std::to_string(bundleUid); in CheckBundle()
592 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userId); in CheckBundle()
598 bundleInfo.SetBundleUid(bundleUid); in CheckBundle()
599 bundleInfo.SetEnableNotification(CheckApiCompatibility(bundleName, bundleUid)); in CheckBundle()
694 const std::string &bundleKey, const int32_t &bundleUid) in RemoveBundleFromDisturbeDB()
702 OsAccountManagerHelper::GetInstance().GetOsAccountLocalIdFromUid(bundleUid, userI in RemoveBundleFromDisturbeDB()
250 PutSlotsToDisturbeDB( const std::string &bundleName, const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots) PutSlotsToDisturbeDB() argument
693 RemoveBundleFromDisturbeDB( const std::string &bundleKey, const int32_t &bundleUid) RemoveBundleFromDisturbeDB() argument
728 RemoveSlotFromDisturbeDB( const std::string &bundleKey, const NotificationConstant::SlotType &type, const int32_t &bundleUid) RemoveSlotFromDisturbeDB() argument
833 RemoveAllSlotsFromDisturbeDB( const std::string &bundleKey, const int32_t &bundleUid) RemoveAllSlotsFromDisturbeDB() argument
865 PutBundlePropertyToDisturbeDB( const std::string &bundleKey, const BundleType &type, const T &t, const int32_t &bundleUid) PutBundlePropertyToDisturbeDB() argument
933 SlotToEntry(const std::string &bundleName, const int32_t &bundleUid, const sptr<NotificationSlot> &slot, std::unordered_map<std::string, std::string> &values) SlotToEntry() argument
1648 RemoveEnabledDbByBundleName(std::string bundleName, const int32_t &bundleUid) RemoveEnabledDbByBundleName() argument
2036 UpdateBundleSlotToDisturbeDB(int32_t userId, const std::string &bundleName, const int32_t &bundleUid, const std::vector<sptr<NotificationSlot>> &slots) UpdateBundleSlotToDisturbeDB() argument
[all...]
H A Dnotification_dialog_manager.cpp53 int32_t bundleUid = std::atoi(data.GetWant().GetStringParam("bundleUid").c_str()); in OnReceiveEvent() local
55 bundleName.c_str(), bundleUid); in OnReceiveEvent()
56 dialogManager_.OnBundleEnabledStatusChanged(static_cast<DialogStatus>(code), bundleName, bundleUid); in OnReceiveEvent() local
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_preferences_database_branch_test/
H A Dnotification_preferences_database_branch_test.cpp116 int32_t bundleUid = 1; in HWTEST_F() local
117 ASSERT_EQ(preferncesDB_->CheckBundle(bundleName, bundleUid), false); in HWTEST_F()
697 int32_t bundleUid = 1; in HWTEST_F() local
700 ASSERT_EQ(preferncesDB_->SlotToEntry(bundleName, bundleUid, slot, values), false); in HWTEST_F()
719 int32_t bundleUid = 1; in HWTEST_F() local
723 ASSERT_EQ(preferncesDB_->PutSlotsToDisturbeDB(bundleName, bundleUid, slots), false); in HWTEST_F()

Completed in 6 milliseconds