Home
last modified time | relevance | path

Searched refs:parcel (Results 1 - 22 of 22) sorted by relevance

/test/xts/hats/useriam/userauth/src/
H A Duser_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
46 static void FillAuthTypeVector(Parcel &parcel, vector<int32_t> &vector) in FillAuthTypeVector() argument
48 uint32_t len = parcel.ReadInt32() % MAX_FUZZ_STRUCT_LEN; in FillAuthTypeVector()
51 vector[i] = parcel.ReadInt32(); in FillAuthTypeVector()
55 static void FillEnrollParam(Parcel &parcel, EnrollParam &enrollParam) in FillEnrollParam() argument
57 enrollParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillEnrollParam()
58 enrollParam.executorSensorHint = parcel.ReadUint32(); in FillEnrollParam()
59 enrollParam.userId = parcel.ReadInt32(); in FillEnrollParam()
62 static void FillExecutorRegisterInfo(Parcel &parcel, ExecutorRegisterInfo &executorRegisterInfo) in FillExecutorRegisterInfo() argument
64 executorRegisterInfo.authType = static_cast<AuthType>(parcel in FillExecutorRegisterInfo()
72 FillExecutorIndexInfo(Parcel &parcel, uint64_t &executorIndex) FillExecutorIndexInfo() argument
77 FillExecutorIndexVector(Parcel &parcel, vector<uint64_t > &vector) FillExecutorIndexVector() argument
86 FillScheduleInfo(Parcel &parcel, ScheduleInfo &scheduleInfo) FillScheduleInfo() argument
96 FillCredentialInfo(Parcel &parcel, CredentialInfo &credentialInfo) FillCredentialInfo() argument
106 FillEnrolledInfo(Parcel &parcel, EnrolledInfo &enrolledInfo) FillEnrolledInfo() argument
112 FillIdentifyResultInfo(Parcel &parcel, IdentifyResultInfo &identifyResultInfo) FillIdentifyResultInfo() argument
119 FillExecutorSendMsg(Parcel &parcel, ExecutorSendMsg &executorSendMsg) FillExecutorSendMsg() argument
125 FillAuthParam(Parcel &parcel, AuthParam &authParam) FillAuthParam() argument
134 FillScheduleInfoVector(Parcel &parcel, vector<ScheduleInfo> &vector) FillScheduleInfoVector() argument
143 FillCredentialInfoVector(Parcel &parcel, vector<CredentialInfo> &vector) FillCredentialInfoVector() argument
152 FillEnrolledInfoVector(Parcel &parcel, vector<EnrolledInfo> &vector) FillEnrolledInfoVector() argument
161 FillExecutorSendMsgVector(Parcel &parcel, vector<ExecutorSendMsg> &vector) FillExecutorSendMsgVector() argument
170 FillAuthResultInfo(Parcel &parcel, AuthResultInfo &authResultInfo) FillAuthResultInfo() argument
179 FillTestScheduleInfo(Parcel &parcel, ScheduleInfo &scheduleInfo) FillTestScheduleInfo() argument
193 FillTestScheduleInfo_Vector(Parcel &parcel, vector<ScheduleInfo> &vector) FillTestScheduleInfo_Vector() argument
[all...]
H A Duser_auth_type_test.cpp28 static OHOS::Parcel parcel; variable
/test/xts/acts/communication/dsoftbus/capi_ipc/entry/src/main/cpp/
H A Dipc_capi.cpp332 OHIPCParcel* parcel = OH_IPCParcel_Create(); in OHIPCParcelCreate() local
333 if (parcel != nullptr) { in OHIPCParcelCreate()
334 OH_IPCParcel_Destroy(parcel); in OHIPCParcelCreate()
350 OHIPCParcel *parcel = OH_IPCParcel_Create(); in OHIPCParcelGetDataSize() local
351 if (parcel != nullptr) { in OHIPCParcelGetDataSize()
352 int ret = OH_IPCParcel_GetDataSize(parcel); in OHIPCParcelGetDataSize()
353 OH_IPCParcel_Destroy(parcel); in OHIPCParcelGetDataSize()
365 OHIPCParcel *parcel = OH_IPCParcel_Create(); in OHIPCParcelGetWritableBytes() local
366 if (parcel != nullptr) { in OHIPCParcelGetWritableBytes()
367 int ret = OH_IPCParcel_GetWritableBytes(parcel); in OHIPCParcelGetWritableBytes()
380 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelGetReadableBytes() local
395 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelGetReadPosition() local
410 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelGetWritePosition() local
425 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelRewindReadPosition() local
441 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelRewindWritePosition() local
457 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteInt8() local
473 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadInt8() local
489 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteInt16() local
505 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadInt16() local
521 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteInt32() local
537 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadInt32() local
553 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteInt64() local
569 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadInt64() local
585 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteFloat() local
601 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadFloat() local
617 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteDouble() local
633 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadDouble() local
649 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteString() local
665 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadString() local
691 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteBuffer() local
707 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadBuffer() local
734 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteRemoteStub() local
760 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadRemoteStub() local
791 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteRemoteProxy() local
807 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadRemoteProxy() local
854 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadFileDescriptor() local
870 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteFileDescriptor() local
886 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelWriteInterfaceToken() local
902 OHIPCParcel *parcel = OH_IPCParcel_Create(); OHIPCParcelReadInterfaceToken() local
[all...]
/test/xts/hats/useriam/fingerprintauth/src/
H A Dfingerprint_auth_hdi.cpp31 static OHOS::Parcel parcel; variable
94 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
96 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
97 executorInfo.executorMatcher = parcel.ReadUint32(); in FillTestExecutorInfo()
98 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
99 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
100 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
101 executorInfo.maxTemplateAcl = parcel.ReadInt32(); in FillTestExecutorInfo()
102 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
103 FillTestUint8Vector(parcel, executorInf in FillTestExecutorInfo()
107 FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) FillTestIExecutorCallback() argument
122 FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<GetPropertyType> &types) FillTestGetPropertyTypeVector() argument
133 FillTestProperty(Parcel &parcel, Property &property) FillTestProperty() argument
144 FillTestISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) FillTestISaCommandCallback() argument
[all...]
H A Dfingerprint_type_test.cpp29 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/faceauth/src/
H A Dface_auth_hdi.cpp32 static OHOS::Parcel parcel; variable
95 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
97 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
98 executorInfo.executorMatcher = parcel.ReadUint32(); in FillTestExecutorInfo()
99 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
100 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
101 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
102 executorInfo.maxTemplateAcl = parcel.ReadInt32(); in FillTestExecutorInfo()
103 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
104 FillTestUint8Vector(parcel, executorInf in FillTestExecutorInfo()
108 FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) FillTestIExecutorCallback() argument
123 FillTestProperty(Parcel &parcel, Property &property) FillTestProperty() argument
134 FillTestISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) FillTestISaCommandCallback() argument
[all...]
H A Dface_auth_type_test.cpp29 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/pinauth/src/
H A Dpin_auth_hdi.cpp27 static OHOS::Parcel parcel; variable
87 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
89 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
90 executorInfo.executorMatcher = parcel.ReadUint32(); in FillTestExecutorInfo()
91 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
92 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
93 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
94 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
95 FillTestUint8Vector(parcel, executorInfo.extraInfo); in FillTestExecutorInfo()
98 static void FillTestIExecutorCallback(Parcel &parcel, spt argument
112 FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<int32_t> &types) FillTestGetPropertyTypeVector() argument
[all...]
H A Dpin_auth_hdi_two.cpp27 static OHOS::Parcel parcel; variable
87 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
89 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
93 callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), in FillTestIExecutorCallback()
94 parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
112 uint64_t scheduleId = parcel.ReadUint64(); in HWTEST_F()
113 uint64_t templateId = parcel in HWTEST_F()
[all...]
H A Dpin_auth_type_test.cpp28 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/fingerprintauth_additional/src/
H A Dfingerprint_auth_hdi.cpp31 static Parcel parcel; variable
100 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
102 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
107 new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
115 void FillTestProperty(Parcel &parcel, Property &property) in FillTestProperty() argument
117 property.authSubType = parcel.ReadUint64(); in FillTestProperty()
118 property.lockoutDuration = parcel.ReadInt32(); in FillTestProperty()
119 property.remainAttempts = parcel in FillTestProperty()
126 FillTestISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) FillTestISaCommandCallback() argument
[all...]
/test/xts/hats/useriam/common/src/
H A Diam_hat_test.cpp22 #include "parcel.h"
35 void FillTestBuffer(Parcel &parcel, void *p, uint32_t len) in FillTestBuffer() argument
41 auto buffer = parcel.ReadBuffer(len); in FillTestBuffer()
56 void FillTestUint8Vector(Parcel &parcel, std::vector<uint8_t> &data) in FillTestUint8Vector() argument
58 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint8Vector()
61 FillTestBuffer(parcel, static_cast<void *>(&data[0]), memLen); in FillTestUint8Vector()
65 void FillTestInt8Vector(Parcel &parcel, std::vector<int8_t> &data) in FillTestInt8Vector() argument
67 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestInt8Vector()
70 FillTestBuffer(parcel, static_cast<void *>(&data[0]), memLen); in FillTestInt8Vector()
74 void FillTestUint32Vector(Parcel &parcel, st argument
83 FillTestInt32Vector(Parcel &parcel, std::vector<int32_t> &data) FillTestInt32Vector() argument
92 FillTestUint64Vector(Parcel &parcel, std::vector<uint64_t> &data) FillTestUint64Vector() argument
101 FillTestString(Parcel &parcel, std::string &str) FillTestString() argument
[all...]
/test/xts/hats/useriam/faceauth_additional/src/
H A Dface_auth_hdi.cpp33 static Parcel parcel; variable
102 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
104 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
109 new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
117 void FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<GetPropertyType> &types) in FillTestGetPropertyTypeVector() argument
120 FillTestUint32Vector(parcel, propertyTypeUint32); in FillTestGetPropertyTypeVector()
128 void FillTestProperty(Parcel &parcel, Property &property) in FillTestProperty() argument
130 property.authSubType = parcel in FillTestProperty()
139 FillTestISaCommandCallback(Parcel &parcel, sptr<ISaCommandCallback> &callbackObj) FillTestISaCommandCallback() argument
[all...]
/test/xts/device_attest/services/devattest_ability/src/
H A Dattest_result_info.cpp20 bool AttestResultInfo::Marshalling(Parcel &parcel) const in Marshalling()
22 if (!parcel.WriteInt32(authResult_) || !parcel.WriteInt32(softwareResult_)) { in Marshalling()
25 if (!parcel.WriteInt32(softwareResultDetail_.size()) || !parcel.WriteInt32Vector(softwareResultDetail_)) { in Marshalling()
28 if (!parcel.WriteInt32(ticketLength_) || !parcel.WriteString(ticket_)) { in Marshalling()
34 sptr<AttestResultInfo> AttestResultInfo::Unmarshalling(Parcel &parcel) in Unmarshalling() argument
40 if (!parcel.ReadInt32(ptr->authResult_) || !parcel in Unmarshalling()
[all...]
/test/xts/hats/useriam/pinauth_additional/src/
H A Dpin_auth_hdi.cpp27 static OHOS::Parcel parcel; variable
83 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
85 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
90 new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32(), in FillTestIExecutorCallback()
91 parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
98 void FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<HdiGetPropertyType> &types) in FillTestGetPropertyTypeVector() argument
101 FillTestUint32Vector(parcel, propertyTypeUint3 in FillTestGetPropertyTypeVector()
[all...]
/test/xts/hats/useriam/userauth_additional/src/
H A Duser_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
56 static void FillEnrollParam(Parcel &parcel, EnrollParam &enrollParam) in FillEnrollParam() argument
58 enrollParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillEnrollParam()
59 enrollParam.executorSensorHint = parcel.ReadUint32(); in FillEnrollParam()
60 enrollParam.userId = parcel.ReadInt32(); in FillEnrollParam()
63 static void FillExecutorIndexInfo(Parcel &parcel, uint64_t &executorIndex) in FillExecutorIndexInfo() argument
65 executorIndex = parcel.ReadUint64(); in FillExecutorIndexInfo()
68 static void FillExecutorIndexVector(Parcel &parcel, vector<uint64_t > &vector) in FillExecutorIndexVector() argument
70 uint32_t len = parcel.ReadInt32() % MAX_FUZZ_STRUCT_LEN; in FillExecutorIndexVector()
73 FillExecutorIndexInfo(parcel, vecto in FillExecutorIndexVector()
77 FillScheduleInfo(Parcel &parcel, ScheduleInfo &scheduleInfo) FillScheduleInfo() argument
87 FillCredentialInfo(Parcel &parcel, CredentialInfo &credentialInfo) FillCredentialInfo() argument
97 FillEnrolledInfo(Parcel &parcel, EnrolledInfo &enrolledInfo) FillEnrolledInfo() argument
103 FillCredentialInfoVector(Parcel &parcel, vector<CredentialInfo> &vector) FillCredentialInfoVector() argument
112 FillEnrolledInfoVector(Parcel &parcel, vector<EnrolledInfo> &vector) FillEnrolledInfoVector() argument
[all...]
/test/xts/hats/useriam/common/include/
H A Diam_hat_test.h23 #include "parcel.h"
28 void FillTestUint8Vector(Parcel &parcel, std::vector<uint8_t> &data);
29 void FillTestInt8Vector(Parcel &parcel, std::vector<int8_t> &data);
30 void FillTestUint32Vector(Parcel &parcel, std::vector<uint32_t> &data);
31 void FillTestUint64Vector(Parcel &parcel, std::vector<uint64_t> &data);
32 void FillTestString(Parcel &parcel, std::string &str);
33 void FillTestInt32Vector(Parcel &parcel, std::vector<int32_t> &data);
/test/xts/device_attest/interfaces/innerkits/native_cpp/include/
H A Dattest_result_info.h19 #include "parcel.h"
42 virtual bool Marshalling(Parcel &parcel) const override;
43 static sptr<AttestResultInfo> Unmarshalling(Parcel &parcel);
/test/xts/acts/communication/dsoftbus/rpc/entry/src/ohosTest/js/test/
H A DRpcClientJsunit.test.js3600 var parcel = new rpc.MessageSequence();
3603 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3605 parcel.writeIntArray(arr);
3606 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3608 await gIRemoteObject.sendMessageRequest(CODE_WRITE_INTARRAY, parcel, reply, option).then((result) => {
3623 parcel.reclaim();
3641 var parcel = new rpc.MessageSequence();
3645 parcel.writeInt(arr.length);
3646 parcel.writeRawData(arr, arr.length);
3647 expect(parcel
[all...]
/test/xts/device_attest/interfaces/innerkits/native_cpp/test/unittest/src/
H A Ddevattest_client_proxy_test.cpp133 bool Marshalling(Parcel &parcel) const override
/test/xts/hats/hdf/hdf_lite/manager/common/
H A Dhdf_sbuf_test.cpp1033 OHOS::MessageParcel *parcel = nullptr;
1034 ret = SbufToParcel(sBuf, &parcel);
1036 HdfSBuf *sBufPar = ParcelToSbuf(parcel);
/test/xts/acts/graphic/nativewindow/entry/src/main/cpp/
H A Dnativewindow1.cpp614 OHIPCParcel *parcel = OH_IPCParcel_Create(); in testNativeWindowWriteToParcelErrptr() local
617 auto flag = OH_NativeWindow_WriteToParcel(nullptr, parcel); in testNativeWindowWriteToParcelErrptr()
641 OHIPCParcel *parcel = OH_IPCParcel_Create(); in testNativeWindowReadFromParcelErrptr() local
644 auto flag = OH_NativeWindow_ReadFromParcel(parcel, nullptr); in testNativeWindowReadFromParcelErrptr()

Completed in 23 milliseconds