Home
last modified time | relevance | path

Searched refs:outValue (Results 1 – 25 of 44) sorted by relevance

12

/base/global/resource_management/frameworks/resmgr/test/unittest/common/
Dresource_manager_test_common.cpp64 std::string outValue; in TestStringByName() local
65 RState rState = rm->GetStringByName(name, outValue); in TestStringByName()
67 HILOG_DEBUG("%s : %s", name, outValue.c_str()); in TestStringByName()
68 ASSERT_EQ(std::string(cmp), outValue); in TestStringByName()
73 std::string outValue; in TestStringById() local
76 RState rState = rm->GetStringById(id, outValue); in TestStringById()
78 ASSERT_EQ(std::string(cmp), outValue); in TestStringById()
134 std::string outValue; in TestPluralStringById() local
138 ret = rm->GetPluralStringByIdFormat(outValue, id, quantity, quantity); in TestPluralStringById()
140 ret = rm->GetPluralStringById(id, quantity, outValue); in TestPluralStringById()
[all …]
Dresource_manager_test.cpp343 std::map<std::string, std::string> outValue; variable
347 state = rm->GetPatternById(id, outValue);
349 ASSERT_EQ(static_cast<size_t>(4), outValue.size());
350 PrintMapString(outValue);
363 std::map<std::string, std::string> outValue; variable
367 state = rm->GetPatternById(id, outValue);
369 ASSERT_EQ(static_cast<size_t>(5), outValue.size());
370 PrintMapString(outValue);
382 std::map<std::string, std::string> outValue; variable
386 state = rm->GetPatternById(NON_EXIST_ID, outValue);
[all …]
Dresource_manager_test_string.cpp111 std::string outValue; variable
112 RState state = rm->GetStringById(NON_EXIST_ID, outValue);
193 std::string outValue; variable
194 RState state = rm->GetStringByName(g_nonExistName, outValue);
218 std::string outValue; variable
219 ((ResourceManagerImpl *)rm)->GetStringByName("ohos_desc_camera", outValue);
220 ASSERT_EQ(outValue, "允许应用拍摄照片和视频。");
235 std::string outValue; variable
236 ((ResourceManagerImpl *)rm)->GetStringByName("hello", outValue);
237 ASSERT_EQ(outValue, "Helloooo");
[all …]
Dresource_manager_test_media.cpp89 std::string outValue; variable
91 state = rm->GetMediaById(NON_EXIST_ID, outValue);
135 std::string outValue; variable
139 state = rm->GetMediaById(id, outValue, density);
141 EXPECT_EQ(res, outValue);
171 std::string outValue; variable
175 state = rm->GetMediaById(id, outValue, density);
177 EXPECT_EQ(res, outValue);
207 std::string outValue; variable
211 state = rm->GetMediaById(id, outValue, density);
[all …]
Dlocale_info_test.cpp65 std::vector<std::string> outValue; variable
72 FindAndSort(current, request, outValue);
73 EXPECT_TRUE(outValue.at(0) == "en-US");
74 EXPECT_TRUE(outValue.at(1) == "en");
75 EXPECT_TRUE(outValue.at(2) == "");
76 EXPECT_TRUE(outValue.at(3) == "en-CN");
77 EXPECT_TRUE(outValue.at(4) == "en-GB");
88 std::vector<std::string> outValue; variable
95 FindAndSort(current, request, outValue);
96 EXPECT_TRUE(outValue.at(0) == "zh-CN");
[all …]
Dresource_manager_performance_test.cpp306 std::string outValue; variable
310 rm->GetStringById(ids[i], outValue);
336 std::string outValue; variable
340 rm->GetStringByName(name[i].c_str(), outValue);
366 std::string outValue; variable
370 rm->GetStringByName(name[i].c_str(), outValue);
403 std::string outValue; variable
407 rm->GetStringFormatById(outValue, ids[i], 12);
433 std::string outValue; variable
437 rm->GetStringFormatByName(outValue, name[i].c_str(), 123);
[all …]
Dresource_manager_test_hap.cpp561 std::unique_ptr<uint8_t[]> outValue; variable
565 RState state = rm->GetProfileDataById(id, len, outValue);
579 std::unique_ptr<uint8_t[]> outValue; variable
581 RState state = rm->GetProfileDataByName("test_profile", len, outValue);
595 std::unique_ptr<uint8_t[]> outValue; variable
598 state = rm->GetMediaDataByName("icon1", len, outValue);
613 std::unique_ptr<uint8_t[]> outValue; variable
618 state = rm->GetMediaDataById(id, len, outValue);
633 std::string outValue; variable
635 state = rm->GetMediaBase64DataByName("icon1", outValue);
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/include/
Dresource_manager_impl.h61 virtual RState GetStringById(uint32_t id, std::string &outValue);
69 virtual RState GetStringByName(const char *name, std::string &outValue);
77 virtual RState GetStringFormatById(std::string &outValue, uint32_t id, ...);
85 virtual RState GetStringFormatByName(std::string &outValue, const char *name, ...);
93 virtual RState GetStringArrayById(uint32_t id, std::vector<std::string> &outValue);
101 virtual RState GetStringArrayByName(const char *name, std::vector<std::string> &outValue);
109 virtual RState GetPatternById(uint32_t id, std::map<std::string, std::string> &outValue);
117 virtual RState GetPatternByName(const char *name, std::map<std::string, std::string> &outValue);
126 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue);
135 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue);
[all …]
Dresource_manager.h37 virtual RState GetStringById(uint32_t id, std::string &outValue) = 0;
39 virtual RState GetStringByName(const char *name, std::string &outValue) = 0;
41 virtual RState GetStringFormatById(std::string &outValue, uint32_t id, ...) = 0;
43 virtual RState GetStringFormatByName(std::string &outValue, const char *name, ...) = 0;
45 virtual RState GetStringArrayById(uint32_t id, std::vector<std::string> &outValue) = 0;
47 virtual RState GetStringArrayByName(const char *name, std::vector<std::string> &outValue) = 0;
49 virtual RState GetPatternById(uint32_t id, std::map<std::string, std::string> &outValue) = 0;
51 …virtual RState GetPatternByName(const char *name, std::map<std::string, std::string> &outValue) = …
53 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue) = 0;
55 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue) = 0;
[all …]
/base/global/resource_management_lite/frameworks/resmgr_lite/test/unittest/lite/common/
Dresource_manager_test.cpp85 std::string outValue; in TestStringByName() local
86 rState = rm->GetStringByName(name, outValue); in TestStringByName()
88 HILOG_DEBUG("%s : %s", name, outValue.c_str()); in TestStringByName()
89 ASSERT_EQ(std::string(cmp), outValue); in TestStringByName()
95 std::string outValue; in TestStringById() local
98 rState = rm->GetStringById(id, outValue); in TestStringById()
100 ASSERT_EQ(std::string(cmp), outValue); in TestStringById()
122 std::string outValue; in TestPluralStringById() local
125 ret = rm->GetPluralStringByIdFormat(outValue, id, quantity, quantity); in TestPluralStringById()
127 ret = rm->GetPluralStringById(id, quantity, outValue); in TestPluralStringById()
[all …]
Dlocale_info_test.cpp66 std::vector<std::string> outValue; variable
73 FindAndSort(current, request, outValue);
74 EXPECT_TRUE(outValue.at(0) == "en-US");
75 EXPECT_TRUE(outValue.at(1) == "en");
76 EXPECT_TRUE(outValue.at(2) == "");
77 EXPECT_TRUE(outValue.at(3) == "en-CN");
78 EXPECT_TRUE(outValue.at(4) == "en-GB");
89 std::vector<std::string> outValue; variable
96 FindAndSort(current, request, outValue);
97 EXPECT_TRUE(outValue.at(0) == "zh-CN");
[all …]
Dresource_manager_performance_test.cpp294 std::string outValue; variable
298 rm->GetStringById(ids[i], outValue);
324 std::string outValue; variable
328 rm->GetStringByName(name[i].c_str(), outValue);
354 std::string outValue; variable
358 rm->GetStringByName(name[i].c_str(), outValue);
391 std::string outValue; variable
395 rm->GetStringFormatById(outValue, ids[i], 12);
421 std::string outValue; variable
425 rm->GetStringFormatByName(outValue, name[i].c_str(), 123);
[all …]
/base/global/resource_management/frameworks/resmgr/include/
Dresource_manager_impl.h107 virtual RState GetStringById(uint32_t id, std::string &outValue);
115 virtual RState GetStringByName(const char *name, std::string &outValue);
123 virtual RState GetStringFormatById(std::string &outValue, uint32_t id, ...);
131 virtual RState GetStringFormatByName(std::string &outValue, const char *name, ...);
139 virtual RState GetStringArrayById(uint32_t id, std::vector<std::string> &outValue);
147 virtual RState GetStringArrayByName(const char *name, std::vector<std::string> &outValue);
155 virtual RState GetPatternById(uint32_t id, std::map<std::string, std::string> &outValue);
163 virtual RState GetPatternByName(const char *name, std::map<std::string, std::string> &outValue);
172 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue);
181 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue);
[all …]
Dhap_manager.h145 RState FindRawFile(const std::string &name, std::string &outValue);
167 std::unique_ptr<uint8_t[]> &outValue);
175 RState GetMediaBase64Data(const HapResource::ValueUnderQualifierDir *qd, std::string &outValue);
185 std::unique_ptr<uint8_t[]> &outValue);
195 std::unique_ptr<uint8_t[]> &outValue);
235 std::string &outValue);
245 std::unique_ptr<uint8_t[]> &outValue);
255 std::unique_ptr<uint8_t[]> &outValue);
263 …te GetMediaBase64DataFromHap(const HapResource::ValueUnderQualifierDir *qd, std::string &outValue);
271 … GetMediaBase64DataFromIndex(const HapResource::ValueUnderQualifierDir *qd, std::string &outValue);
/base/global/resource_management_lite/frameworks/resmgr_lite/src/
Dresource_manager_impl.cpp71 RState ResourceManagerImpl::GetStringById(uint32_t id, std::string &outValue) in GetStringById() argument
74 return GetString(idItem, outValue); in GetStringById()
77 RState ResourceManagerImpl::GetStringByName(const char *name, std::string &outValue) in GetStringByName() argument
80 return GetString(idItem, outValue); in GetStringByName()
83 RState ResourceManagerImpl::GetStringFormatById(std::string &outValue, uint32_t id, ...) in GetStringFormatById() argument
93 outValue = FormatString(temp.c_str(), args); in GetStringFormatById()
98 RState ResourceManagerImpl::GetStringFormatByName(std::string &outValue, const char *name, ...) in GetStringFormatByName() argument
108 outValue = FormatString(temp.c_str(), args); in GetStringFormatByName()
113 RState ResourceManagerImpl::GetString(const IdItem *idItem, std::string &outValue) in GetString() argument
119 RState ret = ResolveReference(idItem->value_, outValue); in GetString()
[all …]
/base/global/resource_management/interfaces/inner_api/include/
Dresource_manager.h70 virtual RState GetStringById(uint32_t id, std::string &outValue) = 0;
72 virtual RState GetStringByName(const char *name, std::string &outValue) = 0;
74 virtual RState GetStringFormatById(std::string &outValue, uint32_t id, ...) = 0;
76 virtual RState GetStringFormatByName(std::string &outValue, const char *name, ...) = 0;
78 virtual RState GetStringArrayById(uint32_t id, std::vector<std::string> &outValue) = 0;
80 virtual RState GetStringArrayByName(const char *name, std::vector<std::string> &outValue) = 0;
82 virtual RState GetPatternById(uint32_t id, std::map<std::string, std::string> &outValue) = 0;
84 …virtual RState GetPatternByName(const char *name, std::map<std::string, std::string> &outValue) = …
86 virtual RState GetPluralStringById(uint32_t id, int quantity, std::string &outValue) = 0;
88 virtual RState GetPluralStringByName(const char *name, int quantity, std::string &outValue) = 0;
[all …]
/base/global/resource_management/frameworks/resmgr/src/
Dresource_manager_impl.cpp79 RState ResourceManagerImpl::GetStringById(uint32_t id, std::string &outValue) in GetStringById() argument
86 RState state = GetString(idItem, outValue); in GetStringById()
93 RState ResourceManagerImpl::GetStringByName(const char *name, std::string &outValue) in GetStringByName() argument
100 RState state = GetString(idItem, outValue); in GetStringByName()
107 RState ResourceManagerImpl::GetStringFormatById(std::string &outValue, uint32_t id, ...) in GetStringFormatById() argument
117 outValue = FormatString(temp.c_str(), args); in GetStringFormatById()
122 RState ResourceManagerImpl::GetStringFormatByName(std::string &outValue, const char *name, ...) in GetStringFormatByName() argument
132 outValue = FormatString(temp.c_str(), args); in GetStringFormatByName()
137 RState ResourceManagerImpl::GetString(const IdItem *idItem, std::string &outValue) in GetString() argument
143 RState ret = ResolveReference(idItem->value_, outValue); in GetString()
[all …]
Dhap_manager.cpp239 RState HapManager::FindRawFile(const std::string &name, std::string &outValue) in FindRawFile() argument
277 outValue = realPath; in FindRawFile()
553 std::unique_ptr<uint8_t[]> &outValue) in GetProfileData() argument
566 bool ret = extractor->ExtractToBufByName(filePath, outValue, len); in GetProfileData()
576 std::unique_ptr<uint8_t[]> &outValue) in GetMediaData() argument
581 state = HapManager::GetMediaDataFromHap(qd, len, outValue); in GetMediaData()
583 state = HapManager::GetMediaDataFromIndex(qd, len, outValue); in GetMediaData()
589 std::unique_ptr<uint8_t[]> &outValue) in GetMediaDataFromHap() argument
602 bool ret = extractor->ExtractToBufByName(filePath, outValue, len); in GetMediaDataFromHap()
612 std::unique_ptr<uint8_t[]> &outValue) in GetMediaDataFromIndex() argument
[all …]
/base/global/resource_management/test/fuzztest/resmgr_fuzzer/
Dresmgr_fuzzer.cpp45 std::vector<std::string> outValue; in GetStringArrayByIdFuzzTest() local
46 result = rm->GetStringArrayById(testId, outValue); in GetStringArrayByIdFuzzTest()
56 int outValue; in GetIntegerByIdFuzzTest() local
57 result = rm->GetIntegerById(testId, outValue); in GetIntegerByIdFuzzTest()
67 int outValue; in GetIntegerByNameFuzzTest() local
68 result = rm->GetIntegerByName(testName, outValue); in GetIntegerByNameFuzzTest()
78 bool outValue; in GetBooleanByIdFuzzTest() local
79 result = rm->GetBooleanById(testId, outValue); in GetBooleanByIdFuzzTest()
89 float outValue; in GetFloatByIdFuzzTest() local
90 result = rm->GetFloatById(testId, outValue); in GetFloatByIdFuzzTest()
[all …]
/base/web/webview/interfaces/kits/napi/common/
Dnapi_parse_utils.h41 static bool ParseInt32(napi_env env, napi_value argv, int32_t& outValue);
42 static bool ParseInt64(napi_env env, napi_value argv, int64_t& outValue);
43 static bool ParseDouble(napi_env env, napi_value argv, double& outValue);
44 static bool ParseString(napi_env env, napi_value argv, std::string& outValue);
45 static bool ParseBoolean(napi_env env, napi_value argv, bool& outValue);
46 static bool ParseStringArray(napi_env env, napi_value argv, std::vector<std::string>& outValue);
47 static bool ParseBooleanArray(napi_env env, napi_value argv, std::vector<bool>& outValue);
48 static bool ParseDoubleArray(napi_env env, napi_value argv, std::vector<double>& outValue);
49 static bool ParseInt64Array(napi_env env, napi_value argv, std::vector<int64_t>& outValue);
50 static bool ParseFloat(napi_env env, napi_value argv, float& outValue);
Dnapi_parse_utils.cpp169 bool NapiParseUtils::ParseInt32(napi_env env, napi_value argv, int32_t& outValue) in ParseInt32() argument
180 outValue = number; in ParseInt32()
185 bool NapiParseUtils::ParseInt64(napi_env env, napi_value argv, int64_t& outValue) in ParseInt64() argument
196 outValue = number; in ParseInt64()
201 bool NapiParseUtils::ParseString(napi_env env, napi_value argv, std::string& outValue) in ParseString() argument
228 outValue = message; in ParseString()
234 bool NapiParseUtils::ParseBoolean(napi_env env, napi_value argv, bool& outValue) in ParseBoolean() argument
245 outValue = boolValue; in ParseBoolean()
249 …NapiParseUtils::ParseStringArray(napi_env env, napi_value argv, std::vector<std::string>& outValue) in ParseStringArray() argument
265 outValue.push_back(str); in ParseStringArray()
[all …]
/base/security/device_security_level/services/dslm/
Ddslm_credential.c105 uint8_t *outValue = (uint8_t *)MALLOC(len); in CreateDslmCred() local
106 if (outValue == NULL) { in CreateDslmCred()
110 (void)memset_s(outValue, len, 0, len); in CreateDslmCred()
111 if (memcpy_s(outValue, len, value, len) != EOK) { in CreateDslmCred()
113 FREE(outValue); in CreateDslmCred()
116 outBuff->credVal = outValue; in CreateDslmCred()
/base/global/resource_management_lite/frameworks/resmgr_lite/src/utils/
Dutils.cpp67 void Utils::DecodeScript(uint32_t encodeScript, char *outValue) in DecodeScript() argument
69 if (outValue == nullptr) { in DecodeScript()
72 outValue[0] = (encodeScript & 0xFF000000) >> 24; in DecodeScript()
73 outValue[1] = (encodeScript & 0x00FF0000) >> 16; in DecodeScript()
74 outValue[2] = (encodeScript & 0x0000FF00) >> 8; in DecodeScript()
75 outValue[3] = (encodeScript & 0x000000FF); in DecodeScript()
274 RState Utils::ConvertColorToUInt32(const char *s, uint32_t &outValue) in ConvertColorToUInt32() argument
323 outValue = color; in ConvertColorToUInt32()
/base/global/resource_management/frameworks/resmgr/include/utils/
Dutils.h44 static void DecodeScript(uint32_t encodeScript, char *outValue);
54 static RState ConvertColorToUInt32(const char *s, uint32_t &outValue);
59 const std::string &imgType, std::string &outValue);
/base/web/webview/interfaces/kits/napi/webdatabase/
Dnapi_web_data_base.h47 static bool GetStringPara(napi_env env, napi_value argv, std::string& outValue);
49 static bool GetSize(napi_env env, napi_value argv, size_t& outValue);

12