Home
last modified time | relevance | path

Searched refs:isSubsystem (Results 1 – 16 of 16) sorted by relevance

/ohos5.0/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_subscriber_service.cpp56 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 Dadvanced_notification_publish_service.cpp125 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 Dadvanced_notification_slot_service.cpp55 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 Dadvanced_notification_service.cpp123 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 Dadvanced_notification_utils.cpp188 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 Dadvanced_notification_reminder_service.cpp291 bool isSubsystem = AccessTokenHelper::VerifyNativeToken(IPCSkeleton::GetCallingTokenID()); in GetDeviceRemindType() local
292 if (!isSubsystem && !AccessTokenHelper::IsSystemApp()) { in GetDeviceRemindType()
H A Dadvanced_notification_live_view_service.cpp438 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 Dinner_common_event_manager.cpp236 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 Dcommon_event_manager_service.cpp119 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 Dcommon_event_subscriber_manager.cpp416 …SystemApp = (eventRecord.eventRecordInfo.isSystemApp || eventRecord.eventRecordInfo.isSubsystem) && in GetSubscriberRecordsByWantLocked()
441 …o isSubscriberSystemApp = (*it)->eventRecordInfo.isSystemApp || (*it)->eventRecordInfo.isSubsystem; in GetSubscriberRecordsByWantLocked()
H A Dcommon_event_control_manager.cpp804 if (isSystemAPIEvent && !(subscriberRecord.eventRecordInfo.isSubsystem in CheckSubscriberPermission()
/ohos5.0/base/notification/common_event_service/services/include/
H A Dcommon_event_record.h31 bool isSubsystem; member
36 …EventRecordInfo() : pid(0), uid(0), callerToken(0), isSubsystem(false), isSystemApp(false), isProx… in EventRecordInfo()
H A Dinner_common_event_manager.h28 bool isSubsystem = false; member
/ohos5.0/base/notification/distributed_notification_service/services/ans/src/advanced_notification_publish/
H A Dlive_publish_process.cpp122 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 Dcommon_event_control_manager_test.cpp204 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 Dcommon_event_control_manager_branch_test.cpp93 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()