Home
last modified time | relevance | path

Searched refs:CheckValueType (Results 1 – 15 of 15) sorted by relevance

/base/powermgr/power_manager/frameworks/napi/runninglock/
Drunninglock_napi.cpp69 … if (argc != ISSUPPORTED_MAX_ARGC || !NapiUtils::CheckValueType(env, argv[INDEX_0], napi_number)) { in IsSupported()
91 if (argc != HOLD_MAX_ARGC || !NapiUtils::CheckValueType(env, argv[INDEX_0], napi_number)) { in Hold()
132 bool isStr = NapiUtils::CheckValueType(env, argv[INDEX_0], napi_string); in CreateAsyncCallback()
133 bool isNum = NapiUtils::CheckValueType(env, argv[INDEX_1], napi_number); in CreateAsyncCallback()
134 bool isFunc = NapiUtils::CheckValueType(env, argv[INDEX_2], napi_function); in CreateAsyncCallback()
166 bool isStr = NapiUtils::CheckValueType(env, argv[INDEX_0], napi_string); in CreatePromise()
167 bool isNum = NapiUtils::CheckValueType(env, argv[INDEX_1], napi_number); in CreatePromise()
/base/powermgr/power_manager/frameworks/napi/power/
Dpower_napi.cpp61 if (argc != WAKEUP_MAX_ARGC || !NapiUtils::CheckValueType(env, argv[INDEX_0], napi_string)) { in Wakeup()
81 if (argc != SUSPEND_MAX_ARGC || !NapiUtils::CheckValueType(env, argv[INDEX_0], napi_boolean)) { in Suspend()
82 if (!NapiUtils::CheckValueType(env, argv[INDEX_0], napi_undefined)) { in Suspend()
145 …if (argc != REBOOT_SHUTDOWN_MAX_ARGC || !NapiUtils::CheckValueType(env, argv[INDEX_0], napi_string… in RebootOrShutdown()
168 bool isNum = NapiUtils::CheckValueType(env, argv[INDEX_0], napi_number); in SetPowerModeCallback()
169 bool isFunc = NapiUtils::CheckValueType(env, argv[INDEX_1], napi_function); in SetPowerModeCallback()
199 bool isNum = NapiUtils::CheckValueType(env, argv[INDEX_0], napi_number); in SetPowerModePromise()
/base/powermgr/thermal_manager/frameworks/napi/
Dnapi_utils.h30 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
Dnapi_utils.cpp31 bool NapiUtils::CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::PowerMgr::NapiUtils
Dthermal_manager_napi.cpp215 if (argc != MAX_ARGC || !NapiUtils::CheckValueType(env, argv[ARG_0], napi_function)) { in SubscribeThermalLevel()
242 if (argc > MAX_ARGC || !NapiUtils::CheckValueType(env, argv[ARG_0], napi_function)) { in UnSubscribeThermalLevel()
/base/powermgr/power_manager/frameworks/napi/utils/
Dnapi_utils.h33 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
Dnapi_utils.cpp63 bool NapiUtils::CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::PowerMgr::NapiUtils
/base/powermgr/battery_statistics/frameworks/napi/include/
Dnapi_utils.h30 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
/base/powermgr/battery_manager/frameworks/napi/
Dsystem_battery.h31 bool CheckValueType(napi_env env, napi_value value, napi_valuetype checkType);
Dsystem_battery.cpp75 bool SystemBattery::CheckValueType(napi_env env, napi_value value, napi_valuetype checkType) in CheckValueType() function in SystemBattery
94 if (!CheckValueType(env, property, napi_function)) { in GetOptionsFunc()
103 RETURN_IF_WITH_RET(!CheckValueType(env, options, napi_object), false); in CreateCallbackRef()
/base/powermgr/battery_statistics/frameworks/napi/src/
Dnapi_utils.cpp48 bool NapiUtils::CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::PowerMgr::NapiUtils
Dbattery_stats_module.cpp47 if (!NapiUtils::CheckValueType(env, argv[ARGV_IND_0], napi_function)) { in GetBatteryStats()
Dbattery_stats.cpp144 if (argc != maxArgc || !NapiUtils::CheckValueType(env_, argv[index], napi_number)) { in GetAppOrPartStats()
/base/powermgr/display_manager/frameworks/napi/
Dbrightness.cpp178 RETURN_IF_WITH_RET(!CheckValueType(options, checkType), nullptr); in GetCallbackInfo()
184 RETURN_IF_WITH_RET(!CheckValueType(options, napi_object), false); in CreateCallbackRef()
349 bool Brightness::CheckValueType(napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::DisplayPowerMgr::Brightness
368 if (!CheckValueType(property, checkType)) { in GetOptions()
Dbrightness.h90 bool CheckValueType(napi_value& value, napi_valuetype checkType);