Home
last modified time | relevance | path

Searched refs:isForceControl (Results 1 - 25 of 25) sorted by relevance

/base/notification/distributed_notification_service/services/ans/src/
H A Dpermission_filter.cpp34 bool isForceControl = false; in OnPublish() local
53 isForceControl = slot->GetForceControl(); in OnPublish()
63 if (!enable && !isForceControl) { in OnPublish()
H A Dadvanced_notification_slot_service.cpp715 bool enabled, bool isForceControl) in AddSlotThenPublishEvent()
726 slot->SetForceControl(isForceControl); in AddSlotThenPublishEvent()
751 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlotInner()
763 return AddSlotThenPublishEvent(slot, bundle, enabled, isForceControl); in SetEnabledForBundleSlotInner()
765 if (slot->GetEnable() == enabled && slot->GetForceControl() == isForceControl) { in SetEnabledForBundleSlotInner()
772 return AddSlotThenPublishEvent(slot, bundle, enabled, isForceControl); in SetEnabledForBundleSlotInner()
780 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot()
783 ANS_LOGD("slotType: %{public}d, enabled: %{public}d, isForceControl: %{public}d", in SetEnabledForBundleSlot()
784 slotType, enabled, isForceControl); in SetEnabledForBundleSlot()
797 result = SetEnabledForBundleSlotInner(bundleOption, bundle, slotType, enabled, isForceControl); in SetEnabledForBundleSlot()
712 AddSlotThenPublishEvent( const sptr<NotificationSlot> &slot, const sptr<NotificationBundleOption> &bundle, bool enabled, bool isForceControl) AddSlotThenPublishEvent() argument
748 SetEnabledForBundleSlotInner( const sptr<NotificationBundleOption> &bundleOption, const sptr<NotificationBundleOption> &bundle, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlotInner() argument
779 SetEnabledForBundleSlot(const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument
[all...]
/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification_slot.h310 * @param isForceControl Specifies whether is force control.
312 void SetForceControl(bool isForceControl);
H A Dnotification_helper.h148 * @param isForceControl Indicates whether the slot is affected by the notification switch.
152 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl);
/base/notification/distributed_notification_service/frameworks/core/src/
H A Dans_manager_proxy_slot.cpp387 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot()
415 if (!data.WriteBool(isForceControl)) { in SetEnabledForBundleSlot()
416 ANS_LOGE("[SetEnabledForBundleSlot] fail: write isForceControl failed"); in SetEnabledForBundleSlot()
386 SetEnabledForBundleSlot(const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument
H A Dans_manager_stub_invalid.cpp548 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot()
547 SetEnabledForBundleSlot(const sptr<NotificationBundleOption> &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument
H A Dans_manager_stub.cpp2219 bool isForceControl = false; in HandleSetEnabledForBundleSlot() local
2220 if (!data.ReadBool(isForceControl)) { in HandleSetEnabledForBundleSlot()
2221 ANS_LOGE("[HandleSetEnabledForBundleSlot] fail: read isForceControl failed."); in HandleSetEnabledForBundleSlot()
2225 ErrCode result = SetEnabledForBundleSlot(bundleOption, slotType, enabled, isForceControl); in HandleSetEnabledForBundleSlot()
H A Dans_notification.cpp1668 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot()
1683 return proxy->SetEnabledForBundleSlot(bo, slotType, enabled, isForceControl); in SetEnabledForBundleSlot()
1667 SetEnabledForBundleSlot(const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_slot.cpp271 void NotificationSlot::SetForceControl(bool isForceControl) in SetForceControl() argument
273 isForceControl_ = isForceControl; in SetForceControl()
H A Dnotification_helper.cpp461 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) in SetEnabledForBundleSlot()
464 slotType, enabled, isForceControl); in SetEnabledForBundleSlot()
460 SetEnabledForBundleSlot(const NotificationBundleOption &bundleOption, const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) SetEnabledForBundleSlot() argument
/base/notification/distributed_notification_service/services/ans/test/unittest/notification_subscriber_manager_branch_test/
H A Dnotification_subscriber_manager_branch_test.cpp1148 bool isForceControl = false; in HWTEST_F() local
1153 ASSERT_EQ(advancedNotificationService.SetEnabledForBundleSlot(bundleOption, slotType, enabled, isForceControl), in HWTEST_F()
1167 bool isForceControl = false; in HWTEST_F() local
1173 ASSERT_EQ(advancedNotificationService.SetEnabledForBundleSlot(bundleOption, slotType, enabled, isForceControl), in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
H A Dnapi_slot.h147 bool isForceControl = false; member
/base/notification/distributed_notification_service/services/ans/include/
H A Dadvanced_notification_service.h837 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) override;
1427 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl);
1431 bool enabled, bool isForceControl);
/base/notification/distributed_notification_service/frameworks/core/include/
H A Dans_manager_interface.h787 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) = 0;
H A Dans_manager_proxy.h775 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) override;
H A Dans_notification.h922 * @param isForceControl Indicates whether the slot is affected by the notification switch.
926 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl);
H A Dans_manager_stub.h777 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) override;
/base/notification/distributed_notification_service/services/ans/test/unittest/advanced_notification_service_test/
H A Dadvanced_notification_service_publish_test.cpp72 void TestAddLiveViewSlot(bool isForceControl);
161 void AdvancedNotificationServiceTest::TestAddLiveViewSlot(bool isForceControl) in TestAddLiveViewSlot() argument
166 slot->SetForceControl(isForceControl); in TestAddLiveViewSlot()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dslot.cpp158 bool isForceControl = false; member
1431 // argv[3]: maybe isForceControl or callback in ParseParametersEnableSlot()
1435 napi_get_value_bool(env, argv[PARAM3], &params.isForceControl); in ParseParametersEnableSlot()
1479 asynccallbackinfo->params.isForceControl); in EnableNotificationSlot()
/base/notification/distributed_notification_service/services/ans/test/unittest/
H A Dadvanced_notification_service_test.cpp72 void TestAddLiveViewSlot(bool isForceControl);
161 void AdvancedNotificationServiceTest::TestAddLiveViewSlot(bool isForceControl) in TestAddLiveViewSlot() argument
166 slot->SetForceControl(isForceControl); in TestAddLiveViewSlot()
1492 bool isForceControl = false; in HWTEST_F() local
H A Dadvanced_notification_service_branch_test.cpp971 bool isForceControl = false; in HWTEST_F() local
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_branch_test/
H A Dans_notification_branch_test.cpp470 const NotificationConstant::SlotType &slotType, bool enabled, bool isForceControl) override
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_notification_test/
H A Dans_notification_unit_test.cpp991 bool isForceControl = false; in HWTEST_F() local
992 ErrCode ret1 = ans_->SetEnabledForBundleSlot(bundleOption, slotType, enabled, isForceControl); in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_slot.cpp772 asynccallbackinfo->params.isForceControl); in NapiEnableNotificationSlot()
/base/notification/distributed_notification_service/frameworks/core/test/unittest/ans_manager_stub_test/
H A Dans_manager_stub_test.cpp3774 bool isForceControl = false; in HWTEST_F() local
3780 data.WriteBool(isForceControl); in HWTEST_F()

Completed in 49 milliseconds