Lines Matching refs:notificationId
55 int notificationId = request->GetId();
56 InfoLog("Oncanceled, creatorUid = %{public}d, notificationId = %{public}d, deleteReason = %{public}d",
57 creatorUid, notificationId, deleteReason);
61 g_ntfCallback(notificationId % OHOS::NFC::TAG::NTF_COUNT_CONSTANT);
177 static bool SetTitleAndTextForOtherNotificationId(int notificationId,
180 switch (notificationId) {
216 static bool SetTitleAndText(int notificationId,
225 switch (notificationId) {
259 return SetTitleAndTextForOtherNotificationId(notificationId, nfcContent, name, balance);
264 static std::string GetButtonName(int notificationId)
266 switch (notificationId) {
385 void NfcNotification::PublishNfcNotification(int notificationId, const std::string &name, int balance)
387 if (notificationId >= NFC_NTF_END || notificationId < NFC_TAG_DEFAULT_NTF_ID) {
399 int lastNtfId = (tagNtfCountVec_[notificationId - NFC_TAG_DEFAULT_NTF_ID]++) * NTF_COUNT_CONSTANT + notificationId;
400 if (tagNtfCountVec_[notificationId - NFC_TAG_DEFAULT_NTF_ID] >= NFC_MAX_NTF_COUNT) {
401 tagNtfCountVec_[notificationId - NFC_TAG_DEFAULT_NTF_ID] = 0;
403 int currentNtfId = (tagNtfCountVec_[notificationId - NFC_TAG_DEFAULT_NTF_ID]) * NTF_COUNT_CONSTANT + notificationId;
408 if (!SetTitleAndText(notificationId, nfcContent, name, balance)) {
431 std::string buttonName = GetButtonName(notificationId);
455 void PublishNfcNotification(int notificationId, const std::string &name, int balance)
457 InfoLog("Publishing nfc tag notification, id [%{public}d]", notificationId);
458 OHOS::NFC::TAG::NfcNotification::GetInstance().PublishNfcNotification(notificationId, name, balance);