Home
last modified time | relevance | path

Searched refs:DeviceType (Results 1 – 25 of 32) sorted by relevance

12

/base/hiviewdfx/hiview/base/utility/
Dparameter_ex.cpp65 DeviceType GetDeviceType() in GetDeviceType()
69 return DeviceType::PHONE; in GetDeviceType()
71 return DeviceType::WATCH; in GetDeviceType()
73 return DeviceType::TV; in GetDeviceType()
75 return DeviceType::IVI; in GetDeviceType()
77 return DeviceType::UNKNOWN; in GetDeviceType()
/base/hiviewdfx/hiview/base/utility/test/unittest/common/
Dsystem_service_ohos_test.cpp54 ASSERT_TRUE(ret == Parameter::DeviceType::UNKNOWN ||
55 ret == Parameter::DeviceType::PHONE ||
56 ret == Parameter::DeviceType::WATCH ||
57 ret == Parameter::DeviceType::TV ||
58 ret == Parameter::DeviceType::IVI);
/base/web/webview/ohos_adapter/audio_adapter/src/
Daudio_system_manager_adapter_impl.cpp58 const std::unordered_map<DeviceType, std::string> DEVICE_TYPE_MAP = {
59 { DeviceType::DEVICE_TYPE_NONE, DEVICE_TYPE_NONE },
60 { DeviceType::DEVICE_TYPE_INVALID, DEVICE_TYPE_INVALID },
61 { DeviceType::DEVICE_TYPE_EARPIECE, DEVICE_TYPE_EARPIECE },
62 { DeviceType::DEVICE_TYPE_SPEAKER, DEVICE_TYPE_SPEAKER },
63 { DeviceType::DEVICE_TYPE_WIRED_HEADSET, DEVICE_TYPE_WIRED_HEADSET },
64 { DeviceType::DEVICE_TYPE_WIRED_HEADPHONES, DEVICE_TYPE_WIRED_HEADPHONES },
65 { DeviceType::DEVICE_TYPE_BLUETOOTH_SCO, DEVICE_TYPE_BLUETOOTH_SCO },
66 { DeviceType::DEVICE_TYPE_BLUETOOTH_A2DP, DEVICE_TYPE_BLUETOOTH_A2DP },
67 { DeviceType::DEVICE_TYPE_MIC, DEVICE_TYPE_MIC },
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp141 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PHONE, PHONE_STR);
142 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TABLET, TABLET_STR);
143 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_CAR, CAR_STR);
144 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PAD, PAD_STR);
145 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TV, TV_STR);
146 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_WEARABLE, WEARABLE_STR);
147 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_NOT_SET, "not_device_type");
Dres_config_impl_test.cpp328 current->SetDeviceType(DeviceType::DEVICE_CAR);
329 other->SetDeviceType(DeviceType::DEVICE_CAR);
344 current->SetDeviceType(DeviceType::DEVICE_CAR);
345 other->SetDeviceType(DeviceType::DEVICE_PAD);
360 other->SetDeviceType(DeviceType::DEVICE_PAD);
375 current->SetDeviceType(DeviceType::DEVICE_PAD);
453 current->SetDeviceType(DeviceType::DEVICE_PHONE);
455 other->SetDeviceType(DeviceType::DEVICE_PHONE);
471 current->SetDeviceType(DeviceType::DEVICE_PHONE);
472 other->SetDeviceType(DeviceType::DEVICE_PHONE);
[all …]
/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp141 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PHONE, PHONE_STR);
142 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TABLET, TABLET_STR);
143 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_CAR, CAR_STR);
144 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_PAD, PAD_STR);
145 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_TV, TV_STR);
146 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_WEARABLE, WEARABLE_STR);
147 TestKeyParam(KeyType::DEVICETYPE, DeviceType::DEVICE_NOT_SET, "not_device_type");
Dres_config_impl_test.cpp357 current->SetDeviceType(DeviceType::DEVICE_CAR);
358 other->SetDeviceType(DeviceType::DEVICE_CAR);
373 current->SetDeviceType(DeviceType::DEVICE_CAR);
374 other->SetDeviceType(DeviceType::DEVICE_PAD);
389 other->SetDeviceType(DeviceType::DEVICE_PAD);
404 current->SetDeviceType(DeviceType::DEVICE_PAD);
482 current->SetDeviceType(DeviceType::DEVICE_PHONE);
484 other->SetDeviceType(DeviceType::DEVICE_PHONE);
500 current->SetDeviceType(DeviceType::DEVICE_PHONE);
501 other->SetDeviceType(DeviceType::DEVICE_PHONE);
[all …]
Dresource_manager_test_common.h67 void AddColorModeResource(DeviceType deviceType, ColorMode colorMode, float screenDensity);
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dres_config_impl.h60 void SetDeviceType(DeviceType deviceType);
82 DeviceType GetDeviceType() const;
120 DeviceType deviceType_;
Dres_config.h33 virtual void SetDeviceType(DeviceType deviceType) = 0;
45 virtual DeviceType GetDeviceType() const = 0;
Dhap_parser.h91 static DeviceType GetDeviceType(uint32_t value);
Dres_common.h86 enum DeviceType { enum
/base/global/resource_management/frameworks/resmgr/include/
Dres_config_impl.h60 void SetDeviceType(DeviceType deviceType);
112 DeviceType GetDeviceType() const;
175 bool IsDeviceTypeMatch(DeviceType deviceType) const;
200 DeviceType deviceType_;
Dhap_parser.h168 static DeviceType GetDeviceType(uint32_t value);
219 DeviceType deviceType = DEVICE_NOT_SET;
/base/hiviewdfx/hiview/base/utility/include/
Dparameter_ex.h24 enum DeviceType { enum
41 DeviceType GetDeviceType();
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_desc.cpp58 case DeviceType::DEVICE_PHONE: in GetDeviceTypeStr()
61 case DeviceType::DEVICE_TABLET: in GetDeviceTypeStr()
64 case DeviceType::DEVICE_CAR: in GetDeviceTypeStr()
67 case DeviceType::DEVICE_PAD: in GetDeviceTypeStr()
70 case DeviceType::DEVICE_TV: in GetDeviceTypeStr()
73 case DeviceType::DEVICE_WEARABLE: in GetDeviceTypeStr()
Dres_config_impl.cpp78 void ResConfigImpl::SetDeviceType(DeviceType deviceType) in SetDeviceType()
113 DeviceType ResConfigImpl::GetDeviceType() const in GetDeviceType()
235 request->deviceType_ != DeviceType::DEVICE_NOT_SET) { in IsMoreSuitable()
236 return this->deviceType_ != DeviceType::DEVICE_NOT_SET; in IsMoreSuitable()
296 return (this->deviceType_ != DeviceType::DEVICE_NOT_SET); in IsMoreSpecificThan()
/base/global/resource_management/frameworks/resmgr/src/
Dres_desc.cpp70 case DeviceType::DEVICE_PHONE: in GetDeviceTypeStr()
73 case DeviceType::DEVICE_TABLET: in GetDeviceTypeStr()
76 case DeviceType::DEVICE_CAR: in GetDeviceTypeStr()
79 case DeviceType::DEVICE_PAD: in GetDeviceTypeStr()
82 case DeviceType::DEVICE_TV: in GetDeviceTypeStr()
85 case DeviceType::DEVICE_WEARABLE: in GetDeviceTypeStr()
88 case DeviceType::DEVICE_TWOINONE: in GetDeviceTypeStr()
Dres_config_impl.cpp148 void ResConfigImpl::SetDeviceType(DeviceType deviceType) in SetDeviceType()
249 DeviceType ResConfigImpl::GetDeviceType() const in GetDeviceType()
415 bool ResConfigImpl::IsDeviceTypeMatch(DeviceType deviceType) const in IsDeviceTypeMatch()
488 request->deviceType_ != DeviceType::DEVICE_NOT_SET) { in IsMoreSuitable()
489 return this->deviceType_ != DeviceType::DEVICE_NOT_SET; in IsMoreSuitable()
662 return (this->deviceType_ != DeviceType::DEVICE_NOT_SET); in IsMoreSpecificThan()
/base/update/updater/services/include/fs_manager/
Dpartitions.h62 } DeviceType; typedef
73 DeviceType type; // SCSI, MMC, etc
/base/global/resource_management/interfaces/inner_api/include/
Dres_config.h38 virtual void SetDeviceType(DeviceType deviceType) = 0;
58 virtual DeviceType GetDeviceType() const = 0;
Dres_common.h107 enum DeviceType { enum
/base/update/updateservice/interfaces/inner_api/include/
Dupdate_helper.h250 enum class DeviceType { enum
285 DeviceType deviceType;
324 DeviceType deviceType = DeviceType::UNKNOWN;
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp414 DeviceType deviceType = DEVICE_NOT_SET; in CreateResConfigFromKeyParams()
448 DeviceType HapParser::GetDeviceType(uint32_t value) in GetDeviceType()
450 DeviceType deviceType = DEVICE_NOT_SET; in GetDeviceType()
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp681 DeviceType HapParser::GetDeviceType(uint32_t value) in GetDeviceType()
683 DeviceType deviceType = DEVICE_NOT_SET; in GetDeviceType()

12