Searched refs:expectedSize (Results 1 – 9 of 9) sorted by relevance
/developtools/hdc/hdc_rust/src/cffi/ |
D | uart_wrapper.cpp | 44 extern "C" SerializedBuffer ReadUartDevExt(int32_t fd, uint32_t expectedSize) in ReadUartDevExt() argument 49 length = ReadUartDev(static_cast<int>(fd), readBuf, static_cast<size_t>(expectedSize)); in ReadUartDevExt() 73 extern "C" SerializedBuffer ReadUartDevExt(int32_t fd, uint32_t expectedSize)
|
D | uart.h | 89 ssize_t WinReadUartDev(HANDLE handle, std::vector<uint8_t> &readBuf, size_t expectedSize, OVERLAPPE… 99 ssize_t ReadUartDev(int handle, std::vector<uint8_t> &readBuf, size_t expectedSize);
|
D | uart.cpp | 245 ssize_t WinReadUartDev(HANDLE handle, std::vector<uint8_t> &readBuf, size_t expectedSize, OVERLAPPE… argument 257 if (expectedSize == 0) { 289 } while (readBuf.size() < expectedSize || bytesRead == 0); 446 ssize_t ReadUartDev(int handle, std::vector<uint8_t> &readBuf, size_t expectedSize) { argument 462 if (expectedSize == 0) { 482 if (ret == 0 and expectedSize == 0) { 497 size_t maxReadSize = expectedSize - totalBytesRead; 511 …} while (readBuf.size() < expectedSize or bytesRead == 0); // if caller know how many bytes it want
|
/developtools/hdc/src/daemon/ |
D | daemon_uart.cpp | 244 size_t expectedSize = 0; in DeamonReadThread() local 247 ssize_t bytesRead = ReadUartDev(dataReadBuf, expectedSize, deamonUart); in DeamonReadThread() 252 expectedSize = 0; in DeamonReadThread() 266 expectedSize = PackageProcess(dataReadBuf); in DeamonReadThread() 270 dataReadBuf.size(), expectedSize); in DeamonReadThread()
|
/developtools/profiler/device/services/shared_memory/test/unittest/ |
D | shared_memory_block_test.cpp | 372 const int expectedSize = 12; variable 373 int usedSize = PAGE_SIZE - sizeof(ShareMemoryBlock::BlockHeader) - NUM_FOUR - expectedSize; 404 const int expectedSize = 20; variable 405 int usedSize = PAGE_SIZE - sizeof(ShareMemoryBlock::BlockHeader) - NUM_FOUR - expectedSize; 465 const int expectedSize = 21; variable 466 int usedSize = PAGE_SIZE - sizeof(ShareMemoryBlock::BlockHeader) - NUM_FOUR - expectedSize;
|
/developtools/hdc/src/common/ |
D | uart.cpp | 230 ssize_t HdcUARTBase::ReadUartDev(std::vector<uint8_t> &readBuf, size_t expectedSize, HdcUART &uart) in ReadUartDev() argument 248 if (expectedSize == 0) { in ReadUartDev() 289 if (expectedSize == 0) { in ReadUartDev() 310 if (ret == 0 and expectedSize == 0) { in ReadUartDev() 340 } while (readBuf.size() < expectedSize or in ReadUartDev()
|
D | uart.h | 226 virtual ssize_t ReadUartDev(std::vector<uint8_t> &readBuf, size_t expectedSize, HdcUART &uart);
|
/developtools/hdc/src/host/ |
D | host_uart.cpp | 81 size_t expectedSize = 0; in UartReadThread() local 87 ssize_t bytesRead = ReadUartDev(dataReadBuf, expectedSize, *hUART); in UartReadThread() 95 expectedSize = 0; in UartReadThread() 108 expectedSize = PackageProcess(dataReadBuf, hSession); in UartReadThread()
|
/developtools/hdc/test/unittest/common/ |
D | host_uart_test.cpp | 676 .WillOnce(Invoke([&](std::vector<uint8_t> &readBuf, size_t expectedSize, HdcUART &uart) { in __anonf147a4620f02() argument 690 .WillOnce(Invoke([&](std::vector<uint8_t> &readBuf, size_t expectedSize, HdcUART &uart) { in __anonf147a4621002() argument
|