Home
last modified time | relevance | path

Searched refs:ContentType (Results 1 - 24 of 24) sorted by relevance

/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp21 bool AnsEnumUtil::ContentTypeJSToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeJSToC()
24 case ContentType::NOTIFICATION_CONTENT_BASIC_TEXT: in ContentTypeJSToC()
27 case ContentType::NOTIFICATION_CONTENT_LONG_TEXT: in ContentTypeJSToC()
30 case ContentType::NOTIFICATION_CONTENT_MULTILINE: in ContentTypeJSToC()
33 case ContentType::NOTIFICATION_CONTENT_PICTURE: in ContentTypeJSToC()
36 case ContentType::NOTIFICATION_CONTENT_CONVERSATION: in ContentTypeJSToC()
39 case ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW: in ContentTypeJSToC()
42 case ContentType::NOTIFICATION_CONTENT_LIVE_VIEW: in ContentTypeJSToC()
46 ANS_LOGE("ContentType %{public}d is an invalid value", inType); in ContentTypeJSToC()
52 bool AnsEnumUtil::ContentTypeCToJS(const NotificationContent::Type &inType, ContentType
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dans_log_test.cpp53 NotificationNapi::ContentType inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_BASIC_TEXT; in HWTEST_F()
56 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_LONG_TEXT; in HWTEST_F()
59 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_MULTILINE; in HWTEST_F()
62 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_PICTURE; in HWTEST_F()
65 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_CONVERSATION; in HWTEST_F()
68 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW; in HWTEST_F()
71 inType = NotificationNapi::ContentType::NOTIFICATION_CONTENT_LIVE_VIEW; in HWTEST_F()
85 NotificationNapi::ContentType outType; in HWTEST_F()
88 EXPECT_EQ(outType, NotificationNapi::ContentType in HWTEST_F()
[all...]
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h27 enum class ContentType { class
131 * @param inType Indicates a js ContentType 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);
/base/web/webview/ohos_adapter/audio_adapter/src/
H A Daudio_renderer_adapter_impl.cpp64 const std::unordered_map<AudioAdapterContentType, ContentType> CONTENT_TYPE_MAP = {
65 { AudioAdapterContentType::CONTENT_TYPE_UNKNOWN, ContentType::CONTENT_TYPE_UNKNOWN },
66 { AudioAdapterContentType::CONTENT_TYPE_SPEECH, ContentType::CONTENT_TYPE_SPEECH },
67 { AudioAdapterContentType::CONTENT_TYPE_MUSIC, ContentType::CONTENT_TYPE_MUSIC },
68 { AudioAdapterContentType::CONTENT_TYPE_MOVIE, ContentType::CONTENT_TYPE_MOVIE },
69 { AudioAdapterContentType::CONTENT_TYPE_SONIFICATION, ContentType::CONTENT_TYPE_SONIFICATION },
70 { AudioAdapterContentType::CONTENT_TYPE_RINGTONE, ContentType::CONTENT_TYPE_RINGTONE },
351 ContentType AudioRendererAdapterImpl::GetAudioContentType(AudioAdapterContentType contentType) in GetAudioContentType()
356 return ContentType::CONTENT_TYPE_MUSIC; in GetAudioContentType()
H A Daudio_system_manager_adapter_impl.cpp324 rendererInfo.contentType = ContentType::CONTENT_TYPE_SPEECH; in SelectAudioDeviceById()
370 rendererInfo.contentType = ContentType::CONTENT_TYPE_SPEECH; in GetDefaultOutputDevice()
/base/startup/init/services/param/linux/
H A Dparam_message.h42 typedef enum ContentType { enum
48 } ContentType; typedef
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dconstant.cpp194 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_BASIC_TEXT, "NOTIFICATION_CONTENT_BASIC_TEXT"); in ContentTypeInit()
196 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_LONG_TEXT, "NOTIFICATION_CONTENT_LONG_TEXT"); in ContentTypeInit()
198 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_PICTURE, "NOTIFICATION_CONTENT_PICTURE"); in ContentTypeInit()
200 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_CONVERSATION, "NOTIFICATION_CONTENT_CONVERSATION"); in ContentTypeInit()
202 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_MULTILINE, "NOTIFICATION_CONTENT_MULTILINE"); in ContentTypeInit()
204 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW, "NOTIFICATION_CONTENT_SYSTEM_LIVE_VIEW"); in ContentTypeInit()
206 env, obj, (int32_t)ContentType::NOTIFICATION_CONTENT_LIVE_VIEW, "NOTIFICATION_CONTENT_LIVE_VIEW"); in ContentTypeInit()
209 DECLARE_NAPI_PROPERTY("ContentType", obj), in ContentTypeInit()
H A Dcommon_convert_content.cpp33 const char *Common::GetPropertyNameByContentType(ContentType type) in GetPropertyNameByContentType()
36 case ContentType::NOTIFICATION_CONTENT_BASIC_TEXT: // normal?: NotificationBasicContent in GetPropertyNameByContentType()
38 case ContentType::NOTIFICATION_CONTENT_LONG_TEXT: // longText?: NotificationLongTextContent in GetPropertyNameByContentType()
40 case ContentType::NOTIFICATION_CONTENT_PICTURE: // picture?: NotificationPictureContent in GetPropertyNameByContentType()
42 case ContentType::NOTIFICATION_CONTENT_CONVERSATION: // conversation?: NotificationConversationalContent in GetPropertyNameByContentType()
44 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in GetPropertyNameByContentType()
46 case ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW: // systemLiveView?: NotificationLocalLiveViewContent in GetPropertyNameByContentType()
48 case ContentType::NOTIFICATION_CONTENT_LIVE_VIEW: // liveView?: NotificationLiveViewContent in GetPropertyNameByContentType()
51 ANS_LOGE("ContentType is does not exist"); in GetPropertyNameByContentType()
56 napi_value Common::SetNotificationContentDetailed(const napi_env &env, const ContentType
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/src/
H A Dnotification_utils.cpp736 bool ContentTypeCJToC(const ContentType &inType, NotificationContent::Type &outType) in ContentTypeCJToC()
739 case ContentType::NOTIFICATION_CONTENT_BASIC_TEXT: in ContentTypeCJToC()
742 case ContentType::NOTIFICATION_CONTENT_LONG_TEXT: in ContentTypeCJToC()
745 case ContentType::NOTIFICATION_CONTENT_MULTILINE: in ContentTypeCJToC()
748 case ContentType::NOTIFICATION_CONTENT_PICTURE: in ContentTypeCJToC()
751 case ContentType::NOTIFICATION_CONTENT_CONVERSATION: in ContentTypeCJToC()
754 case ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW: in ContentTypeCJToC()
757 case ContentType::NOTIFICATION_CONTENT_LIVE_VIEW: in ContentTypeCJToC()
761 LOGE("ContentType %{public}d is an invalid value", inType); in ContentTypeCJToC()
767 bool ContentTypeCToCJ(const NotificationContent::Type &inType, ContentType
[all...]
/base/notification/distributed_notification_service/frameworks/cj/ffi/include/
H A Dnotification_utils.h132 enum class ContentType { class
292 bool ContentTypeCJToC(const ContentType &inType, OHOS::Notification::NotificationContent::Type &outType);
293 bool ContentTypeCToCJ(const OHOS::Notification::NotificationContent::Type &inType, ContentType &outType);
322 bool SetNotificationContentDetailed(const ContentType &type,
/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_content.cpp33 const char *NotificationNapi::GetPropertyNameByContentType(ContentType type) in GetPropertyNameByContentType()
36 case ContentType::NOTIFICATION_CONTENT_BASIC_TEXT: // normal?: NotificationBasicContent in GetPropertyNameByContentType()
38 case ContentType::NOTIFICATION_CONTENT_LONG_TEXT: // longText?: NotificationLongTextContent in GetPropertyNameByContentType()
40 case ContentType::NOTIFICATION_CONTENT_PICTURE: // picture?: NotificationPictureContent in GetPropertyNameByContentType()
42 case ContentType::NOTIFICATION_CONTENT_CONVERSATION: // conversation?: NotificationConversationalContent in GetPropertyNameByContentType()
44 case ContentType::NOTIFICATION_CONTENT_MULTILINE: // multiLine?: NotificationMultiLineContent in GetPropertyNameByContentType()
46 case ContentType::NOTIFICATION_CONTENT_LOCAL_LIVE_VIEW: // systemLiveView?: NotificationLocalLiveViewContent in GetPropertyNameByContentType()
48 case ContentType::NOTIFICATION_CONTENT_LIVE_VIEW: // liveView?: NotificationLiveViewContent in GetPropertyNameByContentType()
51 ANS_LOGE("ContentType is does not exist"); in GetPropertyNameByContentType()
72 if (!AnsEnumUtil::ContentTypeJSToC(ContentType(typ in GetNotificationContent()
[all...]
/base/web/webview/ohos_adapter/audio_adapter/include/
H A Daudio_renderer_adapter_impl.h100 static ContentType GetAudioContentType(AudioAdapterContentType contentType);
/base/notification/distributed_notification_service/services/ans/src/common/
H A Dnotification_analytics_util.cpp195 NotificationNapi::ContentType contentType; in ReportNotificationEvent()
328 NotificationNapi::ContentType contentType; in BuildExtraInfoWithReq()
332 if (contentType == NotificationNapi::ContentType::NOTIFICATION_CONTENT_LIVE_VIEW) { in BuildExtraInfoWithReq()
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
H A Dnapi_push.cpp202 if (!AnsEnumUtil::ContentTypeJSToC(ContentType(value), outContentType)) { in ParseCheckRequest()
H A Dnapi_push_callback.cpp155 NotificationNapi::ContentType contentType; in OnCheckNotification()
/base/telephony/call_manager/services/audio/src/
H A Dtone.cpp109 rendererInfo.contentType = ContentType::CONTENT_TYPE_UNKNOWN; in InitTonePlayer()
H A Daudio_proxy.cpp298 rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_UNKNOWN; in GetPreferredOutputAudioDevice()
352 rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_SPEECH; in SetAudioPreferDeviceChangeCallback()
H A Daudio_player.cpp71 rendererOptions.rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_SPEECH; in InitRenderer()
/base/notification/distributed_notification_service/frameworks/js/napi/include/
H A Dcommon.h370 static napi_value SetNotificationContentDetailed(const napi_env &env, const ContentType &type,
1764 static const char *GetPropertyNameByContentType(ContentType type);
/base/telephony/call_manager/services/distributed_call/src/
H A Ddistributed_call_manager.cpp424 audioRendererFilter->rendererInfo.contentType = ContentType::CONTENT_TYPE_SPEECH; in ReportDistributedDeviceInfo()
/base/web/webview/test/unittest/audio_adapter_impl_test/
H A Daudio_adapter_impl_test.cpp487 ContentType testContent = AudioRendererAdapterImpl::GetAudioContentType(static_cast<AudioAdapterContentType>(-1)); in HWTEST_F()
488 EXPECT_EQ(testContent, ContentType::CONTENT_TYPE_MUSIC); in HWTEST_F()
/base/location/frameworks/js/napi/notification/include/
H A Dnotification_napi.h1274 static const char *GetPropertyNameByContentType(ContentType type);
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/
H A Dhitrace_dump.cpp95 enum ContentType : uint8_t {
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp2505 NotificationNapi::ContentType contentType; in PublishRemoveDuplicateEvent()

Completed in 24 milliseconds