/drivers/peripheral/distributed_camera/hdi_service/test/sample/ |
H A D | stream_customer.h | 57 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/dcts/distributedhardware/distributedcameratest/ |
H A D | stream_customer.h | 57 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()
|
/third_party/FatFs/documents/res/ |
H A D | app2.c | 58 TCHAR buff[256];
in main() local 65 _tcscpy(buff, _T("5:dir"));
in main() 68 fr = delete_node(buff, sizeof buff / sizeof buff[0], &fno);
in main() 75 _tprintf(_T("The directory and the contents have successfully been deleted.\n"), buff);
in main()
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | pipe.rs | 11 let mut buff = vec![]; in test_splice_cursor() variables 23 dest.read_to_end(&mut buff).unwrap(); in test_splice_cursor() 24 assert_eq!(buff, b"world"); in test_splice_cursor() 37 let mut buff = vec![]; in test_splice_offset() variables 62 dest.read_to_end(&mut buff).unwrap(); in test_splice_offset() 63 assert_eq!(buff, b"hello"); in test_splice_offset() 76 let mut buff = [0; 5]; in test_splice_pipe2pipe() variables 80 read(&read_p2, &mut buff).unwrap(); in test_splice_pipe2pipe() 82 assert_eq!(&buff, b"hello"); in test_splice_pipe2pipe()
|
/third_party/musl/libc-test/src/functionalext/supplement/process/ |
H A D | execvp.c | 51 char *buff = getenv("ls"); in execvp_0200() local 54 setenv("ls", buff, 1); in execvp_0200() 83 char buff[300]; in execvp_0400() local 85 buff[i] = 'a'; in execvp_0400() 88 int ret = execvp(buff, argv); in execvp_0400()
|
H A D | execvpe.c | 80 char buff[] = "\0"; in execvpe_0300() local 82 int result = execvpe(buff, argv, my_env); in execvpe_0300() 95 char buff[300]; in execvpe_0400() local 97 buff[i] = 'a'; in execvpe_0400() 99 int result = execvpe(buff, argv, my_env); in execvpe_0400()
|
/drivers/peripheral/camera/test/ut/v4l2/ |
H A D | stream_customer.cpp | 31 OHOS::sptr<OHOS::SurfaceBuffer> buff = nullptr; in CamFrame() local 32 consumer_->AcquireBuffer(buff, flushFence, timestamp, damage); in CamFrame() 33 if (buff != nullptr) { in CamFrame() 34 void* addr = buff->GetVirAddr(); in CamFrame() 35 int32_t size = buff->GetSize(); in CamFrame() 39 consumer_->ReleaseBuffer(buff, -1); in CamFrame()
|
/test/xts/hats/hdf/camera/cameraHdi/v4l2/src/ |
H A D | stream_customer.cpp | 35 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()
|
/third_party/musl/libc-test/src/functionalext/supplement/time/ |
H A D | gmtime_sup.c | 495 char buff[gBufferSize]; in gmtime_0100() local 496 int cnt = sprintf(buff, in gmtime_0100() 510 EXPECT_STREQ("gmtime_0100", gResultData[i].result, buff); in gmtime_0100() 538 char buff[gBufferSize]; in gmtime64_0100() local 539 int cnt = sprintf(buff, in gmtime64_0100() 553 EXPECT_STREQ("gmtime64_0100", gResultData[i].result, buff); in gmtime64_0100()
|
H A D | wcsftime_l.c | 54 wchar_t buff[40]; in wcsftime_l_0200() local 64 size_t result = wcsftime_l(buff, sizeof buff, L"%A %c", &mtime, newlocale_); in wcsftime_l_0200() 68 if (wcscmp(buff, L"Sunday Sun Jun 6 08:10:20 2022")) { in wcsftime_l_0200() 69 t_error("%s wrong format result is %ls\n", __func__, buff); in wcsftime_l_0200()
|
/third_party/musl/libc-test/src/functionalext/time/ |
H A D | localtime.c | 46 char buff[gBufferSize]; in localtime_0100() local 47 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime_0100() 52 EXPECT_STREQ("localtime_0100", test_localtime_data[i].result, buff); in localtime_0100() 75 char buff[gBufferSize]; in localtime64_0100() local 76 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime64_0100() 81 EXPECT_STREQ("localtime64_0100", test_localtime_data[i].result, buff); in localtime64_0100()
|
H A D | localtime_r.c | 47 char buff[gBufferSize]; in localtime_r_0100() local 48 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime_r_0100() 53 EXPECT_STREQ("localtime_r_0100", test_localtime_data[i].result, buff); in localtime_r_0100() 77 char buff[gBufferSize]; in localtime64_r_0100() local 78 int cnt = sprintf(buff, "%d-%d-%d %d:%d:%d wday=%d,yday=%d,isdst=%d,gmtoff=%ld,zone=%s", in localtime64_r_0100() 83 EXPECT_STREQ("localtime64_r_0100", test_localtime_data[i].result, buff); in localtime64_r_0100()
|
/third_party/pulseaudio/speex/libspeexdsp/ |
H A D | scal.c | 76 float *buff; member 100 st->buff = speex_alloc(channels*2*frame_size*sizeof(float)); in speex_decorrelate_new() 160 float *buff; in speex_decorrelate() local 166 buff = st->buff+ch*2*st->frame_size; in speex_decorrelate() 173 buff[i] = buff[i+st->frame_size]; in speex_decorrelate() 175 buff[i+st->frame_size] = in[i*st->channels+ch]; in speex_decorrelate() 177 x = buff+st->frame_size; in speex_decorrelate() 233 frame[i] = buff[ in speex_decorrelate() [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | rtpenc.h | 89 void ff_rtp_send_aac(AVFormatContext *s1, const uint8_t *buff, int size); 90 void ff_rtp_send_latm(AVFormatContext *s1, const uint8_t *buff, int size); 91 void ff_rtp_send_amr(AVFormatContext *s1, const uint8_t *buff, int size); 93 void ff_rtp_send_xiph(AVFormatContext *s1, const uint8_t *buff, int size); 95 void ff_rtp_send_vp8(AVFormatContext *s1, const uint8_t *buff, int size); 96 void ff_rtp_send_vp9(AVFormatContext *s1, const uint8_t *buff, int size); 97 void ff_rtp_send_jpeg(AVFormatContext *s1, const uint8_t *buff, int size);
|
/third_party/lame/frontend/ |
H A D | mp3rtp.c | 103 char buff[] = "| . | . | . | . | . | . | . | . | . | . | \r"; in levelmessage() local 106 buff[tmp] = '+'; in levelmessage() 108 if (tmp > sizeof(buff) - 2) in levelmessage() 109 tmp = sizeof(buff) - 2; in levelmessage() 112 buff[max] = 'x'; in levelmessage() 113 buff[tmp] = '#'; in levelmessage() 114 console_printf(buff); in levelmessage()
|
/third_party/openssl/test/testutil/ |
H A D | stanza.c | 92 for (s->numpairs = 0; BIO_gets(s->fp, s->buff, sizeof(s->buff)); ) { in test_readstanza() 94 if (!TEST_ptr(p = strchr(s->buff, '\n'))) { in test_readstanza() 101 if (s->buff[0] == '\0') in test_readstanza() 105 if (s->buff[0] == '#') in test_readstanza() 109 if (!TEST_ptr(equals = strchr(s->buff, '='))) { in test_readstanza() 114 if (!TEST_ptr(key = strip_spaces(s->buff))) { in test_readstanza()
|
/third_party/backends/backend/ |
H A D | sm3840_lib.c | 193 unsigned char buff[8] = { 0x64, 0x65, 0x16, 0x17, 0x64, 0x65, 0x44, 0x45 }; in idle_ab() local 196 usb_control_msg (udev, 0x40, 0x0c, 0x0090, 0x0000, buff + i, in idle_ab() 206 unsigned char buff[512]; in write_regs() local 211 buff[0] = reg1; in write_regs() 212 buff[1] = val1; in write_regs() 215 buff[i * 2] = va_arg (marker, int); in write_regs() 216 buff[i * 2 + 1] = va_arg (marker, int); in write_regs() 220 usb_control_msg (udev, 0x40, 0x04, 0x00b0, 0x0000, buff, in write_regs() 246 unsigned char buff[65536]; in record_head() local 256 len = usb_bulk_read (udev, 1, buff, torea in record_head() 541 unsigned char buff[65536]; record_mem() local 684 calc_lightmap(unsigned short *buff, unsigned short *storage, int index, int dpi, double gain, int offset) calc_lightmap() argument [all...] |
/vendor/hisilicon/hispark_pegasus/demo/sntp_demo/src/ |
H A D | sntp_port.c | 34 static char buff[32]; in ctime() local 35 if (snprintf_s(buff, sizeof(buff), "%04d-%02d-%02d %02d:%02d:%02d", in ctime() 38 return buff; in ctime()
|
/test/xts/acts/graphic/graphicnapitest/ |
H A D | NativeBufferTest.cpp | 318 uint8_t buff[size]; in HWTEST_F() local 319 int32_t ret = OH_NativeBuffer_SetMetadataValue(nullptr, OH_HDR_STATIC_METADATA, size, buff); in HWTEST_F() 356 uint8_t buff[size]; in HWTEST_F() local 357 int32_t ret = OH_NativeBuffer_SetMetadataValue(nullptr, OH_HDR_STATIC_METADATA, maxSize, buff); in HWTEST_F() 372 uint8_t *buff; in HWTEST_F() local 373 int32_t ret = OH_NativeBuffer_GetMetadataValue(nullptr, OH_HDR_STATIC_METADATA, &size, &buff); in HWTEST_F() 374 if (buff != nullptr) { in HWTEST_F() 375 delete[] buff; in HWTEST_F() 404 uint8_t *buff; in HWTEST_F() local 405 ret = OH_NativeBuffer_GetMetadataValue(buffer, OH_HDR_STATIC_METADATA, &buffSize, &buff); in HWTEST_F() 427 uint8_t *buff; HWTEST_F() local [all...] |
/test/xts/hats/kernel/syscalls/fileio/getcwd/ |
H A D | GetcwdApiTest.cpp | 62 char buff[BUFFER_SIZE] = {0}; in HWTEST_F() local 63 char* path = getcwd(buff, sizeof(buff)); in HWTEST_F() 65 EXPECT_EQ(strlen(path), strlen(buff)); in HWTEST_F()
|
/third_party/musl/libc-test/src/functionalext/supplement/stdio/ |
H A D | setvbuf.c | 26 char buff[1024] = {0}; in setvbuf_0100() local 32 int result = setvbuf(fptr, buff, _IOFBF, 1024); in setvbuf_0100() 46 char buff[1024] = {0}; in setvbuf_0200() local 52 int result = setvbuf(fptr, buff, -1, 1024); in setvbuf_0200()
|
/third_party/skia/third_party/externals/oboe/samples/parselib/src/main/cpp/stream/ |
H A D | FileInputStream.cpp | 22 int32_t FileInputStream::read(void *buff, int32_t numBytes) {
in read() argument 23 return ::read(mFH, buff, numBytes);
in read() 26 int32_t FileInputStream::peek(void *buff, int32_t numBytes) {
in peek() argument 27 int32_t numRead = ::read(mFH, buff, numBytes);
in peek()
|
H A D | MemInputStream.h | 29 MemInputStream(unsigned char *buff, int32_t len) : mBuffer(buff), mBufferLen(len), mPos(0) {}
in MemInputStream() argument 32 virtual int32_t read(void *buff, int32_t numBytes);
34 virtual int32_t peek(void *buff, int32_t numBytes);
|
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
H A D | hci_watcher.cpp | 158 uint8_t buff;
in WatcherThread() local 159 TEMP_FAILURE_RETRY(read(wakeupPipe_[0], &buff, sizeof(buff)));
in WatcherThread() 173 uint8_t buff = 0;
in ThreadWakeup() local 174 TEMP_FAILURE_RETRY(write(wakeupPipe_[1], &buff, sizeof(buff)));
in ThreadWakeup()
|
/third_party/ltp/testcases/kernel/syscalls/statx/ |
H A D | statx06.c | 101 struct statx buff; in test_statx() local 114 TEST(statx(AT_FDCWD, TEST_FILE, 0, STATX_BASIC_STATS | STATX_BTIME, &buff)); in test_statx() 117 "statx(AT_FDCWD, %s, 0, STATX_BASIC_STATS | STATX_BTIME, &buff)", in test_statx() 123 timestamp_to_timespec(&buff.stx_btime, &statx_time); in test_statx() 126 timestamp_to_timespec(&buff.stx_mtime, &statx_time); in test_statx() 129 timestamp_to_timespec(&buff.stx_atime, &statx_time); in test_statx() 132 timestamp_to_timespec(&buff.stx_ctime, &statx_time); in test_statx()
|