Home
last modified time | relevance | path

Searched defs:buf (Results 1 – 25 of 255) sorted by relevance

1234567891011

/system/extras/f2fs_utils/
Df2fs_ioutils.c90 void *buf; member
97 static int dev_write_fd(void *buf, __u64 offset, size_t len) in dev_write_fd()
119 static int dev_write_sparse(void *buf, __u64 byte_offset, size_t byte_len) in dev_write_sparse()
153 int dev_read_version(void *buf, __u64 offset, size_t len) in dev_read_version()
158 int dev_read(void *buf, __u64 offset, size_t len) in dev_read()
163 int dev_write(void *buf, __u64 offset, size_t len) in dev_write()
173 int dev_fill(void *buf, __u64 offset, size_t len) in dev_fill()
184 int dev_read_block(void *buf, __u64 blk_addr) in dev_read_block()
190 int dev_read_blocks(void *buf, __u64 addr, __u32 nr_blks) in dev_read_blocks()
/system/core/libutils/tests/
DBlobCache_test.cpp47 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
57 unsigned char buf[2] = { 0xee, 0xee }; in TEST_F() local
69 unsigned char buf[6] = { 0xee, 0xee, 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
81 unsigned char buf[3] = { 0xee, 0xee, 0xee }; in TEST_F() local
95 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
106 unsigned char buf[MAX_VALUE_SIZE+1] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
118 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
131 char buf[MAX_VALUE_SIZE+1]; in TEST_F() local
154 char buf[bufSize]; in TEST_F() local
168 unsigned char buf[4] = { 0xee, 0xee, 0xee, 0xee }; in TEST_F() local
[all …]
/system/core/libsuspend/
Dautosuspend_earlysuspend.c51 char buf; in wait_for_fb_wake() local
64 char buf; in wait_for_fb_sleep() local
98 char buf[80]; in autosuspend_earlysuspend_enable() local
128 char buf[80]; in autosuspend_earlysuspend_disable() local
163 char buf[80]; in start_earlysuspend_thread() local
191 char buf[80]; in autosuspend_earlysuspend_init() local
Dautosuspend_autosleep.c38 char buf[80]; in autosuspend_autosleep_enable() local
60 char buf[80]; in autosuspend_autosleep_disable() local
87 char buf[80]; in autosuspend_autosleep_init() local
Dautosuspend_wakeup_count.c46 char buf[80]; in suspend_thread_func() local
107 char buf[80]; in autosuspend_wakeup_count_enable() local
126 char buf[80]; in autosuspend_wakeup_count_disable() local
160 char buf[80]; in autosuspend_wakeup_count_init() local
/system/core/logd/
DCommandListener.cpp39 CommandListener::CommandListener(LogBuffer *buf, LogReader * /*reader*/, in CommandListener()
68 CommandListener::ClearCmd::ClearCmd(LogBuffer *buf) : in ClearCmd()
104 CommandListener::GetBufSizeCmd::GetBufSizeCmd(LogBuffer *buf) : in GetBufSizeCmd()
124 char buf[512]; in runCommand() local
130 CommandListener::SetBufSizeCmd::SetBufSizeCmd(LogBuffer *buf) : in SetBufSizeCmd()
164 CommandListener::GetBufSizeUsedCmd::GetBufSizeUsedCmd(LogBuffer *buf) : in GetBufSizeUsedCmd()
184 char buf[512]; in runCommand() local
190 CommandListener::GetStatisticsCmd::GetStatisticsCmd(LogBuffer *buf) : in GetStatisticsCmd()
241 CommandListener::GetPruneListCmd::GetPruneListCmd(LogBuffer *buf) : in GetPruneListCmd()
253 CommandListener::SetPruneListCmd::SetPruneListCmd(LogBuffer *buf) : in SetPruneListCmd()
/system/keymaster/
Dandroid_keymaster_messages.cpp36 static uint8_t* serialize_key_blob(const keymaster_key_blob_t& key_blob, uint8_t* buf, in serialize_key_blob()
60 uint8_t* KeymasterResponse::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
83 uint8_t* GenerateKeyResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
106 uint8_t* GetKeyCharacteristicsRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
120 uint8_t* GetKeyCharacteristicsResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
139 uint8_t* BeginOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
158 uint8_t* BeginOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
179 uint8_t* UpdateOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
215 uint8_t* UpdateOperationResponse::NonErrorSerialize(uint8_t* buf, const uint8_t* end) const { in NonErrorSerialize()
254 uint8_t* FinishOperationRequest::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize()
[all …]
/system/bt/osi/src/
Dbuffer.c48 buffer_t *buffer_new_ref(const buffer_t *buf) { in buffer_new_ref()
53 buffer_t *buffer_new_slice(const buffer_t *buf, size_t slice_size) { in buffer_new_slice()
84 void *buffer_ptr(const buffer_t *buf) { in buffer_ptr()
89 size_t buffer_length(const buffer_t *buf) { in buffer_length()
/system/core/libion/tests/
Ddevice_test.cpp58 void Device::readDMA(int fd, void *buf, size_t size) in readDMA()
72 void Device::writeDMA(int fd, void *buf, size_t size) in writeDMA()
86 void Device::readKernel(int fd, void *buf, size_t size) in readKernel()
100 void Device::writeKernel(int fd, void *buf, size_t size) in writeKernel()
137 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
171 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
205 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
237 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
271 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
305 void *buf = (void *)(ALIGN((unsigned long)alloc, 4096) + 1024); in TEST_F() local
[all …]
/system/bt/bta/hf_client/
Dbta_hf_client_at.c120 static void bta_hf_client_queue_at(tBTA_HF_CLIENT_AT_CMD cmd, const char *buf, UINT16 buf_len) in bta_hf_client_queue_at()
169 static void bta_hf_client_send_at(tBTA_HF_CLIENT_AT_CMD cmd, char *buf, UINT16 buf_len) in bta_hf_client_send_at()
585 #define AT_CHECK_EVENT(buf, event) \ argument
591 #define AT_CHECK_RN(buf) \ argument
598 #define AT_SKIP_REST(buf) while(*buf != '\r') buf++; argument
1377 char *buf = bta_hf_client_cb.scb.at_cb.buf; in bta_hf_client_at_parse_start() local
1452 void bta_hf_client_at_parse(char *buf, unsigned int len) in bta_hf_client_at_parse()
1511 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_brsf() local
1528 char *buf; in bta_hf_client_send_at_bac() local
1546 char buf[BTA_HF_CLIENT_AT_MAX_LEN]; in bta_hf_client_send_at_bcs() local
[all …]
/system/core/libutils/
DString16.cpp43 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)); in initialize_string16() local
70 SharedBuffer* buf = SharedBuffer::alloc(sizeof(char16_t)*(u16len+1)); in allocFromUTF8() local
122 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16() local
136 SharedBuffer* buf = SharedBuffer::alloc((len+1)*sizeof(char16_t)); in String16() local
209 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in setTo() local
232 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in append() local
253 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in append() local
288 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in insert() local
362 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); in makeLower() local
383 SharedBuffer* buf = SharedBuffer::bufferFromData(mString)->edit(); in replaceAll() local
[all …]
DString8.cpp67 SharedBuffer* buf = SharedBuffer::alloc(1); in initialize_string8() local
89 SharedBuffer* buf = SharedBuffer::alloc(len+1); in allocFromUTF8() local
112 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF16() local
134 SharedBuffer* buf = SharedBuffer::alloc(bytes+1); in allocFromUTF32() local
352 char* buf = lockBuffer(oldLength + n); in appendFormatV() local
366 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in real_append() local
381 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in lockBuffer() local
399 SharedBuffer* buf = SharedBuffer::bufferFromData(mString) in unlockBuffer() local
428 char* buf = lockBuffer(size()); in removeAll() local
462 char* buf = lockBuffer(len); in toLower() local
[all …]
DSharedBufferTest.cpp32 android::SharedBuffer* buf = in TEST() local
43 android::SharedBuffer* buf = android::SharedBuffer::alloc(10); in TEST() local
/system/core/adb/
Dadb_io_test.cpp49 char buf[sizeof(expected)] = {}; in TEST() local
63 char buf[sizeof(expected) + 1] = {}; in TEST() local
77 char buf[sizeof(input) - 1] = {}; in TEST() local
101 const char buf[] = "Foobar"; in TEST() local
121 char buf[] = "foo"; in TEST() local
Dadb_io.cpp43 char buf[5]; in ReadProtocolString() local
68 bool ReadFdExactly(int fd, void* buf, size_t len) { in ReadFdExactly()
95 bool WriteFdExactly(int fd, const void* buf, size_t len) { in WriteFdExactly()
144 char buf[16]; in ReadOrderlyShutdown() local
/system/core/libcutils/
Dpartition_utils.c26 static int only_one_char(char *buf, int len, char c) in only_one_char()
42 char buf[4096]; in partition_wiped() local
/system/core/liblog/
Dlogd_reader.c264 const char *msg, char *buf, size_t buf_size) in send_log_msg()
330 static int check_log_success(char *buf, ssize_t ret) in check_log_success()
347 char buf[512]; in logdClear() local
357 char buf[512]; in logdGetSize() local
376 char buf[512]; in logdSetSize() local
391 char buf[512]; in logdGetReadableSize() local
421 char *buf, size_t len) in logdGetStats()
450 char *buf, size_t len) in logdGetPrune()
458 char *buf, size_t len) in logdSetPrune()
Duio.c30 char* buf = vecs->iov_base; in readv() local
57 const char* buf = vecs->iov_base; in writev() local
/system/keymaster/include/keymaster/
Dserializable.h88 inline uint8_t* append_uint32_to_buf(uint8_t* buf, const uint8_t* end, T value) { in append_uint32_to_buf()
96 inline uint8_t* append_uint64_to_buf(uint8_t* buf, const uint8_t* end, uint64_t value) { in append_uint64_to_buf()
106 inline uint8_t* append_size_and_data_to_buf(uint8_t* buf, const uint8_t* end, const void* data, in append_size_and_data_to_buf()
119 inline uint8_t* append_uint32_array_to_buf(uint8_t* buf, const uint8_t* end, const T* data, in append_uint32_array_to_buf()
205 Buffer(const void* buf, size_t size) : buffer_(NULL) { Reinitialize(buf, size); } in Buffer()
/system/tpm/trunks/ftdi/
Dsupport.c45 int raw_read(struct mpsse_context* mpsse, uint8_t* buf, int size) { in raw_read()
97 uint8_t* buf = NULL; in build_block_buffer() local
206 char buf[CMD_SIZE] = {0}; in set_bits_low() local
217 char buf[CMD_SIZE] = {0}; in set_bits_high() local
/system/update_engine/payload_consumer/
Dmtd_file_descriptor.cc138 ssize_t MtdFileDescriptor::Read(void* buf, size_t count) { in Read()
143 ssize_t MtdFileDescriptor::Write(const void* buf, size_t count) { in Write()
217 ssize_t UbiFileDescriptor::Read(void* buf, size_t count) { in Read()
222 ssize_t UbiFileDescriptor::Write(const void* buf, size_t count) { in Write()
242 char buf[1024]; in Close() local
/system/core/healthd/
DBatteryMonitor.cpp127 int BatteryMonitor::readFromFile(const String8& path, char* buf, size_t size) { in readFromFile()
153 char buf[SIZE]; in readPowerSupplyType() local
187 char buf[SIZE]; in getBooleanField() local
201 char buf[SIZE]; in getIntField() local
251 char buf[SIZE]; in update() local
366 char buf[128]; in getChargeStatus() local
/system/extras/tests/directiotest/
Ddirectiotest.c71 static ssize_t do_read(int fd, void *buf, off64_t start, size_t count) in do_read()
93 static ssize_t do_write(int fd, const void *buf, off64_t start, size_t count) in do_write()
123 static void init_test_buf(void *buf, uint64_t start_blk, size_t len) in init_test_buf()
133 static void dump_hex(const void *buf, int len) in dump_hex()
/system/connectivity/shill/
Dfile_io.cc41 ssize_t FileIO::Write(int fd, const void* buf, size_t count) { in Write()
45 ssize_t FileIO::Read(int fd, void* buf, size_t count) { in Read()
/system/core/debuggerd/
Dcrasher.c47 char buf[128]; in smash_stack() local
62 void* buf[1]; in overflow_stack() local
126 char buf[16]; in abuse_heap() local

1234567891011