/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 53 NotificationNapi::ContentType inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; in HWTEST_F() local 54 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 56 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_LONG_TEXT; in HWTEST_F() 57 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 59 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_MULTILINE; in HWTEST_F() 60 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 62 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_PICTURE; in HWTEST_F() 63 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 65 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_CONVERSATION; in HWTEST_F() 66 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outTyp in HWTEST_F() 86 NotificationContent::Type inType = NotificationContent::Type::BASIC_TEXT; HWTEST_F() local 118 NotificationNapi::SlotType inType = NotificationNapi::SlotType::SOCIAL_COMMUNICATION; HWTEST_F() local 153 NotificationConstant::SlotType inType = NotificationConstant::SlotType::CUSTOM; HWTEST_F() local 188 NotificationNapi::SlotLevel inType = NotificationNapi::SlotLevel::LEVEL_NONE; HWTEST_F() local 214 NotificationNapi::LiveViewStatus inType = NotificationNapi::LiveViewStatus::LIVE_VIEW_CREATE; HWTEST_F() local 237 NotificationSlot::NotificationLevel inType = NotificationSlot::NotificationLevel::LEVEL_NONE; HWTEST_F() local 266 int inType = NotificationConstant::CLICK_REASON_DELETE; HWTEST_F() local 316 NotificationNapi::DoNotDisturbType inType = NotificationNapi::DoNotDisturbType::TYPE_NONE; HWTEST_F() local 339 NotificationConstant::DoNotDisturbType inType = NotificationConstant::DoNotDisturbType::NONE; HWTEST_F() local 362 NotificationConstant::RemindType inType = NotificationConstant::RemindType::DEVICE_IDLE_DONOT_REMIND; HWTEST_F() local 385 NotificationConstant::SourceType inType = NotificationConstant::SourceType::TYPE_NORMAL; HWTEST_F() local 405 NotificationLiveViewContent::LiveViewStatus inType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_CREATE; HWTEST_F() local [all...] |
/base/notification/distributed_notification_service/frameworks/core/common/include/ |
H A D | ans_convert_enum.h | 131 * @param inType Indicates a js ContentType object 135 static bool ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType); 140 * @param inType Indicates a NotificationContent object 144 static bool ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType); 149 * @param inType Indicates a native SlotType object 153 static bool SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType); 158 * @param inType Indicates a js SlotType object 162 static bool SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotType &outType); 167 * @param inType Indicates a native SlotLevel object 176 * @param inType Indicate [all...] |
/base/notification/distributed_notification_service/frameworks/core/common/src/ |
H A D | ans_convert_enum.cpp | 21 bool AnsEnumUtil::ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeJSToC() argument 23 switch (inType) { in ContentTypeJSToC() 46 ANS_LOGE("ContentType %{public}d is an invalid value", inType); in ContentTypeJSToC() 52 bool AnsEnumUtil::ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType) in ContentTypeCToJS() argument 54 switch (inType) { in ContentTypeCToJS() 77 ANS_LOGE("ContentType %{public}d is an invalid value", inType); in ContentTypeCToJS() 83 bool AnsEnumUtil::SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType) in SlotTypeJSToC() argument 85 switch (inType) { in SlotTypeJSToC() 109 ANS_LOGE("SlotType %{public}d is an invalid value", inType); in SlotTypeJSToC() 115 bool AnsEnumUtil::SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotTyp argument 175 LiveViewStatusJSToC( const LiveViewStatus &inType, NotificationLiveViewContent::LiveViewStatus &outType) LiveViewStatusJSToC() argument 225 ReasonCToJS(const int &inType, int &outType) ReasonCToJS() argument 268 ReasonCToJSExt(const int &inType, int &outType) ReasonCToJSExt() argument 310 ReasonCToJSSecondExt(const int &inType, int &outType) ReasonCToJSSecondExt() argument 347 DoNotDisturbTypeJSToC(const DoNotDisturbType &inType, NotificationConstant::DoNotDisturbType &outType) DoNotDisturbTypeJSToC() argument 369 DoNotDisturbTypeCToJS(const NotificationConstant::DoNotDisturbType &inType, DoNotDisturbType &outType) DoNotDisturbTypeCToJS() argument 391 DeviceRemindTypeCToJS(const NotificationConstant::RemindType &inType, DeviceRemindType &outType) DeviceRemindTypeCToJS() argument 413 SourceTypeCToJS(const NotificationConstant::SourceType &inType, SourceType &outType) SourceTypeCToJS() argument 432 LiveViewStatusCToJS(const NotificationLiveViewContent::LiveViewStatus &inType, LiveViewStatus &outType) LiveViewStatusCToJS() argument [all...] |
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/ |
H A D | notification_utils.h | 289 bool SlotTypeCJToC(const SlotType &inType, OHOS::Notification::NotificationConstant::SlotType &outType); 290 bool SlotTypeCToCJ(const OHOS::Notification::NotificationConstant::SlotType &inType, SlotType &outType); 292 bool ContentTypeCJToC(const ContentType &inType, OHOS::Notification::NotificationContent::Type &outType); 293 bool ContentTypeCToCJ(const OHOS::Notification::NotificationContent::Type &inType, ContentType &outType);
|
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/ |
H A D | notification_utils.cpp | 650 bool SlotTypeCJToC(const SlotType &inType, NotificationConstant::SlotType &outType) in SlotTypeCJToC() argument 652 switch (inType) { in SlotTypeCJToC() 673 LOGE("SlotType %{public}d is an invalid value", inType); in SlotTypeCJToC() 679 bool SlotTypeCToCJ(const NotificationConstant::SlotType &inType, SlotType &outType) in SlotTypeCToCJ() argument 681 switch (inType) { in SlotTypeCToCJ() 704 LOGE("SlotType %{public}d is an invalid value", inType); in SlotTypeCToCJ() 736 bool ContentTypeCJToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeCJToC() argument 738 switch (inType) { in ContentTypeCJToC() 761 LOGE("ContentType %{public}d is an invalid value", inType); in ContentTypeCJToC() 767 bool ContentTypeCToCJ(const NotificationContent::Type &inType, ContentTyp argument [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/ |
H A D | napi_slot.h | 26 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER; member 35 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER; member
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/reminder/ |
H A D | publish.cpp | 58 NotificationNapi::NotificationConstant::SlotType inType member 70 NotificationNapi::NotificationConstant::SlotType inType member 170 if (!NotificationNapi::AnsEnumUtil::SlotTypeJSToC(NotificationNapi::SlotType(propertyVal), params.inType)) { in ParseSlotParameters() 1101 asynccallbackinfo->inType = params.inType; in AddSlotInner() 1117 asynccallbackinfo->info.errorCode = NotificationHelper::AddSlotByType(asynccallbackinfo->inType); in AddSlotInner()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | slot.cpp | 37 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER; member 46 NotificationConstant::SlotType inType = NotificationConstant::SlotType::OTHER; member 235 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), paras.inType)) { in ParseParametersByAddSlot() 728 .inType = paras.inType, in AddSlot() 750 asynccallbackinfo->info.errorCode = NotificationHelper::AddSlotByType(asynccallbackinfo->inType); in AddSlot()
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/ |
H A D | napi_slot.cpp | 36 .inType = paras.inType, in NapiAddSlot() 57 asynccallbackinfo->info.errorCode = NotificationHelper::AddSlotByType(asynccallbackinfo->inType); in NapiAddSlot()
|