Home
last modified time | relevance | path

Searched refs:resValue (Results 1 - 6 of 6) sorted by relevance

/foundation/distributeddatamgr/preferences/test/ndk/unittest/
H A Dpreferences_ndk_value_test.cpp142 char *resValue = nullptr; in HWTEST_F() local
166 errCode = OH_Preferences_GetString(pref, stringKey.c_str(), &resValue, &len); in HWTEST_F()
168 EXPECT_EQ(strcmp(resValue, "123 test"), 0); in HWTEST_F()
170 OH_Preferences_FreeString(resValue); in HWTEST_F()
174 errCode = OH_Preferences_GetString(pref, stringKey.c_str(), &resValue, &len); in HWTEST_F()
176 EXPECT_EQ(strcmp(resValue, "123 test"), 0); in HWTEST_F()
/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);
/foundation/resourceschedule/soc_perf/services/core/src/
H A Dsocperf.cpp210 int32_t clientId, int32_t resId, int64_t resValue, int32_t eventId) in SendLimitRequestEventOn()
212 if (resValue != INVALID_VALUE && resValue != RESET_VALUE) { in SendLimitRequestEventOn()
213 auto resAction = std::make_shared<ResAction>(resValue, 0, clientId, EVENT_ON, -1, MAX_INT_VALUE); in SendLimitRequestEventOn()
220 limitRequest_[clientId].insert(std::pair<int32_t, int32_t>(resId, resValue)); in SendLimitRequestEventOn()
224 void SocPerf::SendLimitRequestEvent(int32_t clientId, int32_t resId, int64_t resValue) in SendLimitRequestEvent() argument
245 SendLimitRequestEventOn(socperfThreadWrap_, clientId, resId, resValue, eventId); in SendLimitRequestEvent()
209 SendLimitRequestEventOn(std::shared_ptr<SocPerfThreadWrap> threadWrap, int32_t clientId, int32_t resId, int64_t resValue, int32_t eventId) SendLimitRequestEventOn() argument
H A Dsocperf_config.cpp576 char* resValue = reinterpret_cast<char*>(xmlNodeGetContent(greatGrandson)); in ParseResValue() local
578 || !resValue || !IsNumber(resValue)) { in ParseResValue()
580 xmlFree(resValue); in ParseResValue()
584 action->variable.push_back(atoll(resValue)); in ParseResValue()
585 xmlFree(resValue); in ParseResValue()
769 int64_t resValue = action->variable[i + 1]; in TraversalActions() local
773 resourceNodeInfo_[resId]->available.find(resValue) == resourceNodeInfo_[resId]->available.end()) { in TraversalActions()
774 SOC_PERF_LOGE("action[%{public}d]'s resValue[%{public}lld] is not valid", in TraversalActions()
775 actionId, (long long)resValue); in TraversalActions()
[all...]
H A Dsocperf_thread_wrap.cpp336 bool SocPerfThreadWrap::GetResValueByLevel(int32_t resId, int32_t level, int64_t& resValue) in GetResValueByLevel() argument
356 resValue = *iter; in GetResValueByLevel()

Completed in 5 milliseconds