| /base/security/device_auth/common_lib/interfaces/ |
| D | hc_vector.h | 51 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/ |
| D | support.cpp | 31 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/ |
| D | constant.cpp | 34 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/ |
| D | provision_verify.cpp | 86 inline void GetStringIfExist(const json& obj, const string& key, string& out) in GetStringIfExist() argument 88 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_string()) { in GetStringIfExist() 89 obj[key.c_str()].get_to(out); in GetStringIfExist() 93 inline void GetInt32IfExist(const json& obj, const string& key, int32_t& out) in GetInt32IfExist() argument 95 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) { in GetInt32IfExist() 96 obj[key.c_str()].get_to(out); in GetInt32IfExist() 100 inline void GetInt64IfExist(const json& obj, const string& key, int64_t& out) in GetInt64IfExist() argument 102 if (obj.find(key.c_str()) != obj.end() && obj[key.c_str()].is_number_integer()) { in GetInt64IfExist() 103 obj[key.c_str()].get_to(out); in GetInt64IfExist() 107 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/ |
| D | ffi.rs | 64 if let Some(obj) = StreamBuffer::as_ref(object) { in StreamBufferData() 65 obj.data() in StreamBufferData() 79 if let Some(obj) = StreamBuffer::as_ref(object) { in StreamBufferSize() 80 obj.size() in StreamBufferSize() 94 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferReset() 95 obj.reset(); in StreamBufferReset() 110 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferClean() 111 obj.clean(); in StreamBufferClean() 126 if let Some(obj) = StreamBuffer::as_mut(object) { in StreamBufferWrite() 128 obj.write_streambuffer(buffer) in StreamBufferWrite() [all …]
|
| /base/security/device_auth/frameworks/deviceauth_lite/source/json/ |
| D | jsonutil.c | 42 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 …]
|
| /base/security/device_auth/frameworks/deviceauth_lite/source/struct/ |
| D | parsedata.h | 34 void free_##d_name(void *obj) \ 36 (void)obj; \ 59 void free_pake_request(void *obj); 64 void free_pake_response(void *obj); 67 void free_pake_client_confirm(void *obj); 72 void free_pake_server_confirm(void *obj); 75 void free_auth_start_request(void *obj); 80 void free_auth_start_response(void *obj); 83 void free_auth_ack_request(void *obj); 88 void free_auth_ack_response(void *obj); [all …]
|
| D | auth_start_response.c | 35 json_handle obj = parse_payload(payload, data_type); in parse_auth_start_response() local 36 if (obj == NULL) { in parse_auth_start_response() 41 int32_t result = byte_convert(obj, FIELD_AUTH_DATA, auth_start_response->auth_data.auth_data, in parse_auth_start_response() 49 result = byte_convert(obj, FIELD_CHALLENGE, auth_start_response->challenge.challenge, in parse_auth_start_response() 57 result = byte_convert(obj, FIELD_SALT, auth_start_response->salt.salt, in parse_auth_start_response() 65 result = byte_convert(obj, FIELD_EPK, auth_start_response->epk.stpk, in parse_auth_start_response() 72 json_pobject obj_ver = get_json_obj(obj, FIELD_VERSION); in parse_auth_start_response() 78 free_payload(obj, data_type); in parse_auth_start_response() 81 free_payload(obj, data_type); in parse_auth_start_response() 86 void free_auth_start_response(void *obj) in free_auth_start_response() argument [all …]
|
| D | pake_response.c | 35 json_pobject obj = parse_payload(payload, data_type); in parse_pake_response() local 36 if (obj == NULL) { in parse_pake_response() 41 int32_t result = byte_convert(obj, FIELD_CHALLENGE, pake_response->challenge.challenge, in parse_pake_response() 48 result = byte_convert(obj, FIELD_SALT, pake_response->salt.salt, in parse_pake_response() 55 result = byte_convert(obj, FIELD_EPK, pake_response->epk.epk, in parse_pake_response() 62 json_pobject obj_ver = get_json_obj(obj, FIELD_VERSION); in parse_pake_response() 68 free_payload(obj, data_type); in parse_pake_response() 71 free_payload(obj, data_type); in parse_pake_response() 76 void free_pake_response(void *obj) in free_pake_response() argument 78 if (obj != NULL) { in free_pake_response() [all …]
|
| D | pake_server_confirm.c | 35 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()
|
| D | auth_ack_response.c | 35 json_handle obj = parse_payload(payload, data_type); in parse_auth_ack_response() local 36 if (obj == NULL) { in parse_auth_ack_response() 41 … int32_t result = byte_convert(obj, FIELD_AUTH_RETURN, auth_ack_response->auth_return.auth_return, in parse_auth_ack_response() 47 free_payload(obj, data_type); in parse_auth_ack_response() 50 free_payload(obj, data_type); in parse_auth_ack_response() 55 void free_auth_ack_response(void *obj) in free_auth_ack_response() argument 57 if (obj != NULL) { in free_auth_ack_response() 58 FREE(obj); in free_auth_ack_response()
|
| /base/print/print_fwk/test/unittest/service_test/ |
| D | print_extension_callback_proxy_test.cpp | 51 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 …]
|
| D | print_callback_proxy_test.cpp | 55 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/sensors/sensor/rust/utils/socket_ipc_rust_ffi/src/stream_session/ |
| D | ffi.rs | 64 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetUid() 65 obj.set_uid(uid); in StreamSessionSetUid() 80 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetFd() 81 obj.set_fd(fd); in StreamSessionSetFd() 96 if let Some(obj) = StreamSession::as_mut(object) { in StreamSessionSetPid() 97 obj.set_pid(pid); in StreamSessionSetPid() 112 if let Some(obj) = StreamSession::as_ref(object) { in StreamSessionGetUid() 113 obj.uid() in StreamSessionGetUid() 127 if let Some(obj) = StreamSession::as_ref(object) { in StreamSessionGetPid() 128 obj.pid() in StreamSessionGetPid() [all …]
|
| /base/security/certificate_framework/frameworks/common/v1.0/src/ |
| D | utils.c | 40 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/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/src/ |
| D | dcm_asn1.c | 58 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/security/certificate_framework/frameworks/js/napi/certificate/src/ |
| D | napi_x509_cert_match_parameters.cpp | 33 napi_value obj = GetProp(env, arg, CERT_MATCH_TAG_VALID_DATE.c_str()); in GetValidDate() local 34 if (obj == nullptr) { in GetValidDate() 38 out = CertGetBlobFromStringJSParams(env, obj); in GetValidDate() 48 napi_value obj = GetProp(env, arg, CERT_MATCH_TAG_ISSUER.c_str()); in GetIssuer() local 49 if (obj == nullptr) { in GetIssuer() 52 out = CertGetBlobFromUint8ArrJSParams(env, obj); in GetIssuer() 62 napi_value obj = GetProp(env, arg, CERT_MATCH_TAG_KEY_USAGE.c_str()); in GetKeyUsage() local 63 if (obj == nullptr) { in GetKeyUsage() 66 out = CertGetBlobFromArrBoolJSParams(env, obj); in GetKeyUsage() 76 napi_value obj = GetProp(env, arg, CERT_MATCH_TAG_SERIAL_NUMBER.c_str()); in GetSerialNumber() local [all …]
|
| /base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
| D | print_service_proxy_test.cpp | 62 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/inputmethod/imf/frameworks/js/napi/inputmethodpanel/ |
| D | js_input_method_panel.cpp | 34 napi_value obj = nullptr; in GetJsPanelTypeProperty() local 35 napi_create_object(env, &obj); in GetJsPanelTypeProperty() 37 …auto ret = JsUtil::Object::WriteProperty(env, obj, "SOFT_KEYBOARD", static_cast<int32_t>(PanelType… in GetJsPanelTypeProperty() 38 …ret = ret && JsUtil::Object::WriteProperty(env, obj, "STATUS_BAR", static_cast<int32_t>(PanelType:… in GetJsPanelTypeProperty() 40 return obj; in GetJsPanelTypeProperty() 45 napi_value obj = nullptr; in GetJsPanelFlagProperty() local 46 napi_create_object(env, &obj); in GetJsPanelFlagProperty() 48 …auto ret = JsUtil::Object::WriteProperty(env, obj, "FLAG_FIXED", static_cast<int32_t>(PanelFlag::F… in GetJsPanelFlagProperty() 50 …&& JsUtil::Object::WriteProperty(env, obj, "FLAG_FLOATING", static_cast<int32_t>(PanelFlag::FLG_FL… in GetJsPanelFlagProperty() 53 env, obj, "FLAG_CANDIDATE", static_cast<int32_t>(PanelFlag::FLG_CANDIDATE_COLUMN)); in GetJsPanelFlagProperty() [all …]
|
| /base/useriam/user_auth_framework/test/unittest/inner_api/src/ |
| D | executor_callback_proxy_test.cpp | 51 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 …]
|
| D | user_auth_callback_proxy_test.cpp | 47 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 …]
|
| D | user_idm_proxy_test.cpp | 52 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 …]
|
| D | co_auth_client_test.cpp | 79 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() 103 EXPECT_CALL(*obj, SendRequest(_, _, _, _)).Times(1); in CallRemoteObject() [all …]
|
| /base/security/certificate_framework/frameworks/core/cert/src/ |
| D | cf_object_cert.c | 36 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/ |
| D | shutdown_stub_delegator.cpp | 64 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 …]
|