Searched refs:fileStream (Results 1 – 4 of 4) sorted by relevance
/system/nfc/halimpl/bcm2079x/adaptation/ |
D | NonVolatileStore.cpp | 78 int fileStream = open(filename, O_RDONLY); in nfc_hal_nv_co_read() local 79 if (fileStream >= 0) { in nfc_hal_nv_co_read() 81 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in nfc_hal_nv_co_read() 82 size_t actualReadData = read(fileStream, p_buf, nbytes); in nfc_hal_nv_co_read() 83 close(fileStream); in nfc_hal_nv_co_read() 121 int fileStream = 0; in nfc_hal_nv_co_write() local 131 fileStream = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR); in nfc_hal_nv_co_write() 132 if (fileStream >= 0) { in nfc_hal_nv_co_write() 134 size_t actualWrittenCrc = write(fileStream, &checksum, sizeof(checksum)); in nfc_hal_nv_co_write() 135 size_t actualWrittenData = write(fileStream, p_buf, nbytes); in nfc_hal_nv_co_write() [all …]
|
/system/nfc/src/adaptation/ |
D | libmain.c | 94 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 …]
|
D | CrcChecksum.cpp | 95 int fileStream = open(filename, O_RDONLY); in crcChecksumVerifyIntegrity() local 96 if (fileStream >= 0) { in crcChecksumVerifyIntegrity() 99 size_t actualReadCrc = read(fileStream, &checksum, sizeof(checksum)); in crcChecksumVerifyIntegrity() 102 ssize_t actualReadData = read(fileStream, buffer, sizeof(buffer)); in crcChecksumVerifyIntegrity() 108 close(fileStream); in crcChecksumVerifyIntegrity()
|
/system/tools/hidl/ |
D | Hash.cpp | 44 std::stringstream fileStream; in sha256File() local 45 fileStream << stream.rdbuf(); in sha256File() 46 std::string fileContent = fileStream.str(); in sha256File()
|