/base/customization/enterprise_device_management/framework/extension/src/ |
D | js_enterprise_admin_extension.cpp | 33 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 …]
|
D | enterprise_admin_extension_module_loader.cpp | 23 AbilityRuntime::Extension* EnterpriseAdminExtensionModuleLoader::Create( in Create() 24 const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const in Create()
|
D | js_enterprise_admin_extension_context.cpp | 45 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/ |
D | notification_action_button_test.cpp | 48 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/ |
D | js_static_subscriber_extension_context.cpp | 56 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() 98 … AbilityRuntime::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()
|
D | js_static_subscriber_extension.cpp | 53 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/ |
D | napi_push_callback.cpp | 55 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/ |
D | static_subscriber_extension_module_loader.h | 24 class StaticSubscriberExtensionModuleLoader : public AbilityRuntime::ExtensionModuleLoader, 35 …AbilityRuntime::Extension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const o…
|
/base/customization/enterprise_device_management/framework/extension/include/ |
D | enterprise_admin_extension_module_loader.h | 22 class EnterpriseAdminExtensionModuleLoader : public AbilityRuntime::ExtensionModuleLoader, 33 …AbilityRuntime::Extension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime) const o…
|
D | js_enterprise_admin_extension.h | 31 JsEnterpriseAdminExtension(AbilityRuntime::JsRuntime& jsRuntime); 41 …static JsEnterpriseAdminExtension* Create(const std::unique_ptr<AbilityRuntime::Runtime>& runtime); 74 AbilityRuntime::JsRuntime& jsRuntime_;
|
D | enterprise_admin_extension.h | 25 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/ |
D | static_subscriber_stub_imp_test.cpp | 61 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/ |
D | notification_publish_test.cpp | 29 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/ |
D | js_static_subscriber_extension.h | 30 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/ |
D | obtain_file.h | 36 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);
|
D | file_adapter.h | 25 std::shared_ptr<OHOS::AbilityRuntime::Context> &context) override; 26 … std::string InternalGetFilePath(std::shared_ptr<OHOS::AbilityRuntime::Context> &context) override;
|
D | i_file_adapter.h | 29 … 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/ |
D | notificationactionbutton_fuzzer.cpp | 29 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/ |
D | geofence_state.h | 27 …explicit GeoFenceState(const GeoFence fence, const AbilityRuntime::WantAgent::WantAgent wantAgent); 32 AbilityRuntime::WantAgent::WantAgent mWantAgent;
|
/base/time/time_service/interfaces/inner_api/include/ |
D | itimer_info.h | 32 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/ |
D | file_adapter.cpp | 23 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/ |
D | static_subscriber_extension_module_loader.cpp | 26 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/ |
D | notification_action_button.h | 48 … 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/ |
D | napi_print_task.cpp | 82 …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/ |
D | appspawn_ace.cpp | 65 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()
|