Home
last modified time | relevance | path

Searched refs:deviceType_ (Results 1 - 25 of 153) sorted by relevance

1234567

/foundation/multimedia/audio_framework/services/audio_service/client/src/
H A Dmicrophone_descriptor.cpp24 : micId_(id), deviceType_(type), groupId_(groupId), sensitivity_(sensitivity) in MicrophoneDescriptor()
30 MicrophoneDescriptor::MicrophoneDescriptor(int32_t id, DeviceType type) : micId_(id), deviceType_(type) in MicrophoneDescriptor()
45 deviceType_ = micDescriptor.deviceType_; in MicrophoneDescriptor()
55 deviceType_ = micDescriptor->deviceType_; in MicrophoneDescriptor()
68 parcel.WriteInt32(deviceType_); in Marshalling()
86 microphoneDescriptor->deviceType_ = static_cast<DeviceType>(in.ReadInt32()); in Unmarshalling()
H A Daudio_device_descriptor.cpp27 : deviceType_(type), deviceRole_(role), interruptGroupId_(interruptGroupId), volumeGroupId_(volumeGroupId), in AudioDeviceDescriptor()
46 AudioDeviceDescriptor::AudioDeviceDescriptor(DeviceType type, DeviceRole role) : deviceType_(type), deviceRole_(role) in AudioDeviceDescriptor()
77 deviceType_ = deviceDescriptor.deviceType_; in AudioDeviceDescriptor()
104 deviceType_ = deviceDescriptor->deviceType_; in AudioDeviceDescriptor()
132 return deviceType_; in getType()
142 parcel.WriteInt32(deviceType_ == DEVICE_TYPE_USB_ARM_HEADSET ? DEVICE_TYPE_USB_HEADSET : deviceType_); in Marshalling()
170 audioDeviceDescriptor->deviceType_ in Unmarshalling()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/
H A Daudio_device_manager.cpp105 if ((devInfo.deviceType == devDesc->deviceType_) && in DeviceAttrMatch()
131 if ((devDesc->networkId_ != LOCAL_NETWORK_ID || devDesc->deviceType_ == DEVICE_TYPE_REMOTE_CAST) && in AddRemoteRenderDev()
154 return (desc->deviceType_ == devDesc->deviceType_); in MakePairedDeviceDescriptor()
181 if ((devDesc->deviceType_ == DEVICE_TYPE_EARPIECE || devDesc->deviceType_ == DEVICE_TYPE_SPEAKER) && in MakePairedDefaultDeviceDescriptor()
182 devRole == INPUT_DEVICE && desc->deviceType_ == DEVICE_TYPE_MIC && in MakePairedDefaultDeviceDescriptor()
185 } else if (devDesc->deviceType_ == DEVICE_TYPE_MIC && devRole == OUTPUT_DEVICE && in MakePairedDefaultDeviceDescriptor()
186 desc->deviceType_ == DEVICE_TYPE_SPEAKER && desc->networkId_ == devDesc->networkId_) { in MakePairedDefaultDeviceDescriptor()
202 if (devDesc->deviceType_ in MakePairedDefaultDeviceImpl()
[all...]
H A Daudio_policy_service.cpp497 result = HandleRecoveryPreferredDevices(static_cast<int32_t>(iter->first), iter->second->deviceType_, in RecoveryPreferredDevices()
502 iter->second->deviceType_, iter->second->usageOrSourceType_, tryCounter); in RecoveryPreferredDevices()
516 if (deviceType == desc->deviceType_) { in HandleRecoveryPreferredDevices()
1209 localDevice->deviceType_ = DeviceType::DEVICE_TYPE_SPEAKER; in NotifyRemoteRenderState()
1213 if (localDevice->deviceType_ != curOutputDeviceDesc.deviceType_) { in NotifyRemoteRenderState()
1215 static_cast<int32_t>(localDevice->deviceType_), static_cast<int32_t>(curOutputDeviceDesc.deviceType_)); in NotifyRemoteRenderState()
1254 isDeviceTypeCorrect = IsOutputDevice(audioDeviceDescriptors[0]->deviceType_) && in DeviceParamsCheck()
1257 isDeviceTypeCorrect = IsInputDevice(audioDeviceDescriptors[0]->deviceType_) in DeviceParamsCheck()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/routers/
H A Ddefault_router.cpp33 desc->deviceType_); in GetMediaRenderDevice()
44 desc->deviceType_); in GetCallRenderDevice()
52 desc->deviceType_); in GetCallCaptureDevice()
68 desc->deviceType_); in GetRecordCaptureDevice()
76 desc->deviceType_); in GetToneRenderDevice()
H A Daudio_router_center.cpp39 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchMediaRenderDevice()
52 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchCallRenderDevice()
67 if (descs.front() != nullptr && descs.front()->deviceType_ != DEVICE_TYPE_NONE) { in FetchRingRenderDevices()
69 " fetch descs front:%{public}d", streamUsage, clientUID, descs.front()->deviceType_); in FetchRingRenderDevices()
93 if (desc->deviceType_ == DEVICE_TYPE_BLUETOOTH_SCO) { in HasScoDevice()
101 if (desc->deviceType_ == DEVICE_TYPE_BLUETOOTH_SCO && desc->deviceCategory_ == BT_CAR) { in HasScoDevice()
127 if (desc->deviceType_ == DEVICE_TYPE_NONE) { in FetchOutputDevices()
152 DeviceType type = descs[0]->deviceType_; in FetchOutputDevices()
176 if (desc->deviceType_ == DEVICE_TYPE_NONE) { in DealRingRenderRouters()
196 if (desc->deviceType_ ! in FetchInputDevice()
[all...]
H A Dprivacy_priority_router.cpp33 clientUID, desc->deviceType_); in GetMediaRenderDevice()
41 return desc->deviceType_ == DEVICE_TYPE_USB_ARM_HEADSET; in RemoveArmUsb()
62 clientUID, desc->deviceType_); in GetCallRenderDevice()
73 clientUID, desc->deviceType_); in GetCallCaptureDevice()
139 clientUID, desc->deviceType_); in GetRecordCaptureDevice()
146 clientUID, desc->deviceType_); in GetRecordCaptureDevice()
/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dsystem_properties.cpp60 DeviceType SystemProperties::deviceType_ { DeviceType::PHONE };
117 deviceType_ = DeviceType::TV; in InitDeviceType()
120 deviceType_ = DeviceType::WATCH; in InitDeviceType()
123 deviceType_ = DeviceType::CAR; in InitDeviceType()
126 deviceType_ = DeviceType::TABLET; in InitDeviceType()
129 deviceType_ = DeviceType::TWO_IN_ONE; in InitDeviceType()
132 deviceType_ = DeviceType::PHONE; in InitDeviceType()
139 return deviceType_; in GetDeviceType()
149 deviceType_ = DeviceType::PHONE; in InitDeviceTypeBySystemProperty()
/foundation/multimedia/audio_framework/services/audio_policy/test/unittest/audio_policy_service_unit_test/src/
H A Daudio_policy_service_first_unit_test.cpp367 audioDeviceDescriptor->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
445 GetServerPtr()->audioPolicyService_.currentActiveDevice_.deviceType_ = deviceType; in HWTEST_F()
472 // currentActiveDevice_.deviceType_ in debugPrintMemoryVariable()
474 static_cast<std::uint32_t>(GetServerPtr()->audioPolicyService_.currentActiveDevice_.deviceType_), in debugPrintMemoryVariable()
475 &GetServerPtr()->audioPolicyService_.currentActiveDevice_.deviceType_); in debugPrintMemoryVariable()
503 // modify currentActiveDevice_.deviceType_ to DEVICE_TYPE_SPEAKER in HWTEST_F()
504 GetServerPtr()->audioPolicyService_.currentActiveDevice_.deviceType_ = DEVICE_TYPE_SPEAKER; in HWTEST_F()
510 // modify currentActiveDevice_.deviceType_ to DEVICE_TYPE_BLUETOOTH_A2DP in HWTEST_F()
511 GetServerPtr()->audioPolicyService_.currentActiveDevice_.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
594 audioDeviceDescriptor->deviceType_ in HWTEST_F()
[all...]
H A Daudio_policy_service_third_unit_test.cpp52 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
71 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HWTEST_F()
90 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
108 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HWTEST_F()
127 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HWTEST_F()
148 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HWTEST_F()
169 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
190 desc->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
222 server->audioPolicyService_.currentActiveDevice_.deviceType_ = DEVICE_TYPE_SPEAKER; in HWTEST_F()
236 server->audioPolicyService_.currentActiveDevice_.deviceType_ in HWTEST_F()
[all...]
H A Daudio_policy_service_second_unit_test.cpp534 EXPECT_EQ(server->audioPolicyService_.currentActiveInputDevice_.deviceType_, DeviceType::DEVICE_TYPE_MIC); in HWTEST_F()
538 EXPECT_EQ(server->audioPolicyService_.currentActiveInputDevice_.deviceType_, DeviceType::DEVICE_TYPE_FILE_SOURCE); in HWTEST_F()
542 EXPECT_EQ(server->audioPolicyService_.currentActiveInputDevice_.deviceType_, DeviceType::DEVICE_TYPE_USB_HEADSET); in HWTEST_F()
546 EXPECT_EQ(server->audioPolicyService_.currentActiveInputDevice_.deviceType_, DeviceType::DEVICE_TYPE_WIRED_HEADSET); in HWTEST_F()
550 EXPECT_EQ(server->audioPolicyService_.currentActiveInputDevice_.deviceType_, DeviceType::DEVICE_TYPE_WIRED_HEADSET); in HWTEST_F()
1162 server->audioPolicyService_.currentActiveDevice_.deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
1168 server->audioPolicyService_.currentActiveDevice_.deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
1174 server->audioPolicyService_.currentActiveDevice_.deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST_F()
1180 server->audioPolicyService_.currentActiveDevice_.deviceType_ = DeviceType::DEVICE_TYPE_SPEAKER; in HWTEST_F()
1196 server->audioPolicyService_.currentActiveDevice_.deviceType_ in HWTEST_F()
[all...]
/foundation/multimedia/audio_framework/services/audio_policy/server/include/service/routers/
H A Drouter_base.h52 (descs[i]->deviceType_ == DEVICE_TYPE_BLUETOOTH_SCO && descs[i]->connectState_ == SUSPEND_CONNECTED)) { in GetLatestConnectDeivce()
73 || captureDesc->deviceType_ != desc->deviceType_ in GetPairCaptureDevice()
79 (captureDesc->deviceType_ != DEVICE_TYPE_BLUETOOTH_SCO || in GetPairCaptureDevice()
84 "exceptionFlag[%{public}d]", captureDesc->deviceType_, captureDesc->connectState_, in GetPairCaptureDevice()
/foundation/deviceprofile/device_info_manager/common/src/utils/
H A Dcontent_sensor_manager_utils.cpp56 if (!deviceType_.empty()) { in ObtainDeviceType()
57 return deviceType_; in ObtainDeviceType()
64 deviceType_ = deviceTypeTemp; in ObtainDeviceType()
66 return deviceType_; in ObtainDeviceType()
/foundation/ability/ability_runtime/frameworks/js/napi/feature_ability/
H A Ddistribute_req_param.h53 return deviceType_; in GetDeviceType()
58 deviceType_ = deviceType; in SetDeviceType()
123 int deviceType_ = DistributeConstants::DEVICE_TYPE_DEFAULT; member in OHOS::AppExecFwk::DistributeReqParam
/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/include/resourcemanager/
H A Dcapability_info.h35 deviceType_(0), in CapabilityInfo()
43 : dhId_(dhId), deviceId_(devId), deviceName_(devName), deviceType_(devType), dhType_(dhType), dhAttrs_(dhAttrs), in CapabilityInfo()
87 uint16_t deviceType_; member in OHOS::DistributedHardware::CapabilityInfo
/foundation/ability/dmsfwk/services/dtbschedmgr/src/deviceManager/
H A Ddms_device_info.cpp38 return deviceType_; in GetDeviceType()
60 PARCEL_WRITE_HELPER_RET(parcel, Int32, deviceType_, false); in Marshalling()
/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dsystem_info.h54 SystemInfo() : screenWidth_(0), screenHeight_(0), aspectRatio_(0.0), deviceType_(nullptr), isRoundScreen_(false) {} in SystemInfo()
60 const char *deviceType_; member in OHOS::ACELite::final
H A Dsystem_info.cpp42 deviceType_ = ProductAdapter::GetDeviceType(); in Initialize()
62 return deviceType_; in GetDeviceType()
/foundation/deviceprofile/device_info_manager/old/services/core/include/devicemanager/
H A Ddevice_info.h32 : deviceName_(deviceName), networkId_(networkId), deviceType_(deviceType) {} in DeviceInfo()
42 int32_t deviceType_ = UNKNOWN_TYPE; member in OHOS::DeviceProfile::DeviceInfo
/foundation/ability/dmsfwk/services/dtbschedmgr/include/deviceManager/
H A Ddms_device_info.h42 : deviceName_(deviceName), deviceType_(deviceType), networkId_(networkId), deviceState_(deviceState), in DmsDeviceInfo()
56 int32_t deviceType_ = UNKNOWN_TYPE; member in OHOS::DistributedSchedule::DmsDeviceInfo
/foundation/arkui/ace_engine/frameworks/base/utils/
H A Dresource_configuration.h40 deviceType_ = deviceType; in SetDeviceType()
45 return deviceType_; in GetDeviceType()
155 DeviceType deviceType_ = DeviceType::PHONE; member in OHOS::Ace::ResourceConfiguration
/foundation/multimedia/media_foundation/services/media_monitor/server/src/
H A Daudio_memo.cpp44 iter->second->deviceType_ = bean->GetIntValue("DEVICE_TYPE"); in UpdataRouteInfo()
54 deviceInfo->deviceType_ = bean->GetIntValue("DEVICE_TYPE"); in UpdataRouteInfo()
113 dumpString += " device type: " + std::to_string(it.second->deviceType_) + "\n"; in WriteInfo()
/foundation/multimedia/audio_framework/frameworks/native/audioeffect/test/unittest/effect_unit_test/src/
H A Daudio_effect_chain_manager_unit_test.cpp416 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_SPEAKER; in HWTEST()
437 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST()
459 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST()
482 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST()
505 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST()
528 AudioEffectChainManager::GetInstance()->deviceType_ = DeviceType::DEVICE_TYPE_SPEAKER; in HWTEST()
710 AudioEffectChainManager::GetInstance()->deviceType_ = DEVICE_TYPE_SPEAKER; in HWTEST()
727 AudioEffectChainManager::GetInstance()->deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HWTEST()
886 AudioEffectChainManager::GetInstance()->deviceType_ = DEVICE_TYPE_SPEAKER; in HWTEST()
907 AudioEffectChainManager::GetInstance()->deviceType_ in HWTEST()
[all...]
/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dace_res_config.cpp436 if (bestConfig.deviceType_ != DeviceType::UNKNOWN || candidateConfig.deviceType_ != DeviceType::UNKNOWN) { in IsCandidateResConfigPreferred()
437 if (bestConfig.deviceType_ != candidateConfig.deviceType_) { in IsCandidateResConfigPreferred()
438 return candidateConfig.deviceType_ != DeviceType::UNKNOWN; in IsCandidateResConfigPreferred()
480 if (bestConfig.deviceType_ != DeviceType::UNKNOWN || candidateConfig.deviceType_ != DeviceType::UNKNOWN) { in IsCandidateDeclarativeResConfigPreferred()
481 if (bestConfig.deviceType_ != candidateConfig.deviceType_) { in IsCandidateDeclarativeResConfigPreferred()
482 return candidateConfig.deviceType_ ! in IsCandidateDeclarativeResConfigPreferred()
[all...]
/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dsystem_properties.cpp386 ACE_WEAK_SYM DeviceType SystemProperties::deviceType_ { DeviceType::UNKNOWN };
508 return deviceType_; in GetDeviceType()
518 if (deviceType_ != DeviceType::UNKNOWN) { in InitDeviceTypeBySystemProperty()
525 deviceType_ = DeviceType::TV; in InitDeviceTypeBySystemProperty()
527 deviceType_ = DeviceType::CAR; in InitDeviceTypeBySystemProperty()
529 deviceType_ = DeviceType::WATCH; in InitDeviceTypeBySystemProperty()
531 deviceType_ = DeviceType::TABLET; in InitDeviceTypeBySystemProperty()
533 deviceType_ = DeviceType::TWO_IN_ONE; in InitDeviceTypeBySystemProperty()
535 deviceType_ = DeviceType::WEARABLE; in InitDeviceTypeBySystemProperty()
537 deviceType_ in InitDeviceTypeBySystemProperty()
[all...]

Completed in 27 milliseconds

1234567