Searched refs:fileStream (Results 1 – 5 of 5) sorted by relevance
/system/nfc/src/adaptation/ |
D | libmain.cc | 90 int fileStream = open(filename.c_str(), O_RDONLY); in nfa_nv_co_read() local 91 if (fileStream >= 0) { in nfa_nv_co_read() 93 size_t checkSumRdData = read(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_read() 98 size_t actualReadData = read(fileStream, pBuffer, nbytes); in nfa_nv_co_read() 99 close(fileStream); in nfa_nv_co_read() 141 int fileStream = in nfa_nv_co_write() local 143 if (fileStream >= 0) { in nfa_nv_co_write() 145 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_write() 146 size_t actualWrittenData = write(fileStream, pBuffer, nbytes); in nfa_nv_co_write() 156 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 | 273 int fileStream; in storeNfcSnoopLogs() local 285 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_TRUNC, in storeNfcSnoopLogs() 288 fileStream = open(filepath.c_str(), O_RDWR | O_CREAT | O_APPEND, in storeNfcSnoopLogs() 293 if (fileStream >= 0) { in storeNfcSnoopLogs() 294 debug_nfcsnoop_dump(fileStream); in storeNfcSnoopLogs() 295 close(fileStream); in storeNfcSnoopLogs()
|
/system/tools/hidl/hashing/ |
D | Hash.cpp | 56 std::stringstream fileStream; in sha256File() local 57 fileStream << stream.rdbuf(); in sha256File() 58 std::string fileContent = fileStream.str(); in sha256File()
|
/system/chre/host/hal_generic/common/ |
D | hal_client_manager.cc | 62 std::ofstream fileStream(kClientMappingFilePath); in createClientIdLocked() local 63 writer->write(mappings, &fileStream); in createClientIdLocked() 64 fileStream << std::endl; in createClientIdLocked()
|