Home
last modified time | relevance | path

Searched refs:parcel (Results 1 – 21 of 21) sorted by relevance

/test/xts/hats/useriam/userauth/src/
Duser_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
46 static void FillAuthTypeVector(Parcel &parcel, vector<AuthType> &vector) in FillAuthTypeVector() argument
48 uint32_t len = parcel.ReadInt32() % MAX_FUZZ_STRUCT_LEN; in FillAuthTypeVector()
51 vector[i] = static_cast<AuthType>(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()
61 static void FillExecutorRegisterInfo(Parcel &parcel, ExecutorRegisterInfo &executorRegisterInfo) in FillExecutorRegisterInfo() argument
63 executorRegisterInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillExecutorRegisterInfo()
64 executorRegisterInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillExecutorRegisterInfo()
[all …]
Duser_auth_type_test.cpp28 static OHOS::Parcel parcel; variable
/test/xts/device_attest/services/devattest_ability/src/
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(softwareResultDet… 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.ReadInt32(ptr->softwareResult_)) { in Unmarshalling()
44 if (!parcel.ReadInt32(setCount) || setCount != SOFTWARE_RESULT_DETAIL_SIZE) { in Unmarshalling()
49 parcel.ReadInt32Vector(&ptr->softwareResultDetail_); in Unmarshalling()
51 if (!parcel.ReadInt32(ptr->ticketLength_) || !parcel.ReadString(ptr->ticket_)) { in Unmarshalling()
/test/xts/hats/useriam/fingerprintauth/src/
Dfingerprint_auth_hdi.cpp33 static OHOS::Parcel parcel; variable
89 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
91 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
92 executorInfo.executorType = parcel.ReadUint32(); in FillTestExecutorInfo()
93 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
94 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
95 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
96 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
97 FillTestUint8Vector(parcel, executorInfo.extraInfo); in FillTestExecutorInfo()
101 static void FillTestTemplateInfo(Parcel &parcel, TemplateInfo &templateInfo) in FillTestTemplateInfo() argument
[all …]
Dfingerprint_type_test.cpp30 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/faceauth/src/
Dface_auth_hdi.cpp34 static OHOS::Parcel parcel; variable
90 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
92 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
93 executorInfo.executorType = parcel.ReadUint32(); in FillTestExecutorInfo()
94 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
95 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
96 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
97 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
98 FillTestUint8Vector(parcel, executorInfo.extraInfo); in FillTestExecutorInfo()
102 static void FillTestTemplateInfo(Parcel &parcel, TemplateInfo &templateInfo) in FillTestTemplateInfo() argument
[all …]
Dface_auth_type_test.cpp29 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/pinauth/src/
Dpin_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
82 static void FillTestExecutorInfo(Parcel &parcel, ExecutorInfo &executorInfo) in FillTestExecutorInfo() argument
84 executorInfo.sensorId = parcel.ReadUint16(); in FillTestExecutorInfo()
85 executorInfo.executorType = parcel.ReadUint32(); in FillTestExecutorInfo()
86 executorInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillTestExecutorInfo()
87 executorInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillTestExecutorInfo()
88 executorInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillTestExecutorInfo()
89 FillTestUint8Vector(parcel, executorInfo.publicKey); in FillTestExecutorInfo()
90 FillTestUint8Vector(parcel, executorInfo.extraInfo); in FillTestExecutorInfo()
93 static void FillTestTemplateInfo(Parcel &parcel, TemplateInfo &templateInfo) in FillTestTemplateInfo() argument
[all …]
Dpin_auth_hdi_two.cpp28 static OHOS::Parcel parcel; variable
82 static void FillTestIExecutorCallback(Parcel &parcel, sptr<OHOS::HDI::PinAuth::IExecutorCallback> &… in FillTestIExecutorCallback() argument
84 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
88 callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), in FillTestIExecutorCallback()
89 parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
107 uint64_t scheduleId = parcel.ReadUint64();
108 uint64_t templateId = parcel.ReadUint64();
110 FillTestUint8Vector(parcel, extraInfo);
112 FillTestIExecutorCallback(parcel, callbackObj);
Dpin_auth_type_test.cpp29 static OHOS::Parcel parcel; variable
/test/xts/hats/useriam/common/src/
Diam_hat_test.cpp34 void FillTestBuffer(Parcel &parcel, void *p, uint32_t len) in FillTestBuffer() argument
40 auto buffer = parcel.ReadBuffer(len); in FillTestBuffer()
55 void FillTestUint8Vector(Parcel &parcel, std::vector<uint8_t> &data) in FillTestUint8Vector() argument
57 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint8Vector()
60 FillTestBuffer(parcel, static_cast<void *>(&data[0]), memLen); in FillTestUint8Vector()
64 void FillTestInt8Vector(Parcel &parcel, std::vector<int8_t> &data) in FillTestInt8Vector() argument
66 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestInt8Vector()
69 FillTestBuffer(parcel, static_cast<void *>(&data[0]), memLen); in FillTestInt8Vector()
73 void FillTestUint32Vector(Parcel &parcel, std::vector<uint32_t> &data) in FillTestUint32Vector() argument
75 uint32_t len = parcel.ReadUint32() % MAX_DATA_LEN; in FillTestUint32Vector()
[all …]
/test/xts/hats/useriam/pinauth_additional/src/
Dpin_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
107 static void FillTestIExecutorCallback(Parcel &parcel, sptr<OHOS::HDI::PinAuth::IExecutorCallback> &… in FillTestIExecutorCallback() argument
109 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
114 …new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32(), parcel.ReadInt32… in FillTestIExecutorCallback()
120 static void FillTestIExecutorCallbackV1_0(Parcel &parcel, sptr<IExecutorCallbackV1_0> &callbackObj) in FillTestIExecutorCallbackV1_0() argument
122 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallbackV1_0()
126 …callbackObj = new (std::nothrow) DummyIExecutorCallbackV1_0(parcel.ReadInt32(), parcel.ReadInt32()… in FillTestIExecutorCallbackV1_0()
132 void FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<GetPropertyType> &types) in FillTestGetPropertyTypeVector() argument
135 FillTestUint32Vector(parcel, propertyTypeUint32); in FillTestGetPropertyTypeVector()
228 FillTestUint64Vector(parcel, templateIdList);
[all …]
/test/xts/hats/useriam/fingerprintauth_additional/src/
Dfingerprint_auth_hdi.cpp33 static OHOS::Parcel parcel; variable
83 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
85 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
89 … callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
97 void FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<GetPropertyType> &types) in FillTestGetPropertyTypeVector() argument
100 FillTestUint32Vector(parcel, propertyTypeUint32); in FillTestGetPropertyTypeVector()
108 void FillTestProperty(Parcel &parcel, Property &property) in FillTestProperty() argument
110 property.authSubType = parcel.ReadUint64(); in FillTestProperty()
111 property.lockoutDuration = parcel.ReadInt32(); in FillTestProperty()
112 property.remainAttempts = parcel.ReadInt32(); in FillTestProperty()
[all …]
/test/xts/hats/useriam/faceauth_additional/src/
Dface_auth_hdi.cpp34 static OHOS::Parcel parcel; variable
84 static void FillTestIExecutorCallback(Parcel &parcel, sptr<IExecutorCallback> &callbackObj) in FillTestIExecutorCallback() argument
86 bool isNull = parcel.ReadBool(); in FillTestIExecutorCallback()
90 … callbackObj = new (std::nothrow) DummyIExecutorCallback(parcel.ReadInt32(), parcel.ReadInt32()); in FillTestIExecutorCallback()
98 void FillTestGetPropertyTypeVector(Parcel &parcel, std::vector<GetPropertyType> &types) in FillTestGetPropertyTypeVector() argument
101 FillTestUint32Vector(parcel, propertyTypeUint32); in FillTestGetPropertyTypeVector()
109 void FillTestProperty(Parcel &parcel, Property &property) in FillTestProperty() argument
111 property.authSubType = parcel.ReadUint64(); in FillTestProperty()
112 property.lockoutDuration = parcel.ReadInt32(); in FillTestProperty()
113 property.remainAttempts = parcel.ReadInt32(); in FillTestProperty()
[all …]
/test/xts/hats/useriam/common/include/
Diam_hat_test.h27 void FillTestUint8Vector(Parcel &parcel, std::vector<uint8_t> &data);
28 void FillTestInt8Vector(Parcel &parcel, std::vector<int8_t> &data);
29 void FillTestUint32Vector(Parcel &parcel, std::vector<uint32_t> &data);
30 void FillTestUint64Vector(Parcel &parcel, std::vector<uint64_t> &data);
31 void FillTestString(Parcel &parcel, std::string &str);
/test/xts/hats/useriam/userauth_additional/src/
Duser_auth_hdi.cpp28 static OHOS::Parcel parcel; variable
52 static void FillEnrollParam(Parcel &parcel, EnrollParam &enrollParam) in FillEnrollParam() argument
54 enrollParam.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillEnrollParam()
55 enrollParam.executorSensorHint = parcel.ReadUint32(); in FillEnrollParam()
58 static void FillExecutorRegisterInfo(Parcel &parcel, ExecutorRegisterInfo &executorRegisterInfo) in FillExecutorRegisterInfo() argument
60 executorRegisterInfo.authType = static_cast<AuthType>(parcel.ReadInt32()); in FillExecutorRegisterInfo()
61 executorRegisterInfo.executorRole = static_cast<ExecutorRole>(parcel.ReadInt32()); in FillExecutorRegisterInfo()
62 executorRegisterInfo.executorSensorHint = parcel.ReadUint32(); in FillExecutorRegisterInfo()
63 executorRegisterInfo.executorMatcher = parcel.ReadUint32(); in FillExecutorRegisterInfo()
64 executorRegisterInfo.esl = static_cast<ExecutorSecureLevel>(parcel.ReadInt32()); in FillExecutorRegisterInfo()
[all …]
/test/xts/device_attest/interfaces/innerkits/native_cpp/include/
Dattest_result_info.h42 virtual bool Marshalling(Parcel &parcel) const override;
43 static sptr<AttestResultInfo> Unmarshalling(Parcel &parcel);
/test/xts/dcts/communication/dsoftbus/rpc/src/main/js/test/
DRpcJsunit.test.js3154 var parcel = new rpc.MessageSequence();
3157 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3158 parcel.writeIntArray([1, 2, 3, 4, 5]);
3159 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3161 …await gIRemoteObject.sendMessageRequest(CODE_WRITE_INTARRAY, parcel, reply, option).then((result) …
3171 parcel.reclaim();
3189 var parcel = new rpc.MessageSequence();
3193 parcel.writeInt(arr.length);
3194 parcel.writeRawData(arr, arr.length);
3195 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
[all …]
/test/xts/acts/communication/dsoftbus/rpc/src/main/js/test/
DRpcClientJsunit.test.js3579 var parcel = new rpc.MessageSequence();
3582 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3584 parcel.writeIntArray(arr);
3585 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
3587 …await gIRemoteObject.sendMessageRequest(CODE_WRITE_INTARRAY, parcel, reply, option).then((result) …
3602 parcel.reclaim();
3620 var parcel = new rpc.MessageSequence();
3624 parcel.writeInt(arr.length);
3625 parcel.writeRawData(arr, arr.length);
3626 expect(parcel.getRawDataCapacity()).assertEqual(128 * M);
[all …]
/test/xts/device_attest/interfaces/innerkits/native_cpp/test/unittest/src/
Ddevattest_client_proxy_test.cpp133 bool Marshalling(Parcel &parcel) const override in Marshalling()
/test/xts/hats/hdf/hdf_lite/manager/common/
Dhdf_sbuf_test.cpp1033 OHOS::MessageParcel *parcel = nullptr; variable
1034 ret = SbufToParcel(sBuf, &parcel);
1036 HdfSBuf *sBufPar = ParcelToSbuf(parcel);