/base/notification/distributed_notification_service/frameworks/ans/test/unittest/ |
H A D | ans_log_test.cpp | 52 NotificationContent::Type outType; in HWTEST_F() local 54 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 55 EXPECT_EQ(outType, NotificationContent::Type::BASIC_TEXT); in HWTEST_F() 57 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 58 EXPECT_EQ(outType, NotificationContent::Type::LONG_TEXT); in HWTEST_F() 60 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 61 EXPECT_EQ(outType, NotificationContent::Type::MULTILINE); in HWTEST_F() 63 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 64 EXPECT_EQ(outType, NotificationContent::Type::PICTURE); in HWTEST_F() 66 NotificationNapi::AnsEnumUtil::ContentTypeJSToC(inType, outType); in HWTEST_F() 85 NotificationNapi::ContentType outType; HWTEST_F() local 117 NotificationConstant::SlotType outType; HWTEST_F() local 152 NotificationNapi::SlotType outType; HWTEST_F() local 187 NotificationSlot::NotificationLevel outType; HWTEST_F() local 213 NotificationLiveViewContent::LiveViewStatus outType; HWTEST_F() local 236 NotificationNapi::SlotLevel outType; HWTEST_F() local 265 int outType; HWTEST_F() local 315 NotificationConstant::DoNotDisturbType outType; HWTEST_F() local 338 NotificationNapi::DoNotDisturbType outType; HWTEST_F() local 361 NotificationNapi::DeviceRemindType outType; HWTEST_F() local 384 NotificationNapi::SourceType outType; HWTEST_F() local 404 NotificationNapi::LiveViewStatus outType; HWTEST_F() local [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 25 outType = NotificationContent::Type::BASIC_TEXT; in ContentTypeJSToC() 28 outType = NotificationContent::Type::LONG_TEXT; in ContentTypeJSToC() 31 outType = NotificationContent::Type::MULTILINE; in ContentTypeJSToC() 34 outType = NotificationContent::Type::PICTURE; in ContentTypeJSToC() 37 outType = NotificationContent::Type::CONVERSATION; in ContentTypeJSToC() 40 outType = NotificationContent::Type::LOCAL_LIVE_VIEW; in ContentTypeJSToC() 43 outType = NotificationContent::Type::LIVE_VIEW; in ContentTypeJSToC() 52 bool AnsEnumUtil::ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType) in ContentTypeCToJS() argument 56 outType in ContentTypeCToJS() 83 SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType) SlotTypeJSToC() argument 115 SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotType &outType) SlotTypeCToJS() 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/core/common/include/ |
H A D | ans_convert_enum.h | 132 * @param outType Indicates a NotificationContent object 135 static bool ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType); 141 * @param outType Indicates a js ContentType object 144 static bool ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType); 150 * @param outType Indicates a js SlotType object 153 static bool SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType); 159 * @param outType Indicates a native SlotType object 162 static bool SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotType &outType); 168 * @param outType Indicates a js NotificationLevel object 177 * @param outType Indicate [all...] |
/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 654 outType = NotificationConstant::SlotType::SOCIAL_COMMUNICATION; in SlotTypeCJToC() 657 outType = NotificationConstant::SlotType::SERVICE_REMINDER; in SlotTypeCJToC() 660 outType = NotificationConstant::SlotType::CONTENT_INFORMATION; in SlotTypeCJToC() 663 outType = NotificationConstant::SlotType::LIVE_VIEW; in SlotTypeCJToC() 666 outType = NotificationConstant::SlotType::CUSTOMER_SERVICE; in SlotTypeCJToC() 670 outType = NotificationConstant::SlotType::OTHER; in SlotTypeCJToC() 679 bool SlotTypeCToCJ(const NotificationConstant::SlotType &inType, SlotType &outType) in SlotTypeCToCJ() argument 683 outType = SlotType::UNKNOWN_TYPE; in SlotTypeCToCJ() 686 outType in SlotTypeCToCJ() 736 ContentTypeCJToC(const ContentType &inType, NotificationContent::Type &outType) ContentTypeCJToC() argument 767 ContentTypeCToCJ(const NotificationContent::Type &inType, ContentType &outType) ContentTypeCToCJ() argument 800 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; GetNotificationSlotType() local 836 NotificationContent::Type outType = NotificationContent::Type::NONE; GetNotificationContent() local 880 SlotType outType = SlotType::UNKNOWN_TYPE; SetNotificationSlot() local 951 SlotType outType = SlotType::UNKNOWN_TYPE; SetNotificationRequestByNumber() local 1521 ContentType outType = ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; SetNotificationContent() local [all...] |
/base/security/certificate_framework/frameworks/js/napi/certificate/src/ |
H A D | napi_object.cpp | 71 uint32_t outType;
member 321 static int32_t GetResultType(int32_t opType, int32_t typeValue, CfTag &resultType, uint32_t &outType)
in GetResultType() argument 326 outType = RESULT_MAP[i].outType;
in GetResultType() 353 uint32_t outType = 0;
in ConvertToNapiValue() local 354 int32_t ret = GetResultType(opType, typeValue, resultType, outType);
in ConvertToNapiValue() 372 if (outType == NAPI_OUT_TYPE_BLOB) {
in ConvertToNapiValue() 374 } else if (outType == NAPI_OUT_TYPE_ARRAY) {
in ConvertToNapiValue() 376 } else if (outType == NAPI_OUT_TYPE_NUMBER) {
in ConvertToNapiValue() 380 } else if (outType in ConvertToNapiValue() [all...] |
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/ |
H A D | napi_slot.h | 66 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 73 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 113 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 126 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 133 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 145 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 160 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | common_convert_notification.cpp | 81 enum DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in SetNotificationByDistributedOptions() local 82 if (!AnsEnumUtil::DeviceRemindTypeCToJS(notification->GetRemindType(), outType)) { in SetNotificationByDistributedOptions() 85 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationByDistributedOptions()
|
H A D | slot.cpp | 77 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 84 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 124 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 137 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 144 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 156 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 171 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member 414 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), paras.outType)) { in ParseParametersByGetSlot() 657 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), params.outType)) { in ParseParametersGetSlotByBundle() 699 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), paras.outType)) { in ParseParametersByRemoveSlot() [all...] |
H A D | common_convert_liveview.cpp | 323 LiveViewStatus outType = LiveViewStatus::LIVE_VIEW_BUTT; in SetNotificationLiveViewContent() local 324 if (!AnsEnumUtil::LiveViewStatusCToJS(liveViewContent->GetLiveViewStatus(), outType)) { in SetNotificationLiveViewContent() 328 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationLiveViewContent() 921 NotificationLiveViewContent::LiveViewStatus outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT; in GetNotificationLiveViewContentDetailed() local 922 if (!AnsEnumUtil::LiveViewStatusJSToC(LiveViewStatus(status), outType)) { in GetNotificationLiveViewContentDetailed() 926 liveViewContent->SetLiveViewStatus(outType); in GetNotificationLiveViewContentDetailed()
|
H A D | common.cpp | 139 SlotType outType = SlotType::UNKNOWN_TYPE; in SetNotificationSlot() local 140 if (!AnsEnumUtil::SlotTypeCToJS(slot.GetType(), outType)) { in SetNotificationSlot() 143 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationSlot() 218 DoNotDisturbType outType = DoNotDisturbType::TYPE_NONE; in SetDoNotDisturbDate() local 219 if (!AnsEnumUtil::DoNotDisturbTypeCToJS(date.GetDoNotDisturbType(), outType)) { in SetDoNotDisturbDate() 225 napi_create_int32(env, static_cast<int32_t>(outType), &typeNapi); in SetDoNotDisturbDate() 735 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlot() local 736 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlot() 739 slot.SetType(outType); in GetNotificationSlot()
|
H A D | common_convert_request.cpp | 89 SlotType outType = SlotType::UNKNOWN_TYPE; in SetNotificationRequestByNumber() local 90 if (!AnsEnumUtil::SlotTypeCToJS(request->GetSlotType(), outType)) { in SetNotificationRequestByNumber() 93 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationRequestByNumber() 969 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local 970 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType() 973 request.SetSlotType(outType); in GetNotificationSlotType() 988 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local 989 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType() 992 request.SetSlotType(outType); in GetNotificationSlotType()
|
H A D | disturb_mode.cpp | 50 NotificationConstant::DoNotDisturbType outType = NotificationConstant::DoNotDisturbType::NONE; in GetDoNotDisturbDate() local 53 if (!AnsEnumUtil::DoNotDisturbTypeJSToC(DoNotDisturbType(type), outType)) { in GetDoNotDisturbDate() 57 params.date.SetDoNotDisturbType(outType); in GetDoNotDisturbDate()
|
H A D | common_convert_content.cpp | 120 ContentType outType = ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; in SetNotificationContent() local 121 if (!AnsEnumUtil::ContentTypeCToJS(type, outType)) { in SetNotificationContent() 124 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationContent() 128 if (!SetNotificationContentDetailed(env, outType, content, result)) { in SetNotificationContent() 459 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() local 460 if (!AnsEnumUtil::ContentTypeJSToC(ContentType(type), outType)) { in GetNotificationContent() 463 switch (outType) { in GetNotificationContent()
|
H A D | distributed.cpp | 529 DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in AsyncCompleteCallbackGetDeviceRemindType() local 530 if (!AnsEnumUtil::DeviceRemindTypeCToJS(asynccallbackinfo->remindType, outType)) { in AsyncCompleteCallbackGetDeviceRemindType() 534 napi_create_int32(env, (int32_t)outType, &result); in AsyncCompleteCallbackGetDeviceRemindType()
|
/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/js/napi/src/manager/ |
H A D | napi_slot.cpp | 256 new (std::nothrow) AsyncCallbackInfoGetSlot {.env = env, .asyncWork = nullptr, .outType = paras.outType}; in NapiGetSlot() 274 NotificationHelper::GetNotificationSlot(asynccallbackinfo->outType, asynccallbackinfo->slot); in NapiGetSlot() 603 asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->slot); in NapiGetSlotByBundle() 631 new (std::nothrow) AsyncCallbackInfoRemoveSlot {.env = env, .asyncWork = nullptr, .outType = paras.outType}; in NapiRemoveSlot() 650 NotificationHelper::RemoveNotificationSlot(asynccallbackinfo->outType); in NapiRemoveSlot() 770 asynccallbackinfo->params.outType, in NapiEnableNotificationSlot() 833 asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in NapiIsEnableNotificationSlot()
|
H A D | napi_distributed.cpp | 388 DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in AsyncCompleteCallbackNapiGetDeviceRemindType() local 389 if (!AnsEnumUtil::DeviceRemindTypeCToJS(asynccallbackinfo->remindType, outType)) { in AsyncCompleteCallbackNapiGetDeviceRemindType() 393 napi_create_int32(env, (int32_t)outType, &result); in AsyncCompleteCallbackNapiGetDeviceRemindType()
|
/base/location/frameworks/js/napi/notification/src/ |
H A D | notification_napi_convert_liveview.cpp | 467 NotificationLiveViewContent::LiveViewStatus outType = NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_BUTT; in GetNotificationLiveViewContentDetailed() local 468 if (!AnsEnumUtil::LiveViewStatusJSToC(LiveViewStatus(status), outType)) { in GetNotificationLiveViewContentDetailed() 472 liveViewContent->SetLiveViewStatus(outType); in GetNotificationLiveViewContentDetailed()
|
H A D | notification_napi_convert_request.cpp | 448 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local 449 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType() 452 request.SetSlotType(outType); in GetNotificationSlotType() 467 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local 468 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType() 471 request.SetSlotType(outType); in GetNotificationSlotType()
|
H A D | notification_napi_convert_content.cpp | 71 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() local 72 if (!AnsEnumUtil::ContentTypeJSToC(ContentType(type), outType)) { in GetNotificationContent() 75 switch (outType) { in GetNotificationContent()
|
H A D | notification_napi.cpp | 464 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlot() local 465 if (!AnsEnumUtil::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlot() 468 slot.SetType(outType); in GetNotificationSlot()
|