Searched defs:vec (Results 1 - 23 of 23) sorted by relevance

/system/core/liblog/
H A Dfake_writer.c30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec,
76 struct iovec* vec, size_t nr) {
87 len += vec[i].iov_len;
95 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr));
75 fakeWrite(log_id_t log_id, struct timespec* ts __unused, struct iovec* vec, size_t nr) argument
H A Dlogd_writer.c48 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec,
127 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument
227 newVec[i].iov_base = vec[i - headerLength].iov_base;
228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len;
H A Dstderr_write.c48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec,
150 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument
160 if (!vec || !nr) return -EINVAL;
176 size_t len = vec[i].iov_len;
181 memcpy(log_msg.entry.msg + log_msg.entry.len, vec[i].iov_base, len);
H A Dpmsg_writer.c40 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec,
99 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, argument
109 if (vec[0].iov_len < 4) {
113 if (SNET_EVENT_LOG_TAG != get4LE(vec[0].iov_base)) {
158 newVec[i].iov_base = vec[i - headerLength].iov_base;
159 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len;
216 struct iovec vec[3]; local
246 vec[0].iov_base = &prio;
247 vec[0].iov_len = sizeof(char);
248 vec[
[all...]
H A Dlocal_logger.c46 struct iovec* vec, size_t nr);
290 struct iovec* vec, size_t nr) {
300 len += vec[i].iov_len;
323 size_t iov_len = vec[i].iov_len;
327 memcpy(cp, vec[i].iov_base, iov_len);
289 writeToLocalWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) argument
H A Dlogger_write.c39 static int __write_to_log_init(log_id_t, struct iovec* vec, size_t nr);
40 static int (*write_to_log)(log_id_t, struct iovec* vec,
244 static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) { argument
251 len += vec[i].iov_len;
261 if (vec[0].iov_len < 4) {
278 if (vec[0].iov_len < 4) {
306 tag = android_lookupEventTag_len(m, &len, get4LE(vec[0].iov_base));
319 const char* tag = vec[0].iov_base;
320 size_t len = vec[0].iov_len;
330 len = vec[
377 __write_to_log_init(log_id_t log_id, struct iovec* vec, size_t nr) argument
407 struct iovec vec[3]; local
509 struct iovec vec[2]; local
522 struct iovec vec[2]; local
539 struct iovec vec[3]; local
556 struct iovec vec[4]; local
578 struct iovec vec[4]; local
594 __write_to_log_null(log_id_t log_id, struct iovec* vec, size_t nr) argument
[all...]
H A Dfake_log_device.c472 struct iovec* vec = stackVec; local
479 vec = (struct iovec*)malloc(sizeof(struct iovec) * numVecs);
480 if (vec == NULL) {
484 vec = stackVec;
492 struct iovec* v = vec;
536 int cc = writev(fileno(stderr), vec, v - vec);
554 if (vec != stackVec) free(vec);
/system/extras/tests/pagingtest/
H A Dpageinout_test.c15 unsigned char *vec; local
32 vec = alloc_mincore_vec(file_size);
33 if (vec == NULL) {
43 if (!check_caching((void *)buf, vec, file_size, false)) {
67 if (!check_caching((void *)buf, vec, file_size, true)) {
83 if (!check_caching((void *)buf, vec, file_size, false)) {
100 free(vec);
H A Dpagingtest.c102 unsigned char *vec; local
104 vec = malloc(mincore_vec_len(size));
105 if (vec == NULL) {
109 return vec;
112 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached) { argument
116 if (mincore(buf, size, vec)) {
123 if (!(vec[i] & 0x1)) {
130 if (vec[i] & 0x1) {
/system/libhwbinder/
H A DStatic.cpp40 virtual status_t writeLines(const struct iovec& vec, size_t N) argument
42 //android_writevLog(&vec, N); <-- this is now a no-op
44 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base);
56 virtual status_t writeLines(const struct iovec& vec, size_t N) argument
58 writev(mFD, &vec, N);
H A DBufferedTextOutput.cpp194 struct iovec vec; local
195 vec.iov_base = (void*)first;
196 vec.iov_len = lastLine-first;
197 //printf("Writing %d bytes of data!\n", vec.iov_len);
198 writeLines(vec, 1);
213 struct iovec vec; local
214 vec.iov_base = b->buffer;
215 vec.iov_len = b->bufferPos;
216 //printf("Writing %d bytes of data!\n", vec.iov_len);
217 writeLines(vec,
254 struct iovec vec; local
[all...]
/system/chre/host/common/
H A Dhost_protocol_host.cc40 * @param vec Target vector, can be null
44 const char *getStringFromByteVector(const flatbuffers::Vector<int8_t> *vec) { argument
49 if (vec != nullptr && vec->size() > 0
50 && (*vec)[vec->size() - 1] == kNullChar) {
51 str = reinterpret_cast<const char *>(vec->data());
/system/chre/util/tests/
H A Ddynamic_vector_test.cc771 DynamicVector<int> vec; local
772 vec.wrap(buf, kSize);
773 ASSERT_FALSE(vec.owns_data());
775 vec.unwrap();
776 EXPECT_TRUE(vec.owns_data());
777 EXPECT_EQ(vec.size(), 0);
778 EXPECT_EQ(vec.capacity(), 0);
779 EXPECT_EQ(vec.data(), nullptr);
781 EXPECT_TRUE(vec.push_back(1));
791 DynamicVector<int> vec; local
813 DynamicVector<Dummy> vec; local
838 DynamicVector<int> vec; local
[all...]
/system/core/libappfuse/
H A DFuseBuffer.cc102 const struct iovec vec[] = {{const_cast<char*>(buf), sizeof(header)}, local
104 result = TEMP_FAILURE_RETRY(writev(fd, vec, arraysize(vec)));
/system/tools/hidl/utils/
H A DStringHelper.cpp69 std::vector<std::string> *vec) {
73 vec->clear();
77 vec->clear();
94 vec->push_back(maxmatch);
101 vec->push_back(copy);
68 Tokenize(const std::string &in, std::vector<std::string> *vec) argument
/system/core/libsysutils/src/
H A DSocketClient.cpp111 struct iovec vec[2]; local
112 vec[0].iov_base = (void *) buf;
113 vec[0].iov_len = sizeof(buf);
114 vec[1].iov_base = (void *) data;
115 vec[1].iov_len = len;
118 int result = sendDataLockedv(vec, (len > 0) ? 2 : 1);
171 struct iovec vec[1]; local
172 vec[0].iov_base = (void *) data;
173 vec[0].iov_len = len;
176 int rc = sendDataLockedv(vec,
[all...]
/system/libhidl/transport/include/hidl/
H A DHidlBinderSupport.h95 const hidl_vec<T> &vec,
102 vec.size() * sizeof(T),
111 const hidl_vec<T> &vec,
117 vec.data(),
118 sizeof(T) * vec.size(),
125 status_t findInParcel(const hidl_vec<T> &vec, const Parcel &parcel, size_t *handle) { argument
126 return parcel.quickFindBuffer(vec.data(), handle);
94 readEmbeddedFromParcel( const hidl_vec<T> &vec, const Parcel &parcel, size_t parentHandle, size_t parentOffset, size_t *handle) argument
110 writeEmbeddedToParcel( const hidl_vec<T> &vec, Parcel *parcel, size_t parentHandle, size_t parentOffset, size_t *handle) argument
/system/libhidl/transport/
H A DServiceManagement.cpp350 std::vector<InstanceDebugInfo> vec; variable
358 vec.push_back({
368 _hidl_cb(vec); variable
/system/connectivity/wificond/net/
H A Dnetlink_manager.cpp52 void AppendPacket(vector<unique_ptr<const NL80211Packet>>* vec, argument
54 vec->push_back(std::move(packet));
/system/libvintf/
H A Dparse_xml.cpp324 std::vector<T> vec; local
325 if (!parseChildren(root, conv, &vec)) {
329 s->insert(vec.begin(), vec.end());
330 if (s->size() != vec.size()) {
/system/core/sdcard/
H A Dfuse.cpp493 struct iovec vec[2]; local
494 vec[0].iov_base = &hdr;
495 vec[0].iov_len = sizeof(hdr);
496 vec[1].iov_base = data;
497 vec[1].iov_len = len;
499 ssize_t ret = TEMP_FAILURE_RETRY(writev(fuse->fd, vec, 2));
567 struct iovec vec[3]; local
568 vec[0].iov_base = &hdr;
569 vec[0].iov_len = sizeof(hdr);
570 vec[
[all...]
/system/tools/hidl/test/
H A Dhidl_test_client.cpp174 hidl_vec<hidl_string> vec; variable
175 vec.resize(2);
176 _cb(vec); variable
231 hidl_vec<hidl_string> vec; variable
232 vec.resize(2);
233 _cb(vec); variable
/system/chre/external/flatbuffers/include/flatbuffers/
H A Dflatbuffers.h1499 template<typename T> bool Verify(const Vector<T> *vec) const {
1501 return !vec ||
1502 VerifyVector(reinterpret_cast<const uint8_t *>(vec), sizeof(T),
1507 template<typename T> bool Verify(const Vector<const T *> *vec) const {
1508 return Verify(reinterpret_cast<const Vector<T> *>(vec));
1523 bool VerifyVector(const uint8_t *vec, size_t elem_size, argument
1526 if (!Verify<uoffset_t>(vec)) return false;
1529 auto size = ReadScalar<uoffset_t>(vec);
1534 *end = vec + byte_size;
1535 return Verify(vec, byte_siz
1551 VerifyVectorOfTables(const Vector<Offset<T>> *vec) argument
[all...]

Completed in 574 milliseconds