Home
last modified time | relevance | path

Searched refs:stageMode (Results 1 - 12 of 12) sorted by relevance

/foundation/ability/ability_runtime/test/unittest/napi_base_context_test/
H A Dnapi_base_context_test.cpp55 bool stageMode = false; in HWTEST_F() local
57 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, args[0], stageMode); in HWTEST_F()
59 EXPECT_FALSE(stageMode); in HWTEST_F()
/foundation/ability/ability_runtime/interfaces/inner_api/napi_base_context/src/
H A Dnapi_base_context.cpp28 napi_status IsStageContext(napi_env env, napi_value object, bool& stageMode) in IsStageContext() argument
31 OHOS_CALL_NAPI_RETURN(napi_get_named_property(env, object, "stageMode", &boolValue)); in IsStageContext()
36 stageMode = value; in IsStageContext()
/foundation/ability/ability_runtime/interfaces/inner_api/napi_base_context/include/
H A Dnapi_base_context.h30 * @brief Get "stageMode" value of object.
33 * @param object Native value contains "stageMode" object.
34 * @param stageMode The value of "stageMode" object.
37 napi_status IsStageContext(napi_env env, napi_value object, bool& stageMode);
/foundation/distributeddatamgr/kv_store/kvstoremock/interfaces/mock/
H A Dnapi_base_context.h30 napi_status IsStageContext(napi_env env, napi_value object, bool& stageMode);
/foundation/ability/ability_runtime/frameworks/js/napi/application/
H A Djs_application.cpp85 bool stageMode = false; in OnCreateModuleContext() local
86 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, info.argv[ARGC_ZERO], stageMode); in OnCreateModuleContext()
87 if (status != napi_ok || !stageMode) { in OnCreateModuleContext()
88 TAG_LOGE(AAFwkTag::APPKIT, "not stageMode"); in OnCreateModuleContext()
89 ThrowInvalidParamError(env, "Parse param context failed, must be a context of stageMode."); in OnCreateModuleContext()
206 bool stageMode = false; in OnCreateBundleContext() local
207 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, info.argv[ARGC_ZERO], stageMode); in OnCreateBundleContext()
208 if (status != napi_ok || !stageMode) { in OnCreateBundleContext()
209 TAG_LOGE(AAFwkTag::APPKIT, "not stageMode"); in OnCreateBundleContext()
210 ThrowInvalidParamError(env, "Parse param context failed, must be a context of stageMode in OnCreateBundleContext()
[all...]
/foundation/ability/ability_runtime/frameworks/js/napi/app/sendable_context_manager/
H A Djs_sendable_context_manager.cpp361 bool stageMode = false; in OnConvertFromContext() local
362 napi_status status = IsStageContext(env, info.argv[0], stageMode); in OnConvertFromContext()
363 if (status != napi_ok || !stageMode) { in OnConvertFromContext()
364 TAG_LOGE(AAFwkTag::CONTEXT, "context isn't stageMode, status is %{public}d", status); in OnConvertFromContext()
365 ThrowInvalidParamError(env, "Parse param context failed, must be a context of stageMode."); in OnConvertFromContext()
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
H A Dbg_continuous_task_napi_module.cpp96 bool stageMode = false; in GetAbilityContext() local
97 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, value, stageMode); in GetAbilityContext()
98 BGTASK_LOGD("is stage mode: %{public}s", stageMode ? "true" : "false"); in GetAbilityContext()
100 if (status != napi_ok || !stageMode) { in GetAbilityContext()
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/picker/
H A Dcamera_picker_napi.cpp66 bool stageMode = false; in GetAbilityContext() local
67 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, value, stageMode); in GetAbilityContext()
68 if (status != napi_ok || !stageMode) { in GetAbilityContext()
/foundation/ability/ability_runtime/frameworks/js/napi/ability_manager/
H A Djs_ability_manager.cpp630 bool stageMode = false; in OnIsEmbeddedOpenAllowed() local
631 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, info.argv[0], stageMode); in OnIsEmbeddedOpenAllowed()
632 if (status != napi_ok || !stageMode) { in OnIsEmbeddedOpenAllowed()
633 TAG_LOGE(AAFwkTag::ABILITYMGR, "not stageMode"); in OnIsEmbeddedOpenAllowed()
634 ThrowInvalidParamError(env, "Parse param context failed, must be a context of stageMode."); in OnIsEmbeddedOpenAllowed()
/foundation/ability/ability_runtime/frameworks/js/napi/inner/napi_ability_common/
H A Dnapi_common_ability.cpp1068 bool stageMode = false; in AcquireDataAbilityHelperWrap() local
1069 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, args[0], stageMode); in AcquireDataAbilityHelperWrap()
1072 TAG_LOGI(AAFwkTag::JSNAPI, "argv[0] is a context, Stage Model: %{public}d", stageMode); in AcquireDataAbilityHelperWrap()
1075 if (!stageMode) { in AcquireDataAbilityHelperWrap()
/foundation/ability/ability_runtime/frameworks/js/napi/featureAbility/
H A Dnapi_data_ability_helper.cpp100 bool stageMode = false; in DataAbilityHelperConstructor() local
101 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, argv[0], stageMode); in DataAbilityHelperConstructor()
112 if (stageMode) { in DataAbilityHelperConstructor()
/foundation/multimedia/player_framework/frameworks/js/system_sound_manager/src/
H A Dsystem_sound_manager_napi.cpp315 bool stageMode = false; in GetAbilityContext() local
317 napi_status status = AbilityRuntime::IsStageContext(env, contextArg, stageMode); in GetAbilityContext()
318 if (status == napi_ok && stageMode) { in GetAbilityContext()

Completed in 15 milliseconds