Home
last modified time | relevance | path

Searched refs:vec (Results 1 – 25 of 39) sorted by relevance

12

/system/core/liblog/
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) { in __write_to_log_daemon() argument
251 len += vec[i].iov_len; in __write_to_log_daemon()
261 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
278 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
306 tag = android_lookupEventTag_len(m, &len, get4LE(vec[0].iov_base)); in __write_to_log_daemon()
319 const char* tag = vec[0].iov_base; in __write_to_log_daemon()
320 size_t len = vec[0].iov_len; in __write_to_log_daemon()
330 len = vec[1].iov_len; in __write_to_log_daemon()
[all …]
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, in pmsgWrite() argument
109 if (vec[0].iov_len < 4) { in pmsgWrite()
113 if (SNET_EVENT_LOG_TAG != get4LE(vec[0].iov_base)) { in pmsgWrite()
158 newVec[i].iov_base = vec[i - headerLength].iov_base; in pmsgWrite()
159 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
216 struct iovec vec[3]; in __android_log_pmsg_file_write() local
246 vec[0].iov_base = &prio; in __android_log_pmsg_file_write()
247 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write()
248 vec[1].iov_base = (unsigned char*)tag; in __android_log_pmsg_file_write()
[all …]
Dfake_writer.c30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec,
76 struct iovec* vec, size_t nr) { in fakeWrite() argument
87 len += vec[i].iov_len; in fakeWrite()
95 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr)); in fakeWrite()
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, in stderrWrite() argument
160 if (!vec || !nr) return -EINVAL; in stderrWrite()
176 size_t len = vec[i].iov_len; in stderrWrite()
181 memcpy(log_msg.entry.msg + log_msg.entry.len, vec[i].iov_base, len); in stderrWrite()
Dfake_log_device.c470 struct iovec* vec = stackVec; in showLog() local
477 vec = (struct iovec*)malloc(sizeof(struct iovec) * numVecs); in showLog()
478 if (vec == NULL) { in showLog()
482 vec = stackVec; in showLog()
490 struct iovec* v = vec; in showLog()
534 int cc = writev(fileno(stderr), vec, v - vec); in showLog()
552 if (vec != stackVec) free(vec); in showLog()
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, in logdWrite() argument
227 newVec[i].iov_base = vec[i - headerLength].iov_base; in logdWrite()
228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
/system/extras/tests/pagingtest/
Dpageinout_test.c15 unsigned char *vec; in pageinout_test() local
32 vec = alloc_mincore_vec(file_size); in pageinout_test()
33 if (vec == NULL) { in pageinout_test()
43 if (!check_caching((void *)buf, vec, file_size, false)) { in pageinout_test()
67 if (!check_caching((void *)buf, vec, file_size, true)) { in pageinout_test()
83 if (!check_caching((void *)buf, vec, file_size, false)) { in pageinout_test()
100 free(vec); in pageinout_test()
Dpagingtest.c102 unsigned char *vec; in alloc_mincore_vec() local
104 vec = malloc(mincore_vec_len(size)); in alloc_mincore_vec()
105 if (vec == NULL) { in alloc_mincore_vec()
109 return vec; in alloc_mincore_vec()
112 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached) { in check_caching() argument
116 if (mincore(buf, size, vec)) { in check_caching()
123 if (!(vec[i] & 0x1)) { in check_caching()
130 if (vec[i] & 0x1) { in check_caching()
Dpagingtest.h13 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached);
/system/libhwbinder/
DStatic.cpp40 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument
44 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base); in writeLines()
56 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument
58 writev(mFD, &vec, N); in writeLines()
DBufferedTextOutput.cpp194 struct iovec vec; in print() local
195 vec.iov_base = (void*)first; in print()
196 vec.iov_len = lastLine-first; in print()
198 writeLines(vec, 1); in print()
213 struct iovec vec; in print() local
214 vec.iov_base = b->buffer; in print()
215 vec.iov_len = b->bufferPos; in print()
217 writeLines(vec, 1); in print()
254 struct iovec vec; in popBundle() local
255 vec.iov_base = b->buffer; in popBundle()
[all …]
/system/core/libsysutils/src/
DSocketClient.cpp111 struct iovec vec[2]; in sendBinaryMsg() local
112 vec[0].iov_base = (void *) buf; in sendBinaryMsg()
113 vec[0].iov_len = sizeof(buf); in sendBinaryMsg()
114 vec[1].iov_base = (void *) data; in sendBinaryMsg()
115 vec[1].iov_len = len; in sendBinaryMsg()
118 int result = sendDataLockedv(vec, (len > 0) ? 2 : 1); in sendBinaryMsg()
171 struct iovec vec[1]; in sendData() local
172 vec[0].iov_base = (void *) data; in sendData()
173 vec[0].iov_len = len; in sendData()
176 int rc = sendDataLockedv(vec, 1); in sendData()
/system/chre/apps/wifi_offload/test/include/
Dutility.h76 void init(wifi_offload::Vector<T> &vec, RandomGenerator &rand_gen, in init() argument
78 vec.clear(); in init()
82 vec.push_back(std::move(new_elem)); in init()
87 void init(wifi_offload::Vector<T> &vec, RandomGenerator &rand_gen) { in init() argument
89 init(vec, rand_gen, vec_len); in init()
/system/core/libprocinfo/
Dprocess_test.cpp74 std::vector<pid_t> vec; in TEST() local
75 ASSERT_TRUE(android::procinfo::GetProcessTids(getpid(), &vec)); in TEST()
76 ASSERT_EQ(1, std::count(vec.begin(), vec.end(), main_tid)); in TEST()
77 ASSERT_EQ(1, std::count(vec.begin(), vec.end(), thread_tid)); in TEST()
/system/chre/util/tests/
Ddynamic_vector_test.cc788 DynamicVector<int> vec; in TEST() local
789 vec.wrap(buf, kSize); in TEST()
790 ASSERT_FALSE(vec.owns_data()); in TEST()
792 vec.unwrap(); in TEST()
793 EXPECT_TRUE(vec.owns_data()); in TEST()
794 EXPECT_EQ(vec.size(), 0); in TEST()
795 EXPECT_EQ(vec.capacity(), 0); in TEST()
796 EXPECT_EQ(vec.data(), nullptr); in TEST()
798 EXPECT_TRUE(vec.push_back(1)); in TEST()
808 DynamicVector<int> vec; in TEST() local
[all …]
/system/chre/host/common/
Dhost_protocol_host.cc44 const char *getStringFromByteVector(const flatbuffers::Vector<int8_t> *vec) { in getStringFromByteVector() argument
49 if (vec != nullptr && vec->size() > 0 in getStringFromByteVector()
50 && (*vec)[vec->size() - 1] == kNullChar) { in getStringFromByteVector()
51 str = reinterpret_cast<const char *>(vec->data()); in getStringFromByteVector()
/system/tools/hidl/test/vendor/1.0/
DIVendor.hal24 vec<uint8_t> b;
29 fun2(vec<uint8_t> a) generates(vec<uint8_t> b);
/system/core/adb/
Dfdevent_test.cpp178 std::vector<int> vec; in TEST_F() local
184 fdevent_run_on_main_thread([i, &vec]() { in TEST_F()
186 vec.push_back(i); in TEST_F()
192 ASSERT_EQ(100u, vec.size()); in TEST_F()
194 ASSERT_EQ(i, vec[i]); in TEST_F()
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h86 const hidl_vec<T> &vec, in readEmbeddedFromParcel() argument
93 vec.size() * sizeof(T), in readEmbeddedFromParcel()
102 const hidl_vec<T> &vec, in writeEmbeddedToParcel() argument
108 vec.data(), in writeEmbeddedToParcel()
109 sizeof(T) * vec.size(), in writeEmbeddedToParcel()
116 status_t findInParcel(const hidl_vec<T> &vec, const Parcel &parcel, size_t *handle) { in findInParcel() argument
117 return parcel.quickFindBuffer(vec.data(), handle); in findInParcel()
/system/hardware/interfaces/wifi/keystore/1.0/
DIKeystore.hal45 generates (KeystoreStatusCode status, vec<uint8_t> value);
59 generates (KeystoreStatusCode status, vec<uint8_t> publicKey);
74 sign(string keyId, vec<uint8_t> dataToSign)
75 generates (KeystoreStatusCode status, vec<uint8_t> signedData);
/system/tools/hidl/utils/
DStringHelper.cpp65 std::vector<std::string> *vec) { in Tokenize() argument
69 vec->clear(); in Tokenize()
73 vec->clear(); in Tokenize()
90 vec->push_back(maxmatch); in Tokenize()
97 vec->push_back(copy); in Tokenize()
/system/libhidl/transport/token/1.0/
DITokenManager.hal34 createToken(interface store) generates (vec<uint8_t>token);
42 unregister(vec<uint8_t> token) generates (bool success);
51 get(vec<uint8_t> token) generates (interface store);
/system/chre/external/flatbuffers/include/flatbuffers/
Dflatbuffers.h1500 template<typename T> bool Verify(const Vector<T> *vec) const {
1502 return !vec ||
1503 VerifyVector(reinterpret_cast<const uint8_t *>(vec), sizeof(T),
1508 template<typename T> bool Verify(const Vector<const T *> *vec) const {
1509 return Verify(reinterpret_cast<const Vector<T> *>(vec));
1524 bool VerifyVector(const uint8_t *vec, size_t elem_size,
1527 if (!Verify<uoffset_t>(vec)) return false;
1530 auto size = ReadScalar<uoffset_t>(vec);
1535 *end = vec + byte_size;
1536 return Verify(vec, byte_size);
[all …]
/system/libhidl/transport/manager/1.0/
DIServiceManager.hal97 list() generates (vec<string> fqInstanceNames);
106 listByInterface(string fqName) generates (vec<string> instanceNames);
145 vec<int32_t> clientPids;
154 debugDump() generates (vec<InstanceDebugInfo> info);
/system/libhwbinder/include/hwbinder/
DBufferedTextOutput.h46 virtual status_t writeLines(const struct iovec& vec, size_t N) = 0;

12