/base/powermgr/power_manager/frameworks/napi/runninglock/ |
D | runninglock_napi.cpp | 69 … 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/ |
D | power_napi.cpp | 61 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/ |
D | napi_utils.h | 30 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
|
D | napi_utils.cpp | 31 bool NapiUtils::CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::PowerMgr::NapiUtils
|
D | thermal_manager_napi.cpp | 215 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/ |
D | napi_utils.h | 33 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
|
D | napi_utils.cpp | 63 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/ |
D | napi_utils.h | 30 static bool CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType);
|
/base/powermgr/battery_manager/frameworks/napi/ |
D | system_battery.h | 31 bool CheckValueType(napi_env env, napi_value value, napi_valuetype checkType);
|
D | system_battery.cpp | 75 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/ |
D | napi_utils.cpp | 48 bool NapiUtils::CheckValueType(napi_env& env, napi_value& value, napi_valuetype checkType) in CheckValueType() function in OHOS::PowerMgr::NapiUtils
|
D | battery_stats_module.cpp | 47 if (!NapiUtils::CheckValueType(env, argv[ARGV_IND_0], napi_function)) { in GetBatteryStats()
|
D | battery_stats.cpp | 144 if (argc != maxArgc || !NapiUtils::CheckValueType(env_, argv[index], napi_number)) { in GetAppOrPartStats()
|
/base/powermgr/display_manager/frameworks/napi/ |
D | brightness.cpp | 178 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()
|
D | brightness.h | 90 bool CheckValueType(napi_value& value, napi_valuetype checkType);
|