Home
last modified time | relevance | path

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

12345678

/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/napi_common_event/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/common_event_service/interfaces/kits/napi/common_event/src/
Dsupport.cpp31 napi_value obj = nullptr; in SupportInit() local
32 napi_create_object(env, &obj); in SupportInit()
35 obj, in SupportInit()
39 obj, in SupportInit()
43 obj, in SupportInit()
47 obj, in SupportInit()
51 obj, in SupportInit()
55 obj, in SupportInit()
59 obj, in SupportInit()
63 obj, 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/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/appverify/interfaces/innerkits/appverify/src/provision/
Dprovision_verify.cpp78 inline void GetStringIfExist(const json& obj, const string& key, string& out) in GetStringIfExist() argument
80 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_string()) { in GetStringIfExist()
81 obj[key.c_str()].get_to(out); in GetStringIfExist()
85 inline void GetInt32IfExist(const json& obj, const string& key, int32_t& out) in GetInt32IfExist() argument
87 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) { in GetInt32IfExist()
88 obj[key.c_str()].get_to(out); in GetInt32IfExist()
92 inline void GetStringArrayIfExist(const json& obj, const string& key, vector<string>& out) in GetStringArrayIfExist() argument
94 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_array()) { in GetStringArrayIfExist()
95 for (auto& item : obj[key.c_str()]) { in GetStringArrayIfExist()
103 inline bool IsObjectExist(const json& obj, const string& key) in IsObjectExist() argument
[all …]
/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 …]
Dinform_message.c31 json_handle obj = parse_payload(payload, data_type); in parse_inform_message() local
32 if (obj == NULL) { in parse_inform_message()
36 int32_t error_code = get_json_int(obj, FIELD_ERROR_CODE); in parse_inform_message()
42 free_payload(obj, data_type); in parse_inform_message()
45 free_payload(obj, data_type); in parse_inform_message()
50 void free_inform_message(void *obj) in free_inform_message() argument
52 if (obj != NULL) { in free_inform_message()
53 FREE(obj); in free_inform_message()
Dpake_request.c34 json_handle obj = parse_payload(payload, data_type); in parse_pake_request() local
35 if (obj == NULL) { in parse_pake_request()
40 int32_t op = get_json_int(obj, FIELD_OPERATION_CODE); in parse_pake_request()
47 json_pobject obj_ver = get_json_obj(obj, FIELD_VERSION); in parse_pake_request()
55 int32_t support_256_mod = get_json_bool(obj, FIELD_SUPPORT_256_MOD); in parse_pake_request()
62 free_payload(obj, data_type); in parse_pake_request()
65 free_payload(obj, data_type); in parse_pake_request()
70 void free_pake_request(void *obj) in free_pake_request() argument
72 if (obj != NULL) { in free_pake_request()
73 FREE(obj); in free_pake_request()
Drmv_auth_info_data.c34 json_handle obj = parse_payload(payload, data_type); in parse_rmv_auth_info_data() local
35 if (obj == NULL) { in parse_rmv_auth_info_data()
40 int32_t type = get_json_int(obj, FIELD_RMV_TYPE); in parse_rmv_auth_info_data()
47 int32_t result = byte_convert(obj, FIELD_RMV_ID, rmv_auth_data->auth_id.auth_id, in parse_rmv_auth_info_data()
53 free_payload(obj, data_type); in parse_rmv_auth_info_data()
56 free_payload(obj, data_type); in parse_rmv_auth_info_data()
61 void free_rmv_auth_info_data(void *obj) in free_rmv_auth_info_data() argument
63 if (obj != NULL) { in free_rmv_auth_info_data()
64 FREE(obj); in free_rmv_auth_info_data()
Dadd_auth_info_data.c34 json_pobject obj = parse_payload(payload, data_type); in parse_add_auth_info_data() local
35 if (obj == NULL) { in parse_add_auth_info_data()
40 int32_t type = get_json_int(obj, FIELD_ADD_TYPE); in parse_add_auth_info_data()
47 int32_t result = byte_convert(obj, FIELD_ADD_ID, add_auth_data->auth_id.auth_id, in parse_add_auth_info_data()
54 result = byte_convert(obj, FIELD_ADD_KEY, add_auth_data->ltpk.ltpk, in parse_add_auth_info_data()
61 int32_t permission = get_json_bool(obj, FIELD_PERMISSION); in parse_add_auth_info_data()
67 free_payload(obj, data_type); in parse_add_auth_info_data()
70 free_payload(obj, data_type); in parse_add_auth_info_data()
75 void free_add_auth_info_data(void *obj) in free_add_auth_info_data() argument
77 if (obj != NULL) { in free_add_auth_info_data()
[all …]
Dsec_clone_data.c26 static void free_single_buff(void *obj) in free_single_buff() argument
28 if (obj != NULL) { in free_single_buff()
29 struct uint8_buff *data = (struct uint8_buff *)obj; in free_single_buff()
46 json_handle obj = parse_payload(payload, data_type); in get_single_json_from_buff() local
47 if (obj == NULL) { in get_single_json_from_buff()
51 const char *client_chall = get_json_string(obj, name); in get_single_json_from_buff()
69 free_payload(obj, data_type); in get_single_json_from_buff()
73 free_payload(obj, data_type); in get_single_json_from_buff()
126 void sec_clone_free_client_request(void *obj) in sec_clone_free_client_request() argument
128 free_single_buff(obj); in sec_clone_free_client_request()
[all …]
Dpake_server_confirm.c35 json_handle obj = parse_payload(payload, data_type); in parse_pake_server_confirm() local
36 if (obj == NULL) { in parse_pake_server_confirm()
41 int32_t result = byte_convert(obj, FIELD_KCF_DATA, pake_server_confirm->kcf_data.hmac, in parse_pake_server_confirm()
47 free_payload(obj, data_type); in parse_pake_server_confirm()
50 free_payload(obj, data_type); in parse_pake_server_confirm()
55 void free_pake_server_confirm(void *obj) in free_pake_server_confirm() argument
57 if (obj != NULL) { in free_pake_server_confirm()
58 FREE(obj); in free_pake_server_confirm()
Dauth_ack_request.c35 json_handle obj = parse_payload(payload, data_type); in parse_auth_ack_request() local
36 if (obj == NULL) { in parse_auth_ack_request()
41 int32_t result = byte_convert(obj, FIELD_AUTH_DATA, auth_ack_request->auth_data.auth_data, in parse_auth_ack_request()
47 free_payload(obj, data_type); in parse_auth_ack_request()
50 free_payload(obj, data_type); in parse_auth_ack_request()
55 void free_auth_ack_request(void *obj) in free_auth_ack_request() argument
57 if (obj != NULL) { in free_auth_ack_request()
58 FREE(obj); in free_auth_ack_request()
/base/security/huks/services/huks_standard/huks_engine/main/core/src/
Dhks_asn1.c59 static int32_t Asn1InsertValue(struct HksBlob *buf, struct HksAsn1Obj *obj, const struct HksAsn1Blo… in Asn1InsertValue() argument
86 if (obj != NULL) { in Asn1InsertValue()
87 obj->header.type = tlv->type; in Asn1InsertValue()
88 obj->header.data = buf->data; in Asn1InsertValue()
89 obj->header.size = header.size; in Asn1InsertValue()
90 obj->value.type = tlv->type; in Asn1InsertValue()
91 obj->value.data = buf->data + header.size; in Asn1InsertValue()
92 obj->value.size = value.size; in Asn1InsertValue()
98 int32_t HksAsn1InsertValue(struct HksBlob *buf, struct HksAsn1Obj *obj, const struct HksAsn1Blob *t… in HksAsn1InsertValue() argument
115 return Asn1InsertValue(buf, obj, tlv); in HksAsn1InsertValue()
[all …]
/base/useriam/user_auth_framework/test/unittest/inner_api/src/
Duser_auth_callback_proxy_test.cpp47 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
48 EXPECT_NE(obj, nullptr);
49 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
57 auto proxy = Common::MakeShared<UserAuthCallbackProxy>(obj);
67 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
68 EXPECT_NE(obj, nullptr);
69 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
77 auto proxy = Common::MakeShared<UserAuthCallbackProxy>(obj);
88 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
89 EXPECT_NE(obj, nullptr);
[all …]
Dexecutor_callback_proxy_test.cpp51 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
52 EXPECT_NE(obj, nullptr);
53 auto proxy = Common::MakeShared<ExecutorCallbackProxy>(obj);
61 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
62 EXPECT_NE(obj, nullptr);
63 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
71 auto proxy = Common::MakeShared<ExecutorCallbackProxy>(obj);
83 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
84 EXPECT_NE(obj, nullptr);
85 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
[all …]
Duser_idm_proxy_test.cpp52 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
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 MockRemoteObject(); variable
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 …]
Duser_idm_callback_proxy_test.cpp48 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
49 EXPECT_NE(obj, nullptr);
50 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
58 auto proxy = Common::MakeShared<IdmCallbackProxy>(obj);
68 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
69 EXPECT_NE(obj, nullptr);
70 EXPECT_CALL(*obj, SendRequest(_, _, _, _))
78 auto proxy = Common::MakeShared<IdmCallbackProxy>(obj);
89 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
90 EXPECT_NE(obj, nullptr);
[all …]
/base/useriam/pin_auth/test/unittest/src/
Dpin_auth_proxy_test.cpp49 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
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 MockRemoteObject(); variable
75 EXPECT_NE(obj, nullptr);
76 auto proxy = Common::MakeShared<PinAuthProxy>(obj);
85 sptr<MockRemoteObject> obj = new MockRemoteObject(); variable
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()
/base/hiviewdfx/hiview/base/include/
Dpipeline.h42 PipelineEvent(const PipelineEvent& obj) in PipelineEvent() argument
43 : Event(obj), in PipelineEvent()
44 inputLogfileParamList_(std::move(obj.inputLogfileParamList_)), in PipelineEvent()
45 deleteLogfileParamList_(std::move(obj.deleteLogfileParamList_)), in PipelineEvent()
46 handler_(obj.handler_), in PipelineEvent()
47 startDeliver_(obj.startDeliver_), in PipelineEvent()
48 pipelineName_(obj.pipelineName_), in PipelineEvent()
49 processors_(std::move(obj.processors_)){}; in PipelineEvent()
51 PipelineEvent& operator=(const PipelineEvent& obj)
53 if (&obj == this) {
[all …]

12345678