/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() 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 D | ans_log_test.cpp | 53 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 D | ans_convert_enum.h | 27 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 D | audio_renderer_adapter_impl.cpp | 64 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 D | audio_system_manager_adapter_impl.cpp | 324 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 D | param_message.h | 42 typedef enum ContentType {
enum 48 } ContentType;
typedef
|
/base/notification/distributed_notification_service/frameworks/js/napi/src/ |
H A D | constant.cpp | 194 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 D | common_convert_content.cpp | 33 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 D | notification_utils.cpp | 736 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 D | notification_utils.h | 132 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 D | notification_napi_convert_content.cpp | 33 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 D | audio_renderer_adapter_impl.h | 100 static ContentType GetAudioContentType(AudioAdapterContentType contentType);
|
/base/notification/distributed_notification_service/services/ans/src/common/ |
H A D | notification_analytics_util.cpp | 195 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 D | napi_push.cpp | 202 if (!AnsEnumUtil::ContentTypeJSToC(ContentType(value), outContentType)) { in ParseCheckRequest()
|
H A D | napi_push_callback.cpp | 155 NotificationNapi::ContentType contentType; in OnCheckNotification()
|
/base/telephony/call_manager/services/audio/src/ |
H A D | tone.cpp | 109 rendererInfo.contentType = ContentType::CONTENT_TYPE_UNKNOWN; in InitTonePlayer()
|
H A D | audio_proxy.cpp | 298 rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_UNKNOWN; in GetPreferredOutputAudioDevice() 352 rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_SPEECH; in SetAudioPreferDeviceChangeCallback()
|
H A D | audio_player.cpp | 71 rendererOptions.rendererInfo.contentType = AudioStandard::ContentType::CONTENT_TYPE_SPEECH; in InitRenderer()
|
/base/notification/distributed_notification_service/frameworks/js/napi/include/ |
H A D | common.h | 370 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 D | distributed_call_manager.cpp | 424 audioRendererFilter->rendererInfo.contentType = ContentType::CONTENT_TYPE_SPEECH; in ReportDistributedDeviceInfo()
|
/base/web/webview/test/unittest/audio_adapter_impl_test/ |
H A D | audio_adapter_impl_test.cpp | 487 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 D | notification_napi.h | 1274 static const char *GetPropertyNameByContentType(ContentType type);
|
/base/hiviewdfx/hitrace/interfaces/native/innerkits/src/ |
H A D | hitrace_dump.cpp | 95 enum ContentType : uint8_t {
|
/base/notification/distributed_notification_service/services/ans/src/ |
H A D | advanced_notification_publish_service.cpp | 2505 NotificationNapi::ContentType contentType; in PublishRemoveDuplicateEvent()
|