/ohos5.0/drivers/peripheral/user_auth/test/unittest/base_test/src/ |
H A D | adaptor_memory_test.cpp | 50 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 D | adaptor_memory_test.cpp | 52 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 D | c_array.c | 53 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 D | linked_list.c | 39 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 D | c_array.c | 53 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 D | idm_common_test.cpp | 43 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 D | pin_db_ops_v1_test.cpp | 72 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 D | pin_db_ops_test.cpp | 64 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 D | buffer.c | 60 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 D | adaptor_memory.c | 24 void *Malloc(const size_t size) in Malloc() function
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/base/ |
H A D | string_util.cpp | 33 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 D | string_util.h | 27 static char *Malloc(const uint32_t size);
|
/ohos5.0/drivers/peripheral/user_auth/hdi_service/adaptor/src/ |
H A D | buffer.c | 62 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 D | adaptor_memory.c | 22 void *Malloc(const size_t size) in Malloc() function
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/database/src/ |
H A D | pin_db_ops_v1.c | 35 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 D | pin_db_ops_v0.c | 44 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 D | dslm_memory_mock.cpp | 25 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 D | context_manager_test.cpp | 265 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 D | executor_message.c | 71 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 D | coauth.c | 59 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 D | adaptor_memory.h | 25 void *Malloc(const size_t size);
|
/ohos5.0/drivers/peripheral/pin_auth/hdi_service/adaptor/inc/ |
H A D | adaptor_memory.h | 25 void *Malloc(const size_t size);
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/mocks/inc/ |
H A D | mock_adaptor_memory.h | 31 DECLARE_METHOD(void *, Malloc, (const size_t size));
|
/ohos5.0/drivers/peripheral/user_auth/test/unittest/co_auth/ |
H A D | pool_test.cpp | 55 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 D | co_auth_test.cpp | 55 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));
|