/system/libhwbinder/ |
H A D | TextOutput.cpp | 52 HexDump::HexDump(const void *buf, size_t size, size_t bytesPerLine) argument 53 : mBuffer(buf)
|
H A D | ProcessState.cpp | 184 // Writes up to count elements into buf, and returns the total number 186 // buf may be NULL if count is 0. The pointers returned by this method 189 ssize_t ProcessState::getKernelReferences(size_t buf_count, uintptr_t* buf) { argument 192 uintptr_t* end = buf ? buf + buf_count : NULL; 201 if (buf && buf < end) *buf++ = info.ptr; 203 if (buf && buf < en [all...] |
/system/media/audio_utils/ |
H A D | resampler.c | 108 struct resampler_buffer buf; local 109 buf.frame_count = rsmp->frames_needed - rsmp->frames_in; 110 rsmp->provider->get_next_buffer(rsmp->provider, &buf); 111 if (buf.raw == NULL) { 115 buf.raw, 116 buf.frame_count * rsmp->channel_count * sizeof(int16_t)); 117 rsmp->frames_in += buf.frame_count; 118 rsmp->provider->release_buffer(rsmp->provider, &buf);
|
/system/security/keystore/ |
H A D | KeystoreArguments.cpp | 54 void* buf = out->writeInplace(keyLength); local 55 memcpy(buf, item->data(), keyLength);
|
/system/update_engine/payload_consumer/ |
H A D | cached_file_descriptor.cc | 51 ssize_t CachedFileDescriptor::Write(const void* buf, size_t count) { argument 52 auto bytes = static_cast<const uint8_t*>(buf);
|
H A D | fake_file_descriptor.cc | 21 ssize_t FakeFileDescriptor::Read(void* buf, size_t count) { argument 48 static_cast<uint8_t*>(buf)[i] = kHexChars[current_digit];
|
H A D | fake_file_descriptor.h | 51 ssize_t Read(void* buf, size_t count) override; 53 ssize_t Write(const void* buf, size_t count) override {
|
H A D | bzip_extent_writer_unittest.cc | 77 brillo::Blob buf; local 78 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); 79 EXPECT_EQ(strlen(test_uncompressed), buf.size()); 80 EXPECT_EQ(string(buf.begin(), buf.end()), string(test_uncompressed));
|
/system/update_engine/update_manager/ |
H A D | real_random_provider.cc | 56 char* const buf = reinterpret_cast<char*>(&result); variable 60 int rd = fread(buf + buf_rd, 1, sizeof(result) - buf_rd, fp_.get());
|
/system/core/libnetutils/ |
H A D | dhcpclient.c | 237 static void hex2str(char *buf, size_t buf_size, const unsigned char *array, int len) argument 240 char *cp = buf; 241 char *buf_end = buf + buf_size; 253 char buf[2048]; local 279 hex2str(buf, sizeof(buf), msg->chaddr, c); 280 ALOGD("chaddr = {%s}", buf); 320 if ((unsigned int)optsz < sizeof(buf) - 1) { 323 n = sizeof(buf) - 1; 325 memcpy(buf, [all...] |
/system/extras/simpleperf/ |
H A D | record_file_writer.cpp | 163 bool RecordFileWriter::WriteData(const void* buf, size_t len) { argument 164 if (!Write(buf, len)) { 171 bool RecordFileWriter::Write(const void* buf, size_t len) { argument 172 if (fwrite(buf, len, 1, record_fp_) != 1) { 179 bool RecordFileWriter::Read(void* buf, size_t len) { argument 180 if (len != 0u && fread(buf, len, 1, record_fp_) != 1) { 335 std::vector<char> buf(sizeof(uint32_t) + size); 336 char* p = buf.data(); 349 CHECK_EQ(buf.size(), static_cast<size_t>(p - buf [all...] |
/system/update_engine/payload_generator/ |
H A D | payload_file.cc | 250 vector<char> buf(1024 * 1024); 251 ssize_t rc = read(blobs_fd, buf.data(), buf.size()); 257 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf.data(), rc)); 302 brillo::Blob buf(aop.op.data_length()); 303 ssize_t rc = pread(in_fd, buf.data(), buf.size(), aop.op.data_offset()); 304 TEST_AND_RETURN_FALSE(rc == static_cast<ssize_t>(buf.size())); 307 TEST_AND_RETURN_FALSE(AddOperationHash(&aop.op, buf)); 310 TEST_AND_RETURN_FALSE_ERRNO(writer.Write(buf 317 AddOperationHash(InstallOperation* op, const brillo::Blob& buf) argument [all...] |
/system/core/fastboot/ |
H A D | usbtest.cpp | 92 unsigned char buf[4096]; local 93 memset(buf, 0xee, 4096); 98 if (usb->Write(buf, arg_size) != static_cast<int>(arg_size)) { 111 unsigned char buf[4096]; local 116 if (usb->Read(buf, arg_size) != static_cast<int>(arg_size)) {
|
/system/core/liblog/ |
H A D | event_tag_map.cpp | 499 char* buf = NULL; local 502 int ret = asprintf(&buf, command_template, tag); 509 char* np = static_cast<char*>(realloc(buf, size)); 511 buf = np; 519 if (__send_log_msg(buf, size) >= 0) { 520 buf[size - 1] = '\0'; 522 unsigned long val = strtoul(buf, &ep, 10); // return size 524 if ((buf != cp) && (val > 0) && (*cp == '\n')) { // truncation OK 527 free(buf); 532 free(buf); 607 char* buf = NULL; local [all...] |
/system/update_engine/common/ |
H A D | hash_calculator_unittest.cc | 90 char buf[8]; local 95 ASSERT_EQ(digit_count, snprintf(buf, sizeof(buf), "%d", i)) << " i = " << i; 96 calc.Update(buf, strlen(buf));
|
/system/vold/ |
H A D | secdiscard.cpp | 149 char buf[BUFSIZ]; local 150 memset(buf, 0, sizeof(buf)); 152 size_t wlen = static_cast<size_t>(std::min(static_cast<off64_t>(sizeof(buf)), length)); 153 auto written = write(fd, buf, wlen);
|
H A D | EncryptInplace.cpp | 95 char buf[8]; local 97 snprintf(buf, sizeof(buf), "%" PRId64, data->cur_pct); 98 android::base::SetProperty("vold.encrypt_progress", buf); 117 char buf[8]; local 118 snprintf(buf, sizeof(buf), "%d", remaining_time); 119 android::base::SetProperty("vold.encrypt_time_remaining", buf); 478 char *buf[CRYPT_INPLACE_BUFSIZE]; local 520 if (unix_read(realfd, buf, CRYPT_SECTOR_SIZ 540 char buf[8]; local [all...] |
/system/core/adb/ |
H A D | commandline.cpp | 309 static void read_status_line(int fd, char* buf, size_t count) argument 313 int len = adb_read(fd, buf, count); 318 buf += len; 321 *buf = '\0'; 366 char* buf = (char*) malloc(BUFSIZE); local 367 if (buf == nullptr) fatal("couldn't allocate buffer for copy_to_file"); 379 len = unix_read(inFd, buf, BUFSIZE); 381 len = adb_read(inFd, buf, BUFSIZE); 392 fwrite(buf, 1, len, stdout); 395 adb_write(outFd, buf, le 789 char buf[CHUNK_SIZE]; local 870 char buf[SIDELOAD_HOST_BLOCK_SIZE]; local 1045 char buf[256]; local 1146 char* buf = (char*) calloc(1, bytes); local 1905 char buf[BUFSIZ]; local 1959 char buf[BUFSIZ]; local [all...] |
/system/netd/libnetdutils/ |
H A D | Syscalls.cpp | 129 StatusOr<size_t> write(Fd fd, const Slice buf) const override { 130 auto rv = syscallRetry(::write, fd.get(), buf.base(), buf.size()); 137 StatusOr<Slice> read(Fd fd, const Slice buf) const override { 138 auto rv = syscallRetry(::read, fd.get(), buf.base(), buf.size()); 142 return Slice(buf.base(), rv); 145 StatusOr<size_t> sendto(Fd sock, const Slice buf, int flags, const sockaddr* dst, 147 auto rv = syscallRetry(::sendto, sock.get(), buf.base(), buf [all...] |
/system/core/debuggerd/handler/ |
H A D | debuggerd_handler.cpp | 123 char buf[256]; local 124 async_safe_format_buffer_va_list(buf, sizeof(buf), fmt, args); 125 fatal("%s: %s", buf, strerror(err)); 128 static bool get_main_thread_name(char* buf, size_t len) { argument 134 ssize_t rc = read(fd, buf, len); 143 buf[rc - 1] = '\0'; 378 char buf[4]; local 379 rc = TEMP_FAILURE_RETRY(read(input_read.get(), &buf, sizeof(buf))); [all...] |
/system/core/libappfuse/ |
H A D | FuseBuffer.cc | 52 char* const buf = reinterpret_cast<char*>(self); local 53 const ssize_t result = sockflag ? TEMP_FAILURE_RETRY(recv(fd, buf, sizeof(T), sockflag)) 54 : TEMP_FAILURE_RETRY(read(fd, buf, sizeof(T))); 93 const char* const buf = reinterpret_cast<const char*>(self); local 100 result = TEMP_FAILURE_RETRY(send(fd, buf, header.len, sockflag)); 102 const struct iovec vec[] = {{const_cast<char*>(buf), sizeof(header)}, 106 result = TEMP_FAILURE_RETRY(write(fd, buf, header.len));
|
/system/core/libunwindstack/ |
H A D | DexFile.cpp | 107 struct stat buf; local 108 if (fstat(fd, &buf) == -1) { 112 if (buf.st_size < 0 || 114 static_cast<uint64_t>(buf.st_size) < length) { 118 mapped_memory_ = mmap(nullptr, buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0); 122 size_ = buf.st_size; 134 static_cast<uint64_t>(buf.st_size) < length) {
|
/system/keymaster/key_blob_utils/ |
H A D | ocb_utils.cpp | 59 uint8_t* buf = derivation_data->get(); 61 buf = hidden.Serialize(buf, end); 62 buf = hw_enforced.Serialize(buf, end); 63 buf = sw_enforced.Serialize(buf, end);
|
/system/core/libmemunreachable/tests/ |
H A D | ThreadCapture_test.cpp | 188 char buf; local 189 EXPECT_EQ(1, TEMP_FAILURE_RETRY(read(stop_pipe.Receiver(), &buf, 1))) << strerror(errno); 195 char buf; local 196 ASSERT_EQ(1, TEMP_FAILURE_RETRY(read(start_pipe.Receiver(), &buf, 1))) << strerror(errno); 297 char buf = '+'; 298 write(g_pipe->Sender(), &buf, 1); 338 char buf; 339 ASSERT_EQ(1, TEMP_FAILURE_RETRY(read(pipe.Receiver(), &buf, 1))); 340 ASSERT_EQ(buf, '+');
|
/system/chre/host/msm/daemon/generated/ |
H A D | chre_slpi_skel.c | 174 uint64_t buf; member in struct:_heap 192 *ppbuf = (void*)&(pn->buf); 454 _ASSERT(_nErr, _pra[0].buf.nLen >= 4); 455 _primIn = _pra[0].buf.pv; 458 _ASSERT(_nErr, (int)((_praIn[0].buf.nLen / 1)) >= (int)(_in0Len[0])); 459 _in0[0] = _praIn[0].buf.pv; 478 _ASSERT(_nErr, _pra[0].buf.nLen >= 4); 479 _primIn = _pra[0].buf.pv; 480 _ASSERT(_nErr, _pra[(_numIn[0] + 1)].buf.nLen >= 4); 481 _primROut = _pra[(_numIn[0] + 1)].buf [all...] |