Home
last modified time | relevance | path

Searched refs:outType (Results 1 – 14 of 14) sorted by relevance

/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dcommon_convert_enum.cpp23 bool Common::ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeJSToC() argument
27 outType = NotificationContent::Type::BASIC_TEXT; in ContentTypeJSToC()
30 outType = NotificationContent::Type::LONG_TEXT; in ContentTypeJSToC()
33 outType = NotificationContent::Type::MULTILINE; in ContentTypeJSToC()
36 outType = NotificationContent::Type::PICTURE; in ContentTypeJSToC()
39 outType = NotificationContent::Type::CONVERSATION; in ContentTypeJSToC()
42 outType = NotificationContent::Type::LOCAL_LIVE_VIEW; in ContentTypeJSToC()
45 outType = NotificationContent::Type::LIVE_VIEW; in ContentTypeJSToC()
54 bool Common::ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType) in ContentTypeCToJS() argument
58 outType = ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; in ContentTypeCToJS()
[all …]
Dcommon_convert_notification.cpp81 enum DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in SetNotificationByDistributedOptions() local
82 if (!DeviceRemindTypeCToJS(notification->GetRemindType(), outType)) { in SetNotificationByDistributedOptions()
85 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationByDistributedOptions()
Dslot.cpp75 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
82 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
121 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
128 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
140 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
155 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
377 if (!Common::SlotTypeJSToC(SlotType(slotType), paras.outType)) { in ParseParametersByGetSlot()
585 if (!Common::SlotTypeJSToC(SlotType(slotType), paras.outType)) { in ParseParametersByRemoveSlot()
836 …td::nothrow) AsyncCallbackInfoGetSlot {.env = env, .asyncWork = nullptr, .outType = paras.outType}; in GetSlot()
856 … NotificationHelper::GetNotificationSlot(asynccallbackinfo->outType, asynccallbackinfo->slot); in GetSlot()
[all …]
Dcommon.cpp139 SlotType outType = SlotType::UNKNOWN_TYPE; in SetNotificationSlot() local
140 if (!SlotTypeCToJS(slot.GetType(), outType)) { in SetNotificationSlot()
143 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationSlot()
210 DoNotDisturbType outType = DoNotDisturbType::TYPE_NONE; in SetDoNotDisturbDate() local
211 if (!DoNotDisturbTypeCToJS(date.GetDoNotDisturbType(), outType)) { in SetDoNotDisturbDate()
217 napi_create_int32(env, static_cast<int32_t>(outType), &typeNapi); in SetDoNotDisturbDate()
705 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlot() local
706 if (!Common::SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlot()
709 slot.SetType(outType); in GetNotificationSlot()
Dcommon_convert_liveview.cpp234 LiveViewStatus outType = LiveViewStatus::LIVE_VIEW_BUTT; in SetNotificationLiveViewContent() local
235 if (!LiveViewStatusCToJS(liveViewContent->GetLiveViewStatus(), outType)) { in SetNotificationLiveViewContent()
239 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationLiveViewContent()
731 …NotificationLiveViewContent::LiveViewStatus outType = NotificationLiveViewContent::LiveViewStatus:… in GetNotificationLiveViewContentDetailed() local
732 if (!LiveViewStatusJSToC(LiveViewStatus(status), outType)) { in GetNotificationLiveViewContentDetailed()
736 liveViewContent->SetLiveViewStatus(outType); in GetNotificationLiveViewContentDetailed()
Ddisturb_mode.cpp43 NotificationConstant::DoNotDisturbType outType = NotificationConstant::DoNotDisturbType::NONE; in GetDoNotDisturbDate() local
46 if (!Common::DoNotDisturbTypeJSToC(DoNotDisturbType(type), outType)) { in GetDoNotDisturbDate()
49 params.date.SetDoNotDisturbType(outType); in GetDoNotDisturbDate()
Dcommon_convert_request.cpp85 SlotType outType = SlotType::UNKNOWN_TYPE; in SetNotificationRequestByNumber() local
86 if (!SlotTypeCToJS(request->GetSlotType(), outType)) { in SetNotificationRequestByNumber()
89 napi_create_int32(env, static_cast<int32_t>(outType), &value); in SetNotificationRequestByNumber()
917 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local
918 if (!SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType()
921 request.SetSlotType(outType); in GetNotificationSlotType()
936 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; in GetNotificationSlotType() local
937 if (!SlotTypeJSToC(SlotType(slotType), outType)) { in GetNotificationSlotType()
940 request.SetSlotType(outType); in GetNotificationSlotType()
Dcommon_convert_content.cpp120 ContentType outType = ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; in SetNotificationContent() local
121 if (!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()
458 NotificationContent::Type outType = NotificationContent::Type::NONE; in GetNotificationContent() local
459 if (!ContentTypeJSToC(ContentType(type), outType)) { in GetNotificationContent()
462 switch (outType) { in GetNotificationContent()
Ddistributed.cpp502 DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in AsyncCompleteCallbackGetDeviceRemindType() local
503 if (!Common::DeviceRemindTypeCToJS(asynccallbackinfo->remindType, outType)) { in AsyncCompleteCallbackGetDeviceRemindType()
507 napi_create_int32(env, (int32_t)outType, &result); in AsyncCompleteCallbackGetDeviceRemindType()
/base/security/certificate_framework/frameworks/js/napi/certificate/src/
Dnapi_object.cpp70 uint32_t outType; member
320 …atic int32_t GetResultType(int32_t opType, int32_t typeValue, CfTag &resultType, uint32_t &outType) in GetResultType() argument
325 outType = RESULT_MAP[i].outType; in GetResultType()
352 uint32_t outType = 0; in ConvertToNapiValue() local
353 int32_t ret = GetResultType(opType, typeValue, resultType, outType); in ConvertToNapiValue()
371 if (outType == NAPI_OUT_TYPE_BLOB) { in ConvertToNapiValue()
373 } else if (outType == NAPI_OUT_TYPE_ARRAY) { in ConvertToNapiValue()
376 } else if (outType == NAPI_OUT_TYPE_NUMBER) { in ConvertToNapiValue()
380 } else if (outType == NAPI_OUT_TYPE_ENCODING_BLOB) { in ConvertToNapiValue()
383 } else if (outType == NAPI_OUT_TYPE_BOOL) { in ConvertToNapiValue()
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
Dnapi_slot.h66 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
73 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
112 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
119 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
131 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
146 NotificationConstant::SlotType outType = NotificationConstant::SlotType::OTHER; member
/base/notification/distributed_notification_service/frameworks/js/napi/include/
Dcommon.h1621 static bool ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType);
1630 static bool ContentTypeCToJS(const NotificationContent::Type &inType, ContentType &outType);
1639 static bool SlotTypeJSToC(const SlotType &inType, NotificationConstant::SlotType &outType);
1648 static bool SlotTypeCToJS(const NotificationConstant::SlotType &inType, SlotType &outType);
1666 …iewStatusJSToC(const LiveViewStatus &inType, NotificationLiveViewContent::LiveViewStatus &outType);
1684 static bool ReasonCToJS(const int32_t &inType, int32_t &outType);
1693 …tDisturbTypeJSToC(const DoNotDisturbType &inType, NotificationConstant::DoNotDisturbType &outType);
1702 …tDisturbTypeCToJS(const NotificationConstant::DoNotDisturbType &inType, DoNotDisturbType &outType);
1711 …l DeviceRemindTypeCToJS(const NotificationConstant::RemindType &inType, DeviceRemindType &outType);
1720 … static bool SourceTypeCToJS(const NotificationConstant::SourceType &inType, SourceType &outType);
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_slot.cpp255 …td::nothrow) AsyncCallbackInfoGetSlot {.env = env, .asyncWork = nullptr, .outType = paras.outType}; in NapiGetSlot()
273 … NotificationHelper::GetNotificationSlot(asynccallbackinfo->outType, asynccallbackinfo->slot); in NapiGetSlot()
549 …:nothrow) AsyncCallbackInfoRemoveSlot {.env = env, .asyncWork = nullptr, .outType = paras.outType}; in NapiRemoveSlot()
568 NotificationHelper::RemoveNotificationSlot(asynccallbackinfo->outType); in NapiRemoveSlot()
687 asynccallbackinfo->params.outType, in NapiEnableNotificationSlot()
749 … asynccallbackinfo->params.option, asynccallbackinfo->params.outType, asynccallbackinfo->isEnable); in NapiIsEnableNotificationSlot()
Dnapi_distributed.cpp379 DeviceRemindType outType = DeviceRemindType::IDLE_DONOT_REMIND; in AsyncCompleteCallbackNapiGetDeviceRemindType() local
380 if (!Common::DeviceRemindTypeCToJS(asynccallbackinfo->remindType, outType)) { in AsyncCompleteCallbackNapiGetDeviceRemindType()
384 napi_create_int32(env, (int32_t)outType, &result); in AsyncCompleteCallbackNapiGetDeviceRemindType()