/foundation/aafwk/standard/frameworks/kits/runtime/native/ |
D | js_data_struct_converter.cpp | 28 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsWantObject() local 30 object->SetProperty("deviceId", CreateJsValue(engine, want.GetOperation().GetDeviceId())); in CreateJsWantObject() 31 object->SetProperty("bundleName", CreateJsValue(engine, want.GetBundle())); in CreateJsWantObject() 32 object->SetProperty("abilityName", CreateJsValue(engine, want.GetOperation().GetAbilityName())); in CreateJsWantObject() 33 object->SetProperty("uri", CreateJsValue(engine, want.GetUriString())); in CreateJsWantObject() 34 object->SetProperty("type", CreateJsValue(engine, want.GetType())); in CreateJsWantObject() 35 object->SetProperty("flags", CreateJsValue(engine, want.GetFlags())); in CreateJsWantObject() 36 object->SetProperty("action", CreateJsValue(engine, want.GetAction())); in CreateJsWantObject() 37 object->SetProperty("entities", CreateNativeArray(engine, want.GetEntities())); in CreateJsWantObject() 44 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsAbilityInfo() local [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/form_error/ |
D | js_form_error.cpp | 26 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsFormError() local 27 object->SetProperty("ERR_COMMON", CreateJsValue(engine, ERR_COMMON)); in CreateJsFormError() 28 object->SetProperty("ERR_PERMISSION_DENY", CreateJsValue(engine, ERR_PERMISSION_DENY)); in CreateJsFormError() 29 object->SetProperty("ERR_GET_INFO_FAILED", CreateJsValue(engine, ERR_GET_INFO_FAILED)); in CreateJsFormError() 30 object->SetProperty("ERR_GET_BUNDLE_FAILED", CreateJsValue(engine, ERR_GET_BUNDLE_FAILED)); in CreateJsFormError() 31 object->SetProperty("ERR_GET_LAYOUT_FAILED", CreateJsValue(engine, ERR_GET_LAYOUT_FAILED)); in CreateJsFormError() 32 object->SetProperty("ERR_ADD_INVALID_PARAM", CreateJsValue(engine, ERR_ADD_INVALID_PARAM)); in CreateJsFormError() 33 object->SetProperty("ERR_CFG_NOT_MATCH_ID", CreateJsValue(engine, ERR_CFG_NOT_MATCH_ID)); in CreateJsFormError() 34 object->SetProperty("ERR_NOT_EXIST_ID", CreateJsValue(engine, ERR_NOT_EXIST_ID)); in CreateJsFormError() 35 … object->SetProperty("ERR_BIND_PROVIDER_FAILED", CreateJsValue(engine, ERR_BIND_PROVIDER_FAILED)); in CreateJsFormError() [all …]
|
/foundation/aafwk/standard/interfaces/innerkits/base/include/ohos/aafwk/base/ |
D | base_interfaces.h | 31 inline static IInterface *Query(IInterface * object) /* [in] */ in Query() argument 33 if (object == nullptr) { in Query() 36 return object->Query(g_IID_IInterface); in Query() 45 virtual InterfaceID GetInterfaceID(IInterface * object) = 0; /* [in] */ 50 inline static IBoolean *Query(IInterface * object) /* [in] */ in Query() argument 52 if (object == nullptr) { in Query() 55 return static_cast<IBoolean *>(object->Query(g_IID_IBoolean)); in Query() 63 inline static IChar *Query(IInterface * object) /* [in] */ in Query() argument 65 if (object == nullptr) { in Query() 68 return static_cast<IChar *>(object->Query(g_IID_IChar)); in Query() [all …]
|
D | base_object.h | 27 inline static IObject *Query(IInterface & object) /* [in] */ in Query() argument 29 return static_cast<IObject *>(object.Query(g_IID_IObject)); in Query() 43 inline static IWeakReference *Query(IInterface * object) /* [in] */ in Query() argument 45 if (object == nullptr) { in Query() 48 return static_cast<IWeakReference *>(object->Query(g_IID_IWeakReference)); in Query() 52 IInterface **object) = 0; /* [out] */ 57 inline static IWeakReferenceSource *Query(IInterface * object) /* [in] */ in Query() argument 59 if (object == nullptr) { in Query() 62 return static_cast<IWeakReferenceSource *>(object->Query(g_IID_IWeakReferenceSource)); in Query() 76 InterfaceID GetInterfaceID(IInterface *object) override; /* [in] */ [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/ability_delegator/ |
D | js_ability_delegator_utils.cpp | 32 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsAbilityDelegator() local 33 if (object == nullptr) { in CreateJsAbilityDelegator() 39 object->SetNativePointer(jsAbilityDelegator.release(), JSAbilityDelegator::Finalizer, nullptr); in CreateJsAbilityDelegator() 41 BindNativeFunction(engine, *object, "addAbilityMonitor", JSAbilityDelegator::AddAbilityMonitor); in CreateJsAbilityDelegator() 42 …BindNativeFunction(engine, *object, "removeAbilityMonitor", JSAbilityDelegator::RemoveAbilityMonit… in CreateJsAbilityDelegator() 43 … BindNativeFunction(engine, *object, "waitAbilityMonitor", JSAbilityDelegator::WaitAbilityMonitor); in CreateJsAbilityDelegator() 44 BindNativeFunction(engine, *object, "getAppContext", JSAbilityDelegator::GetAppContext); in CreateJsAbilityDelegator() 45 BindNativeFunction(engine, *object, "getAbilityState", JSAbilityDelegator::GetAbilityState); in CreateJsAbilityDelegator() 46 …BindNativeFunction(engine, *object, "getCurrentTopAbility", JSAbilityDelegator::GetCurrentTopAbili… in CreateJsAbilityDelegator() 47 BindNativeFunction(engine, *object, "startAbility", JSAbilityDelegator::StartAbility); in CreateJsAbilityDelegator() [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/form_info/ |
D | js_form_info.cpp | 29 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsFormType() local 30 object->SetProperty("JS", CreateJsValue(engine, AppExecFwk::FormType::JS)); in CreateJsFormType() 37 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsColorMode() local 38 object->SetProperty("MODE_AUTO", CreateJsValue(engine, AppExecFwk::FormsColorMode::AUTO_MODE)); in CreateJsColorMode() 39 object->SetProperty("MODE_DARK", CreateJsValue(engine, AppExecFwk::FormsColorMode::DARK_MODE)); in CreateJsColorMode() 40 … object->SetProperty("MODE_LIGHT", CreateJsValue(engine, AppExecFwk::FormsColorMode::LIGHT_MODE)); in CreateJsColorMode() 47 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsFormState() local 48 object->SetProperty("UNKNOWN", CreateJsValue(engine, AppExecFwk::FormState::UNKNOWN)); in CreateJsFormState() 49 object->SetProperty("DEFAULT", CreateJsValue(engine, AppExecFwk::FormState::DEFAULT)); in CreateJsFormState() 50 object->SetProperty("READY", CreateJsValue(engine, AppExecFwk::FormState::READY)); in CreateJsFormState() [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/configuration_constant/ |
D | configuration_constant_module.cpp | 22 static napi_status SetEnumItem(napi_env env, napi_value object, const char* name, int32_t value) in SetEnumItem() argument 31 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem() 32 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem() 39 napi_value object; in InitColorModeObject() local 40 NAPI_CALL(env, napi_create_object(env, &object)); in InitColorModeObject() 42 …NAPI_CALL(env, SetEnumItem(env, object, "COLOR_MODE_NOT_SET", Global::Resource::COLOR_MODE_NOT_SET… in InitColorModeObject() 43 NAPI_CALL(env, SetEnumItem(env, object, "COLOR_MODE_DARK", Global::Resource::DARK)); in InitColorModeObject() 44 NAPI_CALL(env, SetEnumItem(env, object, "COLOR_MODE_LIGHT", Global::Resource::LIGHT)); in InitColorModeObject() 46 return object; in InitColorModeObject() 51 napi_value object; in InitDirectionObject() local [all …]
|
/foundation/communication/ipc/ipc/native/src/jni/include/ |
D | ohos_rpc_message_parcel.h | 30 MessageParcel *JavaOhosRpcMessageParcelGetNative(JNIEnv *env, jobject object); 41 jlong JNICALL Java_ohos_rpc_MessageParcel_nativeNewObject(JNIEnv *env, jobject object, jlong native… 48 void JNICALL Java_ohos_rpc_MessageParcel_nativeFreeObject(JNIEnv *env, jobject object, jlong native… 54 …L Java_ohos_rpc_MessageParcel_nativeWriteRemoteObject(JNIEnv *env, jobject parcel, jobject object); 61 jobject JNICALL Java_ohos_rpc_MessageParcel_nativeReadRemoteObject(JNIEnv *env, jobject object); 68 jboolean JNICALL Java_ohos_rpc_MessageParcel_nativeWriteFileDescriptor(JNIEnv *env, jobject object,… 75 jobject JNICALL Java_ohos_rpc_MessageParcel_nativeReadFileDescriptor(JNIEnv *env, jobject object); 82 jboolean JNICALL Java_ohos_rpc_MessageParcel_nativeWriteInterfaceToken(JNIEnv *env, jobject object,… 90 jobject JNICALL Java_ohos_rpc_MessageParcel_nativeReadInterfaceToken(JNIEnv *env, jobject object); 97 jboolean JNICALL Java_ohos_rpc_MessageParcel_nativeWriteRawData(JNIEnv *env, jobject object, jobjec… [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/mission_manager/ |
D | js_mission_info_utils.cpp | 38 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsMissionInfo() local 39 object->SetProperty("missionId", CreateJsValue(engine, missionInfo.id)); in CreateJsMissionInfo() 40 object->SetProperty("runningState", CreateJsValue(engine, missionInfo.runningState)); in CreateJsMissionInfo() 41 object->SetProperty("lockedState", CreateJsValue(engine, missionInfo.lockedState)); in CreateJsMissionInfo() 42 object->SetProperty("continuable", CreateJsValue(engine, missionInfo.continuable)); in CreateJsMissionInfo() 43 object->SetProperty("timestamp", CreateJsValue(engine, missionInfo.time)); in CreateJsMissionInfo() 44 object->SetProperty("want", CreateJsWant(engine, missionInfo.want)); in CreateJsMissionInfo() 45 object->SetProperty("label", CreateJsValue(engine, missionInfo.label)); in CreateJsMissionInfo() 46 object->SetProperty("iconPath", CreateJsValue(engine, missionInfo.iconPath)); in CreateJsMissionInfo() 53 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsWant() local [all …]
|
/foundation/windowmanager/interfaces/kits/napi/window_runtime/window_napi/ |
D | js_window_utils.cpp | 41 NativeObject *object = ConvertNativeValueTo<NativeObject>(objValue); in WindowTypeInit() local 43 if (object == nullptr) { in WindowTypeInit() 48 object->SetProperty("TYPE_APP", CreateJsValue(*engine, in WindowTypeInit() 50 object->SetProperty("TYPE_SYSTEM_ALERT", CreateJsValue(*engine, in WindowTypeInit() 52 object->SetProperty("TYPE_INPUT_METHOD", CreateJsValue(*engine, in WindowTypeInit() 54 object->SetProperty("TYPE_STATUS_BAR", CreateJsValue(*engine, in WindowTypeInit() 56 object->SetProperty("TYPE_PANEL", CreateJsValue(*engine, in WindowTypeInit() 58 object->SetProperty("TYPE_KEYGUARD", CreateJsValue(*engine, in WindowTypeInit() 60 object->SetProperty("TYPE_VOLUME_OVERLAY", CreateJsValue(*engine, in WindowTypeInit() 62 object->SetProperty("TYPE_NAVIGATION_BAR", CreateJsValue(*engine, in WindowTypeInit() [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/app/app_manager/ |
D | js_app_manager_utils.cpp | 36 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsAppStateData() local 37 if (object == nullptr) { in CreateJsAppStateData() 42 object->SetProperty("bundleName", CreateJsValue(engine, appStateData.bundleName)); in CreateJsAppStateData() 43 object->SetProperty("uid", CreateJsValue(engine, appStateData.uid)); in CreateJsAppStateData() 44 object->SetProperty("state", CreateJsValue(engine, appStateData.state)); in CreateJsAppStateData() 58 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsAbilityStateData() local 59 if (object == nullptr) { in CreateJsAbilityStateData() 64 object->SetProperty("bundleName", CreateJsValue(engine, abilityStateData.bundleName)); in CreateJsAbilityStateData() 65 object->SetProperty("abilityName", CreateJsValue(engine, abilityStateData.abilityName)); in CreateJsAbilityStateData() 66 object->SetProperty("pid", CreateJsValue(engine, abilityStateData.pid)); in CreateJsAbilityStateData() [all …]
|
/foundation/aafwk/standard/services/abilitymgr/include/ |
D | ability_util.h | 42 #define CHECK_POINTER_CONTINUE(object) \ argument 43 if (!object) { \ 48 #define CHECK_POINTER_IS_NULLPTR(object) \ argument 49 if (object == nullptr) { \ 54 #define CHECK_POINTER(object) \ argument 55 if (!object) { \ 60 #define CHECK_POINTER_LOG(object, log) \ argument 61 if (!object) { \ 66 #define CHECK_POINTER_AND_RETURN(object, value) \ argument 67 if (!object) { \ [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/ability_constant/ |
D | ability_constant_module.cpp | 22 static napi_status SetEnumItem(napi_env env, napi_value object, const char* name, int32_t value) in SetEnumItem() argument 31 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemName, itemValue), status); in SetEnumItem() 32 NAPI_CALL_BASE(env, status = napi_set_property(env, object, itemValue, itemName), status); in SetEnumItem() 39 napi_value object; in InitLaunchReasonObject() local 40 NAPI_CALL(env, napi_create_object(env, &object)); in InitLaunchReasonObject() 42 NAPI_CALL(env, SetEnumItem(env, object, "UNKNOWN", LAUNCHREASON_UNKNOWN)); in InitLaunchReasonObject() 43 NAPI_CALL(env, SetEnumItem(env, object, "START_ABILITY", LAUNCHREASON_START_ABILITY)); in InitLaunchReasonObject() 44 NAPI_CALL(env, SetEnumItem(env, object, "CALL", LAUNCHREASON_CALL)); in InitLaunchReasonObject() 45 NAPI_CALL(env, SetEnumItem(env, object, "CONTINUATION", LAUNCHREASON_CONTINUATION)); in InitLaunchReasonObject() 47 return object; in InitLaunchReasonObject() [all …]
|
/foundation/aafwk/standard/interfaces/kits/napi/aafwk/ability_manager/ |
D | js_ability_manager_utils.cpp | 61 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsElementName() local 64 object->SetProperty("ability", reinterpret_cast<NativeValue*>(napiElementName)); in CreateJsElementName() 83 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsAbilityRunningInfo() local 87 object->SetProperty("ability", reinterpret_cast<NativeValue*>(napiElementName)); in CreateJsAbilityRunningInfo() 88 object->SetProperty("pid", CreateJsValue(engine, info.pid)); in CreateJsAbilityRunningInfo() 89 object->SetProperty("uid", CreateJsValue(engine, info.uid)); in CreateJsAbilityRunningInfo() 90 object->SetProperty("processName", CreateJsValue(engine, info.processName)); in CreateJsAbilityRunningInfo() 91 object->SetProperty("startTime", CreateJsValue(engine, info.startTime)); in CreateJsAbilityRunningInfo() 92 object->SetProperty("abilityState", CreateJsValue(engine, info.abilityState)); in CreateJsAbilityRunningInfo() 99 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsExtensionRunningInfo() local [all …]
|
/foundation/multimodalinput/input/frameworks/napi/input_event_client/include/ |
D | js_register_util.h | 20 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, bool value); 21 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, uint16_t val… 22 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, int32_t valu… 23 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, uint32_t val… 24 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, float value); 25 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, double value… 26 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, int64_t valu… 27 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, std::string … 28 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, napi_value v… 30 bool GetNamedPropertyBool(const napi_env& env, const napi_value& object, const std::string& name); [all …]
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/include/ |
D | js_input_monitor_util.h | 21 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, bool … 22 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, uint1… 23 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, int32… 24 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, uint3… 25 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, float… 26 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, doubl… 27 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, int64… 28 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, std::… 29 …napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, napi_… 31 … bool GetNamePropertyBool(const napi_env& env, const napi_value& object, const std::string& name); [all …]
|
/foundation/windowmanager/interfaces/kits/napi/display/ |
D | js_display.cpp | 73 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsDisplayObject() local 74 if (object == nullptr) { in CreateJsDisplayObject() 79 object->SetNativePointer(jsDisplay.release(), JsDisplay::Finalizer, nullptr); in CreateJsDisplayObject() 81 object->SetProperty("id", CreateJsValue(engine, static_cast<uint32_t>(display->GetId()))); in CreateJsDisplayObject() 82 object->SetProperty("width", CreateJsValue(engine, display->GetWidth())); in CreateJsDisplayObject() 83 object->SetProperty("height", CreateJsValue(engine, display->GetHeight())); in CreateJsDisplayObject() 84 object->SetProperty("refreshRate", CreateJsValue(engine, display->GetFreshRate())); in CreateJsDisplayObject() 85 object->SetProperty("name", CreateJsValue(engine, display->GetName())); in CreateJsDisplayObject() 86 object->SetProperty("alive", CreateJsValue(engine, true)); in CreateJsDisplayObject() 88 …object->SetProperty("state", CreateJsValue(engine, NATIVE_TO_JS_DISPLAY_STATE_MAP.at(display->GetD… in CreateJsDisplayObject() [all …]
|
/foundation/communication/ipc/ipc/test/auxiliary/native/include/ |
D | ohos_rpc_test_testhelper.h | 38 JNIEnv *env, jobject object, jlong); 46 JNIEnv *env, jobject object); 54 JNIEnv *env, jobject object); 62 JNIEnv *env, jobject object, jint appId, jint commandId); 70 JNIEnv *env, jobject object, jlong appId); 78 JNIEnv *env, jobject object, jint appId); 86 JNIEnv *env, jobject object); 93 JNIEnv *env, jobject object); 101 JNIEnv *env, jobject object, jstring, jint); 109 JNIEnv *env, jobject object, jstring string, jint length); [all …]
|
/foundation/multimodalinput/input/frameworks/napi/input_event_client/src/ |
D | js_register_util.cpp | 26 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, bool value) in SetNamedProperty() argument 35 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), napiValue)); in SetNamedProperty() 38 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, uint16_t val… in SetNamedProperty() argument 47 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), napiValue)); in SetNamedProperty() 50 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, uint32_t val… in SetNamedProperty() argument 59 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), napiValue)); in SetNamedProperty() 62 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, int32_t valu… in SetNamedProperty() argument 71 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), napiValue)); in SetNamedProperty() 74 void SetNamedProperty(const napi_env& env, napi_value object, const std::string& name, float value) in SetNamedProperty() argument 83 NAPI_CALL_RETURN_VOID(env, napi_set_named_property(env, object, name.c_str(), napiValue)); in SetNamedProperty() [all …]
|
/foundation/ace/ace_engine_lite/interfaces/innerkits/builtin/jsi/ |
D | jsi.h | 107 static void SetProperty(JSIValue object, JSIValue key, JSIValue value); 116 static void SetNamedProperty(JSIValue object, const char * const propName, JSIValue value); 125 static void SetNumberProperty(JSIValue object, const char * const propName, double value); 134 static void SetBooleanProperty(JSIValue object, const char * const propName, bool value); 143 static void SetStringProperty(JSIValue object, const char * const propName, const char *value); 154 …SetStringPropertyWithBufferSize(JSIValue object, const char *const propName, const char *value, si… 290 static JSIValue GetProperty(JSIValue object, JSIValue key); 300 static JSIValue GetNamedProperty(JSIValue object, const char * const propName); 310 static double GetNumberProperty(JSIValue object, const char * const propName); 320 static bool GetBooleanProperty(JSIValue object, const char * const propName); [all …]
|
/foundation/aafwk/standard/frameworks/kits/appkit/native/ability_runtime/context/ |
D | js_hap_module_info_utils.cpp | 26 NativeObject* object = ConvertNativeValueTo<NativeObject>(objValue); in CreateJsHapModuleInfo() local 28 object->SetProperty("name", CreateJsValue(engine, hapModuleInfo.name)); in CreateJsHapModuleInfo() 29 object->SetProperty("moduleName", CreateJsValue(engine, hapModuleInfo.moduleName)); in CreateJsHapModuleInfo() 30 object->SetProperty("description", CreateJsValue(engine, hapModuleInfo.description)); in CreateJsHapModuleInfo() 31 object->SetProperty("icon", CreateJsValue(engine, hapModuleInfo.iconPath)); in CreateJsHapModuleInfo() 32 object->SetProperty("label", CreateJsValue(engine, hapModuleInfo.label)); in CreateJsHapModuleInfo() 33 object->SetProperty("backgroundImg", CreateJsValue(engine, hapModuleInfo.backgroundImg)); in CreateJsHapModuleInfo() 34 object->SetProperty("mainAbilityName", CreateJsValue(engine, hapModuleInfo.mainAbility)); in CreateJsHapModuleInfo() 35 object->SetProperty("supportedModes", CreateJsValue(engine, hapModuleInfo.supportedModes)); in CreateJsHapModuleInfo() 45 object->SetProperty("reqCapabilities", capArrayValue); in CreateJsHapModuleInfo() [all …]
|
/foundation/multimodalinput/input/frameworks/napi/input_monitor/src/ |
D | js_input_monitor_util.cpp | 26 napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, bool v… in SetNameProperty() argument 35 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 39 napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, uint16… in SetNameProperty() argument 48 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 52 napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, uint32… in SetNameProperty() argument 61 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 65 napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, int32_… in SetNameProperty() argument 74 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() 78 napi_status SetNameProperty(const napi_env& env, napi_value object, const std::string& name, float … in SetNameProperty() argument 87 status = napi_set_named_property(env, object, name.c_str(), napiValue); in SetNameProperty() [all …]
|
/foundation/communication/ipc/ipc/native/src/jni/source/ |
D | ohos_rpc_message_parcel.cpp | 63 MessageParcel *JavaOhosRpcMessageParcelGetNative(JNIEnv *env, jobject object) in JavaOhosRpcMessageParcelGetNative() argument 66 jlong nativeObject = env->GetLongField(object, g_jMessageParcel.nativeObject); in JavaOhosRpcMessageParcelGetNative() 70 sptr<Ashmem> Java_ohos_rpc_Ashmem_getSptrAshmem(JNIEnv *env, jobject object, jlong id) in Java_ohos_rpc_Ashmem_getSptrAshmem() argument 147 …LL Java_ohos_rpc_MessageParcel_nativeWriteRemoteObject(JNIEnv *env, jobject parcel, jobject object) in Java_ohos_rpc_MessageParcel_nativeWriteRemoteObject() argument 156 sptr<IRemoteObject> target = Java_ohos_rpc_getNativeRemoteObject(env, object); in Java_ohos_rpc_MessageParcel_nativeWriteRemoteObject() 170 jobject JNICALL Java_ohos_rpc_MessageParcel_nativeReadRemoteObject(JNIEnv *env, jobject object) in Java_ohos_rpc_MessageParcel_nativeReadRemoteObject() argument 173 MessageParcel *nativeParcel = JavaOhosRpcMessageParcelGetNative(env, object); in Java_ohos_rpc_MessageParcel_nativeReadRemoteObject() 187 jboolean JNICALL Java_ohos_rpc_MessageParcel_nativeWriteFileDescriptor(JNIEnv *env, jobject object,… in Java_ohos_rpc_MessageParcel_nativeWriteFileDescriptor() argument 190 MessageParcel *nativeParcel = JavaOhosRpcMessageParcelGetNative(env, object); in Java_ohos_rpc_MessageParcel_nativeWriteFileDescriptor() 205 jobject JNICALL Java_ohos_rpc_MessageParcel_nativeReadFileDescriptor(JNIEnv *env, jobject object) in Java_ohos_rpc_MessageParcel_nativeReadFileDescriptor() argument [all …]
|
/foundation/multimedia/media_standard/services/services/sa_media/server/ |
D | media_server_manager.cpp | 84 sptr<IRemoteObject> object = playerStub->AsObject(); in CreatePlayerStubObject() local 85 if (object != nullptr) { in CreatePlayerStubObject() 87 playerStubMap_[object] = pid; in CreatePlayerStubObject() 90 return object; in CreatePlayerStubObject() 105 sptr<IRemoteObject> object = recorderStub->AsObject(); in CreateRecorderStubObject() local 106 if (object != nullptr) { in CreateRecorderStubObject() 108 recorderStubMap_[object] = pid; in CreateRecorderStubObject() 111 return object; in CreateRecorderStubObject() 127 sptr<IRemoteObject> object = avMetadataHelperStub->AsObject(); in CreateAVMetadataHelperStubObject() local 128 if (object != nullptr) { in CreateAVMetadataHelperStubObject() [all …]
|
/foundation/aafwk/standard/frameworks/kits/base/cpp/src/ohos/aafwk/base/ |
D | base_object.cpp | 40 WeakReferenceImpl(IInterface *object, WeakRefCounter *wkRef) : object_(object), wkRef_(wkRef) in WeakReferenceImpl() argument 52 InterfaceID GetInterfaceID(IInterface *object) override; 54 ErrCode Resolve(const InterfaceID &iid, IInterface **object) override; 79 InterfaceID WeakReferenceImpl::GetInterfaceID(IInterface *object) in GetInterfaceID() argument 81 if (object == static_cast<IWeakReference *>(this)) { in GetInterfaceID() 87 ErrCode WeakReferenceImpl::Resolve(const InterfaceID &iid, IInterface **object) in Resolve() argument 89 VALIDATE_NOT_NULL(object); in Resolve() 92 *object = object_->Query(iid); in Resolve() 93 if (*object == nullptr) { in Resolve() 97 *object = nullptr; in Resolve() [all …]
|