Home
last modified time | relevance | path

Searched refs:obj (Results 1 - 25 of 961) sorted by relevance

12345678910>>...39

/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_click_function.cpp36 JSRef<JSObject> obj = JSRef<JSObject>::New(); in Execute() local
40 obj->SetProperty<double>("displayX", PipelineBase::Px2VpWithCurrentDensity(screenOffset.GetX())); in Execute()
41 obj->SetProperty<double>("displayY", PipelineBase::Px2VpWithCurrentDensity(screenOffset.GetY())); in Execute()
42 obj->SetProperty<double>("windowX", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetX())); in Execute()
43 obj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute()
44 obj->SetProperty<double>("screenX", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetX())); in Execute()
45 obj->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute()
46 obj->SetProperty<double>("x", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetX())); in Execute()
47 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute()
48 obj in Execute()
70 JSRef<JSObject> obj = objectTemplate->NewInstance(); Execute() local
105 JSRef<JSObject> obj = objectTemplate->NewInstance(); Execute() local
153 JSRef<JSObject> obj = JSRef<JSObject>::New(); Execute() local
187 JSRef<JSObject> obj = objectTemplate->NewInstance(); Execute() local
222 JSRef<JSObject> obj = objTemp->NewInstance(); Execute() local
[all...]
/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/
H A Dge_visual_effect_impl.cpp259 [](GEVisualEffectImpl* obj, float p) { obj->mesaParams_->greyCoef1 = p; } }, in SetMESABlurParams()
261 [](GEVisualEffectImpl* obj, float p) { obj->mesaParams_->greyCoef2 = p; } }, in SetMESABlurParams()
263 [](GEVisualEffectImpl* obj, float p) { obj->mesaParams_->offsetX = p; } }, in SetMESABlurParams()
265 [](GEVisualEffectImpl* obj, float p) { obj->mesaParams_->offsetY = p; } }, in SetMESABlurParams()
267 [](GEVisualEffectImpl* obj, float p) { obj in SetMESABlurParams()
[all...]
/foundation/communication/dsoftbus/adapter/common/json/nlohmann/
H A Dsoftbus_adapter_json.cpp28 JsonObj *obj = new (std::nothrow) JsonObj(); in JSON_CreateObject() local
29 if (obj == nullptr) { in JSON_CreateObject()
36 delete obj; in JSON_CreateObject()
37 obj = nullptr; in JSON_CreateObject()
40 obj->context = reinterpret_cast<void *>(json); in JSON_CreateObject()
41 return obj; in JSON_CreateObject()
44 void JSON_Delete(JsonObj *obj) in JSON_Delete() argument
46 if (obj == nullptr) { in JSON_Delete()
49 if (obj->context != nullptr) { in JSON_Delete()
50 nlohmann::json *json = reinterpret_cast<nlohmann::json *>(obj in JSON_Delete()
60 JSON_Free(void *obj) JSON_Free() argument
67 JSON_PrintUnformatted(const JsonObj *obj) JSON_PrintUnformatted() argument
95 JsonObj *obj = JSON_CreateObject(); JSON_Parse() local
119 JSON_AddBoolToObject(JsonObj *obj, const char *key, bool value) JSON_AddBoolToObject() argument
134 JSON_GetBoolFromOject(const JsonObj *obj, const char *key, bool *value) JSON_GetBoolFromOject() argument
155 JSON_AddIntegerToObject(JsonObj *obj, const char *key, Integer num) JSON_AddIntegerToObject() argument
171 JSON_GetIntegerFromObject(const JsonObj *obj, const char *key, Integer &value) JSON_GetIntegerFromObject() argument
191 JSON_AddInt16ToObject(JsonObj *obj, const char *key, int16_t value) JSON_AddInt16ToObject() argument
196 JSON_GetInt16FromOject(const JsonObj *obj, const char *key, int16_t *value) JSON_GetInt16FromOject() argument
205 JSON_AddInt32ToObject(JsonObj *obj, const char *key, int32_t value) JSON_AddInt32ToObject() argument
210 JSON_GetInt32FromOject(const JsonObj *obj, const char *key, int32_t *value) JSON_GetInt32FromOject() argument
219 JSON_AddInt64ToObject(JsonObj *obj, const char *key, int64_t value) JSON_AddInt64ToObject() argument
224 JSON_GetInt64FromOject(const JsonObj *obj, const char *key, int64_t *value) JSON_GetInt64FromOject() argument
233 JSON_AddStringToObject(JsonObj *obj, const char *key, const char *value) JSON_AddStringToObject() argument
248 JSON_GetStringFromOject(const JsonObj *obj, const char *key, char *value, uint32_t size) JSON_GetStringFromOject() argument
273 JSON_AddStringArrayToObject(JsonObj *obj, const char *key, const char **value, int32_t len) JSON_AddStringArrayToObject() argument
292 JSON_GetStringArrayFromOject(const JsonObj *obj, const char *key, char **value, int32_t *len) JSON_GetStringArrayFromOject() argument
331 JSON_AddBytesToObject(JsonObj *obj, const char *key, uint8_t *value, uint32_t size) JSON_AddBytesToObject() argument
347 JSON_GetBytesFromObject(const JsonObj *obj, const char *key, uint8_t *value, uint32_t bufLen, uint32_t *size) JSON_GetBytesFromObject() argument
375 JSON_IsArrayExist(const JsonObj *obj, const char *key) JSON_IsArrayExist() argument
[all...]
/foundation/communication/dsoftbus/adapter/common/include/
H A Dsoftbus_adapter_json.h35 void JSON_Delete(JsonObj *obj);
37 void JSON_Free(void *obj);
40 char *JSON_PrintUnformatted(const JsonObj *obj);
44 bool JSON_AddBoolToObject(JsonObj *obj, const char *key, bool value);
46 bool JSON_GetBoolFromOject(const JsonObj *obj, const char *key, bool *value);
48 bool JSON_AddInt16ToObject(JsonObj *obj, const char *key, int16_t value);
50 bool JSON_GetInt16FromOject(const JsonObj *obj, const char *key, int16_t *value);
52 bool JSON_AddInt32ToObject(JsonObj *obj, const char *key, int32_t value);
54 bool JSON_GetInt32FromOject(const JsonObj *obj, const char *key, int32_t *value);
56 bool JSON_AddInt64ToObject(JsonObj *obj, cons
[all...]
/foundation/communication/dsoftbus/core/transmission/trans_channel/auth/src/
H A Dtrans_auth_message.c69 cJSON *obj = cJSON_ParseWithLength(msg, len); in TransAuthChannelMsgUnpack() local
70 if (obj == NULL) { in TransAuthChannelMsgUnpack()
75 if (GetJsonObjectInt32Item(obj, "ERR_CODE", &errcode)) { in TransAuthChannelMsgUnpack()
77 cJSON_Delete(obj); in TransAuthChannelMsgUnpack()
80 if (!GetJsonObjectStringItem(obj, "DEVICE_ID", appInfo->peerData.deviceId, DEVICE_ID_SIZE_MAX) || in TransAuthChannelMsgUnpack()
81 !GetJsonObjectStringItem(obj, "PKG_NAME", appInfo->peerData.pkgName, PKG_NAME_SIZE_MAX) || in TransAuthChannelMsgUnpack()
82 !GetJsonObjectStringItem(obj, "SRC_BUS_NAME", appInfo->peerData.sessionName, SESSION_NAME_SIZE_MAX) || in TransAuthChannelMsgUnpack()
83 !GetJsonObjectStringItem(obj, "DST_BUS_NAME", appInfo->myData.sessionName, SESSION_NAME_SIZE_MAX) || in TransAuthChannelMsgUnpack()
84 !GetJsonObjectStringItem(obj, "REQ_ID", appInfo->reqId, REQ_ID_SIZE_MAX)) { in TransAuthChannelMsgUnpack()
85 cJSON_Delete(obj); in TransAuthChannelMsgUnpack()
120 cJSON *obj = cJSON_CreateObject(); TransAuthChannelErrorPack() local
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/ark_theme/theme_apply/
H A Djs_swiper_theme.h36 JSRef<JSObject> obj = objectTemplate->NewInstance(); in ApplyThemeInConstructor() local
37 SwiperParameters swiperParameters = JSSwiper::GetDotIndicatorInfo(obj); in ApplyThemeInConstructor()
44 static void ApplyThemeToDotIndicator(SwiperParameters &swiperParameters, const JSRef<JSObject>& obj) in ApplyThemeToDotIndicator() argument
51 if (!obj->HasProperty("colorValue") || !ParseJsColor(obj->GetProperty("colorValue"), color)) { in ApplyThemeToDotIndicator()
54 if (!obj->HasProperty("selectedColorValue") || !ParseJsColor(obj->GetProperty("selectedColorValue"), color)) { in ApplyThemeToDotIndicator()
68 static void ApplyThemeToIndicatorStyle(SwiperParameters &swiperParameters, const JSRef<JSObject>& obj) in ApplyThemeToIndicatorStyle() argument
75 if (!obj->HasProperty("color") || !ParseJsColor(obj in ApplyThemeToIndicatorStyle()
83 ApplyThemeToDigitIndicator(SwiperDigitalParameters &swiperParameters, const JSRef<JSObject>& obj) ApplyThemeToDigitIndicator() argument
98 ApplyThemeToDisplayArrow(SwiperArrowParameters &swiperParameters, const JSRef<JSObject>& obj) ApplyThemeToDisplayArrow() argument
[all...]
/foundation/resourceschedule/background_task_mgr/interfaces/kits/napi/src/
H A Dinit_bgtaskmgr.cpp60 napi_value obj = nullptr; in BackgroundModeInit() local
61 napi_create_object(env, &obj); in BackgroundModeInit()
63 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::DATA_TRANSFER), "DATA_TRANSFER"); in BackgroundModeInit()
64 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::AUDIO_PLAYBACK), "AUDIO_PLAYBACK"); in BackgroundModeInit()
65 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::AUDIO_RECORDING), in BackgroundModeInit()
67 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::LOCATION), in BackgroundModeInit()
69 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::BLUETOOTH_INTERACTION), in BackgroundModeInit()
71 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::MULTI_DEVICE_CONNECTION), in BackgroundModeInit()
73 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::WIFI_INTERACTION), "WIFI_INTERACTION"); in BackgroundModeInit()
74 SetNamedPropertyByInteger(env, obj, static_cas in BackgroundModeInit()
[all...]
H A Dinit.cpp57 napi_value obj = nullptr; in BackgroundModeInit() local
58 napi_create_object(env, &obj); in BackgroundModeInit()
60 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::DATA_TRANSFER), "DATA_TRANSFER"); in BackgroundModeInit()
61 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::AUDIO_PLAYBACK), "AUDIO_PLAYBACK"); in BackgroundModeInit()
62 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::AUDIO_RECORDING), "AUDIO_RECORDING"); in BackgroundModeInit()
63 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::LOCATION), "LOCATION"); in BackgroundModeInit()
64 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::BLUETOOTH_INTERACTION), in BackgroundModeInit()
66 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::MULTI_DEVICE_CONNECTION), in BackgroundModeInit()
68 SetNamedPropertyByInteger(env, obj, static_cast<uint32_t>(BackgroundMode::WIFI_INTERACTION), "WIFI_INTERACTION"); in BackgroundModeInit()
69 SetNamedPropertyByInteger(env, obj, static_cas in BackgroundModeInit()
[all...]
/foundation/systemabilitymgr/samgr/interfaces/innerkits/common/include/
H A Dparse_util.h64 void GetOnDemandArrayFromJson(int32_t eventId, const nlohmann::json& obj,
66 void GetOnDemandConditionsFromJson(const nlohmann::json& obj,
68 void GetOnDemandExtraMessagesFromJson(const nlohmann::json& obj,
72 static inline void GetBoolFromJson(const nlohmann::json& obj, const std::string& key, bool& out) in GetBoolFromJson() argument
74 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_boolean()) { in GetBoolFromJson()
75 obj[key.c_str()].get_to(out); in GetBoolFromJson()
79 static inline void GetStringFromJson(const nlohmann::json& obj, const std::string& key, std::string& out) in GetStringFromJson() argument
81 if (obj in GetStringFromJson()
86 GetInt32FromJson(const nlohmann::json& obj, const std::string& key, int32_t& out) GetInt32FromJson() argument
93 GetStringArrayFromJson(const nlohmann::json& obj, const std::string& key, std::vector<std::string>& out) GetStringArrayFromJson() argument
105 GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key, std::set<int32_t>& out) GetIntArrayFromJson() argument
117 GetIntArrayFromJson(const nlohmann::json& obj, const std::string& key, std::vector<int32_t>& out) GetIntArrayFromJson() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_calendar.cpp92 auto obj = JSRef<JSObject>::Cast(info[0]); in Create() local
93 auto dataJsVal = obj->GetProperty("date"); in Create()
94 auto currentDataJsVal = obj->GetProperty("currentData"); in Create()
95 auto preDataJsVal = obj->GetProperty("preData"); in Create()
96 auto nextDataJsVal = obj->GetProperty("nextData"); in Create()
105 auto controllerObj = obj->GetProperty("controller"); in Create()
135 const JSRef<JSObject>& obj, MonthState monthState, const RefPtr<CalendarComponentV2>& component) in SetCalendarData()
140 if (obj->IsUndefined()) { in SetCalendarData()
145 component->SetCalendarData(GetCalendarData(obj, monthState)); in SetCalendarData()
148 ObtainedMonth JSCalendar::GetCalendarData(const JSRef<JSObject>& obj, MonthStat argument
134 SetCalendarData( const JSRef<JSObject>& obj, MonthState monthState, const RefPtr<CalendarComponentV2>& component) SetCalendarData() argument
204 SetDate(const JSRef<JSObject>& obj, const RefPtr<CalendarComponentV2>& component) SetDate() argument
339 SetCurrentData(const JSRef<JSObject>& obj, const RefPtr<CalendarComponentV2>& component) SetCurrentData() argument
344 GetCurrentData(const JSRef<JSObject>& obj) GetCurrentData() argument
349 SetPreData(const JSRef<JSObject>& obj, const RefPtr<CalendarComponentV2>& component) SetPreData() argument
354 GetPreData(const JSRef<JSObject>& obj) GetPreData() argument
359 SetNextData(const JSRef<JSObject>& obj, const RefPtr<CalendarComponentV2>& component) SetNextData() argument
364 GetNextData(const JSRef<JSObject>& obj) GetNextData() argument
382 auto obj = JSRef<JSObject>::Cast(info[0]); SetCurrentDayStyle() local
519 auto obj = JSRef<JSObject>::Cast(info[0]); SetNonCurrentDayStyle() local
545 auto obj = JSRef<JSObject>::Cast(info[0]); SetTodayStyle() local
571 auto obj = JSRef<JSObject>::Cast(info[0]); SetWeekStyle() local
609 auto obj = JSRef<JSObject>::Cast(info[0]); SetWorkStateStyle() local
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/communicator/
H A Ddistributeddb_communicator_common.cpp134 RegedGiantObject *obj = new (nothrow) RegedGiantObject(); in RegFuncForGiantMsg()
135 if (obj == nullptr) { in RegFuncForGiantMsg()
138 obj->rawData_.resize(length); in RegFuncForGiantMsg()
139 errno_t retCode = memcpy_s(&(obj->rawData_[0]), length, buffer, length); in RegFuncForGiantMsg()
141 delete obj; in RegFuncForGiantMsg()
144 int errCode = inMsg->SetExternalObject(obj); in RegFuncForGiantMsg()
146 delete obj; in RegFuncForGiantMsg()
183 RegedTinyObject *obj = new (nothrow) RegedTinyObject(); in BuildRegedTinyMessage() local
184 if (obj == nullptr) { in BuildRegedTinyMessage()
190 delete obj; in BuildRegedTinyMessage()
212 RegedHugeObject *obj = new (nothrow) RegedHugeObject(); BuildRegedHugeMessage() local
246 RegedGiantObject *obj = new (nothrow) RegedGiantObject(); BuildRegedGiantMessage() local
282 RegedOverSizeObject *obj = new (nothrow) RegedOverSizeObject(); BuildRegedOverSizeMessage() local
310 UnRegedTinyObject *obj = new (nothrow) UnRegedTinyObject(); BuildUnRegedTinyMessage() local
[all...]
/foundation/graphic/graphic_3d/lume/metaobject/src/
H A Dref_uri_util.cpp28 static IObjectInstance::ConstPtr FindParentObject(const IObjectInstance::ConstPtr& obj) in FindParentObject() argument
30 auto containee = interface_cast<IContainable>(obj); in FindParentObject()
34 static IObjectInstance::ConstPtr FindRootObject(IObjectInstance::ConstPtr obj) in FindRootObject() argument
36 auto prev = obj; in FindRootObject()
37 while ((obj = FindParentObject(obj))) { in FindRootObject()
38 prev = obj; in FindRootObject()
43 static IObjectInstance::ConstPtr FindChildObject(const IObjectInstance::ConstPtr& obj, BASE_NS::string_view name) in FindChildObject() argument
45 auto cont = interface_cast<IContainer>(obj); in FindChildObject()
63 if (auto obj in ResolvePropertySegment()
74 IObjectInstance::ConstPtr obj = (node.name == "..") ? FindParentObject(base) : FindChildObject(base, node.name); ResolveSegment() local
83 auto obj = base->Resolve<IObjectInstance>(RefUri::ContextUri()); ResolveSegment() local
103 auto obj = FindRootObject(base); DefaultResolveObject() local
[all...]
/foundation/arkui/ace_engine_lite/test/moduletest/common/test_app/ui_manual_test/src/main/js/default/common/js/
H A Devent.js15 export const commonFunc = function(obj, e) {
16 if (obj.flag) {
17 obj.color = 16766720;
18 obj.flag = false;
20 obj.color = 32768;
21 obj.flag = true;
23 obj.pointX = e.point.x;
24 obj.pointY = e.point.y;
25 obj.timeStamp = e.timeStamp;
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/mode/
H A Dtime_lapse_photo_session_napi.cpp101 TryAEInfoNapi* obj = Unwrap<TryAEInfoNapi>(env, thisVar); in IsTryAEDone() local
102 if (obj == nullptr || obj->tryAEInfo_ == nullptr) { in IsTryAEDone()
106 auto value = obj->tryAEInfo_->isTryAEDone; in IsTryAEDone()
118 TryAEInfoNapi* obj = Unwrap<TryAEInfoNapi>(env, thisVar); in IsTryAEHintNeeded() local
119 if (obj == nullptr || obj->tryAEInfo_ == nullptr) { in IsTryAEHintNeeded()
123 auto value = obj->tryAEInfo_->isTryAEHintNeeded; in IsTryAEHintNeeded()
135 TryAEInfoNapi* obj = Unwrap<TryAEInfoNapi>(env, thisVar); in GetPreviewType() local
136 if (obj in GetPreviewType()
152 TryAEInfoNapi* obj = Unwrap<TryAEInfoNapi>(env, thisVar); GetCaptureInterval() local
171 auto obj = std::make_unique<TryAEInfoNapi>(); Constructor() local
188 TryAEInfoNapi* obj = reinterpret_cast<TryAEInfoNapi*>(nativeObject); Destructor() local
327 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); IsTryAENeeded() local
351 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); StartTryAE() local
374 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); StopTryAE() local
397 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetSupportedTimeLapseIntervalRange() local
427 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetTimeLapseInterval() local
448 TimeLapsePhotoSessionNapi* obj; SetTimeLapseInterval() local
471 TimeLapsePhotoSessionNapi* obj; SetTimeLapseRecordState() local
494 TimeLapsePhotoSessionNapi* obj; SetTimeLapsePreviewType() local
521 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetExposure() local
542 TimeLapsePhotoSessionNapi* obj; SetExposure() local
568 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetSupportedExposureRange() local
598 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetSupportedMeteringModes() local
625 TimeLapsePhotoSessionNapi* obj; IsExposureMeteringModeSupported() local
649 TimeLapsePhotoSessionNapi* obj; GetExposureMeteringMode() local
671 TimeLapsePhotoSessionNapi* obj; SetExposureMeteringMode() local
698 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetIso() local
719 TimeLapsePhotoSessionNapi* obj; SetIso() local
745 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); IsManualIsoSupported() local
769 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetIsoRange() local
801 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); IsWhiteBalanceModeSupported() local
828 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetWhiteBalanceRange() local
858 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetWhiteBalanceMode() local
879 TimeLapsePhotoSessionNapi* obj; SetWhiteBalanceMode() local
905 TimeLapsePhotoSessionNapi* obj = Unwrap<TimeLapsePhotoSessionNapi>(env, thisVar); GetWhiteBalance() local
926 TimeLapsePhotoSessionNapi* obj; SetWhiteBalance() local
954 auto obj = std::make_unique<TimeLapsePhotoSessionNapi>(); Constructor() local
977 TimeLapsePhotoSessionNapi* obj = reinterpret_cast<TimeLapsePhotoSessionNapi*>(nativeObject); Destructor() local
1099 TryAEInfoNapi *obj = Unwrap<TryAEInfoNapi>(env_, result[PARAM1]); OnTryAEInfoChangedCallback() local
[all...]
/foundation/distributeddatamgr/data_object/interfaces/jskits/
H A Ddistributed_data_object.js32 constructor(obj) {
33 constructorMethod(this, obj);
90 function constructorMethod(result, obj) {
91 result.__proxy = obj;
92 Object.keys(obj).forEach(key => {
124 function newDistributed(obj) {
126 if (obj == null) {
130 return new Distributed(obj);
167 function isAsset(obj) {
168 if (Object.prototype.toString.call(obj) !
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/common/src/
H A Dref_object.cpp22 RefObject::AutoLock::AutoLock(const RefObject *obj, bool unlocked) in AutoLock() argument
23 : refObj_(obj), in AutoLock()
41 LOGE("RefObject-AutoLock: obj' acquires lock more than once."); in Lock()
53 LOGE("RefObject-AutoLock: obj releases lock more than once."); in Unlock()
156 void RefObject::IncObjRef(const RefObject *obj) in IncObjRef() argument
158 if (obj == nullptr) { in IncObjRef()
161 int refCount = obj->refCount_.fetch_add(1, std::memory_order_seq_cst); in IncObjRef()
163 std::string tag = obj->GetObjectTag(); in IncObjRef()
168 void RefObject::DecObjRef(const RefObject *obj) in DecObjRef() argument
170 if (obj in DecObjRef()
187 KillAndDecObjRef(RefObject *obj) KillAndDecObjRef() argument
[all...]
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/action_sheet/
H A Djs_action_sheet.cpp79 auto obj = JSRef<JSObject>::Cast(val); in ParseSheetInfo() local
80 auto titleVal = obj->GetProperty("title"); in ParseSheetInfo()
86 auto iconVal = obj->GetProperty("icon"); in ParseSheetInfo()
92 auto actionValue = obj->GetProperty("action"); in ParseSheetInfo()
109 void ParseTitleAndMessage(DialogProperties& properties, JSRef<JSObject> obj) in ParseTitleAndMessage() argument
112 auto titleValue = obj->GetProperty("title"); in ParseTitleAndMessage()
119 auto subtitleValue = obj->GetProperty("subtitle"); in ParseTitleAndMessage()
126 auto messageValue = obj->GetProperty("message"); in ParseTitleAndMessage()
133 void ParseConfirmButton(const JsiExecutionContext& execContext, DialogProperties& properties, JSRef<JSObject> obj) in ParseConfirmButton() argument
135 auto confirmVal = obj in ParseConfirmButton()
188 ParseShadow(DialogProperties& properties, JSRef<JSObject> obj) ParseShadow() argument
198 ParseBorderWidthAndColor(DialogProperties& properties, JSRef<JSObject> obj) ParseBorderWidthAndColor() argument
215 ParseRadius(DialogProperties& properties, JSRef<JSObject> obj) ParseRadius() argument
254 ParseDialogAlignment(DialogProperties& properties, JSRef<JSObject> obj) ParseDialogAlignment() argument
272 ParseOffset(DialogProperties& properties, JSRef<JSObject> obj) ParseOffset() argument
291 ParseMaskRect(DialogProperties& properties, JSRef<JSObject> obj) ParseMaskRect() argument
322 auto obj = JSRef<JSObject>::Cast(args[0]); Show() local
[all...]
/foundation/graphic/graphic_3d/kits/js/src/
H A DBaseObjectJS.cpp30 JSWrapperState(NapiApi::Object obj, BASE_NS::string_view name);
71 JSWrapperState::JSWrapperState(NapiApi::Object obj, BASE_NS::string_view name) in JSWrapperState() argument
75 env_ = obj.GetEnv(); in JSWrapperState()
77 napi_create_reference(env_, obj, 0, &ref_); in JSWrapperState()
116 ExecSyncTask([obj = BASE_NS::move(obj_)]() { return META_NS::IAny::Ptr {}; }); in Finalize()
130 NapiApi::Object obj(GetJSConstructor(env, jsName), argc, argv); in CreateJsObj()
131 if (!obj) { in CreateJsObj()
134 auto oo = GetRootObject(env, obj); in CreateJsObj()
136 return obj; in CreateJsObj()
138 bool IsInstanceOf(const NapiApi::Object& obj, cons in CreateJsObj() argument
147 FetchJsObj(const META_NS::IObject::Ptr& obj) FetchJsObj() argument
160 StoreJsObj(const META_NS::IObject::Ptr& obj, NapiApi::Object jsobj) StoreJsObj() argument
207 CreateFromNativeInstance( napi_env env, const META_NS::IObject::Ptr& obj, bool strong, uint32_t argc, napi_value* argv) CreateFromNativeInstance() argument
[all...]
/foundation/graphic/graphic_3d/3d_widget_adapter/include/data_type/geometry/
H A Dgeometry.h30 virtual bool Equals(const Geometry& obj) const in Equals()
32 return GetType() == obj.GetType() in Equals()
33 && GetName() == obj.GetName() in Equals()
34 && CastShadows() == obj.CastShadows() in Equals()
35 && ReceiveShadows() == obj.ReceiveShadows() in Equals()
36 && IsEqual(obj); in Equals()
39 bool PositionEquals(const Geometry& obj) in PositionEquals() argument
41 return GetPosition().GetX() == obj.GetPosition().GetX() in PositionEquals()
42 && GetPosition().GetY() == obj.GetPosition().GetY() in PositionEquals()
43 && GetPosition().GetZ() == obj in PositionEquals()
[all...]
/foundation/filemanagement/storage_service/services/storage_manager/innerkits_impl/src/
H A Dstorage_stats.cpp51 auto obj = std::make_unique<StorageStats>(); in Unmarshalling() local
52 obj->total_ = parcel.ReadInt64(); in Unmarshalling()
53 obj->audio_ = parcel.ReadInt64(); in Unmarshalling()
54 obj->video_ = parcel.ReadInt64(); in Unmarshalling()
55 obj->image_ = parcel.ReadInt64(); in Unmarshalling()
56 obj->file_ = parcel.ReadInt64(); in Unmarshalling()
57 obj->app_ = parcel.ReadInt64(); in Unmarshalling()
58 return obj; in Unmarshalling()
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/dialog/
H A Djs_alert_dialog.cpp145 void ParseButtonArray(const JsiExecutionContext& execContext, DialogProperties& properties, JSRef<JSObject> obj, in ParseButtonArray() argument
148 auto jsVal = obj->GetProperty(property.c_str()); in ParseButtonArray()
183 void ParseButtons(const JsiExecutionContext& execContext, DialogProperties& properties, JSRef<JSObject> obj) in ParseButtons() argument
186 if (obj->GetProperty("confirm")->IsObject()) { in ParseButtons()
188 auto objInner = obj->GetProperty("confirm"); in ParseButtons()
190 } else if (obj->GetProperty("buttons")->IsArray()) { in ParseButtons()
192 ParseButtonArray(execContext, properties, obj, "buttons"); in ParseButtons()
195 auto objInner = obj->GetProperty("primaryButton"); in ParseButtons()
197 objInner = obj->GetProperty("secondaryButton"); in ParseButtons()
202 auto directionValue = obj in ParseButtons()
211 ParseDialogTitleAndMessage(DialogProperties& properties, JSRef<JSObject> obj) ParseDialogTitleAndMessage() argument
235 ParseAlertShadow(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertShadow() argument
245 ParseAlertBorderWidthAndColor(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertBorderWidthAndColor() argument
262 ParseAlertRadius(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertRadius() argument
301 ParseAlertAlignment(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertAlignment() argument
314 ParseAlertOffset(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertOffset() argument
333 ParseTextStyle(DialogProperties& properties, JSRef<JSObject> obj) ParseTextStyle() argument
351 ParseAlertMaskRect(DialogProperties& properties, JSRef<JSObject> obj) ParseAlertMaskRect() argument
377 auto obj = JSRef<JSObject>::Cast(args[0]); Show() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/cmdlist_fuzzer/
H A Dcmd_list_fuzzer.cpp48 char* obj = new char[length]; in CmdListFuzzTest000() local
50 obj[i] = GetObject<char>(); in CmdListFuzzTest000()
52 obj[length - 1] = '\0'; in CmdListFuzzTest000()
54 cmdListData.first = obj; in CmdListFuzzTest000()
62 cmdList->SetUpImageData(obj, arrSize); in CmdListFuzzTest000()
63 cmdList->AddImageData(obj, arrSize); in CmdListFuzzTest000()
66 cmdList->AddBitmapData(obj, arrSize); in CmdListFuzzTest000()
68 cmdList->SetUpBitmapData(obj, arrSize); in CmdListFuzzTest000()
75 if (obj != nullptr) { in CmdListFuzzTest000()
76 delete [] obj; in CmdListFuzzTest000()
100 char* obj = new char[length]; CmdListFuzzTest001() local
[all...]
/foundation/communication/netstack/frameworks/js/napi/socket/socket_exec/src/
H A Dsocket_extra_exec.cpp114 napi_value obj = NapiUtils::CreateObject(context->GetEnv()); in GetLocalAddressCallback() local
115 if (NapiUtils::GetValueType(context->GetEnv(), obj) != napi_object) { in GetLocalAddressCallback()
119 NapiUtils::SetStringPropertyUtf8(env, obj, KEY_ADDRESS, context->localAddress_.GetAddress()); in GetLocalAddressCallback()
120 NapiUtils::SetUint32Property(env, obj, KEY_FAMILY, context->localAddress_.GetJsValueFamily()); in GetLocalAddressCallback()
121 NapiUtils::SetUint32Property(env, obj, KEY_PORT, context->localAddress_.GetPort()); in GetLocalAddressCallback()
122 return obj; in GetLocalAddressCallback()
127 napi_value obj = NapiUtils::CreateObject(context->GetEnv()); in TcpConnectionGetLocalAddressCallback() local
128 if (NapiUtils::GetValueType(context->GetEnv(), obj) != napi_object) { in TcpConnectionGetLocalAddressCallback()
132 NapiUtils::SetStringPropertyUtf8(env, obj, KEY_ADDRESS, context->localAddress_.GetAddress()); in TcpConnectionGetLocalAddressCallback()
133 NapiUtils::SetUint32Property(env, obj, KEY_FAMIL in TcpConnectionGetLocalAddressCallback()
140 napi_value obj = NapiUtils::CreateObject(context->GetEnv()); TcpServerGetLocalAddressCallback() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/recording/drawcmdlist_fuzzer/
H A Ddraw_cmd_list_fuzzer.cpp47 char* obj = new char[length]; in DrawCmdListFuzzTest000() local
49 obj[i] = GetObject<char>(); in DrawCmdListFuzzTest000()
51 obj[length - 1] = '\0'; in DrawCmdListFuzzTest000()
53 cmdListData.first = obj; in DrawCmdListFuzzTest000()
72 if (obj != nullptr) { in DrawCmdListFuzzTest000()
73 delete [] obj; in DrawCmdListFuzzTest000()
74 obj = nullptr; in DrawCmdListFuzzTest000()
94 char* obj = new char[length]; in DrawCmdListFuzzTest001() local
96 obj[i] = GetObject<char>(); in DrawCmdListFuzzTest001()
98 obj[lengt in DrawCmdListFuzzTest001()
[all...]
/foundation/communication/ipc/ipc/native/c/ipc/src/linux/
H A Dserializer_inner.c81 struct flat_binder_object *obj = (struct flat_binder_object *)IoPop(io, sizeof(struct flat_binder_object)); in IpcIoPopRef() local
82 if (obj != NULL) { in IpcIoPopRef()
85 return obj; in IpcIoPopRef()
110 struct flat_binder_object *obj = IpcIoPopRef(io); in ReadRemoteObject() local
111 if (obj == NULL) { in ReadRemoteObject()
112 RPC_LOG_ERROR("ReadRemoteObject failed: obj is null"); in ReadRemoteObject()
115 if (obj->type == BINDER_TYPE_BINDER) { in ReadRemoteObject()
116 svc->token = obj->binder; in ReadRemoteObject()
118 svc->cookie = obj->cookie; in ReadRemoteObject()
120 svc->handle = obj in ReadRemoteObject()
151 struct flat_binder_object *obj = IpcIoPopRef(io); ReadFileDescriptor() local
[all...]

Completed in 11 milliseconds

12345678910>>...39