Home
last modified time | relevance | path

Searched refs:napi_get_value_bool (Results 1 – 25 of 235) sorted by relevance

12345678910

/ohos5.0/commonlibrary/ets_utils/js_sys_module/test/
H A Dtest_process.cpp119 napi_get_value_bool(env, result, &res);
144 napi_get_value_bool(env, result, &res);
486 napi_get_value_bool(env, result, &res);
507 napi_get_value_bool(env, result, &res);
522 napi_get_value_bool(env, result, &res);
549 napi_get_value_bool(env, result, &res);
572 napi_get_value_bool(env, result, &res);
595 napi_get_value_bool(env, result, &res);
654 napi_get_value_bool(env, result, &res);
676 napi_get_value_bool(env, result, &res);
[all …]
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/focus_controller/
H A Djs_focus_controller.cpp101 napi_get_value_bool(env, argv[0], &isAutoFocusTransfer); in JsSetAutoFocusTransfer()
118 napi_get_value_bool(env, argv[0], &isActive); in JSActivate()
124 napi_get_value_bool(env, argv[1], &autoInactive); in JSActivate()
/ohos5.0/foundation/arkui/napi/sample/native_module_systemtest/
H A Djs_test_threadsafe_napi.cpp155 NAPI_CALL(env, napi_get_value_bool(env, argv[1], &abort)); in StopThread()
207 NAPI_CALL(env, napi_get_value_bool(env, argv[1], &abort)); in StartThreadInternal()
209 NAPI_CALL(env, napi_get_value_bool(env, argv[THREAD_ARG_TWO], &(tsinfo.startSecondary))); in StartThreadInternal()
/ohos5.0/foundation/filemanagement/user_file_service/test/unittest/mock/
H A Dassistant.h62 virtual napi_status napi_get_value_bool(napi_env, napi_value, bool*) = 0;
98 MOCK_METHOD3(napi_get_value_bool, napi_status(napi_env, napi_value, bool*));
H A Djs_native_api_mock.cpp148 napi_status napi_get_value_bool(napi_env env, napi_value value, bool* result) in napi_get_value_bool() function
150 return OHOS::FileAccessFwk::Assistant::ins_->napi_get_value_bool(env, value, result); in napi_get_value_bool()
/ohos5.0/docs/zh-cn/application-dev/napi/
H A Duse-napi-about-primitive.md23 | napi_get_value_bool | 用于根据给定的ArkTS boolean值,获取等价的C/C++布尔值。 |
264 ### napi_get_value_bool subsection
280 napi_status status = napi_get_value_bool(env, args[0], &bool_c);
282 // 如果napi_get_value_bool成功会返回napi_ok,如果传入一个非布尔值则会返回napi_boolean_expected
/ohos5.0/base/time/time_service/framework/js/napi/system_date_time/src/
H A Dnapi_system_date_time.cpp159 napi_get_value_bool(env, argv[ARGV_FIRST], &getRealActiveTimeContext->isNano); in GetRealActiveTime()
200 napi_get_value_bool(env, argv[ARGV_FIRST], &getCurrentTimeContext->isNano); in GetCurrentTime()
240 … getTimeContext->status = napi_get_value_bool(env, argv[ARGV_FIRST], &getTimeContext->isNano); in GetTime()
275 …getRealTimeContext->status = napi_get_value_bool(env, argv[ARGV_FIRST], &getRealTimeContext->isNan… in GetRealTime()
325 napi_get_value_bool(env, argv[ARGV_SECOND], &getUpTimeContext->isNanoseconds); in GetUptime()
/ohos5.0/base/location/frameworks/js/napi/notification/src/
H A Dnotification_napi_convert_request.cpp499 napi_get_value_bool(env, result, &isOngoing); in GetNotificationIsOngoing()
524 napi_get_value_bool(env, result, &isUnremovable); in GetNotificationIsUnremovable()
574 napi_get_value_bool(env, result, &tapDismissed); in GetNotificationtapDismissed()
850 napi_get_value_bool(env, result, &colorEnabled); in GetNotificationColorEnabled()
875 napi_get_value_bool(env, result, &isAlertOnce); in GetNotificationIsAlertOnce()
900 napi_get_value_bool(env, result, &isStopwatch); in GetNotificationIsStopwatch()
925 napi_get_value_bool(env, result, &isCountDown); in GetNotificationIsCountDown()
1027 napi_get_value_bool(env, result, &showDeliveryTime); in GetNotificationShowDeliveryTime()
1052 napi_get_value_bool(env, result, &isRemoveAllowed); in GetNotificationIsRemoveAllowed()
H A Dnotification_napi_convert_liveview.cpp277 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewProgress()
331 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime()
344 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime()
357 napi_get_value_bool(env, result, &boolValue); in GetNotificationLocalLiveViewTime()
H A Dnotification_napi_convert_notification.cpp88 napi_get_value_bool(env, result, &isDistributed); in GetNotificationIsDistributed()
/ohos5.0/commonlibrary/ets_utils/js_util_module/util/
H A Djs_types.cpp160 NAPI_CALL(env, napi_get_value_bool(env, IsNumberObject(env, src), &rstNum)); in IsBoxedPrimitive()
161 NAPI_CALL(env, napi_get_value_bool(env, IsStringObject(env, src), &rstStr)); in IsBoxedPrimitive()
162 NAPI_CALL(env, napi_get_value_bool(env, IsBooleanObject(env, src), &rstBool)); in IsBoxedPrimitive()
163 NAPI_CALL(env, napi_get_value_bool(env, IsSymbolObject(env, src), &rstSym)); in IsBoxedPrimitive()
/ohos5.0/commonlibrary/ets_utils/js_api_module/url/test/
H A Dtest_napi.cpp347 napi_get_value_bool(env, result, &value);
357 napi_get_value_bool(env, result, &value);
367 napi_get_value_bool(env, result, &value);
377 napi_get_value_bool(env, result, &value);
387 napi_get_value_bool(env, result, &value);
397 napi_get_value_bool(env, result, &value);
408 napi_get_value_bool(env, result, &value);
662 napi_get_value_bool(env, result, &value);
751 napi_get_value_bool(env, result, &value);
761 napi_get_value_bool(env, result, &value);
[all …]
/ohos5.0/foundation/resourceschedule/work_scheduler/interfaces/kits/js/napi/src/
H A Dstop_work.cpp47 napi_get_value_bool(env, argv[NEED_CANCEL_INDEX], &needCancel); in StopWork()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/audio_haptic/src/audio_haptic_player/
H A Daudio_haptic_player_options_napi.cpp182 status = napi_get_value_bool(env, args[0], &muteAudio); in SetAudioMute()
242 status = napi_get_value_bool(env, args[0], &muteHaptics); in SetHapticsMute()
/ohos5.0/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/system_tone_player/
H A Dsystem_tone_options_napi.cpp180 status = napi_get_value_bool(env, args[0], &muteAudio); in SetAudioMute()
240 status = napi_get_value_bool(env, args[0], &muteHaptics); in SetHapticsMute()
/ohos5.0/commonlibrary/ets_utils/js_sys_module/dfx/
H A Dnative_module_dfx.cpp46 napi_get_value_bool(env, argv[1], &isVmMode); in DumpHeapSnapshot()
82 if (napi_get_value_bool(env, argv[1], &isVmMode) != napi_ok) { in StartHeapTracking()
/ohos5.0/foundation/ability/ability_runtime/interfaces/inner_api/napi_base_context/src/
H A Dnapi_base_context.cpp34 OHOS_CALL_NAPI_RETURN(napi_get_value_bool(env, boolValue, &value)); in IsStageContext()
/ohos5.0/docs/en/application-dev/napi/
H A Duse-napi-about-primitive.md23 | napi_get_value_bool | Obtains the C/C++ equivalent of the given ArkTS Boolean value.|
264 ### napi_get_value_bool subsection
266 Use **napi_get_value_bool** to obtain the C Boolean equivalent of an ArkTS Boolean value.
280 napi_status status = napi_get_value_bool(env, args[0], &bool_c);
282 …// If napi_get_value_bool is successful, napi_ok is returned. If a non-Boolean value is passed in,…
/ohos5.0/foundation/arkui/ace_engine/interfaces/napi/kits/promptaction/
H A Dprompt_action.cpp319 napi_get_value_bool(env, fillApi, &isFilled); in GetToastObjectShadow()
377 napi_get_value_bool(env, enableHoverModeNApi, &enableHoverMode); in GetToastEnableHoverMode()
606 napi_get_value_bool(env, primaryButtonNApi, &isPrimaryButtonSet); in GetPrimaryButtonNum()
655 napi_get_value_bool(env, primaryButtonNApi, &buttonInfo.isPrimary); in ParseButtons()
1005 napi_get_value_bool(env, fillApi, &isFilled); in GetNapiObjectShadow()
1101 napi_get_value_bool(env, asyncContext->autoCancel, &asyncContext->autoCancelBool); in GetNapiNamedBoolProperties()
1105 napi_get_value_bool(env, asyncContext->enableHoverMode, &asyncContext->enableHoverModeBool); in GetNapiNamedBoolProperties()
1113 napi_get_value_bool(env, asyncContext->isModal, &asyncContext->isModalBool); in GetNapiNamedBoolProperties()
1320 napi_get_value_bool(env, asyncContext->autoCancel, &asyncContext->autoCancelBool); in JSPromptShowDialog()
1328 napi_get_value_bool(env, asyncContext->isModal, &asyncContext->isModalBool); in JSPromptShowDialog()
[all …]
/ohos5.0/foundation/distributeddatamgr/relational_store/frameworks/js/napi/rdb/src/
H A Dnapi_values_bucket.cpp72 napi_get_value_bool(env, value, &valueBool); in NAPI_OHOS_Data_RdbJsKit_ValuesBucketProxy_GetNativeObject()
/ohos5.0/base/notification/distributed_notification_service/frameworks/js/napi/src/
H A Dcommon_convert_request.cpp1019 napi_get_value_bool(env, result, &isOngoing); in GetNotificationIsOngoing()
1044 napi_get_value_bool(env, result, &isUnremovable); in GetNotificationIsUnremovable()
1094 napi_get_value_bool(env, result, &tapDismissed); in GetNotificationtapDismissed()
1386 napi_get_value_bool(env, result, &colorEnabled); in GetNotificationColorEnabled()
1411 napi_get_value_bool(env, result, &isAlertOnce); in GetNotificationIsAlertOnce()
1436 napi_get_value_bool(env, result, &isStopwatch); in GetNotificationIsStopwatch()
1461 napi_get_value_bool(env, result, &isCountDown); in GetNotificationIsCountDown()
1562 napi_get_value_bool(env, result, &showDeliveryTime); in GetNotificationShowDeliveryTime()
1587 napi_get_value_bool(env, result, &isRemoveAllowed); in GetNotificationIsRemoveAllowed()
H A Dcancel.cpp83 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParseParameters()
151 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM0], &result)); in ParseParameters()
406 NAPI_CALL(env, napi_get_value_bool(env, argv[PARAM1], &result)); in ParseParameters()
/ohos5.0/foundation/communication/ipc/ipc/native/src/napi/src/
H A Dnapi_message_option.cpp106 napi_status status = napi_get_value_bool(env, argv[ARGV_INDEX_0], &flags); in NapiOhosRpcMessageOptionSetAsync()
178 napi_get_value_bool(env, argv[ARGV_INDEX_0], &jsBoolFlags); in NAPIMessageOption_JS_Constructor()
/ohos5.0/base/time/time_service/framework/js/napi/common/src/
H A Dnapi_utils.cpp258 napi_get_value_bool(env, argv[0], isNano); in ParseParametersGetNA()
261 napi_get_value_bool(env, argv[0], isNano); in ParseParametersGetNA()
/ohos5.0/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/drawing/
H A Djs_drawing_utils.h132 …if (napi_get_value_bool(env, argv[argc], &value) != napi_ok) { …
314 return napi_get_value_bool(env, jsValue, &value) == napi_ok; in ConvertFromJsNumber()
326 return napi_get_value_bool(env, jsValue, &value) == napi_ok; in ConvertFromJsValue()

12345678910