Home
last modified time | relevance | path

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

12

/system/libziparchive/
Dzip_writer.cc275 if (fwrite(&header, sizeof(header), 1, file_) != 1) { in StartAlignedEntryWithTime()
279 if (fwrite(path.data(), 1, path.size(), file_) != path.size()) { in StartAlignedEntryWithTime()
283 if (file_entry.padding_length != 0 && fwrite(zero_padding, 1, file_entry.padding_length, in StartAlignedEntryWithTime()
377 if (fwrite(data, 1, len, file_) != len) { in StoreBytes()
405 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in CompressBytes()
432 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
448 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
483 if (fwrite(dataDescriptor.data(), dataDescriptor.size() * sizeof(uint32_t), 1, file_) != 1) { in FinishEntry()
497 if (fwrite(&header, sizeof(header), 1, file_) != 1) { in FinishEntry()
535 if (fwrite(&cdr, sizeof(cdr), 1, file_) != 1) { in Finish()
[all …]
/system/extras/ioshark/
Dcompile_ioshark_subr.c205 if (fwrite(filename_cache, in store_filename_cache()
223 return fwrite(header, sizeof(struct ioshark_header), 1, fp); in ioshark_write_header()
232 return fwrite(state, sizeof(struct ioshark_file_state), 1, fp); in ioshark_write_file_state()
279 return fwrite(file_op, sizeof(struct ioshark_file_operation), 1, fp); in ioshark_write_file_op()
Dconvert_format.c147 if (fwrite(&new_header, sizeof(struct ioshark_header), in main()
173 if (fwrite(&new_file_state, in main()
274 if (fwrite(&new_disk_file_op, in main()
/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()
574 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
579 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
584 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
591 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_short()
609 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
615 actualBytes = fwrite(handle->temp, sizeof(char), desiredBytes, handle->stream); in sf_writef_float()
634 actualBytes = fwrite(ptr, sizeof(char), desiredBytes, handle->stream); in sf_writef_int()
/system/core/liblog/tests/
Dlibc_test.cpp32 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp)); in TEST()
/system/core/libunwindstack/tools/
Dunwind_for_offline.cpp116 size_t bytes = fwrite(&sp_start, 1, sizeof(sp_start), fp.get()); in SaveStack()
123 bytes = fwrite(buffer.data(), 1, buffer.size(), fp.get()); in SaveStack()
156 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CreateElfFromMemory()
189 size_t bytes_written = fwrite(buffer.data(), 1, bytes, output.get()); in CopyElfFromFile()
/system/libufdt/tests/src/
Dutil.c71 if (fwrite(buf, 1, buf_size, fout) < 1) { in write_buf_to_file()
/system/security/keystore/
Dkeystore_cli.cpp130 fwrite(&data[0], data.size(), 1, stdout); \
172 fwrite(&data[0], data.size(), 1, stdout); \
/system/libufdt/utils/src/
Dmkdtimg_core.c190 fwrite(&header, sizeof(header), 1, img_fp); in output_img_header()
226 fwrite(&entry, sizeof(entry), 1, img_fp); in output_img_entry()
230 fwrite(fdt, fdt_file_size, 1, img_fp); in output_img_entry()
Dmkdtimg_dump.c68 if (fwrite(fdt, fdt_size, 1, out_fp) < 1) { in write_fdt_to_file()
/system/core/adb/client/
Dcommandline.h51 fwrite(buffer, 1, length, stream); in OnStream()
Dline_printer.cpp67 fwrite(s.data(), 1, s.size(), stdout); in Out()
Dcommandline.cpp402 fwrite(buf.data(), 1, len, stdout); in copy_to_file()
1133 fwrite(buf, 1, sizeof(buf) - bytes_left, stdout); in adb_root()
1226 fwrite(buf.data(), 1, bytes, stdout); in write_zeros()
/system/nfc/utils/test/
Dconfig_test.cc60 fwrite(SIMPLE_CONFIG, 1, sizeof(SIMPLE_CONFIG), fp); in SetUp()
/system/media/audio_utils/tests/
Dbiquad_filter.cpp137 fwrite(out.data(), ioFrameSize, frameLength, fout.get()); in main()
/system/bt/bta/gatt/
Dbta_gattc_cache.cc783 if (fwrite(&cache_ver, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write()
790 if (fwrite(&num_attr, sizeof(uint16_t), 1, fd) != 1) { in bta_gattc_cache_write()
797 if (fwrite(attr.data(), sizeof(StoredAttribute), num_attr, fd) != num_attr) { in bta_gattc_cache_write()
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cc206 fwrite((audioBuffer), 1, (size_t)bufferLength, outputPcmSampleFile); in BtifAvrcpAudioTrackWriteData()
/system/bt/osi/test/
Dconfig_test.cc79 ASSERT_EQ(fwrite(CONFIG_FILE_CONTENT, 1, sizeof(CONFIG_FILE_CONTENT), fp), in SetUp()
/system/core/cpio/
Dmkbootfs.c137 fwrite(data, datasize, 1, stdout); in _eject()
/system/extras/simpleperf/
Dcmd_report_sample.cpp49 return fwrite(buffer, size, 1, out_fp_) == 1; in Write()
190 fwrite(&PROT_FILE_VERSION, sizeof(uint16_t), 1, report_fp_) != 1u) { in Run()
DCallChainJoiner.cpp199 if (fwrite(data.data(), size, 1, fp) != 1) { in WriteCallChain()
Drecord_file_writer.cpp176 if (len != 0u && fwrite(buf, len, 1, record_fp_) != 1) { in Write()
/system/nvram/client/
Dnvram_client.c325 fwrite(buffer, sizeof(uint8_t), size, stdout); in HandleReadSpace()
/system/core/adb/
Dsysdeps.h269 #define fwrite adb_fwrite macro
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc62 TEST_AND_RETURN_FALSE(fwrite(data.data() + offset, 1, to_write, fp.get()) == in WriteExtents()

12