Home
last modified time | relevance | path

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

/system/core/libziparchive/
Dzip_writer.cc219 if (fwrite(&header, sizeof(header), 1, file_) != 1) { in StartAlignedEntryWithTime()
223 if (fwrite(path, sizeof(*path), fileInfo.path.size(), file_) != fileInfo.path.size()) { in StartAlignedEntryWithTime()
228 fwrite(zero_padding.data(), 1, header.extra_field_length, file_) in StartAlignedEntryWithTime()
288 if (fwrite(data, 1, len, file_) != len) { in StoreBytes()
316 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in CompressBytes()
342 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
357 if (fwrite(buffer_.data(), 1, write_bytes, file_) != write_bytes) { in FlushCompressedBytes()
381 if (fwrite(&sig, sizeof(sig), 1, file_) != 1) { in FinishEntry()
390 if (fwrite(&dd, sizeof(dd), 1, file_) != 1) { in FinishEntry()
417 if (fwrite(&cdr, sizeof(cdr), 1, file_) != 1) { in Finish()
[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/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/security/keystore/
Dkeystore_cli.cpp142 fwrite(data, dataSize, 1, stdout); \
188 fwrite(data, dataSize, 1, stdout); \
/system/extras/perfprofd/quipper/
Dperf_utils.h49 CHECK_EQ(fwrite(contents.data(), in BufferToFile()
/system/core/liblog/tests/
Dlibc_test.cpp142 ASSERT_EQ((size_t)1, fwrite(message, sizeof(message), 1, fp)); in TEST()
/system/core/adb/
Dline_printer.cpp65 fwrite(s.data(), 1, s.size(), stdout); in Out()
Dadb_auth_host.cpp195 if (fwrite(encoded, encoded_length, 1, outfile) != 1 || in write_public_keyfile()
196 fwrite(info, strlen(info), 1, outfile) != 1) { in write_public_keyfile()
Dsysdeps.h388 #define fwrite adb_fwrite macro
Dcommandline.cpp348 fwrite(buffer_ptr, 1, length, outfile); in read_and_dump()
420 fwrite(buf, 1, len, stdout); in copy_to_file()
Dsysdeps_win32.cpp2678 #undef fwrite in adb_fwrite()
2679 return fwrite(ptr, size, nmemb, stream); in adb_fwrite()
Dadb.cpp586 const size_t bytes_written = fwrite(buf, 1, bytes_read, stream.get()); in _redirect_pipe_thread()
/system/bt/btif/src/
Dbtif_avrcp_audio_track.cpp145 fwrite ((audioBuffer), 1, (size_t)bufferlen, outputPcmSampleFile); in BtifAvrcpAudioTrackWriteData()
Dbtif_dm.c2885 fwrite (c , 1 , BT_OCTET16_LEN , fp ); in btif_dm_proc_loc_oob()
2886 fwrite (r , 1 , BT_OCTET16_LEN , fp ); in btif_dm_proc_loc_oob()
/system/bt/osi/test/
Dconfig_test.cpp56 fwrite(CONFIG_FILE_CONTENT, 1, sizeof(CONFIG_FILE_CONTENT), fp); in SetUp()
/system/extras/simpleperf/
Drecord_file_writer.cpp129 if (fwrite(buf, len, 1, record_fp_) != 1) { in Write()
/system/core/cpio/
Dmkbootfs.c134 fwrite(data, datasize, 1, stdout); in _eject()
/system/bt/bta/gatt/
Dbta_gattc_cache.c1594 if (fwrite(&cache_ver, sizeof(UINT16), 1, fd) != 1) { in bta_gattc_cache_write()
1600 if (fwrite(&num_attr, sizeof(UINT16), 1, fd) != 1) { in bta_gattc_cache_write()
1606 if (fwrite(attr, sizeof(tBTA_GATTC_NV_ATTR), num_attr, fd) != num_attr) { in bta_gattc_cache_write()
/system/extras/perfprofd/
Dperfprofdcore.cc512 if (fwrite(dtarget, fsiz, 1, fp) != 1) { in encode_to_proto()
/system/core/fs_mgr/
Dfs_mgr_verity.cpp486 fwrite(&magic, sizeof(magic), 1, fp) != 1) { in metadata_find()
/system/update_engine/payload_generator/
Ddelta_diff_utils_unittest.cc62 fwrite(data.data() + offset, 1, to_write, fp.get()) == to_write); in WriteExtents()
/system/update_engine/common/
Dutils.cc1137 if (fwrite(contents.data(), 1, contents.size(), file) != contents.size()) { in DecodeAndStoreBase64String()