Home
last modified time | relevance | path

Searched refs:KeyType (Results 1 – 14 of 14) sorted by relevance

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dres_desc_test.cpp116 void TestKeyParam(KeyType keyType, int value, std::string expectStr) in TestKeyParam()
132 TestKeyParam(KeyType::LANGUAGES, 25966, "en");
133 TestKeyParam(KeyType::LANGUAGES, 31336, "zh");
135 TestKeyParam(KeyType::REGION, 21843, "US");
136 TestKeyParam(KeyType::REGION, 17230, "CN");
138 TestKeyParam(KeyType::DIRECTION, 0, VERTICAL);
139 TestKeyParam(KeyType::DIRECTION, 1, HORIZONTAL);
141 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);
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dres_desc_test.cpp116 void TestKeyParam(KeyType keyType, int value, std::string expectStr) in TestKeyParam()
132 TestKeyParam(KeyType::LANGUAGES, 25966, "en");
133 TestKeyParam(KeyType::LANGUAGES, 31336, "zh");
135 TestKeyParam(KeyType::REGION, 21843, "US");
136 TestKeyParam(KeyType::REGION, 17230, "CN");
138 TestKeyParam(KeyType::DIRECTION, 0, VERTICAL);
139 TestKeyParam(KeyType::DIRECTION, 1, HORIZONTAL);
141 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);
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Dres_desc.cpp34 if (type_ == KeyType::SCREEN_DENSITY) { in GetScreenDensityStr()
63 if (type_ == KeyType::DEVICETYPE) { in GetDeviceTypeStr()
93 if (type_ == KeyType::COLORMODE) { in GetColorModeStr()
111 if (type_ == KeyType::INPUTDEVICE) { in GetInputDeviceStr()
122 if (type_ == KeyType::MCC) { in GetMccStr()
131 if (type_ == KeyType::MNC) { in GetMncStr()
139 if ((type_ == KeyType::LANGUAGES) || (type_ == KeyType::REGION) || (type_ == KeyType::SCRIPT)) { in ConvertToStr()
157 if (type_ == KeyType::DIRECTION) { in ConvertToStr()
160 if (type_ == KeyType::DEVICETYPE) { in ConvertToStr()
163 if (type_ == KeyType::COLORMODE) { in ConvertToStr()
[all …]
Dhap_resource.cpp461 std::vector<bool> keyTypes(KeyType::KEY_TYPE_MAX - 1, false); in GetResourceLimitKeys()
484 if (keyParam->type_ < KeyType::KEY_TYPE_MAX && !keyTypes[typeValue]) { in GetLimitPathsKeys()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dres_desc.cpp27 if (type_ == KeyType::SCREEN_DENSITY) { in GetScreenDensityStr()
56 if (type_ == KeyType::DEVICETYPE) { in GetDeviceTypeStr()
84 if ((type_ == KeyType::LANGUAGES) || (type_ == KeyType::REGION) || (type_ == KeyType::SCRIPT)) { in ConvertToStr()
102 if (type_ == KeyType::DIRECTION) { in ConvertToStr()
105 if (type_ == KeyType::DEVICETYPE) { in ConvertToStr()
108 if (type_ == KeyType::SCREEN_DENSITY) { in ConvertToStr()
Dglobal_utils.c322 keys[i].keyParams[j].type = (KeyType)GetDefaultOffsetValue(file); in GetKeyParams()
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dglobal_utils.h30 typedef enum KeyType { enum
38 } KeyType; typedef
68 KeyType type;
Dres_common.h43 typedef enum KeyType { enum
55 } KeyType; typedef
Dres_desc.h133 KeyType type_;
/base/global/resource_management/interfaces/inner_api/include/
Dres_common.h61 typedef enum KeyType { enum
74 } KeyType; typedef
/base/security/device_auth/services/creds_manager/inc/
Dcreds_manager_defines.h47 } KeyType; typedef
/base/global/resource_management/frameworks/resmgr/src/utils/
Dhap_parser.cpp744 case KeyType::LANGUAGES: in ToFolderPath()
747 case KeyType::SCRIPT: in ToFolderPath()
750 case KeyType::REGION: in ToFolderPath()
753 case KeyType::DIRECTION: in ToFolderPath()
756 case KeyType::DEVICETYPE: in ToFolderPath()
759 case KeyType::COLORMODE: in ToFolderPath()
762 case KeyType::INPUTDEVICE: in ToFolderPath()
765 case KeyType::MCC: in ToFolderPath()
768 case KeyType::MNC: in ToFolderPath()
771 case KeyType::SCREEN_DENSITY: in ToFolderPath()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dhap_parser.cpp511 case KeyType::LANGUAGES: in ToFolderPath()
514 case KeyType::SCRIPT: in ToFolderPath()
517 case KeyType::REGION: in ToFolderPath()
520 case KeyType::DIRECTION: in ToFolderPath()
523 case KeyType::DEVICETYPE: in ToFolderPath()
526 case KeyType::SCREEN_DENSITY: in ToFolderPath()
/base/global/resource_management/frameworks/resmgr/include/
Dres_desc.h134 KeyType type_;