Home
last modified time | relevance | path

Searched refs:obj (Results 1 – 25 of 254) sorted by relevance

1234567891011

/base/security/device_auth/common_lib/interfaces/
Dhc_vector.h51 Element* VPushBack##ClassName(ClassName* obj, const Element *e) { \
52 if (obj == NULL || e == NULL) { \
56 if (ParcelWrite(&obj->parcel, e, sizeof(Element))) { \
57 uint32_t size = obj->size(obj); \
58 return obj->getp(obj, size - 1); \
63 Element* VPushBackT##ClassName(ClassName* obj, Element e) { \
64 if (obj == NULL) { \
68 if (ParcelWrite(&obj->parcel, &e, sizeof(Element))) { \
69 uint32_t size = obj->size(obj); \
70 return obj->getp(obj, size - 1); \
[all …]
/base/notification/common_event_service/interfaces/kits/napi/support/src/
Dsupport.cpp31 napi_value obj = nullptr; in SupportInit() local
32 napi_create_object(env, &obj); in SupportInit()
35 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BOOT_COMPLETED, "COMMON_EVENT_BOOT_COMPLETED"… in SupportInit()
37 obj, in SupportInit()
40 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_SHUTDOWN, "COMMON_EVENT… in SupportInit()
42 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_CHANGED, "COMMON_EVENT_BATTERY_CHANGE… in SupportInit()
43 …SetNamedPropertyByStr(env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_LOW, "COMMON_EV… in SupportInit()
45 … env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_BATTERY_OKAY, "COMMON_EVENT_BATTERY_OKAY"); in SupportInit()
47 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_POWER_CONNECTED, "COMMON_EVENT_POWER_CONNECTE… in SupportInit()
49 …env, obj, EventFwk::CommonEventSupport::COMMON_EVENT_POWER_DISCONNECTED, "COMMON_EVENT_POWER_DISCO… in SupportInit()
[all …]
/base/notification/distributed_notification_service/frameworks/js/napi/src/
Dconstant.cpp34 napi_value obj = nullptr; in RemoveReasonInit() local
35 napi_create_object(env, &obj); in RemoveReasonInit()
37 …SetNamedPropertyByInteger(env, obj, (int32_t)RemoveReason::CLICK_REASON_REMOVE, "CLICK_REASON_REMO… in RemoveReasonInit()
38 …SetNamedPropertyByInteger(env, obj, (int32_t)RemoveReason::CANCEL_REASON_REMOVE, "CANCEL_REASON_RE… in RemoveReasonInit()
41 DECLARE_NAPI_PROPERTY("RemoveReason", obj), in RemoveReasonInit()
52 napi_value obj = nullptr; in SlotTypeInit() local
53 napi_create_object(env, &obj); in SlotTypeInit()
55 SetNamedPropertyByInteger(env, obj, (int32_t)SlotType::UNKNOWN_TYPE, "UNKNOWN_TYPE"); in SlotTypeInit()
56 …SetNamedPropertyByInteger(env, obj, (int32_t)SlotType::SOCIAL_COMMUNICATION, "SOCIAL_COMMUNICATION… in SlotTypeInit()
57 …SetNamedPropertyByInteger(env, obj, (int32_t)SlotType::SERVICE_INFORMATION, "SERVICE_INFORMATION"); in SlotTypeInit()
[all …]
/base/security/appverify/interfaces/innerkits/appverify/src/provision/
Dprovision_verify.cpp84 inline void GetStringIfExist(const json& obj, const string& key, string& out) in GetStringIfExist() argument
86 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_string()) { in GetStringIfExist()
87 obj[key.c_str()].get_to(out); in GetStringIfExist()
91 inline void GetInt32IfExist(const json& obj, const string& key, int32_t& out) in GetInt32IfExist() argument
93 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) { in GetInt32IfExist()
94 obj[key.c_str()].get_to(out); in GetInt32IfExist()
98 inline void GetInt64IfExist(const json& obj, const string& key, int64_t& out) in GetInt64IfExist() argument
100 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) { in GetInt64IfExist()
101 obj[key.c_str()].get_to(out); in GetInt64IfExist()
105 inline void GetStringArrayIfExist(const json& obj, const string& key, vector<string>& out) in GetStringArrayIfExist() argument
[all …]
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_buffer/
Dffi.rs62 if let Some(obj) = StreamBuffer::as_ref(object) { in StreamBufferData()
63 obj.data() in StreamBufferData()
77 if let Some(obj) = StreamBuffer::as_ref(object) { in StreamBufferSize()
78 obj.size() in StreamBufferSize()
92 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferReset()
93 obj.reset(); in StreamBufferReset()
108 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferClean()
109 obj.clean(); in StreamBufferClean()
124 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferWrite()
126 obj.write_streambuffer(buffer) in StreamBufferWrite()
[all …]
/base/security/device_auth/frameworks/deviceauth_lite/source/json/
Djsonutil.c42 int32_t get_json_int(json_pobject obj, const char *field) in get_json_int() argument
46 if (obj == NULL) { in get_json_int()
50 return ((cJSON *)obj)->valueint; in get_json_int()
56 obj_value = (cJSON *)get_json_obj(obj, field); in get_json_int()
69 const char *get_json_string(json_pobject obj, const char *field) in get_json_string() argument
71 if (obj == NULL) { in get_json_string()
75 return ((cJSON *)obj)->valuestring; in get_json_string()
81 obj_value = (cJSON *)get_json_obj(obj, field); in get_json_string()
93 int32_t get_json_bool(json_pobject obj, const char *field) in get_json_bool() argument
97 if (obj == NULL) { in get_json_bool()
[all …]
Djsonutil.h28 int32_t get_json_int(json_pobject obj, const char *field);
29 const char *get_json_string(json_pobject obj, const char *field);
30 int32_t get_json_bool(json_pobject obj, const char *field);
31 int32_t get_array_size(json_pobject obj);
32 json_pobject get_array_idx(json_pobject obj, int32_t idx);
35 void delete_json_object(json_pobject obj);
36 void add_item_to_object(json_pobject parent, const char *field, json_pobject obj);
42 char *json_to_string(json_pobject obj);
49 void add_obj_to_array(json_pobject objArr, json_pobject obj);
/base/security/device_auth/frameworks/deviceauth_lite/source/struct/
Dparsedata.h34 void free_##d_name(void *obj) \
36 (void)obj; \
60 void free_pake_request(void *obj);
65 void free_pake_response(void *obj);
70 void free_pake_client_confirm(void *obj);
75 void free_pake_server_confirm(void *obj);
80 void free_auth_start_request(void *obj);
85 void free_auth_start_response(void *obj);
90 void free_auth_ack_request(void *obj);
95 void free_auth_ack_response(void *obj);
[all …]
Dimport_add_auth_data.c36 json_pobject obj = parse_payload(payload, data_type); in parse_import_add_auth_data() local
37 if (obj == NULL) { in parse_import_add_auth_data()
43 int32_t result = byte_convert(obj, FIELD_PUBLIC_KEY, signed_auth_data->ltpk.ltpk, in parse_import_add_auth_data()
51 result = byte_convert(obj, FIELD_OWNER_ID, signed_auth_data->owner_id.auth_id, in parse_import_add_auth_data()
59 result = byte_convert(obj, FIELD_AUTH_ID, signed_auth_data->auth_id.auth_id, in parse_import_add_auth_data()
70 result = byte_convert(obj, FIELD_KEY_TYPE, key_type, &key_length, HC_KEY_TYPE_LEN); in parse_import_add_auth_data()
79 free_payload(obj, data_type); in parse_import_add_auth_data()
82 free_payload(obj, data_type); in parse_import_add_auth_data()
87 void free_import_add_auth_data(void *obj) in free_import_add_auth_data() argument
89 if (obj != NULL) { in free_import_add_auth_data()
[all …]
Dparsedata.c25 json_handle obj = NULL; in parse_header() local
26 obj = parse_json(data); in parse_header()
27 if (obj == NULL) { in parse_header()
30 ret = get_json_int(obj, FIELD_MESSAGE); in parse_header()
31 free_json(obj); in parse_header()
42 json_handle obj = parse_json(data); in parse_data() local
43 if (obj == NULL) { in parse_data()
47 int32_t message_code = get_json_int(obj, FIELD_MESSAGE); in parse_data()
52 json_pobject obj_value = get_json_obj(obj, FIELD_PAYLOAD); in parse_data()
72 free_json(obj); in parse_data()
[all …]
/base/security/certificate_framework/frameworks/common/v1.0/src/
Dutils.c40 bool IsClassMatch(const CfObjectBase *obj, const char *className) in IsClassMatch() argument
42 if ((obj == NULL) || (obj->getClass() == NULL) || (className == NULL)) { in IsClassMatch()
45 if (strcmp(obj->getClass(), className) == 0) { in IsClassMatch()
48 LOGE("class is not match. expect class: %s, input class: %s", className, obj->getClass()); in IsClassMatch()
53 bool IsPubKeyClassMatch(const HcfObjectBase *obj, const char *className) in IsPubKeyClassMatch() argument
55 if ((obj == NULL) || (obj->getClass() == NULL) || (className == NULL)) { in IsPubKeyClassMatch()
58 if (strcmp(obj->getClass(), className) == 0) { in IsPubKeyClassMatch()
61 LOGE("class is not match. expect class: %s, input class: %s", className, obj->getClass()); in IsPubKeyClassMatch()
/base/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_session/
Dffi.rs62 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetUid()
63 obj.set_uid(uid); in StreamSessionSetUid()
78 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetFd()
79 obj.set_fd(fd); in StreamSessionSetFd()
94 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetPid()
95 obj.set_pid(pid); in StreamSessionSetPid()
110 if let Some(obj) = StreamSession::as_ref(object) { in StreamSessionGetUid()
111 obj.uid() in StreamSessionGetUid()
125 if let Some(obj) = StreamSession::as_ref(object) { in StreamSessionGetPid()
126 obj.pid() in StreamSessionGetPid()
[all …]
/base/print/print_fwk/test/unittest/service_test/
Dprint_extension_callback_proxy_test.cpp51 sptr<MockRemoteObject> obj = new (std::nothrow) MockRemoteObject(); variable
52 EXPECT_NE(obj, nullptr);
53 auto proxy = std::make_shared<PrintExtensionCallbackProxy>(obj);
57 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
58 ON_CALL(*obj, SendRequest)
74 sptr<MockRemoteObject> obj = new (std::nothrow) MockRemoteObject(); variable
75 EXPECT_NE(obj, nullptr);
76 auto proxy = std::make_shared<PrintExtensionCallbackProxy>(obj);
80 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
81 ON_CALL(*obj, SendRequest)
[all …]
Dprint_callback_proxy_test.cpp55 sptr<MockRemoteObject> obj = new (std::nothrow) MockRemoteObject(); variable
56 EXPECT_NE(obj, nullptr);
57 auto proxy = std::make_shared<PrintCallbackProxy>(obj);
62 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
63 ON_CALL(*obj, SendRequest)
79 sptr<MockRemoteObject> obj = new (std::nothrow) MockRemoteObject(); variable
80 EXPECT_NE(obj, nullptr);
81 auto proxy = std::make_shared<PrintCallbackProxy>(obj);
86 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
87 ON_CALL(*obj, SendRequest)
[all …]
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/
Ddcm_asn1.c58 static int32_t Asn1InsertValue(struct HksBlob *buf, struct HksAsn1Obj *obj, const struct HksAsn1Blo… in Asn1InsertValue() argument
85 if (obj != NULL) { in Asn1InsertValue()
86 obj->header.type = tlv->type; in Asn1InsertValue()
87 obj->header.data = buf->data; in Asn1InsertValue()
88 obj->header.size = header.size; in Asn1InsertValue()
89 obj->value.type = tlv->type; in Asn1InsertValue()
90 obj->value.data = buf->data + header.size; in Asn1InsertValue()
91 obj->value.size = value.size; in Asn1InsertValue()
97 int32_t DcmAsn1InsertValue(struct HksBlob *buf, struct HksAsn1Obj *obj, const struct HksAsn1Blob *t… in DcmAsn1InsertValue() argument
114 return Asn1InsertValue(buf, obj, tlv); in DcmAsn1InsertValue()
[all …]
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
Dprint_service_proxy_test.cpp62 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
63 EXPECT_NE(obj, nullptr);
64 auto proxy = std::make_shared<PrintServiceProxy>(obj);
82 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
83 ON_CALL(*obj, SendRequest)
102 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
103 EXPECT_NE(obj, nullptr);
104 auto proxy = std::make_shared<PrintServiceProxy>(obj);
122 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
123 ON_CALL(*obj, SendRequest)
[all …]
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Dexecutor_callback_proxy_test.cpp51 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
52 EXPECT_NE(obj, nullptr);
53 auto proxy = Common::MakeShared<ExecutorCallbackProxy>(obj);
61 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
62 EXPECT_NE(obj, nullptr);
63 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
71 auto proxy = Common::MakeShared<ExecutorCallbackProxy>(obj);
83 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
84 EXPECT_NE(obj, nullptr);
85 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
[all …]
Duser_auth_callback_proxy_test.cpp47 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
48 EXPECT_NE(obj, nullptr);
49 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
57 auto proxy = Common::MakeShared<UserAuthCallbackProxy>(obj);
67 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
68 EXPECT_NE(obj, nullptr);
69 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
77 auto proxy = Common::MakeShared<UserAuthCallbackProxy>(obj);
88 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
89 EXPECT_NE(obj, nullptr);
[all …]
Dco_auth_client_test.cpp79 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
81 CallRemoteObject(service, obj, dr, 73265);
86 dr->OnRemoteDied(obj);
91 …const sptr<MockRemoteObject> &obj, sptr<IRemoteObject::DeathRecipient> &dr, uint64_t testExecutorI… in CallRemoteObject() argument
93 EXPECT_NE(obj, nullptr); in CallRemoteObject()
94 IpcClientUtils::SetObj(obj); in CallRemoteObject()
95 EXPECT_CALL(*obj, IsProxyObject()).WillRepeatedly(Return(true)); in CallRemoteObject()
96 EXPECT_CALL(*obj, RemoveDeathRecipient(_)).WillRepeatedly(Return(true)); in CallRemoteObject()
97 EXPECT_CALL(*obj, AddDeathRecipient(_)) in CallRemoteObject()
105 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1); in CallRemoteObject()
[all …]
Duser_idm_proxy_test.cpp52 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
53 EXPECT_NE(obj, nullptr);
54 auto proxy = Common::MakeShared<UserIdmProxy>(obj);
64 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
65 ON_CALL(*obj, SendRequest)
77 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
78 EXPECT_NE(obj, nullptr);
79 auto proxy = Common::MakeShared<UserIdmProxy>(obj);
89 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
90 ON_CALL(*obj, SendRequest)
[all …]
/base/security/certificate_framework/frameworks/core/cert/src/
Dcf_object_cert.c36 int32_t CfCertCreate(const CfEncodingBlob *in, CfBase **obj) in CfCertCreate() argument
38 if ((in == NULL) || (obj == NULL)) { in CfCertCreate()
65 *obj = &(tmp->base); in CfCertCreate()
69 static int32_t CfCertGetItem(const CfCertObjStruct *obj, const CfParamSet *in, CfParamSet **out) in CfCertGetItem() argument
80 ret = obj->func.adapterGetItem(obj->adapterRes, (CfItemId)tmpParam->int32Param, &itemValue); in CfCertGetItem()
95 int32_t CfCertGet(const CfBase *obj, const CfParamSet *in, CfParamSet **out) in CfCertGet() argument
97 if ((obj == NULL) || (in == NULL) || (out == NULL)) { in CfCertGet()
102 CfCertObjStruct *tmp = (CfCertObjStruct *)obj; in CfCertGet()
124 int32_t CfCertCheck(const CfBase *obj, const CfParamSet *in, CfParamSet **out) in CfCertCheck() argument
126 if ((obj == NULL) || (in == NULL) || (out == NULL)) { in CfCertCheck()
[all …]
/base/powermgr/power_manager/services/zidl/src/shutdown/
Dshutdown_stub_delegator.cpp64 sptr<IRemoteObject> obj = data.ReadRemoteObject(); in RegisterTakeOverShutdownCallback() local
66 RETURN_IF_WITH_RET((obj == nullptr), E_READ_PARCEL_ERROR); in RegisterTakeOverShutdownCallback()
67 auto callback = iface_cast<ITakeOverShutdownCallback>(obj); in RegisterTakeOverShutdownCallback()
75 sptr<IRemoteObject> obj = data.ReadRemoteObject(); in UnRegisterTakeOverShutdownCallback() local
76 RETURN_IF_WITH_RET((obj == nullptr), E_READ_PARCEL_ERROR); in UnRegisterTakeOverShutdownCallback()
77 auto callback = iface_cast<ITakeOverShutdownCallback>(obj); in UnRegisterTakeOverShutdownCallback()
86 sptr<IRemoteObject> obj = data.ReadRemoteObject(); in RegisterAsyncShutdownCallback() local
88 RETURN_IF_WITH_RET((obj == nullptr), E_READ_PARCEL_ERROR); in RegisterAsyncShutdownCallback()
89 auto callback = iface_cast<IAsyncShutdownCallback>(obj); in RegisterAsyncShutdownCallback()
97 sptr<IRemoteObject> obj = data.ReadRemoteObject(); in UnRegisterAsyncShutdownCallback() local
[all …]
/base/useriam/user_auth_framework/frameworks/native/client/src/
Dipc_client_utils.cpp28 sptr<IRemoteObject> obj(nullptr); in GetRemoteObject() local
32 return obj; in GetRemoteObject()
35 obj = sam->CheckSystemAbility(saId); in GetRemoteObject()
36 if (!obj) { in GetRemoteObject()
38 return obj; in GetRemoteObject()
40 return obj; in GetRemoteObject()
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_proxy_test.cpp49 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
50 EXPECT_NE(obj, nullptr);
51 auto proxy = Common::MakeShared<PinAuthProxy>(obj);
64 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1);
65 ON_CALL(*obj, SendRequest)
74 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
75 EXPECT_NE(obj, nullptr);
76 auto proxy = Common::MakeShared<PinAuthProxy>(obj);
85 sptr<MockRemoteObject> obj(new (std::nothrow) MockRemoteObject());
86 EXPECT_NE(obj, nullptr);
[all …]
/base/time/time_service/framework/js/napi/system_timer/src/
Dtimer_type.cpp32 napi_value obj = nullptr; in TimerTypeInit() local
33 napi_create_object(env, &obj); in TimerTypeInit()
35 SetNamedPropertyByInteger(env, obj, 1 << TIMER_TYPE_REALTIME, "TIMER_TYPE_REALTIME"); in TimerTypeInit()
36 SetNamedPropertyByInteger(env, obj, 1 << TIMER_TYPE_WAKEUP, "TIMER_TYPE_WAKEUP"); in TimerTypeInit()
37 SetNamedPropertyByInteger(env, obj, 1 << TIMER_TYPE_EXACT, "TIMER_TYPE_EXACT"); in TimerTypeInit()
38 SetNamedPropertyByInteger(env, obj, 1 << TIMER_TYPE_IDLE, "TIMER_TYPE_IDLE"); in TimerTypeInit()
40 napi_property_descriptor exportFuncs[] = { DECLARE_NAPI_PROPERTY("systemTimer", obj) }; in TimerTypeInit()

1234567891011