Home
last modified time | relevance | path

Searched refs:deviceType (Results 1 - 25 of 140) sorted by relevance

123456

/base/telephony/call_manager/services/audio/src/
H A Daudio_device_manager.cpp73 .deviceType = AudioDeviceType::DEVICE_SPEAKER, in Init()
78 .deviceType = AudioDeviceType::DEVICE_EARPIECE, in Init()
90 TELEPHONY_LOGI("available deviceType : %{public}d", audioDevice->deviceType_); in IsSupportEarpiece()
106 if (it->deviceType == AudioDeviceType::DEVICE_EARPIECE) { in UpdateEarpieceDevice()
121 if (it->address == macAddress && it->deviceType == AudioDeviceType::DEVICE_BLUETOOTH_SCO) { in UpdateBluetoothDeviceName()
142 void AudioDeviceManager::AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType, in AddAudioDeviceList() argument
148 if (it->address == address && it->deviceType == deviceType) { in AddAudioDeviceList()
152 if (deviceType == AudioDeviceType::DEVICE_WIRED_HEADSET && it->deviceType in AddAudioDeviceList()
195 RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType) RemoveAudioDeviceList() argument
434 SetCurrentAudioDevice(AudioDeviceType deviceType) SetCurrentAudioDevice() argument
455 AudioDeviceType deviceType = device.deviceType; SetCurrentAudioDevice() local
640 IsDistributedAudioDeviceType(AudioDeviceType deviceType) IsDistributedAudioDeviceType() argument
651 SetDeviceAvailable(AudioDeviceType deviceType, bool available) SetDeviceAvailable() argument
[all...]
H A Daudio_control_manager.cpp102 .deviceType = AudioDeviceType::DEVICE_EARPIECE, in HandleCallStateUpdatedForVoip()
107 DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in HandleCallStateUpdatedForVoip()
157 .deviceType = AudioDeviceType::DEVICE_SPEAKER, in VideoStateUpdated()
166 device.deviceType = initDeviceType; in VideoStateUpdated()
190 device.deviceType = initDeviceType; in CheckTypeAndSetAudioDevice()
192 TELEPHONY_LOGI("set device type, type: %{public}d", static_cast<int32_t>(device.deviceType)); in CheckTypeAndSetAudioDevice()
195 device.deviceType = AudioDeviceType::DEVICE_EARPIECE; in CheckTypeAndSetAudioDevice()
199 device.deviceType = initDeviceType; in CheckTypeAndSetAudioDevice()
201 TELEPHONY_LOGI("set device type, type: %{public}d", static_cast<int32_t>(device.deviceType)); in CheckTypeAndSetAudioDevice()
219 .deviceType in UpdateDeviceTypeForVideoOrSatelliteCall()
[all...]
H A Daudio_proxy.cpp314 device.deviceType = AudioDeviceType::DEVICE_BLUETOOTH_SCO; in GetPreferredOutputAudioDevice()
329 device.deviceType = AudioDeviceType::DEVICE_EARPIECE; in GetPreferredOutputAudioDevice()
332 device.deviceType = AudioDeviceType::DEVICE_SPEAKER; in GetPreferredOutputAudioDevice()
337 device.deviceType = AudioDeviceType::DEVICE_WIRED_HEADSET; in GetPreferredOutputAudioDevice()
404 device.deviceType = AudioDeviceType::DEVICE_EARPIECE; in OnPreferredOutputDeviceUpdated()
405 DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
408 device.deviceType = AudioDeviceType::DEVICE_SPEAKER; in OnPreferredOutputDeviceUpdated()
409 DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
414 device.deviceType = AudioDeviceType::DEVICE_WIRED_HEADSET; in OnPreferredOutputDeviceUpdated()
417 DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
[all...]
/base/notification/distributed_notification_service/services/ans/src/
H A Ddistributed_device_status.cpp24 ErrCode DistributedDeviceStatus::SetDeviceStatus(const std::string &deviceType, const uint32_t status) in SetDeviceStatus() argument
26 deviceStatus_.EnsureInsert(deviceType, status); in SetDeviceStatus()
30 uint32_t DistributedDeviceStatus::GetDeviceStatus(const std::string &deviceType) in GetDeviceStatus() argument
32 return deviceStatus_.ReadVal(deviceType); in GetDeviceStatus()
/base/update/updateservice/interfaces/inner_api/feature/update/model/upgrade_info/
H A Dupgrade_info.h32 DeviceType deviceType = DeviceType::UNKNOWN; member
56 if (deviceType != other.deviceType) { in operator <()
57 return deviceType < other.deviceType; in operator <()
/base/notification/distributed_notification_service/frameworks/ans/src/
H A Dnotification_subscriber.cpp33 void NotificationSubscriber::SetDeviceType(const std::string &deviceType) in SetDeviceType() argument
35 deviceType_ = deviceType; in SetDeviceType()
45 const std::string &deviceType, std::shared_ptr<Notification> &notification) const in ProcessSyncDecision()
56 auto flagIter = flagsMap->find(deviceType); in ProcessSyncDecision()
75 if (deviceType.size() <= 0 || deviceType.compare(NotificationConstant::CURRENT_DEVICE_TYPE) == 0) { in ProcessSyncDecision()
78 ANS_LOGD("No need to consume cause cannot find deviceFlags. deviceType: %{public}s.", deviceType.c_str()); in ProcessSyncDecision()
44 ProcessSyncDecision( const std::string &deviceType, std::shared_ptr<Notification> &notification) const ProcessSyncDecision() argument
/base/telephony/call_manager/test/unittest/distributed_communication_test/src/
H A Ddistributed_communication_manager_test.cpp104 AudioDeviceType deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PHONE; in HWTEST_F() local
108 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
113 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
118 deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PAD; in HWTEST_F()
120 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
134 AudioDeviceType deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PHONE; in HWTEST_F() local
137 ASSERT_NO_THROW(dcManager->OnDeviceOffline(devId, devName, deviceType, devRole)); in HWTEST_F()
141 ASSERT_NO_THROW(dcManager->OnDeviceOnline(devId, devName, deviceType, devRole)); in HWTEST_F()
144 ASSERT_NO_THROW(dcManager->OnDeviceOffline(devId, devName, deviceType, devRole)); in HWTEST_F()
158 AudioDeviceType deviceType in HWTEST_F() local
[all...]
H A Ddistributed_dev_switch_test.cpp43 AudioDeviceType deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PHONE; in HWTEST_F() local
45 ASSERT_NO_THROW(devSwitchController->OnDeviceOnline(devId, devName, deviceType)); in HWTEST_F()
46 ASSERT_NO_THROW(devSwitchController->OnDeviceOffline(devId, devName, deviceType)); in HWTEST_F()
48 deviceType, static_cast<int32_t>(devRole))); in HWTEST_F()
H A Ddistributed_dev_observer_test.cpp49 AudioDeviceType deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PHONE; in HWTEST_F() local
60 ASSERT_NO_THROW(deviceObserver->OnDeviceOnline(devId, devName, deviceType)); in HWTEST_F()
61 ASSERT_NO_THROW(deviceObserver->OnDeviceOffline(devId, devName, deviceType)); in HWTEST_F()
/base/telephony/call_manager/services/audio/include/
H A Daudio_device_manager.h44 static void SetDeviceAvailable(AudioDeviceType deviceType, bool available);
46 void AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType, const std::string &deviceName);
47 void RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType);
54 void SetCurrentAudioDevice(AudioDeviceType deviceType);
108 bool IsDistributedAudioDeviceType(AudioDeviceType deviceType);
/base/security/appverify/interfaces/innerkits/appverify/src/init/
H A Ddevice_type_manager.cpp35 DeviceTypeManager::DeviceTypeManager() : deviceType(false), getDeviceTypeMtx() in DeviceTypeManager()
57 if (currentDeviceType == deviceType) { in GetDeviceTypeInfo()
79 deviceType = currentDeviceType; in GetDeviceTypeInfo()
/base/notification/distributed_notification_service/services/ans/src/notification_smart_reminder/
H A Dsmart_reminder_center.cpp90 void SmartReminderCenter::ParseReminderFilterDevice(const nlohmann::json &root, const string &deviceType) in ParseReminderFilterDevice() argument
121 reminderMethods_[deviceType] = move(reminderFilterDevice); in ParseReminderFilterDevice()
123 ANS_LOGI("ParseReminderFilterDevice failed as Invalid reminderFilterDevice size. deviceType = %{public}s.", in ParseReminderFilterDevice()
124 deviceType.c_str()); in ParseReminderFilterDevice()
258 const string &deviceType, in HandleReminderMethods()
270 GetDeviceStatusByType(deviceType, bitStatus); in HandleReminderMethods()
272 if (deviceType.compare(NotificationConstant::CURRENT_DEVICE_TYPE) != 0) { in HandleReminderMethods()
273 if (IsNeedSynergy(deviceType, request->GetOwnerBundleName())) { in HandleReminderMethods()
274 validDevices.insert(deviceType); in HandleReminderMethods()
288 (*notificationFlagsOfDevices)[deviceType] in HandleReminderMethods()
257 HandleReminderMethods( const string &deviceType, const map<string, vector<shared_ptr<ReminderAffected>>> &reminderFilterDevice, const sptr<NotificationRequest> &request, set<string> &validDevices, shared_ptr<map<string, shared_ptr<NotificationFlags>>> notificationFlagsOfDevices) const HandleReminderMethods() argument
298 IsNeedSynergy(const string &deviceType, const string &ownerBundleName) const IsNeedSynergy() argument
319 HandleAffectedReminder( const string &deviceType, const shared_ptr<ReminderAffected> &reminderAffected, const set<string> &validDevices, shared_ptr<map<string, shared_ptr<NotificationFlags>>> notificationFlagsOfDevices) const HandleAffectedReminder() argument
399 GetDeviceStatusByType( const string &deviceType, bitset<DistributedDeviceStatus::STATUS_SIZE> &bitStatus) const GetDeviceStatusByType() argument
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_subscribe_info_test.cpp143 std::string deviceType = "test"; in HWTEST_F() local
146 rrc->AddDeviceType(deviceType); in HWTEST_F()
147 EXPECT_EQ(rrc->GetDeviceType(), deviceType); in HWTEST_F()
158 std::string deviceType = "test"; in HWTEST_F() local
163 rrc->AddDeviceType(deviceType); in HWTEST_F()
168 "deviceType = " + deviceType + in HWTEST_F()
/base/telephony/call_manager/services/distributed_call/src/distributed_communication/
H A Ddistributed_device_observer.cpp144 AudioDeviceType deviceType = ConvertDeviceType(devType); in OnDistributedDeviceOnline() local
145 if (deviceType == AudioDeviceType::DEVICE_UNKNOWN) { in OnDistributedDeviceOnline()
152 distributedMgr->OnDeviceOnline(devId, devName, deviceType, devRole); in OnDistributedDeviceOnline()
164 AudioDeviceType deviceType = ConvertDeviceType(devType); in OnDistributedAudioDeviceChange() local
165 if (deviceType == AudioDeviceType::DEVICE_UNKNOWN) { in OnDistributedAudioDeviceChange()
170 deviceObserver->OnDistributedAudioDeviceChange(devId, devName, deviceType, devRole); in OnDistributedAudioDeviceChange()
179 AudioDeviceType deviceType = ConvertDeviceType(devType); in OnDistributedDeviceOffline() local
180 if (deviceType == AudioDeviceType::DEVICE_UNKNOWN) { in OnDistributedDeviceOffline()
187 distributedMgr->OnDeviceOffline(devId, devName, deviceType, devRole); in OnDistributedDeviceOffline()
/base/telephony/call_manager/services/distributed_call/src/
H A Ddistributed_call_manager.cpp66 if ((device.deviceType == AudioDeviceType::DEVICE_DISTRIBUTED_PHONE) || in IsDistributedAudioDevice()
67 (device.deviceType == AudioDeviceType::DEVICE_DISTRIBUTED_PAD) || in IsDistributedAudioDevice()
68 (device.deviceType == AudioDeviceType::DEVICE_DISTRIBUTED_AUTOMOTIVE)) { in IsDistributedAudioDevice()
126 device.deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PHONE; in CreateDAudioDevice()
129 device.deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_PAD; in CreateDAudioDevice()
132 device.deviceType = AudioDeviceType::DEVICE_DISTRIBUTED_AUTOMOTIVE; in CreateDAudioDevice()
150 TELEPHONY_LOGE("not distributed audio device, device type: %{public}d", device.deviceType); in GetDevIdFromAudioDevice()
193 DelayedSingleton<AudioDeviceManager>::GetInstance()->AddAudioDeviceList(device.address, device.deviceType, ""); in AddDCallDevice()
197 if (device.deviceType == AudioDeviceType::DEVICE_DISTRIBUTED_AUTOMOTIVE && IsSelectVirtualModem()) { in AddDCallDevice()
216 iter->second.address, iter->second.deviceType); in RemoveDCallDevice()
[all...]
/base/notification/distributed_notification_service/services/ans/include/
H A Dsmart_reminder_center.h52 void ParseReminderFilterDevice(const nlohmann::json &root, const string &deviceType);
66 const string &deviceType,
72 const string &deviceType,
80 void GetDeviceStatusByType(const string &deviceType, bitset<DistributedDeviceStatus::STATUS_SIZE> &bitStatus) const;
81 bool IsNeedSynergy(const string &deviceType, const string &ownerBundleName) const;
H A Ddistributed_device_status.h33 ErrCode SetDeviceStatus(const std::string &deviceType, const uint32_t status);
35 uint32_t GetDeviceStatus(const std::string &deviceType);
/base/print/print_fwk/frameworks/helper/scan_helper/src/
H A Dscanner_info.cpp28 deviceType=""; in ScanDeviceInfoTCP()
42 deviceType = right.deviceType; in ScanDeviceInfoTCP()
57 deviceType = right.deviceType; in operator =()
89 deviceType = deviceType_; in SetDeviceType()
139 return deviceType; in GetDeviceType()
211 deviceType = ""; in ScanDeviceInfo()
223 deviceType = right.deviceType; in ScanDeviceInfo()
[all...]
/base/notification/distributed_notification_service/frameworks/js/napi/include/manager/
H A Dnapi_distributed_enable.h27 std::string deviceType; member
39 std::string deviceType; member
/base/notification/distributed_notification_service/services/distributed/test/unittest/mock/
H A Dmock_distributed_kv_data_manager.cpp54 localDevice.deviceType = "<localDeviceType>"; in GetLocalDevice()
63 .deviceType = "<localDeviceType>", in GetDeviceList()
68 .deviceType = "<remoteDeviceType>", in GetDeviceList()
/base/security/access_token/services/tokensyncmanager/src/device/
H A Ddevice_info_repository.cpp136 SaveDeviceInfo(deviceInfo.deviceId, deviceInfo.deviceName, deviceInfo.deviceType); in SaveDeviceInfo()
140 const DeviceId deviceId, const std::string &deviceName, const std::string &deviceType) in SaveDeviceInfo()
143 deviceId.networkId, deviceId.universallyUniqueId, deviceId.uniqueDeviceId, deviceName, deviceType); in SaveDeviceInfo()
147 const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) in SaveDeviceInfo()
163 deviceInfo.deviceType = deviceType; in SaveDeviceInfo()
139 SaveDeviceInfo( const DeviceId deviceId, const std::string &deviceName, const std::string &deviceType) SaveDeviceInfo() argument
146 SaveDeviceInfo(const std::string &networkId, const std::string &universallyUniqueId, const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) SaveDeviceInfo() argument
H A Ddevice_info_manager.cpp51 const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) in AddDeviceInfo()
55 !DataValidator::IsDeviceIdValid(uniqueDeviceId) || deviceName.empty() || deviceType.empty()) { in AddDeviceInfo()
60 networkId, universallyUniqueId, uniqueDeviceId, deviceName, deviceType); in AddDeviceInfo()
148 LABEL, ">>> DeviceInfoRepository device type: %{public}s", info.deviceType.c_str()); in ConvertToUniqueDeviceIdOrFetch()
50 AddDeviceInfo(const std::string &networkId, const std::string &universallyUniqueId, const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) AddDeviceInfo() argument
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
H A Dhap_parser.cpp414 DeviceType deviceType = DEVICE_NOT_SET; in CreateResConfigFromKeyParams() local
427 deviceType = GetDeviceType(kp->value_); in CreateResConfigFromKeyParams()
436 resConfig->SetDeviceType(deviceType); in CreateResConfigFromKeyParams()
450 DeviceType deviceType = DEVICE_NOT_SET; in GetDeviceType() local
452 deviceType = DEVICE_CAR; in GetDeviceType()
454 deviceType = DEVICE_PAD; in GetDeviceType()
456 deviceType = DEVICE_PHONE; in GetDeviceType()
458 deviceType = DEVICE_TABLET; in GetDeviceType()
460 deviceType = DEVICE_TV; in GetDeviceType()
462 deviceType in GetDeviceType()
506 std::string deviceType; ToFolderPath() local
[all...]
/base/security/access_token/services/tokensyncmanager/test/unittest/
H A Dtoken_sync_service_test.cpp924 std::string deviceType; in HWTEST_F() local
929 ASSERT_EQ("", deviceType); in HWTEST_F()
931 deviceType); // all empty in HWTEST_F()
937 deviceType = "123"; in HWTEST_F()
942 ASSERT_NE("", deviceType); in HWTEST_F()
944 deviceType); // all valued in HWTEST_F()
965 std::string deviceType = "123"; in HWTEST_F() local
970 deviceType); in HWTEST_F()
998 std::string deviceType = "123"; in HWTEST_F() local
1000 deviceType); // ad in HWTEST_F()
1044 std::string deviceType = "123"; HWTEST_F() local
1081 std::string deviceType = "123"; HWTEST_F() local
1117 std::string deviceType = "123"; HWTEST_F() local
1140 std::string deviceType = "123"; HWTEST_F() local
1210 std::string deviceType = "123"; HWTEST_F() local
[all...]
/base/global/i18n/frameworks/intl/test/unittest/
H A Dintl_test_extent.cpp612 std::string deviceType; in HWTEST_F() local
614 deviceType = value; in HWTEST_F()
628 if (deviceType == "wearable" || deviceType == "liteWearable" || deviceType == "watch") { in HWTEST_F()
631 } else if (deviceType == "tablet" || deviceType == "2in1" || deviceType == "tv" || deviceType == "pc") { in HWTEST_F()
654 std::string deviceType; in HWTEST_F() local
686 std::string deviceType; HWTEST_F() local
735 std::string deviceType; HWTEST_F() local
787 std::string deviceType; HWTEST_F() local
[all...]

Completed in 18 milliseconds

123456