Home
last modified time | relevance | path

Searched refs:deviceType_ (Results 1 – 25 of 149) sorted by relevance

123456

/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/
H A Daudio_device_manager.cpp152 return (desc->deviceType_ == devDesc->deviceType_); in MakePairedDeviceDescriptor()
245 if (descriptor->deviceType_ == devDesc->deviceType_ && in RemoveConnectedDevices()
339 if (descriptor->deviceType_ == deviceDescriptor->deviceType_ && in UpdateExistDeviceDescriptor()
365 return descriptor->deviceType_ == devDesc->deviceType_ in RemoveVirtualConnectedDevice()
703 if (device->deviceType_ == dev->deviceType_ && in IsExistedDevice()
907 desc->deviceType_ == devDesc->deviceType_ && in UpdateDeviceCategory()
935 if (desc->deviceType_ == devDesc->deviceType_) { in UpdateConnectState()
967 if (desc->deviceType_ == devDesc->deviceType_ && in UpdateEnableState()
972 } else if (desc->deviceType_ == devDesc->deviceType_ && in UpdateEnableState()
1145 && desc->deviceType_ == selectedDesc->deviceType_ in IsVirtualConnectedDevice()
[all …]
H A Daudio_policy_service.cpp1072 if (localDevice->deviceType_ != curOutputDeviceDesc.deviceType_) { in NotifyRemoteRenderState()
1153 return (desc->deviceType_ == device->deviceType_) && in SetRenderDeviceForUsage()
3792 return descriptor->deviceType_ == updatedDesc.deviceType_ && in UpdateConnectedDevicesWhenDisconnecting()
4100 return descriptor->deviceType_ == updatedDesc.deviceType_ && in OnDeviceStatusUpdated()
4179 return descriptor->deviceType_ == updatedDesc.deviceType_ && in UpdateDeviceList()
7200 return desc->deviceType_ == deviceDescriptor->deviceType_; in AddMicrophoneDescriptor()
7217 return desc->deviceType_ == deviceDescriptor->deviceType_; in RemoveMicrophoneDescriptor()
7735 if (userSelectDeviceMap[CALL_RENDER_ID]->deviceType_ == desc.deviceType_ && in UpdateAllUserSelectDevice()
7840 if ((userSelectMediaDevice->deviceType_ == desc.deviceType_ && in OnDeviceInfoUpdated()
7843 (userSelectCallDevice->deviceType_ == desc.deviceType_ && in OnDeviceInfoUpdated()
[all …]
/ohos5.0/base/global/resource_management_lite/frameworks/resmgr_lite/src/
H A Dres_config_impl.cpp29 deviceType_(DEVICE_NOT_SET), in ResConfigImpl()
80 this->deviceType_ = deviceType; in SetDeviceType()
115 return this->deviceType_; in GetDeviceType()
196 if (this->deviceType_ != DEVICE_NOT_SET && in Match()
197 other->deviceType_ != DEVICE_NOT_SET) { in Match()
198 if (this->deviceType_ != other->deviceType_) { in Match()
234 if (this->deviceType_ != other->deviceType_ && in IsMoreSuitable()
235 request->deviceType_ != DeviceType::DEVICE_NOT_SET) { in IsMoreSuitable()
236 return this->deviceType_ != DeviceType::DEVICE_NOT_SET; in IsMoreSuitable()
295 if (this->deviceType_ != other->deviceType_) { in IsMoreSpecificThan()
[all …]
/ohos5.0/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_(t… 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_(volume… in AudioDeviceDescriptor()
46 AudioDeviceDescriptor::AudioDeviceDescriptor(DeviceType type, DeviceRole role) : deviceType_(type),… 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 : deviceTyp… in Marshalling()
170 audioDeviceDescriptor->deviceType_ = static_cast<DeviceType>(in.ReadInt32()); in Unmarshalling()
211 return deviceInfo.deviceType == deviceType_ && in isSameDevice()
219 return deviceDescriptor->deviceType_ == deviceType_ && in isSameDeviceDesc()
/ohos5.0/foundation/multimedia/audio_framework/services/audio_policy/server/src/service/routers/
H A Daudio_router_center.cpp43 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchMediaRenderDevice()
60 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchCallRenderDevice()
75 if (descs.front() != nullptr && descs.front()->deviceType_ != DEVICE_TYPE_NONE) { in FetchRingRenderDevices()
101 if (desc->deviceType_ == DEVICE_TYPE_BLUETOOTH_SCO) { in HasScoDevice()
133 if (desc->deviceType_ == DEVICE_TYPE_NONE) { in FetchOutputDevices()
158 DeviceType type = descs[0]->deviceType_; in FetchOutputDevices()
176 if (desc->deviceType_ == DEVICE_TYPE_NONE) { in DealRingRenderRouters()
199 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchInputDevice()
207 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchInputDevice()
215 if (desc->deviceType_ != DEVICE_TYPE_NONE) { in FetchInputDevice()
[all …]
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 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()
141 clientUID, desc->deviceType_); in GetRecordCaptureDevice()
148 clientUID, desc->deviceType_); in GetRecordCaptureDevice()
/ohos5.0/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_subscribe_info.cpp35 deviceType_ = subscribeInfo.GetDeviceType(); in NotificationSubscribeInfo()
67 deviceType_ = deviceType; in AddDeviceType()
72 return deviceType_; in GetDeviceType()
83 if (!parcel.WriteString(deviceType_)) { in Marshalling()
114 if (!parcel.ReadString(deviceType_)) { in ReadFromParcel()
135 "deviceType = " + deviceType_ + in Dump()
/ohos5.0/foundation/arkui/ace_engine/adapter/preview/osal/
H A Dsystem_properties.cpp60 DeviceType SystemProperties::deviceType_ { DeviceType::PHONE };
118 deviceType_ = DeviceType::TV; in InitDeviceType()
121 deviceType_ = DeviceType::WATCH; in InitDeviceType()
124 deviceType_ = DeviceType::CAR; in InitDeviceType()
127 deviceType_ = DeviceType::TABLET; in InitDeviceType()
130 deviceType_ = DeviceType::TWO_IN_ONE; in InitDeviceType()
133 deviceType_ = DeviceType::PHONE; in InitDeviceType()
140 return deviceType_; in GetDeviceType()
150 deviceType_ = DeviceType::PHONE; in InitDeviceTypeBySystemProperty()
/ohos5.0/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_CONNECTE… in GetLatestConnectDeivce()
73 || captureDesc->deviceType_ != desc->deviceType_ in GetPairCaptureDevice()
79 (captureDesc->deviceType_ != DEVICE_TYPE_BLUETOOTH_SCO || in GetPairCaptureDevice()
84 "isEnable[%{public}d] exceptionFlag[%{public}d]", captureDesc->deviceType_, in GetPairCaptureDevice()
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dres_config_impl.cpp50 deviceType_(DEVICE_NOT_SET), in ResConfigImpl()
162 this->deviceType_ = deviceType; in SetDeviceType()
284 return this->deviceType_; in GetDeviceType()
439 if (!IsDeviceTypeMatch(other->deviceType_)) { in Match()
476 if (this->deviceType_ != DEVICE_NOT_SET && deviceType != DEVICE_NOT_SET) { in IsDeviceTypeMatch()
477 if (this->deviceType_ != deviceType) { in IsDeviceTypeMatch()
549 if (this->deviceType_ != other->deviceType_ && in IsMoreSuitable()
550 request->deviceType_ != DeviceType::DEVICE_NOT_SET) { in IsMoreSuitable()
551 return this->deviceType_ != DeviceType::DEVICE_NOT_SET; in IsMoreSuitable()
713 if (this->deviceType_ != other->deviceType_) { in IsMoreSpecificThan()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/resource/
H A Dace_res_config.cpp436 …if (bestConfig.deviceType_ != DeviceType::UNKNOWN || candidateConfig.deviceType_ != DeviceType::UN… 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::UN… in IsCandidateDeclarativeResConfigPreferred()
481 if (bestConfig.deviceType_ != candidateConfig.deviceType_) { in IsCandidateDeclarativeResConfigPreferred()
482 return candidateConfig.deviceType_ != DeviceType::UNKNOWN; in IsCandidateDeclarativeResConfigPreferred()
601 …return supported.deviceType_ == DeviceType::UNKNOWN || supported.deviceType_ == desired.deviceType… in IsDeviceTypeMatch()
689 …ion_ == other.orientation_ && colorMode_ == other.colorMode_ && deviceType_ == other.deviceType_ && in operator ==()
908 deviceType_ = static_cast<DeviceType>(keyParam.value); in ParseConfig()
1052 if (resConfig.deviceType_ != DeviceType::UNKNOWN) { in ConvertResConfigToTag()
[all …]
/ohos5.0/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()
/ohos5.0/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; variable
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dsystem_properties.cpp395 ACE_WEAK_SYM DeviceType SystemProperties::deviceType_ { DeviceType::UNKNOWN };
517 return deviceType_; in GetDeviceType()
527 if (deviceType_ != DeviceType::UNKNOWN) { in InitDeviceTypeBySystemProperty()
534 deviceType_ = DeviceType::TV; in InitDeviceTypeBySystemProperty()
536 deviceType_ = DeviceType::CAR; in InitDeviceTypeBySystemProperty()
538 deviceType_ = DeviceType::WATCH; in InitDeviceTypeBySystemProperty()
540 deviceType_ = DeviceType::TABLET; in InitDeviceTypeBySystemProperty()
542 deviceType_ = DeviceType::TWO_IN_ONE; in InitDeviceTypeBySystemProperty()
544 deviceType_ = DeviceType::WEARABLE; in InitDeviceTypeBySystemProperty()
546 deviceType_ = DeviceType::PHONE; in InitDeviceTypeBySystemProperty()
/ohos5.0/base/telephony/call_manager/services/audio/src/
H A Daudio_proxy.cpp258 if (audioDeviceDescriptor->deviceType_ == AudioStandard::DEVICE_TYPE_WIRED_HEADSET || in OnDeviceChange()
259 audioDeviceDescriptor->deviceType_ == AudioStandard::DEVICE_TYPE_WIRED_HEADPHONES || in OnDeviceChange()
260 audioDeviceDescriptor->deviceType_ == AudioStandard::DEVICE_TYPE_USB_HEADSET) { in OnDeviceChange()
310 switch (desc[0]->deviceType_) { in GetPreferredOutputAudioDevice()
388 TELEPHONY_LOGI("OnPreferredOutputDeviceUpdated type: %{public}d", desc[0]->deviceType_); in OnPreferredOutputDeviceUpdated()
389 switch (desc[0]->deviceType_) { in OnPreferredOutputDeviceUpdated()
425 …GI("OnPreferredOutputDeviceUpdated, type: %{public}d", static_cast<int32_t>(desc[0]->deviceType_)); in OnPreferredOutputDeviceUpdated()
426 if (desc[0]->deviceType_ != AudioStandard::DEVICE_TYPE_SPEAKER) { in OnPreferredOutputDeviceUpdated()
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/bluetoothclient/
H A Dbluetooth_device_manager.cpp275 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleWearDevice()
296 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleUnwearDevice()
312 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleEnableDevice()
328 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleDisableDevice()
347 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleWearEnable()
374 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_A2DP; in HandleWearDisable()
690 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HandleWearDevice()
713 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HandleUnwearDevice()
729 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HandleEnableDevice()
745 desc.deviceType_ = DEVICE_TYPE_BLUETOOTH_SCO; in HandleDisableDevice()
[all …]
/ohos5.0/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), dhAt… in CapabilityInfo()
87 uint16_t deviceType_; variable
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dsystem_info.h54 …SystemInfo() : screenWidth_(0), screenHeight_(0), aspectRatio_(0.0), deviceType_(nullptr), isRound… in SystemInfo()
60 const char *deviceType_; variable
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audiopolicy/test/unittest/routing_manager_test/src/
H A Daudio_routing_manager_unit_test.cpp78 EXPECT_EQ(devDesc->deviceType_, DEVICE_TYPE_SPEAKER);
150 if (micDescriptor->deviceType_ == inputDescriptor->deviceType_) {
168 EXPECT_EQ(DEVICE_TYPE_NONE, activeDescriptor->deviceType_);
/ohos5.0/foundation/distributedhardware/distributed_hardware_fwk/services/distributedhardwarefwkservice/src/resourcemanager/
H A Dcapability_info.cpp65 return deviceType_; in GetDeviceType()
70 this->deviceType_ = deviceType; in SetDeviceType()
170 if (this->deviceType_ != capInfo.deviceType_) { in Compare()
/ohos5.0/foundation/ability/dmsfwk/services/dtbschedmgr/src/deviceManager/
H A Ddms_device_info.cpp38 return deviceType_; in GetDeviceType()
50 PARCEL_WRITE_HELPER_RET(parcel, Int32, deviceType_, false); in Marshalling()
/ohos5.0/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; variable
/ohos5.0/foundation/multimedia/audio_framework/frameworks/native/audioeffect/src/
H A Daudio_effect_chain_manager.cpp79 deviceType_ = DEVICE_TYPE_SPEAKER; in AudioEffectChainManager()
110 deviceType_ = (DeviceType)device; in UpdateDeviceInfo()
121 if (deviceType_ == (DeviceType)device) { in UpdateDeviceInfo()
128 deviceType_ = (DeviceType)device; in UpdateDeviceInfo()
136 if (deviceType_ == DEVICE_TYPE_SPEAKER) { in SetSpkOffloadState()
182 auto device = SUPPORTED_DEVICE_TYPE.find(deviceType_); in GetDeviceTypeName()
191 if (deviceType_ == DEVICE_TYPE_SPEAKER) { in GetOffloadEnabled()
461 if (deviceType_ != DEVICE_TYPE_SPEAKER) { in ExistAudioEffectChain()
1121 deviceType_ = DEVICE_TYPE_SPEAKER; in ResetInfo()
1365 if (deviceType_ == DEVICE_TYPE_BLUETOOTH_A2DP) { in UpdateSpatializationEnabled()
[all …]

123456