Searched refs:fileStream (Results 1 – 4 of 4) sorted by relevance
/system/nfc/src/adaptation/ |
D | libmain.cc | 89 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()
|
D | CrcChecksum.cc | 97 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()
|
D | debug_nfcsnoop.cc | 217 int fileStream; in storeNfcSnoopLogs() local 229 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_TRUNC, in storeNfcSnoopLogs() 232 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_APPEND, in storeNfcSnoopLogs() 237 if (fileStream >= 0) { in storeNfcSnoopLogs() 238 debug_nfcsnoop_dump(fileStream); in storeNfcSnoopLogs() 239 close(fileStream); in storeNfcSnoopLogs()
|
/system/tools/hidl/hashing/ |
D | Hash.cpp | 55 std::stringstream fileStream; in sha256File() local 56 fileStream << stream.rdbuf(); in sha256File() 57 std::string fileContent = fileStream.str(); in sha256File()
|