/ohos5.0/foundation/distributeddatamgr/preferences/test/ndk/unittest/ |
H A D | preferences_ndk_value_test.cpp | 142 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 D | socperf.cpp | 209 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 D | socperf_config.cpp | 489 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 D | socperf_thread_wrap.cpp | 329 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 D | socperf.h | 63 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 D | socperf_thread_wrap.h | 93 bool GetResValueByLevel(int32_t resId, int32_t level, int64_t& resValue);
|
/ohos5.0/base/global/resource_management/frameworks/resmgr/src/ |
H A D | native_resource_manager.cpp | 659 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 D | json_utils_mock.c | 243 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 D | json_utils.c | 210 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 D | ohresmgr.h | 533 ResourceManager_ErrorCode OH_ResourceManager_ReleaseStringArray(char ***resValue, uint32_t len);
|