Home
last modified time | relevance | path

Searched refs:AbilityRuntime (Results 1 – 25 of 169) sorted by relevance

1234567

/base/customization/enterprise_device_management/framework/extension/src/
Djs_enterprise_admin_extension.cpp33 JsEnterpriseAdminExtension* JsEnterpriseAdminExtension::Create(const std::unique_ptr<AbilityRuntime in Create()
35 return new JsEnterpriseAdminExtension(static_cast<AbilityRuntime::JsRuntime&>(*runtime)); in Create()
38 JsEnterpriseAdminExtension::JsEnterpriseAdminExtension(AbilityRuntime::JsRuntime& jsRuntime) : jsRu… in JsEnterpriseAdminExtension()
62 AbilityRuntime::HandleScope handleScope(jsRuntime_); in Init()
65 Extension::abilityInfo_->compileMode == AbilityRuntime::CompileMode::ES_MODULE); in Init()
76 NativeObject* obj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(jsObj_->Get()); in JsEnterpriseAdminExtensionContextInit()
98 auto nativeObj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(contextObj); in JsEnterpriseAdminExtensionContextInit()
106 nativeObj->SetNativePointer(new std::weak_ptr<AbilityRuntime::Context>(context), in JsEnterpriseAdminExtensionContextInit()
109 delete static_cast<std::weak_ptr<AbilityRuntime::Context>*>(data); in JsEnterpriseAdminExtensionContextInit()
118 AbilityRuntime::Extension::OnStart(want); in OnStart()
[all …]
Denterprise_admin_extension_module_loader.cpp23 AbilityRuntime::Extension* EnterpriseAdminExtensionModuleLoader::Create( in Create()
24 const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const in Create()
Djs_enterprise_admin_extension_context.cpp45 NativeValue *objValue = AbilityRuntime::CreateJsExtensionContext(engine, context); in CreateJsEnterpriseAdminExtensionContext()
46 NativeObject *object = AbilityRuntime::ConvertNativeValueTo<NativeObject>(objValue); in CreateJsEnterpriseAdminExtensionContext()
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
Dnotification_action_button_test.cpp48 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in HWTEST_F()
49 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in HWTEST_F()
50 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in HWTEST_F()
67 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in HWTEST_F()
68 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in HWTEST_F()
69 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in HWTEST_F()
88 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in HWTEST_F()
89 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in HWTEST_F()
90 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in HWTEST_F()
112 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo;
[all …]
/base/notification/common_event_service/frameworks/extension/src/
Djs_static_subscriber_extension_context.cpp56 AbilityRuntime::CheckParamsAndGetThis<JsStaticSubscriberExtensionContext>(engine, info); in StartAbility()
66 AbilityRuntime::ThrowTooFewParametersError(engine); in OnStartAbility()
76 AbilityRuntime::AsyncTask::ExecuteCallback execute = [weak = context_, want, innerErrorCode]() { in OnStartAbility()
80 …*innerErrorCode = static_cast<int32_t>(AbilityRuntime::AbilityErrorCode::ERROR_CODE_INVALID_CONTEX… in OnStartAbility()
86 AbilityRuntime::AsyncTask::CompleteCallback complete = in OnStartAbility()
87 [innerErrorCode](NativeEngine& engine, AbilityRuntime::AsyncTask& task, int32_t status) { in OnStartAbility()
91 … task.Reject(engine, AbilityRuntime::CreateJsErrorByNativeErr(engine, *innerErrorCode)); in OnStartAbility()
98AbilityRuntime::AsyncTask::Schedule("JsStaticSubscriberExtensionContext::OnStartAbility", engine, in OnStartAbility()
114 NativeObject* object = AbilityRuntime::ConvertNativeValueTo<NativeObject>(objValue); in CreateJsStaticSubscriberExtensionContext()
121 AbilityRuntime::BindNativeFunction(engine, *object, "startAbility", moduleName, in CreateJsStaticSubscriberExtensionContext()
Djs_static_subscriber_extension.cpp53 auto contextObj = AbilityRuntime::JsRuntime::LoadSystemModuleByEngine(engine, in AttachStaticSubscriberExtensionContext()
55 NativeObject* nObject = AbilityRuntime::ConvertNativeValueTo<NativeObject>(contextObj); in AttachStaticSubscriberExtensionContext()
57 AbilityRuntime::DetachCallbackFunc, AttachStaticSubscriberExtensionContext, value, nullptr); in AttachStaticSubscriberExtensionContext()
68 const std::unique_ptr<AbilityRuntime::Runtime>& runtime) in Create()
70 return new JsStaticSubscriberExtension(static_cast<AbilityRuntime::JsRuntime&>(*runtime)); in Create()
73 JsStaticSubscriberExtension::JsStaticSubscriberExtension(AbilityRuntime::JsRuntime& jsRuntime) in JsStaticSubscriberExtension()
105 AbilityRuntime::HandleScope handleScope(jsRuntime_); in Init()
115 NativeObject* obj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(jsObj_->Get()); in Init()
128 auto shellContextRef = AbilityRuntime::JsRuntime::LoadSystemModuleByEngine( in Init()
131 NativeObject* nativeObj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(contextObj); in Init()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/manager/
Dnapi_push_callback.cpp55 AbilityRuntime::HandleEscape handleEscape(engine_); in OnCheckNotification()
74 NativeObject *result = AbilityRuntime::ConvertNativeValueTo<NativeObject>(jsResult); in OnCheckNotification()
75 result->SetProperty("bundleName", AbilityRuntime::CreateJsValue(engine_, pkgName)); in OnCheckNotification()
76 result->SetProperty("notificationId", AbilityRuntime::CreateJsValue(engine_, notifyId)); in OnCheckNotification()
77 result->SetProperty("contentType", AbilityRuntime::CreateJsValue(engine_, contentType)); in OnCheckNotification()
126 NativeObject *obj = AbilityRuntime::ConvertNativeValueTo<NativeObject>(funcResult); in ConvertFunctionResult()
139 if (!AbilityRuntime::ConvertFromJsValue(engine_, codeJsvalue, code)) { in ConvertFunctionResult()
150 if (!AbilityRuntime::ConvertFromJsValue(engine_, messageJsvalue, message)) { in ConvertFunctionResult()
/base/notification/common_event_service/frameworks/extension/include/loader/
Dstatic_subscriber_extension_module_loader.h24 class StaticSubscriberExtensionModuleLoader : public AbilityRuntime::ExtensionModuleLoader,
35AbilityRuntime::Extension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const o…
/base/customization/enterprise_device_management/framework/extension/include/
Denterprise_admin_extension_module_loader.h22 class EnterpriseAdminExtensionModuleLoader : public AbilityRuntime::ExtensionModuleLoader,
33AbilityRuntime::Extension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const o…
Djs_enterprise_admin_extension.h31 JsEnterpriseAdminExtension(AbilityRuntime::JsRuntime& jsRuntime);
41 …static JsEnterpriseAdminExtension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime);
74 AbilityRuntime::JsRuntime& jsRuntime_;
Denterprise_admin_extension.h25 class EnterpriseAdminExtension : public AbilityRuntime::ExtensionBase<EnterpriseAdminExtensionConte…
58 … static EnterpriseAdminExtension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime);
/base/notification/common_event_service/frameworks/extension/test/static_subscriber_stub_imp_test/
Dstatic_subscriber_stub_imp_test.cpp61 AbilityRuntime::Runtime::Options options;
62 std::unique_ptr<AbilityRuntime::Runtime> runtime = AbilityRuntime::Runtime::Create(options);
65 static_cast<AbilityRuntime::JsRuntime&>(*runtime));
/base/notification/distributed_notification_service/test/bechmarktest/notification_publish_test/
Dnotification_publish_test.cpp29 using namespace OHOS::AbilityRuntime;
83 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in InitWantAgentRequest()
84 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in InitWantAgentRequest()
85 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in InitWantAgentRequest()
97 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in InitButtonRequest()
98 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in InitButtonRequest()
99 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in InitButtonRequest()
/base/notification/common_event_service/frameworks/extension/include/
Djs_static_subscriber_extension.h30 explicit JsStaticSubscriberExtension(AbilityRuntime::JsRuntime& jsRuntime);
39 …static JsStaticSubscriberExtension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime…
57 AbilityRuntime::JsRuntime& jsRuntime_;
/base/request/request/frameworks/js/napi/include/upload/
Dobtain_file.h36 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
39 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
41 uint32_t& fileSize, std::shared_ptr<OHOS::AbilityRuntime::Context> &context);
Dfile_adapter.h25 std::shared_ptr<OHOS::AbilityRuntime::Context> &context) override;
26 … std::string InternalGetFilePath(std::shared_ptr<OHOS::AbilityRuntime::Context> &context) override;
Di_file_adapter.h29 … std::shared_ptr<OHOS::AbilityRuntime::Context> &context) = 0;
30 …virtual std::string InternalGetFilePath(std::shared_ptr<OHOS::AbilityRuntime::Context> &context) =…
/base/notification/distributed_notification_service/test/fuzztest/notificationactionbutton_fuzzer/
Dnotificationactionbutton_fuzzer.cpp29 AbilityRuntime::WantAgent::WantAgentInfo paramsInfo; in DoSomethingInterestingWithMyAPI()
30 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent = in DoSomethingInterestingWithMyAPI()
31 AbilityRuntime::WantAgent::WantAgentHelper::GetWantAgent(paramsInfo); in DoSomethingInterestingWithMyAPI()
/base/location/interfaces/inner_api/include/
Dgeofence_state.h27 …explicit GeoFenceState(const GeoFence fence, const AbilityRuntime::WantAgent::WantAgent wantAgent);
32 AbilityRuntime::WantAgent::WantAgent mWantAgent;
/base/time/time_service/interfaces/inner_api/include/
Ditimer_info.h32 std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> wantAgent;
78 …virtual void SetWantAgent(std::shared_ptr<OHOS::AbilityRuntime::WantAgent::WantAgent> wantAgent) =…
/base/request/request/frameworks/js/napi/src/upload/
Dfile_adapter.cpp23 std::shared_ptr<OHOS::AbilityRuntime::Context> &context) in DataAbilityOpenFile()
34 std::string FileAdapter::InternalGetFilePath(std::shared_ptr<OHOS::AbilityRuntime::Context> &contex… in InternalGetFilePath()
/base/notification/common_event_service/frameworks/extension/src/loader/
Dstatic_subscriber_extension_module_loader.cpp26 AbilityRuntime::Extension* StaticSubscriberExtensionModuleLoader::Create( in Create()
27 const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const in Create()
/base/notification/distributed_notification_service/interfaces/inner_api/
Dnotification_action_button.h48 … const std::string &title, const std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> &wantAgent,
88 const std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> GetWantAgent() const;
241 const std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> &wantAgent,
258 std::shared_ptr<AbilityRuntime::WantAgent::WantAgent> wantAgent_ {};
/base/print/print_fwk/interfaces/kits/napi/src/
Dnapi_print_task.cpp82 …napi_env env, napi_value value, std::shared_ptr<OHOS::AbilityRuntime::AbilityContext> &abilityCont… in GetAbilityContext()
85 napi_status status = OHOS::AbilityRuntime::IsStageContext(env, value, stageMode); in GetAbilityContext()
90 auto context = OHOS::AbilityRuntime::GetStageModeContext(env, value); in GetAbilityContext()
95 …abilityContext = OHOS::AbilityRuntime::Context::ConvertTo<OHOS::AbilityRuntime::AbilityContext>(co… in GetAbilityContext()
151 std::shared_ptr<OHOS::AbilityRuntime::AbilityContext> abilityContext; in Initialize()
211 std::shared_ptr<OHOS::AbilityRuntime::AbilityContext> abilityContext; in VerifyParameters()
/base/startup/appspawn/adapter/
Dappspawn_ace.cpp65 OHOS::AbilityRuntime::Runtime::Options options; in PreloadModule()
66 options.lang = OHOS::AbilityRuntime::Runtime::Language::JS; in PreloadModule()
70 auto runtime = OHOS::AbilityRuntime::Runtime::Create(options); in PreloadModule()
100 OHOS::AbilityRuntime::Runtime::SavePreloaded(std::move(runtime)); in PreloadModule()

1234567