/base/global/resource_management/frameworks/resmgr/test/unittest/common/ |
D | res_desc_test.cpp | 116 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/ |
D | res_desc_test.cpp | 116 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/ |
D | res_desc.cpp | 34 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 …]
|
D | hap_resource.cpp | 461 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/ |
D | res_desc.cpp | 27 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()
|
D | global_utils.c | 322 keys[i].keyParams[j].type = (KeyType)GetDefaultOffsetValue(file); in GetKeyParams()
|
/base/global/resource_management_lite/frameworks/resmgr_lite/include/ |
D | global_utils.h | 30 typedef enum KeyType { enum 38 } KeyType; typedef 68 KeyType type;
|
D | res_common.h | 43 typedef enum KeyType { enum 55 } KeyType; typedef
|
D | res_desc.h | 133 KeyType type_;
|
/base/global/resource_management/interfaces/inner_api/include/ |
D | res_common.h | 61 typedef enum KeyType { enum 74 } KeyType; typedef
|
/base/security/device_auth/services/creds_manager/inc/ |
D | creds_manager_defines.h | 47 } KeyType; typedef
|
/base/global/resource_management/frameworks/resmgr/src/utils/ |
D | hap_parser.cpp | 744 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/ |
D | hap_parser.cpp | 511 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/ |
D | res_desc.h | 134 KeyType type_;
|