Home
last modified time | relevance | path

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

/system/nfc/src/adaptation/
Dlibmain.cc89 int fileStream = open(filename.c_str(), O_RDONLY); in nfa_nv_co_read() local
90 if (fileStream >= 0) { in nfa_nv_co_read()
92 size_t checkSumRdData = read(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_read()
97 size_t actualReadData = read(fileStream, pBuffer, nbytes); in nfa_nv_co_read()
98 close(fileStream); in nfa_nv_co_read()
140 int fileStream = in nfa_nv_co_write() local
142 if (fileStream >= 0) { in nfa_nv_co_write()
144 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_write()
145 size_t actualWrittenData = write(fileStream, pBuffer, nbytes); in nfa_nv_co_write()
155 close(fileStream); in nfa_nv_co_write()
DCrcChecksum.cc97 int fileStream = open(filename, O_RDONLY); in crcChecksumVerifyIntegrity() local
98 if (fileStream >= 0) { in crcChecksumVerifyIntegrity()
101 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in crcChecksumVerifyIntegrity()
104 ssize_t actualReadData = read(fileStream, buffer, sizeof(buffer)); in crcChecksumVerifyIntegrity()
110 close(fileStream); in crcChecksumVerifyIntegrity()
/system/tools/hidl/hashing/
DHash.cpp55 std::stringstream fileStream; in sha256File() local
56 fileStream << stream.rdbuf(); in sha256File()
57 std::string fileContent = fileStream.str(); in sha256File()