Home
last modified time | relevance | path

Searched refs:bytes_left (Results 1 – 3 of 3) sorted by relevance

/system/connectivity/shill/
Dcrypto_util_proxy_unittest.cc369 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/
Dcommandline.cpp1095 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/
Dtpm_utility_impl.cc332 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()