Home
last modified time | relevance | path

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

/device/google/contexthub/util/nanoapp_encr/
Dnanoapp_encr.c120 fwrite(image, sizeof(*image), 1, out); in handleEncrypt()
125 fwrite(&encr, sizeof(encr), 1, out); in handleEncrypt()
137 fwrite(outBuf, AES_BLOCK_SIZE, 1, out); in handleEncrypt()
146 fwrite(outBuf, AES_BLOCK_SIZE, 1, out); in handleEncrypt()
148 err = fwrite(outBuf, AES_BLOCK_SIZE, 1, out) != 1; in handleEncrypt()
199 fwrite(image, sizeof(*image), 1, out); in handleDecrypt()
211 err = fwrite(outBuf, size, 1, out) != 1; in handleDecrypt()
/device/google/contexthub/util/nanoapp_postprocess/
Dpostprocess.c270 good = fwrite(&outHeader, sizeof(outHeader), 1, out) == 1 && good; in finalizeAndWrite()
273 good = fwrite(&app, sizeof(app), 1, out) == 1 && good; in finalizeAndWrite()
276 good = fwrite(&bin[1], inf->codeAndDataSize, 1, out) == 1 && good; in finalizeAndWrite()
280 good = fwrite(inf->packedNanoReloc, inf->packedNanoRelocSize, 1, out) == 1 && good; in finalizeAndWrite()
593 good = good && fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleKey()
594 good = good && fwrite(&ki, sizeof(ki), 1, out) == 1; in handleKey()
595 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleKey()
625 good = fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleOs()
627 good = fwrite(&os, sizeof(os), 1, out) == 1; in handleOs()
628 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleOs()
Dpostprocess_elf.c284 ret = fwrite(buf, bufUsed, 1, out) == 1 ? 0 : 2; in finalizeAndWrite()
854 good = good && fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleKey()
855 good = good && fwrite(&ki, sizeof(ki), 1, out) == 1; in handleKey()
856 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleKey()
886 good = fwrite(&outHeader, sizeof(outHeader), 1, out) == 1; in handleOs()
888 good = fwrite(&os, sizeof(os), 1, out) == 1; in handleOs()
889 good = good && fwrite(buf, bufUsed, 1, out) == 1; in handleOs()
/device/google/contexthub/util/nanoapp_sign/
Dnanoapp_sign.c220 ret = fwrite(rsa->num, 1, RSA_BYTES, out) == RSA_BYTES ? 0 : 2; in handleConvertKey()
393 fwrite(buf, 1, bufUsed, out); in handleSign()
394 fwrite(rsaResult, 1, sizeof(uint32_t[RSA_LIMBS]), out); in handleSign()
395 ret = (fwrite(rsa->modulus, 1, RSA_BYTES, out) == RSA_BYTES) ? 0 : 2; in handleSign()
/device/google/contexthub/util/stm32_flash/
Dflash.c281 if (fwrite(buffer, 1, length, file) < (size_t)length) in main()
306 if (fwrite(buffer, 1, tot_len(length), file) < tot_len(length)) in main()
/device/generic/goldfish/fingerprint/
Dfingerprint.c120 int ns = fwrite(&listener->secureid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
128 int nf = fwrite(&listener->fingerid[idx], sizeof(uint64_t), 1, fp); in saveFingerprint()
149 fwrite(&zero, sizeof(uint64_t), 1, fp); in openForWrite()
153 fwrite(&zero, sizeof(uint64_t), 1, fp); in openForWrite()
169 int na = fwrite(&authenid, sizeof(authenid), 1, fp); in saveAuthenticatorId()
/device/generic/goldfish-opengl/fuchsia/
Dfuchsia_stdio.cc73 size_t fwrite(const void *ptr, size_t size, size_t nitems, FILE *stream) in fwrite() function
/device/generic/goldfish-opengl/system/codecs/omx/avcdec/
DGoldfishAVCDec.h159 i = fwrite(m_buf, 1, m_size, fp); \
/device/amlogic/yukawa/hal/audio/
Daudio_aec.c669 fwrite((char *)aec->mic_buf, 1, bytes, fp_in); in process_aec()
676 fwrite((char *)buffer, 1, bytes, fp_out); in process_aec()
683 fwrite((char *)aec->spk_buf, 1, ref_bytes, fp_ref); in process_aec()
Daudio_hw.c659 fwrite((char*)buffer, 1, bytes, fp_ref); in in_read()
733 fwrite((char*)buffer, 1, bytes, fp_in); in in_read()
/device/generic/goldfish/network/netmgr/commands/
Dwifi_command.cpp128 size_t bytesWritten = fwrite(buffer, 1, bytesRead, out.get()); in writeConfig()
/device/generic/goldfish-opengl/system/OpenglSystemCommon/
DFormatConversions.cpp154 fwrite(rgb_ptr0, width * height * rgb_stride, 1, myfp); in rgb888_to_yv12()
190 fwrite(yv12_y0, yStride * height + 2 * cSize, 1, yuvfp); in rgb888_to_yv12()
/device/linaro/hikey/hifi/xaf/host-apf/utest/
Dxaf-dec-test.c101 fwrite(p_buf, 1, buf_length, fp); in consume_output()
Dxaf-dec-mix-test.c112 fwrite(p_buf, 1, buf_length, fp); in consume_output()