Searched refs:bytes_left (Results 1 – 3 of 3) sorted by relevance
/system/connectivity/shill/ |
D | crypto_util_proxy_unittest.cc | 369 int bytes_left = strlen(kTestSerializedCommandMessage); in TEST_F() local 370 while (bytes_left > 0) { in TEST_F() 371 int bytes_written = min(kBytesAtATime, bytes_left); in TEST_F() 372 EXPECT_CALL(file_io_, Write(kTestStdinFd, _, bytes_left)) in TEST_F() 374 bytes_left -= bytes_written; in TEST_F() 375 if (bytes_left < 1) { in TEST_F() 385 const int response_length = bytes_left = in TEST_F() 388 while (bytes_left > 0) { in TEST_F() 389 int bytes_written = min(kBytesAtATime, bytes_left); in TEST_F() 392 kTestSerializedCommandResponse + response_length - bytes_left)); in TEST_F() [all …]
|
/system/core/adb/ |
D | commandline.cpp | 1095 ssize_t bytes_left = sizeof(buf); in adb_root() local 1096 while (bytes_left > 0) { in adb_root() 1097 ssize_t bytes_read = adb_read(fd.fd(), cur, bytes_left); in adb_root() 1105 bytes_left -= bytes_read; in adb_root() 1108 if (bytes_left == 0) { in adb_root() 1114 WriteFdExactly(STDOUT_FILENO, buf, sizeof(buf) - bytes_left); in adb_root()
|
/system/tpm/trunks/ |
D | tpm_utility_impl.cc | 332 size_t bytes_left = num_bytes; in GenerateRandom() local 336 while (bytes_left > 0) { in GenerateRandom() 337 rc = factory_.GetTpm()->GetRandomSync(bytes_left, in GenerateRandom() 345 bytes_left -= digest.size; in GenerateRandom()
|