Home
last modified time | relevance | path

Searched refs:fwrite (Results 1 – 25 of 30) sorted by relevance

12

/system/core/libziparchive/
Dzip_writer.cc247 if (fwrite(&header, sizeof(header), 1, file_) != 1) { in StartAlignedEntryWithTime()
251 if (fwrite(path, sizeof(*path), file_entry.path.size(), file_) != file_entry.path.size()) { in StartAlignedEntryWithTime()
256 fwrite(zero_padding.data(), 1, file_entry.padding_length, file_) in StartAlignedEntryWithTime()
343 if (fwrite(data, 1, len, file_) != len) { in StoreBytes()
371 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in CompressBytes()
397 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
412 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
438 if (fwrite(&sig, sizeof(sig), 1, file_) != 1) { in FinishEntry()
446 if (fwrite(&dd, sizeof(dd), 1, file_) != 1) { in FinishEntry()
459 if (fwrite(&header, sizeof(header), 1, file_) != 1) { in FinishEntry()
[all …]
/system/media/audio_utils/
Dtinysndfile.c366 (void) fwrite(wav, 44 + extra, 1, stream); in sf_open_write()
413 (void) fwrite(wav, 44 + extra, 1, handle->stream); in sf_close()
580 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
585 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
590 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
597 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
615 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
621 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
640 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_int()
/system/core/liblog/tests/
Dlibc_test.cpp27 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp)); in TEST()
/system/core/toolbox/upstream-netbsd/usr.bin/grep/
Dutil.c476 fwrite(line->dat + a, matches[i].rm_so - a, 1, in printline()
481 fwrite(line->dat + matches[i].rm_so, in printline()
492 fwrite(line->dat + a, line->len - a, 1, stdout); in printline()
496 fwrite(line->dat, line->len, 1, stdout); in printline()
/system/extras/ioshark/
Dcompile_ioshark_subr.c51 if (fwrite(&st, sizeof(st), 1, fp) != 1) { in files_db_write_objects()
204 if (fwrite(filename_cache, in store_filename_cache()
Dcompile_ioshark.c666 if (fwrite(&header, sizeof(struct ioshark_header), 1, fp) != 1) { in main()
676 if (fwrite(disk_file_op, in main()
/system/libufdt/tests/src/
Dutil.c71 if (fwrite(buf, 1, buf_size, fout) < 1) { in write_buf_to_file()
/system/security/keystore/
Dkeystore_cli.cpp142 fwrite(&data[0], data.size(), 1, stdout); \
186 fwrite(&data[0], data.size(), 1, stdout); \
/system/core/adb/
Dcommandline.h47 fwrite(buffer, 1, length, stream); in OnStream()
Dline_printer.cpp65 fwrite(s.data(), 1, s.size(), stdout); in Out()
Dsysdeps.h354 #define fwrite adb_fwrite macro
Dcommandline.cpp404 fwrite(buf, 1, len, stdout); in copy_to_file()
1173 fwrite(buf, 1, bytes, stdout); in write_zeros()
/system/libufdt/utils/src/
Dmkdtimg_core.c178 fwrite(&header, sizeof(header), 1, img_fp); in output_img_header()
218 fwrite(&entry, sizeof(entry), 1, img_fp); in output_img_entry()
223 fwrite(fdt, fdt_file_size, 1, img_fp); in output_img_entry()
Dmkdtimg_dump.c69 if (fwrite(fdt, fdt_size, 1, out_fp) < 1) { in write_fdt_to_file()
/system/nfc/halimpl/pn54x/utils/
DphNxpConfig.cpp639 fwrite(&m_timeStamp, sizeof(unsigned long), 1, fd);
658 fwrite(&m_timeStamp, sizeof(unsigned long), 1, fd);
717 fwrite(&m_timeStamp, sizeof(unsigned long), 1, fd); in updateTimestamp()
732 fwrite(&m_timeStamp, sizeof(unsigned long), 1, fd); in updateTimestamp()
/system/extras/perfprofd/quipper/
Dperf_utils.h49 CHECK_EQ(fwrite(contents.data(), in BufferToFile()
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc139 fwrite((audioBuffer), 1, (size_t)bufferlen, outputPcmSampleFile); in BtifAvrcpAudioTrackWriteData()
/system/bt/osi/test/
Dconfig_test.cc54 fwrite(CONFIG_FILE_CONTENT, 1, sizeof(CONFIG_FILE_CONTENT), fp); in SetUp()
/system/core/cpio/
Dmkbootfs.c136 fwrite(data, datasize, 1, stdout); in _eject()
/system/bt/bta/gatt/
Dbta_gattc_cache.cc1504 if (fwrite(&cache_ver, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write()
1510 if (fwrite(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write()
1517 if (fwrite(attr, sizeof(tBTA_GATTC_NV_ATTR), num_attr, fd) != num_attr) { in bta_gattc_cache_write()
/system/nvram/client/
Dnvram_client.c325 fwrite(buffer, sizeof(uint8_t), size, stdout); in HandleReadSpace()
/system/extras/simpleperf/
Drecord_file_writer.cpp169 if (fwrite(buf, len, 1, record_fp_) != 1) { in Write()
Dcmd_report_sample.cpp40 return fwrite(buffer, size, 1, out_fp_) == 1; in Write()
/system/extras/perfprofd/
Dperfprofdcore.cc527 if (fwrite(dtarget, fsiz, 1, fp) != 1) { in encode_to_proto()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp418 fwrite(&magic, sizeof(magic), 1, fp) != 1) { in metadata_find()

12