Home
last modified time | relevance | path

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

123

/system/core/liblog/
Dlogger_write.cpp40 static int __write_to_log_init(log_id_t, struct iovec* vec, size_t nr);
41 static int (*write_to_log)(log_id_t, struct iovec* vec, size_t nr) = __write_to_log_init;
239 static int __write_to_log_daemon(log_id_t log_id, struct iovec* vec, size_t nr) { in __write_to_log_daemon() argument
246 len += vec[i].iov_len; in __write_to_log_daemon()
257 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
277 if (vec[0].iov_len < 4) { in __write_to_log_daemon()
306 tag = android_lookupEventTag_len(m, &len, get4LE(static_cast<uint8_t*>(vec[0].iov_base))); in __write_to_log_daemon()
319 const char* tag = static_cast<const char*>(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.cpp41 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
98 static int pmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in pmsgWrite() argument
107 if (vec[0].iov_len < 4) { in pmsgWrite()
111 if (SNET_EVENT_LOG_TAG != get4LE(static_cast<uint8_t*>(vec[0].iov_base))) { in pmsgWrite()
156 newVec[i].iov_base = vec[i - headerLength].iov_base; in pmsgWrite()
157 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in pmsgWrite()
210 struct iovec vec[3]; in __android_log_pmsg_file_write() local
240 vec[0].iov_base = &prio; in __android_log_pmsg_file_write()
241 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write()
242 vec[1].iov_base = (unsigned char*)tag; in __android_log_pmsg_file_write()
[all …]
Dfake_writer.cpp30 static int fakeWrite(log_id_t log_id, struct timespec* ts, struct iovec* vec, size_t nr);
74 static int fakeWrite(log_id_t log_id, struct timespec*, struct iovec* vec, size_t nr) { in fakeWrite() argument
85 len += vec[i].iov_len; in fakeWrite()
93 ret = TEMP_FAILURE_RETRY(fakeLogWritev(logFd, vec, nr)); in fakeWrite()
Dstderr_write.cpp48 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
149 static int stderrWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in stderrWrite() argument
158 if (!vec || !nr) return -EINVAL; in stderrWrite()
174 size_t len = vec[i].iov_len; in stderrWrite()
179 memcpy(log_msg.entry.msg + log_msg.entry.len, vec[i].iov_base, len); in stderrWrite()
Dfake_log_device.cpp459 struct iovec* vec = stackVec; in showLog() local
466 vec = (struct iovec*)malloc(sizeof(struct iovec) * numVecs); in showLog()
467 if (vec == NULL) { in showLog()
471 vec = stackVec; in showLog()
479 struct iovec* v = vec; in showLog()
523 int cc = writev(fileno(stderr), vec, v - vec); in showLog()
541 if (vec != stackVec) free(vec); in showLog()
Dlogd_writer.cpp49 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr);
126 static int logdWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in logdWrite() argument
222 newVec[i].iov_base = vec[i - headerLength].iov_base; in logdWrite()
223 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in logdWrite()
/system/core/libstats/
Dstats_event_list.c43 static int __write_to_statsd_init(struct iovec* vec, size_t nr);
44 int (*write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init;
95 struct iovec vec[2]; in stats_write_list() local
96 vec[0].iov_base = &context->tag; in stats_write_list()
97 vec[0].iov_len = sizeof(context->tag); in stats_write_list()
98 vec[1].iov_base = (void*)msg; in stats_write_list()
99 vec[1].iov_len = len; in stats_write_list()
100 return write_to_statsd(vec, 2); in stats_write_list()
147 static int __write_to_stats_daemon(struct iovec* vec, size_t nr) { in __write_to_stats_daemon() argument
153 len += vec[i].iov_len; in __write_to_stats_daemon()
[all …]
Dstatsd_writer.c82 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr);
175 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr) { in statsdWrite() argument
246 newVec[i].iov_base = vec[i - headerLength].iov_base; in statsdWrite()
247 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
/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.cpp195 struct iovec vec; in print() local
196 vec.iov_base = (void*)first; in print()
197 vec.iov_len = lastLine-first; in print()
199 writeLines(vec, 1); in print()
214 struct iovec vec; in print() local
215 vec.iov_base = b->buffer; in print()
216 vec.iov_len = b->bufferPos; in print()
218 writeLines(vec, 1); in print()
255 struct iovec vec; in popBundle() local
256 vec.iov_base = b->buffer; in popBundle()
[all …]
/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()
/system/core/libsysutils/src/
DSocketClient.cpp113 struct iovec vec[2]; in sendBinaryMsg() local
114 vec[0].iov_base = (void *) buf; in sendBinaryMsg()
115 vec[0].iov_len = sizeof(buf); in sendBinaryMsg()
116 vec[1].iov_base = (void *) data; in sendBinaryMsg()
117 vec[1].iov_len = len; in sendBinaryMsg()
120 int result = sendDataLockedv(vec, (len > 0) ? 2 : 1); in sendBinaryMsg()
174 struct iovec vec[1]; in sendData() local
175 vec[0].iov_base = (void *) data; in sendData()
176 vec[0].iov_len = len; in sendData()
179 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/core/adb/
Dfdevent_test.cpp214 std::vector<int> vec; in TEST_F() local
225 fdevent_run_on_main_thread([i, &vec]() { in TEST_F()
227 vec.push_back(i); in TEST_F()
233 ASSERT_EQ(1000000u, vec.size()); in TEST_F()
235 ASSERT_EQ(i, vec[i]); in TEST_F()
239 static std::function<void()> make_appender(std::vector<int>* vec, int value) { in make_appender() argument
240 return [vec, value]() { in make_appender()
246 vec->push_back(value); in make_appender()
247 fdevent_run_on_main_thread(make_appender(vec, value + 1)); in make_appender()
252 std::vector<int> vec; in TEST_F() local
[all …]
/system/tools/hidl/test/vendor/1.0/
DIVendor.hal26 vec<uint8_t> b;
31 fun2(vec<uint8_t> a) generates(vec<uint8_t> b);
/system/chre/host/common/
Dhost_protocol_host.cc36 const char *getStringFromByteVector(const std::vector<int8_t>& vec) { in getStringFromByteVector() argument
41 if (vec.size() > 0 && vec[vec.size() - 1] == kNullChar) { in getStringFromByteVector()
42 str = reinterpret_cast<const char *>(vec.data()); in getStringFromByteVector()
/system/chre/platform/shared/
Dhost_protocol_chre.cc33 const char *getStringFromByteVector(const flatbuffers::Vector<int8_t> *vec) { in getStringFromByteVector() argument
38 if (vec != nullptr && vec->size() > 0 && (*vec)[vec->size() - 1] == kNullChar) { in getStringFromByteVector()
39 str = reinterpret_cast<const char *>(vec->Data()); in getStringFromByteVector()
/system/libhidl/transport/include/hidl/
DHidlBinderSupport.h93 const hidl_vec<T> &vec, in readEmbeddedFromParcel() argument
100 vec.size() * sizeof(T), in readEmbeddedFromParcel()
109 const hidl_vec<T> &vec, in writeEmbeddedToParcel() argument
115 vec.data(), in writeEmbeddedToParcel()
116 sizeof(T) * vec.size(), in writeEmbeddedToParcel()
123 status_t findInParcel(const hidl_vec<T> &vec, const Parcel &parcel, size_t *handle) { in findInParcel() argument
124 return parcel.quickFindBuffer(vec.data(), handle); in findInParcel()
/system/bt/bta/gatt/
Ddatabase_builder.cc40 auto& vec = database.services; in AddService() local
44 vec.begin(), vec.end(), handle, in AddService()
48 vec.emplace(it, Service{.handle = handle, in AddService()
/system/server_configurable_flags/libflags/
Dserver_configurable_flags_test.cc33 static bool contains(std::vector<std::string>& vec, std::string& str) { in contains() argument
34 return std::find(vec.begin(), vec.end(), str) != vec.end(); in contains()
/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/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/tools/hidl/host_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()

123