Home
last modified time | relevance | path

Searched refs:GetValue (Results 1 – 25 of 99) sorted by relevance

1234

/base/inputmethod/imf/frameworks/js/napi/common/
Djs_util.h29 static bool GetValue(napi_env env, napi_value in, std::string &out);
30 static bool GetValue(napi_env env, napi_value in, std::u16string &out);
31 static bool GetValue(napi_env env, napi_value in, int32_t &out);
32 static bool GetValue(napi_env env, napi_value in, uint32_t &out);
33 static bool GetValue(napi_env env, napi_value in, int64_t &out);
34 static bool GetValue(napi_env env, napi_value in, bool &out);
35 static bool GetValue(napi_env env, napi_value in, double &out);
36 template<typename T> static bool GetValue(napi_env env, napi_value in, std::vector<T> &items) in GetValue() function
45 if (status != napi_ok || !GetValue(env, item, buff)) { in GetValue()
54 static napi_value GetValue(napi_env env, const std::string &in);
[all …]
Djs_util.cpp28 bool JsUtil::GetValue(napi_env env, napi_value in, std::string &out) in GetValue() function in OHOS::MiscServices::JsUtil
41 bool JsUtil::GetValue(napi_env env, napi_value in, std::u16string &out) in GetValue() function in OHOS::MiscServices::JsUtil
44 bool ret = GetValue(env, in, tempOut); in GetValue()
50 bool JsUtil::GetValue(napi_env env, napi_value in, int32_t &out) in GetValue() function in OHOS::MiscServices::JsUtil
54 bool JsUtil::GetValue(napi_env env, napi_value in, uint32_t &out) in GetValue() function in OHOS::MiscServices::JsUtil
58 bool JsUtil::GetValue(napi_env env, napi_value in, int64_t &out) in GetValue() function in OHOS::MiscServices::JsUtil
62 bool JsUtil::GetValue(napi_env env, napi_value in, bool &out) in GetValue() function in OHOS::MiscServices::JsUtil
66 bool JsUtil::GetValue(napi_env env, napi_value in, double &out) in GetValue() function in OHOS::MiscServices::JsUtil
70 napi_value JsUtil::GetValue(napi_env env, const std::string &in) in GetValue() function in OHOS::MiscServices::JsUtil
76 napi_value JsUtil::GetValue(napi_env env, int32_t in) in GetValue() function in OHOS::MiscServices::JsUtil
[all …]
/base/inputmethod/imf/frameworks/js/napi/inputmethodclient/
Djs_utils.h104 static napi_status GetValue(napi_env env, napi_value in, int32_t &out);
105 static napi_status GetValue(napi_env env, napi_value in, uint32_t &out);
106 static napi_status GetValue(napi_env env, napi_value in, bool &out);
107 static napi_status GetValue(napi_env env, napi_value in, double &out);
108 static napi_status GetValue(napi_env env, napi_value in, std::string &out);
109 …static napi_status GetValue(napi_env env, napi_value in, const std::string &type, napi_value &out);
110 static napi_status GetValue(napi_env env, napi_value in, PanelInfo &out);
111 static napi_value GetValue(napi_env env, const std::vector<InputWindowInfo> &in);
112 static napi_value GetValue(napi_env env, const InputWindowInfo &in);
113 static napi_value GetValue(napi_env env, const InputAttribute &attribute);
[all …]
Djs_utils.cpp186 napi_status JsUtils::GetValue(napi_env env, napi_value in, int32_t &out) in GetValue() function in OHOS::MiscServices::JsUtils
195 napi_status JsUtils::GetValue(napi_env env, napi_value in, uint32_t &out) in GetValue() function in OHOS::MiscServices::JsUtils
203 napi_status JsUtils::GetValue(napi_env env, napi_value in, bool &out) in GetValue() function in OHOS::MiscServices::JsUtils
211 napi_status JsUtils::GetValue(napi_env env, napi_value in, double &out) in GetValue() function in OHOS::MiscServices::JsUtils
220 napi_status JsUtils::GetValue(napi_env env, napi_value in, std::string &out) in GetValue() function in OHOS::MiscServices::JsUtils
248 napi_status JsUtils::GetValue(napi_env env, napi_value in, const std::string &type, napi_value &out) in GetValue() function in OHOS::MiscServices::JsUtils
260 napi_status JsUtils::GetValue(napi_env env, napi_value in, PanelInfo &out) in GetValue() function in OHOS::MiscServices::JsUtils
267 status = GetValue(env, propType, panelType); in GetValue()
275 JsUtils::GetValue(env, panelFlagObj, panelFlag); in GetValue()
283 napi_value JsUtils::GetValue(napi_env env, const std::vector<InputWindowInfo> &in) in GetValue() function in OHOS::MiscServices::JsUtils
[all …]
Djs_get_input_method_controller.cpp342 if (argc < 2 || !JsUtil::GetValue(env, argv[0], type) in Subscribe()
379 if (argc < 1 || !JsUtil::GetValue(env, argv[0], type) in UnSubscribe()
465 bool JsGetInputMethodController::GetValue(napi_env env, napi_value in, SelectionRange &out) in GetValue() function in OHOS::MiscServices::JsGetInputMethodController
490 bool JsGetInputMethodController::GetValue(napi_env env, napi_value in, TextConfig &out) in GetValue() function in OHOS::MiscServices::JsGetInputMethodController
493 napi_status status = JsUtils::GetValue(env, in, "inputAttribute", attributeResult); in GetValue()
495 bool ret = JsGetInputMethodController::GetValue(env, attributeResult, out.inputAttribute); in GetValue()
499 status = JsUtils::GetValue(env, in, "cursorInfo", cursorInfoResult); in GetValue()
502 result = JsGetInputMethodController::GetValue(env, cursorInfoResult, out.cursorInfo); in GetValue()
507 status = JsUtils::GetValue(env, in, "selection", rangeResult); in GetValue()
509 result = JsGetInputMethodController::GetValue(env, rangeResult, out.range); in GetValue()
[all …]
Djs_input_method.cpp57 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty()
61 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty()
66 status = JsUtils::GetValue(env, result, ctxt->packageName); in GetInputMethodProperty()
71 status = JsUtils::GetValue(env, result, ctxt->methodId); in GetInputMethodProperty()
90 status = JsUtils::GetValue(env, result, ctxt->name); in GetInputMethodSubProperty()
95 status = JsUtils::GetValue(env, result, ctxt->id); in GetInputMethodSubProperty()
246 status = JsUtils::GetValue(env, argv[0], ctxt->packageName); in SwitchInputMethod()
251 JsUtils::GetValue(env, argv[1], ctxt->id); in SwitchInputMethod()
/base/update/updater/services/script/script_interpreter/
Dscript_context.cpp97 value = inter->GetValue(); in GetParam()
175 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
184 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
201 retValue = make_shared<IntegerValue>(this->GetValue() op value->GetValue()); \
215 if (value == nullptr || value->GetValue() == 0) { \
218 retValue = make_shared<IntegerValue>(this->GetValue() / value->GetValue()); \
224 if (value == nullptr || value->GetValue() == 0) { \
227 retValue = make_shared<FloatValue>(this->GetValue() / value->GetValue()); \
295 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
304 retValue = make_shared<FloatValue>(this->GetValue() op value->GetValue()); \
[all …]
Dscript_context.h79 int32_t GetValue() const in GetValue() function
101 float GetValue() const in GetValue() function
125 std::string GetValue() const in GetValue() function
176 int32_t GetValue() const in GetValue() function
/base/inputmethod/imf/test/unittest/cpp_test/src/
Djs_util_test.cpp73 JsUtil::GetValue(env, in, test); in GetInt32()
74 return JsUtil::GetValue(env, test); in GetInt32()
81 JsUtil::GetValue(env, in, test); in GetInt64()
82 return JsUtil::GetValue(env, test); in GetInt64()
89 JsUtil::GetValue(env, in, test); in GetUint32()
90 return JsUtil::GetValue(env, test); in GetUint32()
97 JsUtil::GetValue(env, in, test); in GetBool()
98 return JsUtil::GetValue(env, test); in GetBool()
105 JsUtil::GetValue(env, in, test); in GetString()
106 return JsUtil::GetValue(env, test); in GetString()
[all …]
/base/hiviewdfx/hiview/framework/native/unified_collection/collector/
Dgpu_collector_impl.cpp36 inline int32_t GetValue(const std::string& fileName) in GetValue() function
52 gpuFreq.curFeq = GetValue(GPU_CUR_FREQ); in CollectGpuFrequency()
53 gpuFreq.maxFeq = GetValue(GPU_MAX_FREQ); in CollectGpuFrequency()
54 gpuFreq.minFeq = GetValue(GPU_MIN_FREQ); in CollectGpuFrequency()
65 sysGpuLoad.gpuLoad = GetValue(GPU_LOAD); in CollectSysGpuLoad()
/base/hiviewdfx/hiview/plugins/usage_event_report/service/
Dusage_event_report_service.cpp83 cacheUsage->Update(KEY_OF_START, cacheUsage->GetValue(KEY_OF_END).GetUint64()); in ReportSysUsage()
96 uint64_t nowUsageTime = nowUsage->GetValue(key).GetUint64(); in UpdateCacheSysUsage()
97 uint64_t lastUsageTime = lastUsage == nullptr ? 0 : lastUsage->GetValue(key).GetUint64(); in UpdateCacheSysUsage()
99 cacheUsage->Update(key, curUsageTime + cacheUsage->GetValue(key).GetUint64()); in UpdateCacheSysUsage()
101 cacheUsage->Update(KEY_OF_END, nowUsage->GetValue(KEY_OF_END).GetUint64()); in UpdateCacheSysUsage()
/base/powermgr/battery_manager/charger/src/
Dbattery_config.cpp83 return !GetValue(key).isNull(); in IsExist()
88 Json::Value value = GetValue(key); in GetInt()
94 Json::Value value = GetValue(key); in GetString()
147 Json::Value soc = GetValue("light." + level + ".soc"); in ParseLightConf()
148 Json::Value rgb = GetValue("light." + level + ".rgb"); in ParseLightConf()
184 Json::Value BatteryConfig::GetValue(std::string key) const in GetValue() function in OHOS::PowerMgr::BatteryConfig
/base/hiviewdfx/hiview/base/test/unittest/common/
Dpipeline_test.cpp97 ASSERT_EQ(event->GetValue("EventProcessorExample1"), "Done"); in DoTest()
98 ASSERT_EQ(event->GetValue("EventProcessorExample2"), "Done"); in DoTest()
100 ASSERT_EQ(event->GetValue("EventProcessorExample3"), ""); in DoTest()
101 ASSERT_EQ(event->GetValue("EventProcessorExample4"), ""); in DoTest()
/base/inputmethod/imf/frameworks/common/
Dblock_data.h42 T GetValue() in GetValue() function
50 bool GetValue(T &data) in GetValue() function
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/parse/
Dparse_smaps_rollup_info.cpp34 void ParseSmapsRollupInfo::GetValue(const string &str, MemInfoData::MemInfo &memInfo) in GetValue() function in OHOS::HiviewDFX::ParseSmapsRollupInfo
83 GetValue(line, memInfo); in GetMemInfo()
/base/inputmethod/imf/frameworks/js/napi/inputmethodability/
Djs_panel.cpp106 status = JsUtils::GetValue(env, argv[0], ctxt->path); in SetUiContent()
147 status = JsUtils::GetValue(env, argv[0], ctxt->width); in Resize()
150 status = JsUtils::GetValue(env, argv[1], ctxt->height); in Resize()
178 status = JsUtils::GetValue(env, argv[0], ctxt->x); in MoveTo()
181 status = JsUtils::GetValue(env, argv[1], ctxt->y); in MoveTo()
244 napi_status status = JsUtils::GetValue(env, argv[0], panelFlag); in ChangeFlag()
262 napi_status status = JsUtils::GetValue(env, argv[0], isPrivacyMode); in SetPrivacyMode()
287 if (argc < 2 || !JsUtil::GetValue(env, argv[0], type) in Subscribe()
312 if (argc < 1 || !JsUtil::GetValue(env, argv[0], type) in UnSubscribe()
Djs_text_input_client_engine.cpp74 auto status = JsUtils::GetValue(env, argv[0], ctxt->num); in MoveCursor()
108 …if (argc < 1 || JsUtil::GetType(env, argv[0]) != napi_number || !JsUtil::GetValue(env, argv[0], di… in MoveCursorSync()
196 status = JsUtils::GetValue(env, napiValue, ctxt->start); in GetSelectRange()
201 status = JsUtils::GetValue(env, napiValue, ctxt->end); in GetSelectRange()
215 status = JsUtils::GetValue(env, napiValue, ctxt->direction); in GetSelectMovement()
227 return JsUtils::GetValue(env, argv[0], ctxt->action); in SendKeyFunction()
262 …if (argc < 1 || JsUtil::GetType(env, argv[0]) != napi_number || !JsUtil::GetValue(env, argv[0], le… in DeleteForwardSync()
283 auto status = JsUtils::GetValue(env, argv[0], ctxt->length); in DeleteForward()
325 …if (argc < 1 || JsUtil::GetType(env, argv[0]) != napi_number || !JsUtil::GetValue(env, argv[0], le… in DeleteBackwardSync()
345 auto status = JsUtils::GetValue(env, argv[0], ctxt->length); in DeleteBackward()
[all …]
/base/powermgr/battery_manager/services/native/src/
Dbattery_config.cpp84 return !GetValue(key).isNull(); in IsExist()
89 Json::Value value = GetValue(key); in GetInt()
132 Json::Value soc = GetValue("light." + level + ".soc"); in ParseLightConf()
133 Json::Value rgb = GetValue("light." + level + ".rgb"); in ParseLightConf()
169 Json::Value BatteryConfig::GetValue(std::string key) const in GetValue() function in OHOS::PowerMgr::BatteryConfig
/base/hiviewdfx/hiview/core/test/unittest/common/
Dplatform_test_result_listener.cpp23 processedUnorderedEvents_[msg.GetValue("message")] = msg.sender_; in OnUnorderedEvent()
/base/telephony/cellular_data/services/src/
Ddata_switch_settings.cpp93 …int32_t ret = settingsRdbHelper->GetValue(userDataEnableUri, CELLULAR_DATA_COLUMN_ENABLE, userData… in QueryUserDataStatus()
111 int32_t ret = settingsRdbHelper->GetValue(intelliSwitchEnableUri, in QueryIntelligenceSwitchStatus()
161 int32_t ret = settingsRdbHelper->GetValue( in QueryUserDataRoamingStatus()
Dcellular_data_incall_observer.cpp40 if (settingHelper->GetValue(uri, CELLULAR_DATA_COLUMN_INCALL, value) != TELEPHONY_SUCCESS) { in OnChange()
Dcellular_data_setting_observer.cpp40 if (settingHelper->GetValue(uri, CELLULAR_DATA_COLUMN_ENABLE, value) != TELEPHONY_SUCCESS) { in OnChange()
/base/hiviewdfx/hidumper/frameworks/native/include/executor/memory/parse/
Dparse_smaps_rollup_info.h31 void GetValue(const std::string &str, MemInfoData::MemInfo &memInfo);
/base/powermgr/display_manager/state_manager/frameworks/napi/
Dbrightness_module.cpp72 static napi_value GetValue(napi_env env, napi_callback_info info) in GetValue() function
82 asyncBrightness->GetValue(); in GetValue()
187 DECLARE_NAPI_FUNCTION("getValue", GetValue), in Init()
/base/telephony/core_service/test/fuzztest/hexvectohexstr_fuzzer/
Dhexvectohexstr_fuzzer.cpp38 tagService->GetValue(parameter); in DoSomethingInterestingWithMyAPI()

1234