Home
last modified time | relevance | path

Searched refs:Malloc (Results 1 – 25 of 68) sorted by relevance

123

/ohos5.0/drivers/peripheral/user_auth/test/unittest/base_test/src/
H A Dadaptor_memory_test.cpp50 uint8_t *data1 = (uint8_t *)Malloc(0);
53 uint8_t *data2 = (uint8_t *)Malloc(maxSize);
56 uint8_t *data3 = (uint8_t *)Malloc(1);
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/adaptor/src/
H A Dadaptor_memory_test.cpp52 uint8_t *data1 = (uint8_t *)Malloc(0);
55 uint8_t *data2 = (uint8_t *)Malloc(maxSize);
58 uint8_t *data3 = (uint8_t *)Malloc(1);
/ohos5.0/drivers/peripheral/user_auth/hdi_service/utils/src/
H A Dc_array.c53 Uint8Array *array = Malloc(sizeof(Uint8Array)); in CreateUint8ArrayBySize()
59 array->data = Malloc(size); in CreateUint8ArrayBySize()
100 Uint64Array *array = Malloc(sizeof(Uint64Array)); in CreateUint64ArrayByData()
107 array->data = Malloc(len * sizeof(uint64_t)); in CreateUint64ArrayByData()
H A Dlinked_list.c39 LinkedListNode *node = Malloc(sizeof(LinkedListNode)); in InsertNode()
124 LinkedListIterator *iterator = (LinkedListIterator *)Malloc(sizeof(LinkedListIterator)); in CreateIterator()
150 LinkedList *list = Malloc(sizeof(LinkedList)); in CreateLinkedList()
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/common/src/
H A Dc_array.c53 Uint8Array *array = Malloc(sizeof(Uint8Array)); in CreateUint8ArrayBySize()
59 array->data = Malloc(size); in CreateUint8ArrayBySize()
100 Uint64Array *array = Malloc(sizeof(Uint64Array)); in CreateUint64ArrayByData()
107 array->data = Malloc(len * sizeof(uint64_t)); in CreateUint64ArrayByData()
/ohos5.0/drivers/peripheral/user_auth/test/unittest/database/
H A Didm_common_test.cpp43 UserInfo *node = (UserInfo *)Malloc(sizeof(UserInfo));
53 CredentialInfoHal *credentialInfoHal = (CredentialInfoHal *)Malloc(sizeof(CredentialInfoHal));
63 EnrolledInfoHal *enrolledInfoHal = (EnrolledInfoHal *)Malloc(sizeof(EnrolledInfoHal));
/ohos5.0/drivers/peripheral/pin_auth/test/unittest/pin_auth/database/src/
H A Dpin_db_ops_v1_test.cpp72 PinDbV0 *pinDbV0 = (PinDbV0 *)Malloc(sizeof(PinDbV0));
77 pinDbV0->pinIndex = (PinIndexV0 *)Malloc(sizeof(PinIndexV0) * pinDbV0->pinIndexLen);
109 PinDbV1 *pinDbV1 = (PinDbV1 *)Malloc(sizeof(PinDbV1));
114 pinDbV1->pinIndex = (PinIndexV1 *)Malloc(sizeof(PinIndexV1) * pinDbV1->pinIndexLen);
H A Dpin_db_ops_test.cpp64 PinDbV1 *pinDbV1 = (PinDbV1 *)Malloc(sizeof(PinDbV1));
69 pinDbV1->pinIndex = (PinIndexV1 *)Malloc(sizeof(PinIndexV1) * pinDbV1->pinIndexLen);
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/src/
H A Dbuffer.c60 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferBySize()
66 buffer->buf = (uint8_t *)Malloc(size); in CreateBufferBySize()
91 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferByData()
97 buffer->buf = (uint8_t *)Malloc(dataSize); in CreateBufferByData()
H A Dadaptor_memory.c24 void *Malloc(const size_t size) in Malloc() function
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/
H A Dstring_util.cpp33 char *buffer = StringUtil::Malloc(size); in Copy()
43 char *StringUtil::Malloc(const uint32_t size) in Malloc() function in OHOS::ACELite::StringUtil
73 char *buffer = StringUtil::Malloc(diffSize); in Slice()
H A Dstring_util.h27 static char *Malloc(const uint32_t size);
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/
H A Dbuffer.c62 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferBySize()
68 buffer->buf = (uint8_t *)Malloc(size); in CreateBufferBySize()
93 Buffer *buffer = (Buffer *)Malloc(sizeof(Buffer)); in CreateBufferByData()
99 buffer->buf = (uint8_t *)Malloc(dataSize); in CreateBufferByData()
H A Dadaptor_memory.c22 void *Malloc(const size_t size) in Malloc() function
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_v1.c35 PinDbV1 *pinDbV1 = Malloc(sizeof(PinDbV1)); in UpdatePinDbFrom0To1()
50 pinDbV1->pinIndex = Malloc(sizeof(PinIndexV1) * pinDbV1->pinIndexLen); in UpdatePinDbFrom0To1()
73 pinDbV1->pinIndex = (PinIndexV1 *)Malloc(sizeof(PinIndexV1) * pinDbV1->pinIndexLen); in GetPinIndexV1()
139 PinDbV1 *pinDbV1 = Malloc(sizeof(PinDbV1)); in GetPinDbV1()
231 uint8_t *data = Malloc(dataLen); in WritePinDbV1()
H A Dpin_db_ops_v0.c44 pinDbV0->pinIndex = (PinIndexV0 *)Malloc(sizeof(PinIndexV0) * pinDbV0->pinIndexLen); in GetPinIndexV0()
113 PinDbV0 *pinDbV0 = Malloc(sizeof(PinDbV0)); in GetPinDbV0()
/ohos5.0/base/security/device_security_level/test/dslm_unit_test/
H A Ddslm_memory_mock.cpp25 void *MockMalloc::Malloc(size_t size) in Malloc() function in OHOS::Security::DslmUnitTest::MockMalloc
42 IMPLEMENT_FUNCTION_WITH_INVOKER(MockMalloc, void *, UtilsMalloc, (size_t size), MockMalloc::Malloc);
/ohos5.0/drivers/peripheral/user_auth/test/unittest/user_auth_test/
H A Dcontext_manager_test.cpp265 context = (UserAuthContext *)Malloc(sizeof(UserAuthContext));
300 UserAuthContext *context = static_cast<UserAuthContext *>(Malloc(sizeof(UserAuthContext)));
304 CoAuthSchedule *schedule = static_cast<CoAuthSchedule *>(Malloc(sizeof(CoAuthSchedule)));
320 UserAuthContext *context = static_cast<UserAuthContext *>(Malloc(sizeof(UserAuthContext)));
324 CoAuthSchedule *schedule = static_cast<CoAuthSchedule *>(Malloc(sizeof(CoAuthSchedule)));
348 UserAuthContext *context = static_cast<UserAuthContext *>(Malloc(sizeof(UserAuthContext)));
352 CoAuthSchedule *schedule = static_cast<CoAuthSchedule *>(Malloc(sizeof(CoAuthSchedule)));
/ohos5.0/drivers/peripheral/user_auth/hdi_service/coauth/src/
H A Dexecutor_message.c71 Uint8Array dataTlv = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in GetAttributeDataAndSignTlv()
189 Uint8Array signTlv = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in VerifyDataTlvSignature()
233 Uint8Array dataTlv = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in CreateAttributeFromDataAndSignTlv()
297 Uint8Array array = { Malloc(ROOT_SECRET_LEN), ROOT_SECRET_LEN }; in GetRootSecretFromAttribute()
379 ExecutorResultInfo *result = Malloc(sizeof(ExecutorResultInfo)); in CreateExecutorResultInfo()
446 Uint8Array retInfo = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in CreateExecutorMsg()
519 templateIds->data = (uint64_t *)Malloc(sizeof(uint64_t) * credListNum); in GetExecutorTemplateList()
556 ExecutorMsg *msg = (ExecutorMsg *)Malloc(sizeof(ExecutorMsg)); in AssemblyMessage()
710 Uint8Array authAttrs = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in GetRemoteExecutorInfo()
826 Uint8Array retInfo = { Malloc(MAX_EXECUTOR_MSG_LEN), MAX_EXECUTOR_MSG_LEN }; in CreateExecutorCollectMsg()
[all …]
H A Dcoauth.c59 CoAuthSchedule *schedule = (CoAuthSchedule *)Malloc(sizeof(CoAuthSchedule)); in CopyCoAuthSchedule()
326 CoAuthSchedule *coAuthSchedule = Malloc(sizeof(CoAuthSchedule)); in GenerateSchedule()
388 out->data = (uint64_t *)Malloc(sizeof(uint64_t) * out->len); in CopyTemplateArrays()
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/inc/
H A Dadaptor_memory.h25 void *Malloc(const size_t size);
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/
H A Dadaptor_memory.h25 void *Malloc(const size_t size);
/ohos5.0/drivers/peripheral/user_auth/test/unittest/mocks/inc/
H A Dmock_adaptor_memory.h31 DECLARE_METHOD(void *, Malloc, (const size_t size));
/ohos5.0/drivers/peripheral/user_auth/test/unittest/co_auth/
H A Dpool_test.cpp55 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)Malloc(sizeof(ExecutorInfoHal));
113 auto *info1 = static_cast<ExecutorInfoHal *>(Malloc(sizeof(ExecutorInfoHal)));
118 auto *info2 = static_cast<ExecutorInfoHal *>(Malloc(sizeof(ExecutorInfoHal)));
H A Dco_auth_test.cpp55 CoAuthSchedule *schedule = (CoAuthSchedule *)Malloc(sizeof(CoAuthSchedule));
59 schedule->templateIds.data = (uint64_t *)Malloc(sizeof(uint64_t));
78 CoAuthSchedule *schedule = (CoAuthSchedule *)Malloc(sizeof(CoAuthSchedule));
82 schedule->templateIds.data = (uint64_t *)Malloc(sizeof(uint64_t));

123