Home
last modified time | relevance | path

Searched refs:SourceType (Results 1 - 22 of 22) sorted by relevance

/base/notification/distributed_notification_service/interfaces/inner_api/
H A Dnotification.h215 NotificationConstant::SourceType GetSourceType() const;
336 void SetSourceType(NotificationConstant::SourceType sourceType);
361 NotificationConstant::SourceType sourceType_ {NotificationConstant::SourceType::TYPE_NORMAL};
H A Dnotification_constant.h127 enum class SourceType { class in OHOS::Notification::NotificationConstant
/base/web/webview/ohos_adapter/audio_adapter/src/
H A Daudio_capturer_adapter_impl.cpp66 const std::unordered_map<AudioAdapterSourceType, SourceType> SOURCE_TYPE_MAP = {
67 {AudioAdapterSourceType::SOURCE_TYPE_INVALID, SourceType::SOURCE_TYPE_INVALID},
68 {AudioAdapterSourceType::SOURCE_TYPE_MIC, SourceType::SOURCE_TYPE_MIC},
69 {AudioAdapterSourceType::SOURCE_TYPE_VOICE_RECOGNITION, SourceType::SOURCE_TYPE_VOICE_RECOGNITION},
70 {AudioAdapterSourceType::SOURCE_TYPE_VOICE_COMMUNICATION, SourceType::SOURCE_TYPE_VOICE_COMMUNICATION},
71 {AudioAdapterSourceType::SOURCE_TYPE_ULTRASONIC, SourceType::SOURCE_TYPE_ULTRASONIC},
273 SourceType AudioCapturerAdapterImpl::GetAudioSourceType(AudioAdapterSourceType sourceType) in GetAudioSourceType()
278 return SourceType::SOURCE_TYPE_VOICE_RECOGNITION; in GetAudioSourceType()
H A Daudio_system_manager_adapter_impl.cpp335 capturerInfo.sourceType = AudioStandard::SourceType::SOURCE_TYPE_VOICE_COMMUNICATION; in SelectAudioDeviceById()
401 capturerInfo.sourceType = AudioStandard::SourceType::SOURCE_TYPE_VOICE_COMMUNICATION; in GetDefaultInputDevice()
/base/notification/distributed_notification_service/frameworks/core/common/include/
H A Dans_convert_enum.h96 enum class SourceType { class
248 * @param inType Indicates a native SourceType object
249 * @param outType Indicates a js SourceType object
252 static bool SourceTypeCToJS(const NotificationConstant::SourceType &inType, SourceType &outType);
/base/inputmethod/imf/frameworks/native/inputmethod_ability/include/tasks/
H A Dtask.h27 enum SourceType : uint32_t {
83 SourceType GetSourceType() const;
/base/web/webview/ohos_adapter/audio_adapter/include/
H A Daudio_capturer_adapter_impl.h78 static SourceType GetAudioSourceType(AudioAdapterSourceType SourceType);
/base/web/webview/ohos_interface/ohos_glue/ohos_nweb/bridge/webview/
H A Dark_web_media_source_info_wrapper.h25 using ArkWebSourceType = OHOS::NWeb::SourceType;
/base/notification/distributed_notification_service/frameworks/core/common/src/
H A Dans_convert_enum.cpp413 bool AnsEnumUtil::SourceTypeCToJS(const NotificationConstant::SourceType &inType, SourceType &outType) in SourceTypeCToJS()
416 case NotificationConstant::SourceType::TYPE_NORMAL: in SourceTypeCToJS()
417 outType = SourceType::TYPE_NORMAL; in SourceTypeCToJS()
419 case NotificationConstant::SourceType::TYPE_CONTINUOUS: in SourceTypeCToJS()
420 outType = SourceType::TYPE_CONTINUOUS; in SourceTypeCToJS()
422 case NotificationConstant::SourceType::TYPE_TIMER: in SourceTypeCToJS()
423 outType = SourceType::TYPE_TIMER; in SourceTypeCToJS()
426 ANS_LOGE("SourceType %{public}d is an invalid value", inType); in SourceTypeCToJS()
/base/notification/distributed_notification_service/test/fuzztest/readfromparcel_fuzzer/
H A Dreadfromparcel_fuzzer.cpp71 Notification::NotificationConstant::SourceType sourceType = in DoSomethingInterestingWithMyAPI()
72 Notification::NotificationConstant::SourceType(source); in DoSomethingInterestingWithMyAPI()
/base/web/webview/ohos_interface/include/ohos_nweb/
H A Dnweb_native_media_player.h28 enum class SourceType { URL = 0, MSE }; class
44 virtual SourceType GetType() = 0;
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dans_log_test.cpp384 NotificationNapi::SourceType outType; in HWTEST_F()
385 NotificationConstant::SourceType inType = NotificationConstant::SourceType::TYPE_NORMAL; in HWTEST_F()
387 EXPECT_EQ(outType, NotificationNapi::SourceType::TYPE_NORMAL); in HWTEST_F()
388 inType = NotificationConstant::SourceType::TYPE_CONTINUOUS; in HWTEST_F()
390 EXPECT_EQ(outType, NotificationNapi::SourceType::TYPE_CONTINUOUS); in HWTEST_F()
391 inType = NotificationConstant::SourceType::TYPE_TIMER; in HWTEST_F()
393 EXPECT_EQ(outType, NotificationNapi::SourceType::TYPE_TIMER); in HWTEST_F()
H A Dnotification_test.cpp272 NotificationConstant::SourceType sourceType = NotificationConstant::SourceType::TYPE_NORMAL; in HWTEST_F()
/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_notification.cpp148 SourceType sourceType = SourceType::TYPE_NORMAL; in SetNotification()
H A Dconstant.cpp263 SetNamedPropertyByInteger(env, obj, (int32_t)SourceType::TYPE_NORMAL, "TYPE_NORMAL"); in SourceTypeInit()
264 SetNamedPropertyByInteger(env, obj, (int32_t)SourceType::TYPE_CONTINUOUS, "TYPE_CONTINUOUS"); in SourceTypeInit()
265 SetNamedPropertyByInteger(env, obj, (int32_t)SourceType::TYPE_TIMER, "TYPE_TIMER"); in SourceTypeInit()
268 DECLARE_NAPI_PROPERTY("SourceType", obj), in SourceTypeInit()
/base/inputmethod/imf/frameworks/native/inputmethod_ability/src/tasks/
H A Dtask.cpp84 SourceType Task::GetSourceType() const in GetSourceType()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification.cpp218 NotificationConstant::SourceType Notification::GetSourceType() const in GetSourceType()
434 sourceType_ = static_cast<NotificationConstant::SourceType>(parcel.ReadInt32()); in ReadFromParcelInt32()
536 void Notification::SetSourceType(NotificationConstant::SourceType sourceType) in SetSourceType()
/base/telephony/call_manager/services/audio/src/
H A Daudio_player.cpp99 capturerOptions.capturerInfo.sourceType = AudioStandard::SourceType::SOURCE_TYPE_VIRTUAL_CAPTURE; in InitCapturer()
/base/web/webview/interfaces/kits/napi/webviewcontroller/
H A Dnapi_native_media_player.cpp116 const std::string NPI_SOURCE_TYPE_ENUM_NAME = "SourceType"; in ExportEnumSourceType()
118 DECLARE_NAPI_STATIC_PROPERTY("URL", NapiParseUtils::ToInt32Value(env, static_cast<int32_t>(SourceType::URL))), in ExportEnumSourceType()
119 DECLARE_NAPI_STATIC_PROPERTY("MSE", NapiParseUtils::ToInt32Value(env, static_cast<int32_t>(SourceType::MSE))), in ExportEnumSourceType()
/base/web/webview/test/unittest/audio_adapter_impl_test/
H A Daudio_adapter_impl_test.cpp1048 SourceType testSource = AudioCapturerAdapterImpl::GetAudioSourceType(static_cast<AudioAdapterSourceType>(-2)); in HWTEST_F()
1049 EXPECT_EQ(testSource, SourceType::SOURCE_TYPE_VOICE_RECOGNITION); in HWTEST_F()
/base/notification/distributed_notification_service/services/ans/src/
H A Dadvanced_notification_publish_service.cpp1268 record->notification->SetSourceType(NotificationConstant::SourceType::TYPE_CONTINUOUS); in PublishContinuousTaskNotification()
/base/notification/distributed_notification_service/frameworks/test/moduletest/
H A Dans_fw_module_test.cpp2493 EXPECT_EQ(eventParser.GetOnConsumedReq()[0]->GetSourceType(), NotificationConstant::SourceType::TYPE_CONTINUOUS); in HWTEST_F()

Completed in 21 milliseconds