Home
last modified time | relevance | path

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

/system/core/init/
Dproperty_service.cpp309 size_t bytes_left = size; in RecvFully() local
311 while (*timeout_ms > 0 && bytes_left > 0) { in RecvFully()
316 int result = TEMP_FAILURE_RETRY(recv(socket_, data, bytes_left, MSG_DONTWAIT)); in RecvFully()
321 bytes_left -= result; in RecvFully()
325 return bytes_left == 0; in RecvFully()
/system/core/adb/
Dcommandline.cpp1066 ssize_t bytes_left = sizeof(buf); in adb_root() local
1067 while (bytes_left > 0) { in adb_root()
1068 ssize_t bytes_read = adb_read(fd, cur, bytes_left); in adb_root()
1076 bytes_left -= bytes_read; in adb_root()
1079 if (bytes_left == 0) { in adb_root()
1085 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, &digest, delegate); in GenerateRandom()
343 bytes_left -= digest.size; in GenerateRandom()