/ohos5.0/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_subscriber_service.cpp | 56 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in Subscribe() local 57 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in Subscribe() 96 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in SubscribeSelf() local 97 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in SubscribeSelf() 139 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in Unsubscribe() local 140 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in Unsubscribe()
|
H A D | advanced_notification_publish_service.cpp | 125 if (isSubsystem) { in Publish() 389 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in CancelAsBundle() 463 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in CancelAsBundleWithAgent() 543 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in Delete() 605 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in DeleteByBundle() 665 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in DeleteAll() 749 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in SetShowBadgeEnabledForBundle() 1262 if (isSubsystem) { in IsSpecialBundleAllowedNotify() 1301 if (!isSubsystem) { in PublishContinuousTaskNotification() 1370 if (!isSubsystem) { in CancelContinuousTaskNotification() [all …]
|
H A D | advanced_notification_slot_service.cpp | 55 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in AddSlots() local 56 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in AddSlots() 134 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in GetSlotsByBundle() local 135 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetSlotsByBundle() 174 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in GetSlotByBundle() local 175 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetSlotByBundle() 212 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in UpdateSlots() local 213 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in UpdateSlots() 378 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetSlotFlagsAsBundle() 423 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in SetSlotFlagsAsBundle() [all …]
|
H A D | advanced_notification_service.cpp | 123 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in PrepareNotificationRequest() 429 !AccessTokenHelper::IsSystemApp() && !isSubsystem) { in PrepareNotificationInfo() 643 if (isSystemApp || isSubsystem) { in PublishPreparedNotification() 1391 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetAllActiveNotifications() 1440 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetSpecialActiveNotifications() 1580 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in EnableDistributed() 1613 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in EnableDistributedByBundle() 1695 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in IsDistributedEnableByBundle() 1748 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in SetDoNotDisturbDate() 1770 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetDoNotDisturbDate() [all …]
|
H A D | advanced_notification_utils.cpp | 188 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in CheckCommonParams() local 189 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in CheckCommonParams() 217 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetAppTargetBundle() 765 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in SetDoNotDisturbDate() local 766 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in SetDoNotDisturbDate() 790 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetDoNotDisturbDate() 811 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in AddDoNotDisturbProfiles() 840 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in RemoveDoNotDisturbProfiles() 868 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetDoNotDisturbProfile() 893 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in DoesSupportDoNotDisturbMode() [all …]
|
H A D | advanced_notification_reminder_service.cpp | 291 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in GetDeviceRemindType() local 292 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetDeviceRemindType()
|
H A D | advanced_notification_live_view_service.cpp | 438 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in IsAllowedRemoveSlot() local 439 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in IsAllowedRemoveSlot()
|
/ohos5.0/base/notification/common_event_service/services/src/ |
H A D | inner_common_event_manager.cpp | 236 if (!comeFrom.isSystemApp && !comeFrom.isSubsystem) { in PublishCommonEvent() 261 eventRecord.eventRecordInfo.isSubsystem = comeFrom.isSubsystem; in PublishCommonEvent() 334 eventRecordInfo.isSubsystem = comeFrom.isSubsystem; in SubscribeCommonEvent() 506 (!record.eventRecordInfo.isProxy && record.eventRecordInfo.isSubsystem)) { in ProcessStickyEvent() 521 if (comeFrom.isSubsystem) { in SetSystemUserId() 543 comeFrom.isSubsystem = AccessTokenHelper::VerifyNativeToken(callerToken); in CheckUserId() 545 if (!comeFrom.isSubsystem || supportCheckSaPermission_.compare("true") == 0) { in CheckUserId() 553 … if ((comeFrom.isSystemApp || comeFrom.isSubsystem || comeFrom.isCemShell) && !comeFrom.isProxy) { in CheckUserId()
|
H A D | common_event_manager_service.cpp | 119 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in PublishCommonEvent() local 120 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in PublishCommonEvent() 333 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(callerToken); in GetStickyCommonEvent() local 334 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetStickyCommonEvent() 517 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(tokenId); in RemoveStickyCommonEvent() local 518 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in RemoveStickyCommonEvent() 525 if (!ret && (!isSubsystem || supportCheckSaPermission_.compare("true") == 0)) { in RemoveStickyCommonEvent()
|
H A D | common_event_subscriber_manager.cpp | 416 …SystemApp = (eventRecord.eventRecordInfo.isSystemApp || eventRecord.eventRecordInfo.isSubsystem) && in GetSubscriberRecordsByWantLocked() 441 …o isSubscriberSystemApp = (*it)->eventRecordInfo.isSystemApp || (*it)->eventRecordInfo.isSubsystem; in GetSubscriberRecordsByWantLocked()
|
H A D | common_event_control_manager.cpp | 804 if (isSystemAPIEvent && !(subscriberRecord.eventRecordInfo.isSubsystem in CheckSubscriberPermission()
|
/ohos5.0/base/notification/common_event_service/services/include/ |
H A D | common_event_record.h | 31 bool isSubsystem; member 36 …EventRecordInfo() : pid(0), uid(0), callerToken(0), isSubsystem(false), isSystemApp(false), isProx… in EventRecordInfo()
|
H A D | inner_common_event_manager.h | 28 bool isSubsystem = false; member
|
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/advanced_notification_publish/ |
H A D | live_publish_process.cpp | 122 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in CheckLocalLiveViewAllowed() local 123 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in CheckLocalLiveViewAllowed()
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/ |
H A D | common_event_control_manager_test.cpp | 204 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F() 225 subscriberRecord.eventRecordInfo.isSubsystem = false; in HWTEST_F() 247 subscriberRecord.eventRecordInfo.isSubsystem = false; in HWTEST_F()
|
/ohos5.0/base/notification/common_event_service/services/test/unittest/common_event_control_manager_branch_test/ |
H A D | common_event_control_manager_branch_test.cpp | 93 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F() 125 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F() 151 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F() 181 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F() 207 subscriberRecord.eventRecordInfo.isSubsystem = true; in HWTEST_F()
|