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()
|
D | uart.h | 90 ssize_t WinReadUartDev(HANDLE handle, std::vector<uint8_t> &readBuf, size_t expectedSize, OVERLAPPE… 100 ssize_t ReadUartDev(int handle, std::vector<uint8_t> &readBuf, size_t expectedSize);
|
D | uart.cpp | 246 ssize_t WinReadUartDev(HANDLE handle, std::vector<uint8_t> &readBuf, size_t expectedSize, OVERLAPPE… argument 258 if (expectedSize == 0) { 290 } while (readBuf.size() < expectedSize || bytesRead == 0); 447 ssize_t ReadUartDev(int handle, std::vector<uint8_t> &readBuf, size_t expectedSize) { argument 463 if (expectedSize == 0) { 483 if (ret == 0 and expectedSize == 0) { 498 size_t maxReadSize = expectedSize - totalBytesRead; 512 …} 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 __anon316535560f02() argument 690 .WillOnce(Invoke([&](std::vector<uint8_t> &readBuf, size_t expectedSize, HdcUART &uart) { in __anon316535561002() argument
|