/system/extras/ext4_utils/ |
H A D | setup_fs.c | 14 char buf[256], path[128]; local 32 snprintf(buf, sizeof(buf), "/sys/fs/ext4/%s", blockdev); 33 if (access(buf, F_OK) == 0) { 37 snprintf(buf, sizeof(buf), "/dev/block/%s", blockdev); 39 if (!partition_wiped(buf)) { 52 execl(mkfs, mkfs, buf, NULL);
|
/system/extras/tests/pagingtest/ |
H A D | mmap_test.c | 11 void *buf; local 25 buf = mmap(NULL, alloc_size, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); 27 if (buf == ((void *)-1)) { 35 munmap(buf, alloc_size); 47 munmap(buf, alloc_size);
|
H A D | pageinout_test.c | 17 volatile char *buf; local 36 buf = mmap(NULL, file_size, PROT_READ, MAP_PRIVATE, fd, 0); 37 if (buf == ((void *)-1)) { 42 if (!check_caching((void *)buf, vec, file_size, false)) { 50 buf[j]; 57 if (!check_caching((void *)buf, vec, file_size, true)) { 62 rc = madvise((void *)buf, file_size, MADV_DONTNEED) || 73 if (!check_caching((void *)buf, vec, file_size, false)) { 86 munmap((void *)buf, file_size);
|
/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...] |
/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/update_engine/common/ |
H A D | hash_calculator_unittest.cc | 94 char buf[8]; local 99 ASSERT_EQ(digit_count, snprintf(buf, sizeof(buf), "%d", i)) << " i = " << i; 100 calc.Update(buf, strlen(buf));
|
/system/update_engine/payload_consumer/ |
H A D | bzip_extent_writer_unittest.cc | 79 brillo::Blob buf; local 80 EXPECT_TRUE(utils::ReadFile(temp_file_.path(), &buf)); 81 EXPECT_EQ(strlen(test_uncompressed), buf.size()); 82 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/bt/osi/src/ |
H A D | buffer.c | 48 buffer_t *buffer_new_ref(const buffer_t *buf) { argument 49 assert(buf != NULL); 50 return buffer_new_slice(buf, buf->length); 53 buffer_t *buffer_new_slice(const buffer_t *buf, size_t slice_size) { argument 54 assert(buf != NULL); 56 assert(slice_size <= buf->length); 60 ret->root = buf->root; 64 ++buf->root->refcount; 84 void *buffer_ptr(const buffer_t *buf) { argument 89 buffer_length(const buffer_t *buf) argument [all...] |
/system/connectivity/shill/net/ |
H A D | io_handler.h | 29 InputData() : buf(nullptr), len(0) {} 30 InputData(unsigned char* in_buf, size_t in_len) : buf(in_buf), len(in_len) {} 32 unsigned char* buf; member in struct:shill::InputData
|
H A D | netlink_socket_unittest.cc | 74 // Copies |len| bytes of |next_read_string_| into |buf| and clears 76 ssize_t FakeSuccessfulRead(int sockfd, void* buf, size_t len, int flags, argument 78 if (!buf) { 82 memcpy(buf, next_read_string_.GetConstData(), read_bytes);
|
/system/core/adb/ |
H A D | console.cpp | 139 char buf[BUFSIZ]; local 140 result = adb_read(fd, buf, sizeof(buf));
|
H A D | adb_io.cpp | 43 char buf[5]; local 44 if (!ReadFdExactly(fd, buf, 4)) { 48 buf[4] = 0; 50 unsigned long len = strtoul(buf, 0, 16); 68 bool ReadFdExactly(int fd, void* buf, size_t len) { argument 69 char* p = reinterpret_cast<char*>(buf); 90 << " " << dump_hex(reinterpret_cast<const unsigned char*>(buf), len0); 95 bool WriteFdExactly(int fd, const void* buf, size_t len) { argument 96 const char* p = reinterpret_cast<const char*>(buf); 100 << " " << dump_hex(reinterpret_cast<const unsigned char*>(buf), le 144 char buf[16]; local [all...] |
H A D | sysdeps_win32_test.cpp | 145 void TestParseCompleteUTF8(const char* buf, const size_t buf_size, argument 149 const size_t complete_bytes = internal::ParseCompleteUTF8(buf, buf + buf_size,
|
/system/core/adf/libadf/tests/ |
H A D | adf_test.cpp | 76 void drawCheckerboard(void *buf, uint32_t w, uint32_t h, uint32_t pitch) { argument 77 uint8_t *buf8 = reinterpret_cast<uint8_t *>(buf);
|
/system/core/include/mincrypt/ |
H A D | hash-internal.h | 49 uint8_t buf[64]; member in struct:HASH_CTX
|
/system/core/include/utils/ |
H A D | Compat.h | 32 static inline ssize_t pread64(int fd, void* buf, size_t nbytes, off64_t offset) { argument 33 return pread(fd, buf, nbytes, offset); 36 static inline ssize_t pwrite64(int fd, const void* buf, size_t nbytes, off64_t offset) { argument 37 return pwrite(fd, buf, nbytes, offset);
|
/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/core/libutils/tests/ |
H A D | BlobCache_test.cpp | 47 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 49 ASSERT_EQ(size_t(4), mBC->get("abcd", 4, buf, 4)); 50 ASSERT_EQ('e', buf[0]); 51 ASSERT_EQ('f', buf[1]); 52 ASSERT_EQ('g', buf[2]); 53 ASSERT_EQ('h', buf[3]); 57 unsigned char buf[2] = { 0xee, 0xee }; local 60 ASSERT_EQ(size_t(2), mBC->get("ab", 2, buf, 2)); 61 ASSERT_EQ('c', buf[0]); 62 ASSERT_EQ('d', buf[ 69 unsigned char buf[6] = { 0xee, 0xee, 0xee, 0xee, 0xee, 0xee }; local 81 unsigned char buf[3] = { 0xee, 0xee, 0xee }; local 95 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 106 unsigned char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; local 118 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 131 char buf[MAX_VALUE_SIZE+1]; local 285 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 351 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 368 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 387 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local 406 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; local [all...] |
H A D | TestHelpers.h | 53 char buf[1]; local 54 ssize_t nRead = ::read(receiveFd, buf, 1);
|
/system/core/logd/ |
H A D | LogListener.cpp | 34 LogListener::LogListener(LogBuffer *buf, LogReader *reader) : argument 36 logbuf(buf),
|
/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/btcore/src/ |
H A D | uuid.c | 69 char buf[3] = {0}; local 70 buf[0] = s[0]; 71 buf[1] = s[1]; 72 uuid->uu[i] = strtoul(buf, NULL, 16);
|
/system/bt/utils/src/ |
H A D | bt_utils.c | 99 char buf[PROPERTY_VALUE_MAX]; local 100 int len = osi_property_get("debug.sys.noschedgroups", buf, ""); 103 if (sscanf(buf, "%d", &temp) == 1) {
|