Home
last modified time | relevance | path

Searched refs:intValue (Results 1 – 25 of 29) sorted by relevance

12

/base/update/updater/services/ui/strategy/
Dprogress_strategy.cpp56 int intValue = static_cast<int>(value); in ShowProgress() local
57 if (intValue < 0 || intValue > FULL_PERCENT_PROGRESS) { in ShowProgress()
58 LOG(ERROR) << "progress value invalid:" << intValue; in ShowProgress()
61 std::string progress = std::to_string(intValue) + "%"; in ShowProgress()
/base/update/updateservice/frameworks/js/napi/base/src/
Dnapi_util.cpp24 …_t NapiUtil::GetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t &intValue) in GetInt32() argument
31 napi_get_value_int32(env, value, &intValue); in GetInt32()
83 …2_t NapiUtil::SetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t intValue) in SetInt32() argument
86 napi_create_int32(env, intValue, &infoStatus); in SetInt32()
91 …2_t NapiUtil::SetInt64(napi_env env, napi_value arg, const std::string &attrName, int64_t intValue) in SetInt64() argument
94 napi_create_int64(env, intValue, &infoStatus); in SetInt64()
/base/telephony/cellular_data/test/fuzztest/updateinactivemachine_fuzzer/
Dupdateinactivemachine_fuzzer.cpp56 std::int32_t intValue = static_cast<int32_t>(size); in UpdateInActiveMachineFuzz() local
62 InnerEvent::Pointer event = InnerEvent::Get(intValue, object); in UpdateInActiveMachineFuzz()
63 inactive->SetDeActiveApnTypeId(intValue); in UpdateInActiveMachineFuzz()
/base/update/updateservice/frameworks/js/napi/base/include/
Dnapi_util.h58 …tic int32_t GetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t &intValue);
65 …atic int32_t SetInt32(napi_env env, napi_value arg, const std::string &attrName, int32_t intValue);
66 …atic int32_t SetInt64(napi_env env, napi_value arg, const std::string &attrName, int64_t intValue);
/base/update/updater/test/unittest/script/
Dscript_interpreter_unittest.cpp56 int32_t intValue = 10; in TestScriptInterpreterScriptValue() local
57 std::unique_ptr<IntegerValue> iv = std::make_unique<IntegerValue>(intValue); in TestScriptInterpreterScriptValue()
103 int intValue = 100; in TestScriptInstructionContext() local
104 int ret1 = funcContext->PushParam(intValue); in TestScriptInstructionContext()
119 int intValue = 100; in TestIntegerValueComputer() local
121 UScriptValuePtr value = std::make_shared<IntegerValue>(intValue); in TestIntegerValueComputer()
/base/telephony/cellular_data/test/fuzztest/updateactivemachine_fuzzer/
Dupdateactivemachine_fuzzer.cpp50 std::int32_t intValue = static_cast<int32_t>(size); in UpdateActiveMachineFuzz() local
56 InnerEvent::Pointer event = InnerEvent::Get(intValue, object); in UpdateActiveMachineFuzz()
/base/telephony/cellular_data/test/fuzztest/updatedisconnectmachine_fuzzer/
Dupdatedisconnectmachine_fuzzer.cpp56 std::int32_t intValue = static_cast<int32_t>(size); in UpdateDisconnectMachineFuzz() local
62 InnerEvent::Pointer event = InnerEvent::Get(intValue, object); in UpdateDisconnectMachineFuzz()
/base/telephony/core_service/frameworks/native/src/
Doperator_config_types.cpp107 if (!parcel.WriteInt32(intValue.size())) { in MarshallingIntMap()
110 auto valueIt = intValue.begin(); in MarshallingIntMap()
111 while (valueIt != intValue.end()) { in MarshallingIntMap()
269 intValue.clear(); in ReadFromIntMap()
278 intValue[first] = second; in ReadFromIntMap()
Dresource_utils.cpp414 int32_t intValue = 0; in SaveAllValue() local
427 if (GetIntegerByName(iter.first.c_str(), intValue)) { in SaveAllValue()
428 mapResourceValues_[iter.first] = intValue; in SaveAllValue()
/base/telephony/core_service/test/unittest/core_service_gtest/
Dsim_operator_brocast_test.cpp35 … TELEPHONY_LOGI("SimOperatorBrocastTest::OnReceiveEvent:event=%{public}d", poc.intValue["int"]); in OnReceiveEvent()
/base/hiviewdfx/hisysevent/test/fuzztest/common/hisyseventmanager_fuzzer/
Dhisyseventmanager_fuzzer.cpp59 int64_t intValue = 0; in HiSysEventRecordTest() local
60 (void)record.GetParamValue(data, intValue); in HiSysEventRecordTest()
/base/telephony/core_service/services/sim/src/
Doperator_file_parser.cpp160 if (valueType == Json::intValue) { in ParseOperatorConfigFromJson()
169 opc.intValue[keyStr8] = static_cast<int32_t>(lValue); in ParseOperatorConfigFromJson()
243 …if (valueType == Json::intValue && static_cast<int64_t>(stoll(arrayValue_[first].asString())) > IN… in ParseArray()
253 if (valueType == Json::intValue) { in ParseArray()
Doperator_config_cache.cpp64 opc_.intValue.clear(); in ClearMemoryCache()
135 for (auto it : from.intValue) { in CopyOperatorConfig()
136 to.intValue[it.first] = it.second; in CopyOperatorConfig()
/base/update/updateservice/test/unittest/update_client/
Dclient_stub.h42 int intValue; variable
Dclient_stub.cpp82 intValue = *static_cast<int*>(const_cast<void*>(value)); in TestNApiValue()
322 *result = testValue->intValue; in napi_get_value_int32()
332 *result = static_cast<uint32_t>(testValue->intValue); in napi_get_value_uint32()
373 testEnv->pakcageInfo.result[0].packageType = (PackageType)testValue->intValue; in napi_set_named_property()
375 testEnv->progress.status = (UpgradeStatus)testValue->intValue; in napi_set_named_property()
377 testEnv->progress.percent = testValue->intValue; in napi_set_named_property()
/base/telephony/sms_mms/frameworks/js/napi/src/
Ddelivery_callback.cpp69 int32_t intValue = pduStr_[i]; in CompleteSmsDeliveryWork() local
70 napi_create_int32(env_, intValue, &element); in CompleteSmsDeliveryWork()
Dnapi_mms.cpp742 int32_t intValue = 0; in GetNapiInt32Value() local
743 napi_status getIntStatus = napi_get_value_int32(env, value, &intValue); in GetNapiInt32Value()
745 return intValue; in GetNapiInt32Value()
755 int64_t intValue = 0; in GetNapiInt64Value() local
756 napi_status getIntStatus = napi_get_value_int64(env, value, &intValue); in GetNapiInt64Value()
758 return intValue; in GetNapiInt64Value()
/base/telephony/call_manager/frameworks/js/napi/src/
Dnapi_call_manager_utils.cpp183 int32_t intValue = 0; in GetIntProperty() local
187 napi_status getIntStatus = napi_get_value_int32(env, value, &intValue); in GetIntProperty()
189 return intValue; in GetIntProperty()
193 return intValue; in GetIntProperty()
/base/location/interfaces/inner_api/include/
Dnapi_util.h66 napi_status SetValueInt32(const napi_env& env, const char* fieldStr, const int intValue, napi_value…
67 napi_status SetValueInt64(const napi_env& env, const char* fieldStr, const int64_t intValue, napi_v…
/base/usb/usb_manager/interfaces/kits/js/napi/include/
Dnapi_util.h39 …static void SetValueInt32(const napi_env &env, std::string fieldStr, const int32_t intValue, napi_…
/base/telephony/core_service/interfaces/innerkits/include/
Doperator_config_types.h87 std::map<std::string, int32_t> intValue; member
/base/usb/usb_manager/interfaces/kits/js/napi/src/
Dnapi_util.cpp194 void NapiUtil::SetValueInt32(const napi_env &env, std::string fieldStr, const int32_t intValue, nap… in SetValueInt32() argument
197 napi_create_int32(env, intValue, &value); in SetValueInt32()
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/
Dnapi_util.cpp331 napi_value intValue = nullptr; in CreateInt32() local
332 if (napi_create_int32(env, num, &intValue) != napi_ok) { in CreateInt32()
336 return intValue; in CreateInt32()
/base/telephony/core_service/services/network_search/src/
Doperator_name.cpp501 …if (operatorConfig.intValue.find(KEY_SPN_DISPLAY_CONDITION_CUST_INT) != operatorConfig.intValue.en… in UpdateOperatorConfig()
502 displayConditionCust_ = operatorConfig.intValue[KEY_SPN_DISPLAY_CONDITION_CUST_INT]; in UpdateOperatorConfig()
/base/location/frameworks/native/source/
Dnapi_util.cpp672 napi_status SetValueInt32(const napi_env& env, const char* fieldStr, const int intValue, napi_value… in SetValueInt32() argument
675 NAPI_CALL_BASE(env, napi_create_int32(env, intValue, &value), napi_generic_failure); in SetValueInt32()
680 napi_status SetValueInt64(const napi_env& env, const char* fieldStr, const int64_t intValue, napi_v… in SetValueInt64() argument
683 NAPI_CALL_BASE(env, napi_create_int64(env, intValue, &value), napi_generic_failure); in SetValueInt64()

12