Home
last modified time | relevance | path

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

/system/nfc/halimpl/bcm2079x/adaptation/
DNonVolatileStore.cpp77 int fileStream = open(filename, O_RDONLY); in nfc_hal_nv_co_read() local
78 if (fileStream >= 0) { in nfc_hal_nv_co_read()
80 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in nfc_hal_nv_co_read()
81 size_t actualReadData = read(fileStream, p_buf, nbytes); in nfc_hal_nv_co_read()
82 close(fileStream); in nfc_hal_nv_co_read()
120 int fileStream = 0; in nfc_hal_nv_co_write() local
130 fileStream = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfc_hal_nv_co_write()
131 if (fileStream >= 0) { in nfc_hal_nv_co_write()
133 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfc_hal_nv_co_write()
134 size_t actualWrittenData = write(fileStream, p_buf, nbytes); in nfc_hal_nv_co_write()
[all …]
/system/nfc/src/adaptation/
Dlibmain.c94 int fileStream = open(filename, O_RDONLY); in nfa_nv_co_read() local
95 if (fileStream >= 0) { in nfa_nv_co_read()
97 size_t actualReadCrc = 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()
147 int fileStream = 0; in nfa_nv_co_write() local
149 fileStream = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfa_nv_co_write()
150 if (fileStream >= 0) { in nfa_nv_co_write()
152 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfa_nv_co_write()
153 size_t actualWrittenData = write(fileStream, pBuffer, nbytes); in nfa_nv_co_write()
[all …]
DCrcChecksum.cpp94 int fileStream = open(filename, O_RDONLY); in crcChecksumVerifyIntegrity() local
95 if (fileStream >= 0) { in crcChecksumVerifyIntegrity()
98 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in crcChecksumVerifyIntegrity()
101 ssize_t actualReadData = read(fileStream, buffer, sizeof(buffer)); in crcChecksumVerifyIntegrity()
107 close(fileStream); in crcChecksumVerifyIntegrity()
/system/tools/hidl/
DHash.cpp44 std::stringstream fileStream; in sha256File() local
45 fileStream << stream.rdbuf(); in sha256File()
46 std::string fileContent = fileStream.str(); in sha256File()