Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 9 of 9) sorted by relevance

/system/nfc/src/adaptation/
Dlibmain.cc84 extern void nfa_nv_co_read(uint8_t* pBuffer, uint16_t nbytes, uint8_t block) { in nfa_nv_co_read() argument
88 "%s: buffer len=%u; file=%s", __func__, nbytes, filename.c_str()); in nfa_nv_co_read()
93 size_t actualReadData = read(fileStream, pBuffer, nbytes); in nfa_nv_co_read()
129 extern void nfa_nv_co_write(const uint8_t* pBuffer, uint16_t nbytes, in nfa_nv_co_write() argument
134 "%s: bytes=%u; file=%s", __func__, nbytes, filename.c_str()); in nfa_nv_co_write()
139 uint16_t checksum = crcChecksumCompute(pBuffer, nbytes); in nfa_nv_co_write()
141 size_t actualWrittenData = write(fileStream, pBuffer, nbytes); in nfa_nv_co_write()
144 if ((actualWrittenData == nbytes) && in nfa_nv_co_write()
/system/core/libutils/include/utils/
DCompat.h32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { in pread64() argument
33 return pread(fd, buf, nbytes, offset); in pread64()
36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { in pwrite64() argument
37 return pwrite(fd, buf, nbytes, offset); in pwrite64()
/system/nfc/src/nfa/include/
Dnfa_nv_co.h79 extern void nfa_nv_co_read(uint8_t* p_buf, uint16_t nbytes, uint8_t block);
100 extern void nfa_nv_co_write(const uint8_t* p_buf, uint16_t nbytes,
/system/chre/external/kiss_fft/
Dkiss_fft.h29 #define KISS_FFT_MALLOC(nbytes) _mm_malloc(nbytes,16) argument
D_kiss_fft_guts.h159 #define KISS_FFT_TMP_ALLOC(nbytes) alloca(nbytes) argument
162 #define KISS_FFT_TMP_ALLOC(nbytes) KISS_FFT_MALLOC(nbytes) argument
/system/timezone/zone_compactor/main/java/
DZoneCompactor.java61 int nbytes = in.read(buf); in copyFile() local
62 if (nbytes == -1) { in copyFile()
65 out.write(buf, 0, nbytes); in copyFile()
67 byte[] nret = new byte[ret.length + nbytes]; in copyFile()
69 System.arraycopy(buf, 0, nret, ret.length, nbytes); in copyFile()
/system/update_engine/common/
Dutils.cc308 size_t nbytes, in AppendBytes() argument
312 vec_p->insert(vec_p->end(), buf, buf + nbytes); in AppendBytes()
314 static void AppendBytes(const uint8_t* buf, size_t nbytes, string* str_p) { in AppendBytes() argument
317 str_p->append(buf, buf + nbytes); in AppendBytes()
334 size_t nbytes = fread(buf, 1, bytes_to_read, fp); in Read() local
335 if (!nbytes) { in Read()
338 AppendBytes(buf, nbytes, out_p); in Read()
340 CHECK(size >= static_cast<off_t>(nbytes)); in Read()
341 size -= nbytes; in Read()
/system/core/fastboot/
Dfastboot_driver.cpp557 size_t nbytes = TRANSPORT_CHUNK_SIZE * nchunks; in SparseWriteCallback() local
558 if (nbytes && SendBuffer(data + total, nbytes)) { // Don't send a ZLP in SparseWriteCallback()
562 total += nbytes; in SparseWriteCallback()
/system/core/fastboot/fuzzy_fastboot/
Dextensions.cpp58 int nbytes = write(fileno(stderr), err_str.c_str(), err_str.length()); in MakeRegex() local
59 static_cast<void>(nbytes); // need to supress the unused nbytes/ or unused result in MakeRegex()