/system/core/logd/ |
H A D | LogKlog.cpp | 217 LogKlog::LogKlog(LogBuffer *buf, LogReader *reader, int fdWrite, int fdRead, bool auditd) : argument 219 logbuf(buf), 330 const char **buf, size_t len, 332 const char *cp = now.strptime(*buf, "[ %s.%q]"); 333 if (cp && (cp >= &(*buf)[len])) { 340 len -= cp - *buf; 345 *buf = cp; 422 static int parseKernelPrio(const char **buf, size_t len) { argument 424 const char *cp = *buf; 433 cp = *buf; 329 sniffTime(log_time &now, const char **buf, size_t len, bool reverse) argument 443 synchronize(const char *buf, size_t len) argument 558 log(const char *buf, size_t len) argument [all...] |
/system/core/toolbox/upstream-netbsd/lib/libc/gen/ |
H A D | humanize_number.c | 47 humanize_number(char *buf, size_t len, int64_t bytes, argument 55 _DIAGASSERT(buf != NULL); 85 if (buf == NULL || suffix == NULL) 89 buf[0] = '\0'; 152 r = snprintf(buf, len, "%d%s%d%s%s%s", 156 r = snprintf(buf, len, "%" PRId64 "%s%s%s",
|
/system/extras/libfec/ |
H A D | fec_process.cpp | 22 uint8_t *buf; member in struct:process_info 38 p->rc = p->func(p->f, p->buf, p->count, p->offset, &p->errors); 43 ssize_t process(fec_handle *f, uint8_t *buf, size_t count, uint64_t offset, argument 47 check(buf) 87 info[i].buf = &buf[pos - offset];
|
/system/core/debuggerd/ |
H A D | crasher.c | 47 char buf[128]; local 48 smash_stack_dummy_buf = buf; 62 void* buf[1]; local 63 buf[0] = p; 64 global = buf; 65 overflow_stack(&buf); 126 char buf[16]; local 127 free((void*) buf); // GCC is smart enough to warn about this, but we're doing it deliberately.
|
H A D | utility.cpp | 54 char buf[512]; local 57 vsnprintf(buf, sizeof(buf), fmt, ap); 60 size_t len = strlen(buf); 66 TEMP_FAILURE_RETRY(write(log->tfd, buf, len)); 70 __android_log_buf_write(LOG_ID_CRASH, ANDROID_LOG_FATAL, LOG_TAG, buf); 72 *log->amfd_data += buf;
|
/system/core/libutils/tests/ |
H A D | TestHelpers.h | 53 char buf[1]; local 54 ssize_t nRead = ::read(receiveFd, buf, 1);
|
/system/keymaster/ |
H A D | android_keymaster_utils.cpp | 27 uint8_t* dup_buffer(const void* buf, size_t size) { argument 32 memcpy(retval, buf, size);
|
H A D | authorization_set_test.cpp | 165 UniquePtr<uint8_t[]> buf(new uint8_t[size]); 166 EXPECT_EQ(buf.get() + size, set.Serialize(buf.get(), buf.get() + size)); 167 AuthorizationSet deserialized(buf.get(), size); 193 UniquePtr<uint8_t[]> buf(new uint8_t[size]); 194 EXPECT_EQ(buf.get() + size, set.Serialize(buf.get(), buf.get() + size)); 196 const uint8_t* p = buf 215 uint8_t buf[] = {0, 0, 0}; local 250 read_uint32(const uint8_t* buf) argument 256 add_to_uint32(uint8_t* buf, int delta) argument [all...] |
H A D | authorization_set.cpp | 305 static uint8_t* serialize(const keymaster_key_param_t& param, uint8_t* buf, const uint8_t* end, argument 307 buf = append_uint32_to_buf(buf, end, param.tag); 313 buf = append_uint32_to_buf(buf, end, param.enumerated); 317 buf = append_uint32_to_buf(buf, end, param.integer); 321 buf = append_uint64_to_buf(buf, end, param.long_integer); 324 buf 402 Serialize(uint8_t* buf, const uint8_t* end) const argument [all...] |
/system/tpm/trunks/ftdi/ |
H A D | support.h | 27 int raw_write(struct mpsse_context* mpsse, uint8_t* buf, int size); 28 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size);
|
/system/extras/sound/ |
H A D | playwav.c | 39 int (*fill)(void *buf, unsigned sz, void *cookie), 45 char buf[8192]; local 66 if (sz > sizeof(buf)) { 73 if (fill(buf, sz, cookie)) 75 if (write(afd, buf, sz) != sz) 87 if (fill(buf, sz, cookie)) 89 if (write(afd, buf, sz) != sz) 127 int fill_buffer(void *buf, unsigned sz, void *cookie) argument 131 memcpy(buf, next, sz); 196 unsigned char buf[819 local 38 pcm_play(unsigned rate, unsigned channels, int (*fill)(void *buf, unsigned sz, void *cookie), void *cookie) argument 299 char buf[64*1024]; local [all...] |
/system/extras/tests/pagingtest/ |
H A D | pagingtest.h | 13 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached);
|
/system/tpm/tpm_manager/server/ |
H A D | tpm_status_impl.cc | 100 trousers::ScopedTssMemory buf(tpm_connection_.GetContext()); 104 &length, buf.ptr()); 112 data->assign(buf.value(), buf.value() + length);
|
/system/update_engine/payload_consumer/ |
H A D | mtd_file_descriptor.h | 40 ssize_t Read(void* buf, size_t count) override; 41 ssize_t Write(const void* buf, size_t count) override; 75 ssize_t Read(void* buf, size_t count) override; 76 ssize_t Write(const void* buf, size_t count) override;
|
/system/update_engine/payload_generator/ |
H A D | xz_android.cc | 37 static SRes ReadStatic(void* p, void* buf, size_t* size) { argument 41 memcpy(buf, self->data_.data() + self->pos_, *size); 58 static size_t WriteStatic(void* p, const void* buf, size_t size) { argument 61 const uint8_t* buffer = reinterpret_cast<const uint8_t*>(buf);
|
/system/bt/tools/bdtool/ |
H A D | adapter.c | 97 char buf[18]; local 116 fprintf(stdout, "Bond state changed callback addr:%s state:%s\n", bdaddr_to_string(bdaddr, buf, sizeof(buf)), state_name); 155 char buf[18]; local 157 bdaddr_to_string(bdaddr, buf, sizeof(buf)), num_properties); 191 char buf[18]; local 192 fprintf(stdout, "Device found:%s %s\n", bdaddr_to_string(remote_bd_addr, buf, sizeof(buf)), bd_name->name); 220 char buf[1 local [all...] |
/system/core/init/ |
H A D | signal_handler.cpp | 42 char buf[32]; local 43 read(signal_read_fd, buf, sizeof(buf));
|
/system/keymaster/include/keymaster/ |
H A D | android_keymaster_messages.h | 111 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override; 115 virtual uint8_t* NonErrorSerialize(uint8_t* buf, const uint8_t* end) const = 0; 126 uint8_t* Serialize(uint8_t* buf, const uint8_t* /* end */) const override { return buf; } 136 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { 137 return append_uint32_to_buf(buf, end, algorithm); 161 uint8_t* Serialize(uint8_t* buf, const uint8_t* end) const override { 162 buf = append_uint32_to_buf(buf, end, algorithm); 163 return append_uint32_to_buf(buf, en [all...] |
/system/media/audio_utils/ |
H A D | conversion.cpp | 26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { argument 32 int16_t *out = (int16_t *)buf; 46 float *out = (float *)buf;
|
/system/core/libbacktrace/ |
H A D | UnwindPtrace.cpp | 134 char buf[512]; local 136 if (unw_get_proc_name_by_ip(addr_space_, pc, buf, sizeof(buf), &value, 137 upt_info_) >= 0 && buf[0] != '\0') { 139 return buf;
|
/system/extras/sane_schedstat/ |
H A D | sane_schedstat.c | 144 char buf[4096]; local 149 i = read(fd, buf, sizeof(buf) - 1); 151 buf[i] = '\0'; 152 if (parse(buf)) return -1;
|
/system/core/liblog/ |
H A D | pmsg_writer.c | 194 static inline const char *strnrchr(const char *buf, size_t len, char c) { argument 195 const char *cp = buf + len; 196 while ((--cp > buf) && (*cp != c)); 197 if (cp <= buf) { 198 return buf + len; 208 const char *buf, size_t len) { 273 transfer = strnrchr(buf, packet_len - 1, '\n') - buf; 274 if ((transfer < length) && (buf[transfer] == '\n')) { 279 vec[2].iov_base = (unsigned char *)buf; 204 __android_log_pmsg_file_write( log_id_t logId, char prio, const char *filename, const char *buf, size_t len) argument [all...] |
/system/extras/alloc-stress/ |
H A D | alloc-stress.cpp | 154 char buf[256]; local 156 snprintf(buf, sizeof(buf), "/dev/memctl/apps/%u", pid); 158 int tasks = mkdir(buf, S_IRWXU | S_IRWXG | S_IROTH | S_IXOTH); 163 snprintf(buf, sizeof(buf), "/dev/memctl/apps/%u/tasks", pid); 164 tasks = open(buf, O_WRONLY); 169 snprintf(buf, sizeof(buf), "%u", pid); 170 write(tasks, buf, strle [all...] |
/system/update_engine/common/ |
H A D | utils.cc | 193 int fd, void* buf, size_t count, size_t* out_bytes_read, bool* eof) { 194 char* c_buf = static_cast<char*>(buf); 221 bool WriteAll(int fd, const void* buf, size_t count) { argument 222 const char* c_buf = static_cast<const char*>(buf); 232 bool PWriteAll(int fd, const void* buf, size_t count, off_t offset) { argument 233 const char* c_buf = static_cast<const char*>(buf); 252 bool WriteAll(FileDescriptorPtr fd, const void* buf, size_t count) { argument 253 const char* c_buf = static_cast<const char*>(buf); 264 const void* buf, 269 return WriteAll(fd, buf, coun 192 ReadAll( int fd, void* buf, size_t count, size_t* out_bytes_read, bool* eof) argument 263 PWriteAll(FileDescriptorPtr fd, const void* buf, size_t count, off_t offset) argument 272 PReadAll(int fd, void* buf, size_t count, off_t offset, ssize_t* out_bytes_read) argument 289 PReadAll(FileDescriptorPtr fd, void* buf, size_t count, off_t offset, ssize_t* out_bytes_read) argument 309 AppendBytes(const uint8_t* buf, size_t nbytes, brillo::Blob* vec_p) argument 315 AppendBytes(const uint8_t* buf, size_t nbytes, string* str_p) argument 330 uint8_t buf[1024]; local 450 char buf[20]; local 555 char buf[100]; local [all...] |
/system/core/adb/ |
H A D | adb_auth_client.cpp | 58 char buf[MAX_PAYLOAD_V1]; local 68 while (fgets(buf, sizeof(buf), f)) { 77 sep = strpbrk(buf, " \t"); 81 ret = __b64_pton(buf, (u_char *)&key->key, sizeof(key->key) + 4); 115 struct stat buf; local 120 if (!stat(path, &buf)) {
|