Home
last modified time | relevance | path

Searched refs:temp (Results 1 - 25 of 106) sorted by relevance

12345

/drivers/peripheral/codec/test/demo/v2.0/src/
H A Dcodec_packet_reader.cpp59 char *temp = buf; in ReadOnePacket() local
60 temp += START_CODE_SIZE_FRAME; in ReadOnePacket()
63 ioIn.read(temp, 1); in ReadOnePacket()
64 if (*temp == START_CODE) { in ReadOnePacket()
66 if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SEC] == 0) && in ReadOnePacket()
67 (temp[START_CODE_OFFSET_THIRD] == 0)) { in ReadOnePacket()
69 temp -= (START_CODE_SIZE_FRAME - 1); in ReadOnePacket()
72 } else if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SE in ReadOnePacket()
95 char *temp = buf; ReadOnePacket() local
[all...]
/drivers/hdf_core/adapter/khdf/linux/platform/mipi_dsi/
H A Dmipi_tx_dev.c308 struct MipiCfg *temp = NULL; in MipiDsiDevSetCfg() local
322 temp = (struct MipiCfg *)OsalMemCalloc(size); in MipiDsiDevSetCfg()
323 if (temp == NULL) { in MipiDsiDevSetCfg()
333 if (CopyFromUser(temp, arg, size) != 0) { in MipiDsiDevSetCfg()
334 OsalMemFree(temp); in MipiDsiDevSetCfg()
335 temp = NULL; in MipiDsiDevSetCfg()
340 OsalMemFree(temp); in MipiDsiDevSetCfg()
341 temp = NULL; in MipiDsiDevSetCfg()
346 ret = MipiDsiCntlrSetCfg(cntlr, temp); in MipiDsiDevSetCfg()
348 OsalMemFree(temp); in MipiDsiDevSetCfg()
357 struct DsiCmdDesc *temp = NULL; MipiDsiDevSetCmd() local
411 MipiDsiDevCmdCopyFromUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyFromUser() argument
429 MipiDsiDevCmdCopyToUser(GetDsiCmdDescTag *arg, GetDsiCmdDescTag *temp, uint32_t *size) MipiDsiDevCmdCopyToUser() argument
450 GetDsiCmdDescTag *temp = NULL; MipiDsiDevGetCmd() local
[all...]
/test/xts/acts/distributeddatamgr_lite/kv_store_hal/src/
H A Dkvstore_func_test.c69 char temp[MAX_VALUE_LEN_TEST] = {0}; in SetKVFiles() local
88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in SetKVFiles()
95 TEST_ASSERT_EQUAL_STRING(valuetemp, temp); in SetKVFiles()
100 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in SetKVFiles()
116 char temp[MAX_VALUE_LEN_TEST] = {0}; in ReadKVFiles() local
129 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles()
140 TEST_ASSERT_EQUAL_STRING(valuetemp, temp); in ReadKVFiles()
146 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in ReadKVFiles()
437 char temp[MAX_VALUE_LEN_TEST] = {0}; variable
441 ret = UtilsGetValue(key, temp, MAX_VALUE_LEN_TES
461 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
485 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
514 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
528 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
565 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
594 char temp[MAX_VALUE_LEN_TEST] = {0}; global() variable
[all...]
/drivers/peripheral/user_auth/hdi_service/database/src/
H A Didm_database.c157 LinkedListNode *temp = user->enrolledInfoList->head; in GetEnrolledInfoAuthType() local
158 while (temp != NULL) { in GetEnrolledInfoAuthType()
159 EnrolledInfoHal *nodeInfo = temp->data; in GetEnrolledInfoAuthType()
164 temp = temp->next; in GetEnrolledInfoAuthType()
230 LinkedListNode *temp = g_userInfoList->head; in QueryUserInfo() local
231 while (temp != NULL) { in QueryUserInfo()
232 user = (UserInfo *)temp->data; in QueryUserInfo()
236 temp = temp in QueryUserInfo()
258 LinkedListNode *temp = enrolledInfoList->head; GetAllEnrolledInfoFromUser() local
292 LinkedListNode *temp = userInfoList->head; IsSecureUidDuplicate() local
353 LinkedListNode *temp = enrolledList->head; IsEnrolledIdDuplicate() local
392 LinkedListNode *temp = enrolledList->head; UpdateEnrolledId() local
603 LinkedListNode *temp = user->credentialInfoList->head; RemoveCachePin() local
658 LinkedListNode *temp = user->credentialInfoList->head; DeletePinCredentialInfo() local
749 LinkedListNode *temp = credentialList->head; QueryCredentialById() local
767 LinkedListNode *temp = credentialList->head; QueryCredentialByAuthType() local
829 LinkedListNode *temp = credentialList->head; TraverseCredentialList() local
873 LinkedListNode *temp = g_userInfoList->head; QueryCredentialLimit() local
909 LinkedListNode *temp = g_userInfoList->head; QueryCredentialUserId() local
[all...]
H A Didm_file_manager.c49 LinkedListNode *temp = enrolledList->head; in StreamWriteEnrolledInfo() local
51 if (temp == NULL) { in StreamWriteEnrolledInfo()
55 if (StreamWrite(parcel, temp->data, sizeof(EnrolledInfoHal)) != RESULT_SUCCESS) { in StreamWriteEnrolledInfo()
59 temp = temp->next; in StreamWriteEnrolledInfo()
76 LinkedListNode *temp = credentialList->head; in StreamWriteCredentialList() local
78 if (temp == NULL) { in StreamWriteCredentialList()
82 if (StreamWrite(parcel, temp->data, sizeof(CredentialInfoHal)) != RESULT_SUCCESS) { in StreamWriteCredentialList()
86 temp = temp in StreamWriteCredentialList()
130 LinkedListNode *temp = userInfoList->head; WriteUserInfo() local
[all...]
/test/xts/acts/distributeddatamgr_lite/kv_store_posix/src/
H A DKvStoreTest.cpp69 char temp[MAX_VALUE_LEN_TEST] = {0}; in TouchKVFiles() local
88 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in TouchKVFiles()
91 EXPECT_STREQ(valuetemp, temp); in TouchKVFiles()
96 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in TouchKVFiles()
110 char temp[MAX_VALUE_LEN_TEST] = {0}; in ReadKVFiles() local
123 ret = UtilsGetValue(keytemp, temp, MAX_VALUE_LEN_TEST); in ReadKVFiles()
130 EXPECT_STREQ(valuetemp, temp); in ReadKVFiles()
136 memset_s(temp, MAX_VALUE_LEN_TEST, 0, MAX_VALUE_LEN_TEST); in ReadKVFiles()
425 char temp[MAX_VALUE_LEN_TEST] = {0}; in HWTEST_F() local
429 ret = UtilsGetValue(key, temp, MAX_VALUE_LEN_TES in HWTEST_F()
445 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
464 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
487 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
515 char temp[MAX_VALUE_LEN_TEST] = {0}; HWTEST_F() local
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiocapture_fuzzer/
H A Daudiocapture_fuzzer.cpp62 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in AudioCaptureReqMmapBuffer() local
66 .memoryFd = temp, in AudioCaptureReqMmapBuffer()
67 .totalBufferFrames = temp, in AudioCaptureReqMmapBuffer()
68 .transferFrameSize = temp, in AudioCaptureReqMmapBuffer()
69 .isShareable = temp, in AudioCaptureReqMmapBuffer()
70 .offset = temp, in AudioCaptureReqMmapBuffer()
73 capture->ReqMmapBuffer(capture, temp, &desc); in AudioCaptureReqMmapBuffer()
114 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in CaptureFucSwitch() local
115 capture->AudioDevDump(capture, temp, temp); in CaptureFucSwitch()
[all...]
/drivers/peripheral/audio/test/fuzztest/audio_hdi_fuzzer/audiorender_fuzzer/
H A Daudiorender_fuzzer.cpp63 int32_t temp = *(reinterpret_cast<int32_t *>(data)); in AudioRenderReqMmapBuffer() local
67 .memoryFd = temp, in AudioRenderReqMmapBuffer()
68 .totalBufferFrames = temp, in AudioRenderReqMmapBuffer()
69 .transferFrameSize = temp, in AudioRenderReqMmapBuffer()
70 .isShareable = temp, in AudioRenderReqMmapBuffer()
71 .offset = temp, in AudioRenderReqMmapBuffer()
74 render->ReqMmapBuffer(render, temp, &desc); in AudioRenderReqMmapBuffer()
116 int32_t temp = *(reinterpret_cast<uint32_t *>(data)); in RenderFucSwitch() local
117 render->AudioDevDump(render, temp, temp); in RenderFucSwitch()
[all...]
/drivers/peripheral/user_auth/hdi_service/user_auth/src/
H A Dauth_level.c99 LinkedListNode *temp = executorList->head; in GetExecutorAslAndAcl() local
100 while (temp != NULL) { in GetExecutorAslAndAcl()
101 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetExecutorAslAndAcl()
114 temp = temp->next; in GetExecutorAslAndAcl()
136 LinkedListNode *temp = creds->head; in GetCredMaxAcl() local
137 while (temp != NULL) { in GetCredMaxAcl()
138 if (temp->data == NULL) { in GetCredMaxAcl()
143 CredentialInfoHal *credInfo = (CredentialInfoHal *)temp->data; in GetCredMaxAcl()
145 temp in GetCredMaxAcl()
[all...]
H A Dcontext_manager.c369 LinkedListNode *temp = credList->head; in QueryAuthTempletaInfo() local
370 if (temp == NULL || temp->data == NULL) { in QueryAuthTempletaInfo()
374 CredentialInfoHal *credentialHal = (CredentialInfoHal *)temp->data; in QueryAuthTempletaInfo()
378 while (temp != NULL) { in QueryAuthTempletaInfo()
379 if (temp->data == NULL) { in QueryAuthTempletaInfo()
383 credentialHal = (CredentialInfoHal *)temp->data; in QueryAuthTempletaInfo()
388 temp = temp->next; in QueryAuthTempletaInfo()
492 LinkedListNode *temp in CopySchedules() local
[all...]
H A Duser_auth_funcs.c503 LinkedListNode *temp = executorList->head; in GetExecutorInfoLinkedList() local
504 while (temp != NULL) { in GetExecutorInfoLinkedList()
505 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetExecutorInfoLinkedList()
522 temp = temp->next; in GetExecutorInfoLinkedList()
531 LinkedListNode *temp = executorList->head; in GetSignExecutorInfoFuncInner() local
533 while (temp != NULL) { in GetSignExecutorInfoFuncInner()
534 ExecutorInfoHal *executorInfo = (ExecutorInfoHal *)temp->data; in GetSignExecutorInfoFuncInner()
549 temp = temp in GetSignExecutorInfoFuncInner()
[all...]
/test/xts/device_attest/services/devattest_ability/test/tdd/gtest/src/
H A Dattest_tdd_data_transfer.c57 uint8_t *temp = (uint8_t *)malloc(mollocLen); in AttestSeriaToBinary() local
58 if (temp == NULL) { in AttestSeriaToBinary()
61 memset_s(temp, mollocLen, 0, mollocLen); in AttestSeriaToBinary()
66 unsigned char *indexTemp = (unsigned char*)temp; in AttestSeriaToBinary()
83 free(temp); in AttestSeriaToBinary()
87 if (memcpy_s(*buf, len, temp, len) != 0) { in AttestSeriaToBinary()
88 free(temp); in AttestSeriaToBinary()
91 free(temp); in AttestSeriaToBinary()
/test/xts/device_attest_lite/test/tdd/gtest/src/
H A Dattest_tdd_data_transfer.c58 uint8_t *temp = (uint8_t *)malloc(mollocLen); in AttestSeriaToBinary() local
59 if (temp == NULL) { in AttestSeriaToBinary()
62 memset_s(temp, mollocLen, 0, mollocLen); in AttestSeriaToBinary()
67 unsigned char *indexTemp = (unsigned char*)temp; in AttestSeriaToBinary()
84 free(temp); in AttestSeriaToBinary()
88 if (memcpy_s(*buf, len, temp, len) != 0) { in AttestSeriaToBinary()
89 free(temp); in AttestSeriaToBinary()
92 free(temp); in AttestSeriaToBinary()
/drivers/peripheral/pin_auth/hdi_service/database/src/
H A Dpin_db_ops_v1.c80 uint8_t *temp = data; in GetPinIndexV1() local
83 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->pinIndex[i].pinInfo)), in GetPinIndexV1()
105 uint8_t *temp = data; in UnpackPinDbV1() local
107 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->dbVersion)), in UnpackPinDbV1()
116 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV1->pinIndexLen)), in UnpackPinDbV1()
129 if (GetPinIndexV1(temp, tempLen, pinDbV1) != RESULT_SUCCESS) { in UnpackPinDbV1()
180 uint8_t *temp = data; in WritePinInfo() local
184 &temp, &tempLen) != RESULT_SUCCESS) { in WritePinInfo()
238 uint8_t *temp = data; in WritePinDbV1() local
241 &temp, in WritePinDbV1()
[all...]
H A Dpin_db_ops_v0.c49 uint8_t *temp = data; in GetPinIndexV0() local
52 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndex[i].pinInfo)), in GetPinIndexV0()
74 uint8_t *temp = data; in UnpackPinDbV0() local
76 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->version)), in UnpackPinDbV0()
85 if (GetDataFromBuf(&temp, &tempLen, (uint8_t *)(&(pinDbV0->pinIndexLen)), in UnpackPinDbV0()
99 if (GetPinIndexV0(temp, tempLen, pinDbV0) != RESULT_SUCCESS) { in UnpackPinDbV0()
/drivers/liteos/hievent/src/
H A Dhiview_hievent.c310 char *temp = value; in HiviewHieventMakeRegular() local
314 while (*temp != '\0') { in HiviewHieventMakeRegular()
315 if (*temp == ':') { in HiviewHieventMakeRegular()
317 } else if (*temp == ';') { in HiviewHieventMakeRegular()
319 } else if ((*temp == '\n') || (*temp == '\r')) { in HiviewHieventMakeRegular()
320 *temp = ' '; in HiviewHieventMakeRegular()
322 temp++; in HiviewHieventMakeRegular()
338 temp = value; in HiviewHieventMakeRegular()
339 while (*temp ! in HiviewHieventMakeRegular()
[all...]
/drivers/hdf_core/framework/test/unittest/platform/common/
H A Dpwm_driver_test.c44 uint32_t temp; in PwmTestReadConfig() local
75 ret = drsOps->GetUint32(node, "polarity", &(temp), 0); in PwmTestReadConfig()
80 config->cfg.polarity = temp; in PwmTestReadConfig()
82 ret = drsOps->GetUint32(node, "status", &(temp), 0); in PwmTestReadConfig()
87 config->cfg.status = temp; in PwmTestReadConfig()
H A Dwatchdog_driver_test.c45 uint32_t temp; in WatchdogTestReadConfig() local
53 ret = drsOps->GetUint32(node, "id", &temp, 0); in WatchdogTestReadConfig()
58 config->id = temp; in WatchdogTestReadConfig()
/test/xts/device_attest/services/core/utils/
H A Dattest_utils_list.c89 ListNode* temp = head; in ReleaseList() local
91 temp = head; in ReleaseList()
93 ATTEST_MEM_FREE(temp->data); in ReleaseList()
94 ATTEST_MEM_FREE(temp); in ReleaseList()
/test/xts/device_attest_lite/services/core/utils/
H A Dattest_utils_list.c89 ListNode* temp = head; in ReleaseList() local
91 temp = head; in ReleaseList()
93 ATTEST_MEM_FREE(temp->data); in ReleaseList()
94 ATTEST_MEM_FREE(temp); in ReleaseList()
/test/xts/acts/security/huks/huks_napi_BasicTest/src/
H A Dhuks_signverify_rsa_test_common.cpp99 uint8_t temp[] = "out"; in HksRsaSignVerifyTestNormalCase() local
100 struct OH_Huks_Blob verifyOut = {sizeof(temp), temp}; in HksRsaSignVerifyTestNormalCase()
162 uint8_t temp[] = "out"; in HksRSASignVerifyTestAbnormalCase() local
163 struct OH_Huks_Blob verifyOut = {sizeof(temp), temp}; in HksRSASignVerifyTestAbnormalCase()
/drivers/hdf_core/adapter/khdf/uniproton/osal/src/
H A Dosal_mem.c72 int temp = alignment; in OsalMemLog2() local
78 while (temp > 1) { in OsalMemLog2()
79 temp >>= 1; in OsalMemLog2()
/drivers/peripheral/user_auth/hdi_service/service/
H A Duser_auth_interface_service.cpp230 LinkedListNode *temp = credList->head; in GetCapabilityLevel() local
231 while (temp != nullptr) { in GetCapabilityLevel()
232 if (temp->data == nullptr) { in GetCapabilityLevel()
237 auto credentialHal = static_cast<CredentialInfoHal *>(temp->data); in GetCapabilityLevel()
241 temp = temp->next; in GetCapabilityLevel()
530 HdiScheduleInfo temp = {}; in BeginAuthentication() local
532 if (!CopyAuthScheduleInfo(paramHal, coAuthSchedule, &temp)) { in BeginAuthentication()
538 infos.push_back(temp); in BeginAuthentication()
570 LinkedListNode *temp in CreateExecutorCommand() local
1077 LinkedListNode *temp = credList->head; GetCredential() local
1168 LinkedListNode *temp = credList->head; EnforceDeleteUser() local
1245 LinkedListNode *temp = credList->head; ObtainReconciliationData() local
[all...]
/drivers/peripheral/codec/test/demo/idl/src/
H A Dcodec_hdi_decode.cpp99 char *temp = buf; in ReadOnePacket() local
100 temp += START_CODE_SIZE_FRAME; in ReadOnePacket()
103 (void)fread(temp, 1, 1, fp); in ReadOnePacket()
104 if (*temp != START_CODE) { in ReadOnePacket()
105 temp++; in ReadOnePacket()
109 if ((temp[START_CODE_OFFSET_ONE] == 0) && (temp[START_CODE_OFFSET_SEC] == 0) && in ReadOnePacket()
110 (temp[START_CODE_OFFSET_THIRD] == 0)) { in ReadOnePacket()
112 temp -= (START_CODE_SIZE_FRAME - 1); in ReadOnePacket()
116 if ((temp[START_CODE_OFFSET_ON in ReadOnePacket()
[all...]
/drivers/hdf_core/framework/support/platform/src/rtc/
H A Drtc_if_u.c64 struct RtcTime *temp = NULL; in RtcReadTime() local
90 if (!HdfSbufReadBuffer(reply, (const void **)&temp, &len) || temp == NULL) { in RtcReadTime()
102 if (memcpy_s(time, sizeof(*time), temp, len) != EOK) { in RtcReadTime()
165 struct RtcTime *temp = NULL; in RtcReadAlarm() local
205 if (!HdfSbufReadBuffer(reply, (const void **)&temp, &len) || temp == NULL) { in RtcReadAlarm()
217 if (memcpy_s(time, sizeof(*time), temp, len) != EOK) { in RtcReadAlarm()

Completed in 14 milliseconds

12345