Home
last modified time | relevance | path

Searched refs:resValue (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/distributeddatamgr/preferences/test/ndk/unittest/
H A Dpreferences_ndk_value_test.cpp142 char *resValue = nullptr; variable
166 errCode = OH_Preferences_GetString(pref, stringKey.c_str(), &resValue, &len);
168 EXPECT_EQ(strcmp(resValue, "123 test"), 0);
170 OH_Preferences_FreeString(resValue);
174 errCode = OH_Preferences_GetString(pref, stringKey.c_str(), &resValue, &len);
176 EXPECT_EQ(strcmp(resValue, "123 test"), 0);
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf.cpp209 int32_t clientId, int32_t resId, int64_t resValue, int32_t eventId) in SendLimitRequestEventOn() argument
211 if (resValue != INVALID_VALUE && resValue != RESET_VALUE) { in SendLimitRequestEventOn()
212 … auto resAction = std::make_shared<ResAction>(resValue, 0, clientId, EVENT_ON, -1, MAX_INT_VALUE); in SendLimitRequestEventOn()
219 limitRequest_[clientId].insert(std::pair<int32_t, int32_t>(resId, resValue)); in SendLimitRequestEventOn()
223 void SocPerf::SendLimitRequestEvent(int32_t clientId, int32_t resId, int64_t resValue) in SendLimitRequestEvent() argument
244 SendLimitRequestEventOn(socperfThreadWrap_, clientId, resId, resValue, eventId); in SendLimitRequestEvent()
H A Dsocperf_config.cpp489 char* resValue = reinterpret_cast<char*>(xmlNodeGetContent(greatGrandson)); in ParseResValue() local
491 || !resValue || !IsNumber(resValue)) { in ParseResValue()
493 xmlFree(resValue); in ParseResValue()
497 action->variable.push_back(atoll(resValue)); in ParseResValue()
498 xmlFree(resValue); in ParseResValue()
682 int64_t resValue = action->variable[i + 1]; in TraversalActions() local
686 … resourceNodeInfo_[resId]->available.find(resValue) == resourceNodeInfo_[resId]->available.end()) { in TraversalActions()
688 actionId, (long long)resValue); in TraversalActions()
H A Dsocperf_thread_wrap.cpp329 bool SocPerfThreadWrap::GetResValueByLevel(int32_t resId, int32_t level, int64_t& resValue) in GetResValueByLevel() argument
349 resValue = *iter; in GetResValueByLevel()
/ohos5.0/foundation/resourceschedule/soc_perf/services/core/include/
H A Dsocperf.h63 void SendLimitRequestEvent(int32_t clientId, int32_t resId, int64_t resValue);
68 int32_t clientId, int32_t resId, int64_t resValue, int32_t eventId);
H A Dsocperf_thread_wrap.h93 bool GetResValueByLevel(int32_t resId, int32_t level, int64_t& resValue);
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/
H A Dnative_resource_manager.cpp659 ResourceManager_ErrorCode OH_ResourceManager_ReleaseStringArray(char ***resValue, uint32_t len) in OH_ResourceManager_ReleaseStringArray() argument
661 if (resValue == nullptr || *resValue == nullptr) { in OH_ResourceManager_ReleaseStringArray()
665 if ((*resValue)[i] != nullptr) { in OH_ResourceManager_ReleaseStringArray()
666 delete [] (*resValue)[i]; in OH_ResourceManager_ReleaseStringArray()
667 (*resValue)[i] = nullptr; in OH_ResourceManager_ReleaseStringArray()
670 delete [] *resValue; in OH_ResourceManager_ReleaseStringArray()
671 *resValue = nullptr; in OH_ResourceManager_ReleaseStringArray()
/ohos5.0/base/security/device_auth/test/unittest/deviceauth/source/
H A Djson_utils_mock.c243 const char *resValue = GetStringFromJson(item, key); in GetStringFromJson() local
244 if (resValue != NULL) { in GetStringFromJson()
245 return resValue; in GetStringFromJson()
/ohos5.0/base/security/device_auth/common_lib/impl/src/
H A Djson_utils.c210 const char *resValue = GetStringFromJson(item, key); in GetStringFromJson() local
211 if (resValue != NULL) { in GetStringFromJson()
212 return resValue; in GetStringFromJson()
/ohos5.0/base/global/resource_management/interfaces/native/resource/include/
H A Dohresmgr.h533 ResourceManager_ErrorCode OH_ResourceManager_ReleaseStringArray(char ***resValue, uint32_t len);