Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 44) sorted by relevance

12

/test/xts/dcts/distributedhardware/distributedcameratest/
Dstream_customer.h57 OHOS::sptr<OHOS::SurfaceBuffer> buff = nullptr; in OnBufferAvailable() local
58 consumer_->AcquireBuffer(buff, flushFence, timestamp, damage); in OnBufferAvailable()
59 if (buff != nullptr) { in OnBufferAvailable()
60 void* addr = buff->GetVirAddr(); in OnBufferAvailable()
62 int32_t size = buff->GetSize(); in OnBufferAvailable()
65 consumer_->ReleaseBuffer(buff, -1); in OnBufferAvailable()
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/
Dstream_customer.cpp35 OHOS::sptr<OHOS::SurfaceBuffer> buff = nullptr; in CamFrame() local
36 consumer_->AcquireBuffer(buff, flushFence, timestamp, damage); in CamFrame()
37 if (buff != nullptr) { in CamFrame()
38 void* addr = buff->GetVirAddr(); in CamFrame()
39 int32_t size = buff->GetSize(); in CamFrame()
43 consumer_->ReleaseBuffer(buff, -1); in CamFrame()
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Dmalloc1ndk.cpp69 void *buff = (void *)memalign(align - 1, 128); in Memalign() local
70 if (!buff) { in Memalign()
73 size_t size = malloc_usable_size(buff); in Memalign()
77 free(buff); in Memalign()
78 buff = nullptr; in Memalign()
Dmallocndk.cpp78 void *buff = (void *)memalign(align, PARAM_8 * align); in Memalign() local
79 if (buff != nullptr) { in Memalign()
84 free(buff); in Memalign()
87 buff = nullptr; in Memalign()
Dpollndk.cpp89 char buff; in PollChk() local
90 while (read(fd[0], &buff, PARAM_1) > PARAM_0) in PollChk()
118 char buff; in PpollChk() local
119 while (read(fd[0], &buff, PARAM_1) > PARAM_0) in PpollChk()
Dresolvndk.cpp165 unsigned char buff[MAXDNAME_A] = {0}; in Dn_expand() local
166 unsigned char *bufPtr = buff; in Dn_expand()
170 const unsigned char *eomorig = buff + MAXDNAME_A; in Dn_expand()
171 backParam = dn_expand(buff, eomorig, buff, expandDn, MAXDNAME_A); in Dn_expand()
Dregexndk.cpp50 char buff[10] = "1"; in Regexec() local
57 int regExecValue = regexec(&r, buff, nMatch, pMatch, PARAM_0); in Regexec()
/test/xts/device_attest/services/core/attest/
Dattest_service_device.c180 char* buff = (char *)ATTEST_MEM_MALLOC(RAND_UUID_LEN + 1); in GetRandomUuid() local
181 if (buff == NULL) { in GetRandomUuid()
186 char* index = buff; in GetRandomUuid()
191 int32_t curLen = sprintf_s(index, (RAND_UUID_LEN + 1 - (index - buff)), "%04x", randomNum); in GetRandomUuid()
193 ATTEST_MEM_FREE(buff); in GetRandomUuid()
209 return buff; in GetRandomUuid()
249 static int32_t EncodePcid(char *buff, int32_t bufLen, char **output) in EncodePcid() argument
251 if (output == NULL || buff == NULL || bufLen == 0) { in EncodePcid()
262 int32_t ret = Sha256Value((const uint8_t *)buff, bufLen, pcidSha256, PCID_STRING_LEN + 1); in EncodePcid()
Dattest_service_auth.c425 char* buff = (char *)ATTEST_MEM_MALLOC(buffSize); in GetAuthStatus() local
426 if (buff == NULL) { in GetAuthStatus()
431 if (AttestReadAuthStatus(buff, fileSize) != 0) { in GetAuthStatus()
432 ATTEST_MEM_FREE(buff); in GetAuthStatus()
436 *authStatus = buff; in GetAuthStatus()
/test/xts/acts/kernel_lite/time_posix/src/
DTimeUtilsTest.cpp312 wchar_t buff[48] = {0}; variable
315 size_t len = wcsftime(buff, sizeof(buff) - 1, L"%A %c", localTime);
316 LOG("buff = %ls, len = %ld\n", buff, (long)len);
318 EXPECT_STREQ(buff, L"Thursday Thu Jan 1 05:14:40 1970") << "buff return error!";
322 len = wcsftime(buff, sizeof(buff) - 1, L"%A %c", localTime);
323 LOG("buff = %ls, len = %ld\n", buff, (long)len);
325 EXPECT_STREQ(buff, L"Thursday Thu Jan 1 05:14:40 1970") << "buff return error!";
/test/xts/device_attest_lite/services/core/attest/
Dattest_service_device.c178 char* buff = (char *)ATTEST_MEM_MALLOC(RAND_UUID_LEN + 1); in GetRandomUuid() local
179 if (buff == NULL) { in GetRandomUuid()
184 char* index = buff; in GetRandomUuid()
189 int32_t curLen = sprintf_s(index, (RAND_UUID_LEN + 1 - (index - buff)), "%04x", randomNum); in GetRandomUuid()
191 ATTEST_MEM_FREE(buff); in GetRandomUuid()
207 return buff; in GetRandomUuid()
Dattest_service_auth.c445 char* buff = (char *)ATTEST_MEM_MALLOC(buffSize); in GetAuthStatus() local
446 if (buff == NULL) { in GetAuthStatus()
451 if (AttestReadAuthStatus(buff, fileSize) != 0) { in GetAuthStatus()
452 ATTEST_MEM_FREE(buff); in GetAuthStatus()
456 *authStatus = buff; in GetAuthStatus()
/test/xts/acts/distributed_schedule_lite/system_ability_manager_posix/src/
DLiteIPCClientTest.cpp131 char *buff = (char*)"test xxxx"; variable
132 WriteString(&request, buff);
174 char *buff = (char*)"test xxxx"; variable
175 WriteString(&request, buff);
198 char *buff = (char*)"test xxxx"; variable
199 WriteString(&request, buff);
/test/xts/device_attest_lite/services/core/small/attest/
Dattest_service_pcid.c56 static int32_t EncodePcid(char *buff, int32_t bufLen, char **output) in EncodePcid() argument
58 if (output == NULL || buff == NULL || bufLen == 0) { in EncodePcid()
69 int32_t ret = Sha256Value((const uint8_t *)buff, bufLen, pcidSha256, PCID_STRING_LEN + 1); in EncodePcid()
/test/testfwk/developer_test/aw/cxx/distributed/
Ddistributed_agent.cpp126 char buff[MAX_BUFF_LEN] = {0}; in DoCmdServer() local
155 ret = memset_s(buff, sizeof(buff), 0, MAX_BUFF_LEN); in DoCmdServer()
160 int recvCmdLen = recv(clientSockFd_, buff, DST_COMMAND_HEAD_LEN, 0); in DoCmdServer()
169 auto pcline = reinterpret_cast<DistributedMsg *>(buff); in DoCmdServer()
/test/xts/acts/arkui/ace_ets_web_enhanced_stress/ace_ets_web_enhanced_stress_two/entry/src/main/ets/MainAbility/pages/
DWebViewControllerSetConnectionTimeoutTest.ets26 let buff = new Uint8Array(buf);
29 buff[i] = str.charCodeAt(i);
DWebViewControllerPostUrlTest.ets27 let buff = new Uint8Array(buf);
30 buff[i] = str.charCodeAt(i);
/test/xts/acts/arkui/ace_ets_web_error_code/entry/src/main/ets/MainAbility/pages/
DWebViewControllerPostUrlErrorCode.ets26 let buff = new Uint8Array(buf);
29 buff[i] = str.charCodeAt(i);
/test/xts/acts/commonlibrary/ets_utils/util2_lib_standard/src/main/js/test/
Dutil.test.js5337 var buff = 'czEz';
5339 var result = that.decodeSync(buff);
5356 var buff = 'QmFzZTY0IE5vZGUuanM=';
5358 var result = that.decodeSync(buff);
5375 var buff = 'QmFzZTY0IEVuY29kaW5nIGluIE5vZGUuanM=';
5378 var result = that.decodeSync(buff);
5395 var buff = 'qK6b/w==';
5397 var result = that.decodeSync(buff);
5414 var buff = 'QmFzZTY0';
5416 var result = that.decodeSync(buff);
[all …]
/test/xts/device_attest_lite/services/core/include/network/
Dattest_coap.h105 char* buff, uint32_t* len);
/test/xts/acts/arkui/ace_ets_web_enhanced/ace_ets_web_enhanced_three/entry/src/main/ets/MainAbility/pages/
DWebViewControllerSetConnectionTimeoutTest.ets27 let buff = new Uint8Array(buf);
30 buff[i] = str.charCodeAt(i);
DWebViewControllerPostUrlTest.ets26 let buff = new Uint8Array(buf);
29 buff[i] = str.charCodeAt(i);
/test/xts/acts/validator/acts_validator/src/main/ets/pages/Player/
DPlayAudioList.ets82 let buff = new ArrayBuffer(40960);
83 fs.readSync(opt.fd, buff);
84 let ColorBack = String.fromCharCode.apply(null, new Uint8Array(buff));
DPlayVideoList.ets82 let buff = new ArrayBuffer(40960);
83 fs.readSync(opt.fd, buff);
84 let ColorBack = String.fromCharCode.apply(null, new Uint8Array(buff));
DPlayNetWorkList.ets92 let buff = new ArrayBuffer(40960);
93 fs.readSync(opt.fd, buff);
94 let ColorBack = String.fromCharCode.apply(null, new Uint8Array(buff));

12