Home
last modified time | relevance | path

Searched refs:deviceType (Results 1 – 25 of 61) sorted by relevance

123

/base/telephony/call_manager/services/audio/src/
Daudio_device_manager.cpp60 .deviceType = AudioDeviceType::DEVICE_SPEAKER, in Init()
65 .deviceType = AudioDeviceType::DEVICE_EARPIECE, in Init()
71 void AudioDeviceManager::AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType) in AddAudioDeviceList() argument
76 if (it->address == address && it->deviceType == deviceType) { in AddAudioDeviceList()
80 …if (deviceType == AudioDeviceType::DEVICE_WIRED_HEADSET && it->deviceType == AudioDeviceType::DEVI… in AddAudioDeviceList()
92 audioDevice.deviceType = deviceType; in AddAudioDeviceList()
102 if (deviceType == AudioDeviceType::DEVICE_WIRED_HEADSET) { in AddAudioDeviceList()
105 if (deviceType == AudioDeviceType::DEVICE_BLUETOOTH_SCO) { in AddAudioDeviceList()
112 …d AudioDeviceManager::RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType) in RemoveAudioDeviceList() argument
118 if (it->deviceType == AudioDeviceType::DEVICE_EARPIECE) { in RemoveAudioDeviceList()
[all …]
Daudio_proxy.cpp286 device.deviceType = AudioDeviceType::DEVICE_BLUETOOTH_SCO; in GetPreferredOutputAudioDevice()
298 device.deviceType = AudioDeviceType::DEVICE_EARPIECE; in GetPreferredOutputAudioDevice()
301 device.deviceType = AudioDeviceType::DEVICE_SPEAKER; in GetPreferredOutputAudioDevice()
306 device.deviceType = AudioDeviceType::DEVICE_WIRED_HEADSET; in GetPreferredOutputAudioDevice()
357 device.deviceType = AudioDeviceType::DEVICE_BLUETOOTH_SCO; in OnPreferredOutputDeviceUpdated()
367 … DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
370 device.deviceType = AudioDeviceType::DEVICE_EARPIECE; in OnPreferredOutputDeviceUpdated()
371 … DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
374 device.deviceType = AudioDeviceType::DEVICE_SPEAKER; in OnPreferredOutputDeviceUpdated()
375 … DelayedSingleton<AudioDeviceManager>::GetInstance()->SetCurrentAudioDevice(device.deviceType); in OnPreferredOutputDeviceUpdated()
[all …]
/base/useriam/face_auth/ui/Settings_FaceAuth/entry/src/main/ets/config/
Dconfig.ts21 private deviceType : string = 'tablet'; property in Config
30 this.deviceType = "tablet"
36 this.deviceType = "phone"
38 this.deviceType = "tablet"
45 return this.deviceType
/base/web/webview/ohos_adapter/system_properties_adapter/src/
Dsystem_properties_adapter_impl.cpp53 std::string deviceType = OHOS::system::GetDeviceType(); in GetProductDeviceType() local
54 if (deviceType == "phone" || deviceType == "default") { in GetProductDeviceType()
56 } else if (deviceType == "tablet") { in GetProductDeviceType()
58 } else if (deviceType == "2in1") { in GetProductDeviceType()
/base/hiviewdfx/hiview/base/utility/
Dparameter_ex.cpp62 std::string deviceType = GetString(KEY_BUILD_CHARACTER, "unknown"); in GetDeviceType() local
63 if (deviceType == "phone" || deviceType == "default") { in GetDeviceType()
65 } else if (deviceType == "watch") { in GetDeviceType()
67 } else if (deviceType == "tv") { in GetDeviceType()
69 } else if (deviceType == "car") { in GetDeviceType()
/base/telephony/call_manager/services/audio/include/
Daudio_device_manager.h41 static void SetDeviceAvailable(AudioDeviceType deviceType, bool available);
44 void AddAudioDeviceList(const std::string &address, AudioDeviceType deviceType);
45 void RemoveAudioDeviceList(const std::string &address, AudioDeviceType deviceType);
48 void SetCurrentAudioDevice(AudioDeviceType deviceType);
/base/security/appverify/interfaces/innerkits/appverify/src/init/
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/distributed/test/unittest/mock/
Dmock_distributed_kv_data_manager.cpp54 localDevice.deviceType = "<localDeviceType>"; in GetLocalDevice()
63 .deviceType = "<localDeviceType>", in GetDeviceList()
68 .deviceType = "<remoteDeviceType>", in GetDeviceList()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
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 = DEVICE_WEARABLE; in GetDeviceType()
[all …]
/base/security/access_token/services/tokensyncmanager/src/device/
Ddevice_info_repository.cpp127 SaveDeviceInfo(deviceInfo.deviceId, deviceInfo.deviceName, deviceInfo.deviceType); in SaveDeviceInfo()
131 const DeviceId deviceId, const std::string &deviceName, const std::string &deviceType) in SaveDeviceInfo() argument
134 …deviceId.networkId, deviceId.universallyUniqueId, deviceId.uniqueDeviceId, deviceName, deviceType); in SaveDeviceInfo()
138 const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) in SaveDeviceInfo() argument
154 deviceInfo.deviceType = deviceType; in SaveDeviceInfo()
Ddevice_info_manager.cpp44 const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType) in AddDeviceInfo() argument
48 … !DataValidator::IsDeviceIdValid(uniqueDeviceId) || deviceName.empty() || deviceType.empty()) { in AddDeviceInfo()
53 networkId, universallyUniqueId, uniqueDeviceId, deviceName, deviceType); in AddDeviceInfo()
141 LABEL, ">>> DeviceInfoRepository device type: %{public}s", info.deviceType.c_str()); in ConvertToUniqueDeviceIdOrFetch()
/base/security/access_token/services/tokensyncmanager/test/unittest/token_sync_service/
Dtoken_sync_service_test.cpp1048 std::string deviceType; variable
1053 ASSERT_EQ("", deviceType);
1055 deviceType); // all empty
1061 deviceType = "123";
1066 ASSERT_NE("", deviceType);
1068 deviceType); // all valued
1089 std::string deviceType = "123"; variable
1094 deviceType);
1122 std::string deviceType = "123"; variable
1124 deviceType); // add 123 nodeid
[all …]
/base/security/access_token/services/tokensyncmanager/include/device/
Ddevice_info_repository.h42 …eDeviceInfo(const DeviceId deviceId, const std::string &deviceName, const std::string &deviceType);
45 … const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType);
Ddevice_info.h40 std::string deviceType; member
Ddevice_info_manager.h63 … const std::string &uniqueDeviceId, const std::string &deviceName, const std::string &deviceType);
/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/ServiceExtAbility/
DNotificationServiceExtAbility.ts79 if (deviceInfo.deviceType === 'default' || deviceInfo.deviceType === 'phone') {
/base/global/resource_management/frameworks/resmgr/include/
Dres_config_impl.h58 void SetDeviceType(DeviceType deviceType);
162 bool IsDeviceTypeMatch(DeviceType deviceType) const;
Dhap_parser.h197 std::string deviceType; member
209 DeviceType deviceType = DEVICE_NOT_SET; member
/base/web/webview/ohos_adapter/display_manager_adapter/src/
Ddisplay_manager_adapter_impl.cpp177 std::string deviceType = OHOS::system::GetDeviceType(); in IsDefaultPortrait() local
178 return deviceType == "phone" || deviceType == "default"; in IsDefaultPortrait()
/base/telephony/call_manager/test/fuzztest/audiodevice_fuzzer/
Daudiodevice_fuzzer.cpp71 .deviceType = static_cast<AudioDeviceType>(size % AUDIO_DEVICE_NUM), in AudioControlManagerFunc()
106 AudioDeviceType deviceType = static_cast<AudioDeviceType>(size % AUDIO_DEVICE_NUM); in AudioDeviceManagerFunc() local
115 audioDeviceManager->SwitchDevice(deviceType); in AudioDeviceManagerFunc()
126 audioDeviceManager->SetCurrentAudioDevice(deviceType); in AudioDeviceManagerFunc()
/base/security/appverify/interfaces/innerkits/appverify/include/init/
Ddevice_type_manager.h42 bool deviceType;
/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/
DnotificationDialog.ets37 if (this.isLand || !(deviceInfo.deviceType == 'default' || deviceInfo.deviceType == 'phone')) {
/base/telephony/call_manager/frameworks/native/src/
Dbluetooth_call_client.cpp279 int32_t BluetoothCallClient::SetAudioDevice(AudioDeviceType deviceType, const std::string &bluetoot… in SetAudioDevice() argument
286 device.deviceType = static_cast<AudioDeviceType>(deviceType); in SetAudioDevice()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp608 configKey.deviceType = GetDeviceType(kp->value_); in CreateResConfigFromKeyParams()
640 resConfig->SetDeviceType(configKey->deviceType); in BuildResConfig()
658 DeviceType deviceType = DEVICE_NOT_SET; in GetDeviceType() local
660 deviceType = DEVICE_CAR; in GetDeviceType()
662 deviceType = DEVICE_PAD; in GetDeviceType()
664 deviceType = DEVICE_PHONE; in GetDeviceType()
666 deviceType = DEVICE_TABLET; in GetDeviceType()
668 deviceType = DEVICE_TV; in GetDeviceType()
670 deviceType = DEVICE_WEARABLE; in GetDeviceType()
672 return deviceType; in GetDeviceType()
[all …]
/base/security/device_security_level/services/dslm/
Ddslm_core_defines.h44 uint32_t deviceType; member

123