/system/core/liblog/ |
D | logger_write.cpp | 40 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 …]
|
D | pmsg_writer.cpp | 41 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 …]
|
D | fake_writer.cpp | 30 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()
|
D | stderr_write.cpp | 48 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()
|
D | fake_log_device.cpp | 459 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()
|
D | logd_writer.cpp | 49 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/ |
D | stats_event_list.c | 43 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 …]
|
D | statsd_writer.c | 82 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/ |
D | Static.cpp | 40 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()
|
D | BufferedTextOutput.cpp | 195 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/ |
D | pageinout_test.c | 15 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()
|
D | pagingtest.c | 102 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/ |
D | SocketClient.cpp | 113 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/ |
D | utility.h | 76 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/ |
D | process_test.cpp | 74 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/ |
D | fdevent_test.cpp | 214 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/ |
D | IVendor.hal | 26 vec<uint8_t> b; 31 fun2(vec<uint8_t> a) generates(vec<uint8_t> b);
|
/system/chre/host/common/ |
D | host_protocol_host.cc | 36 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/ |
D | host_protocol_chre.cc | 33 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/ |
D | HidlBinderSupport.h | 93 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/ |
D | database_builder.cc | 40 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/ |
D | server_configurable_flags_test.cc | 33 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/ |
D | IKeystore.hal | 45 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/ |
D | ITokenManager.hal | 34 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/ |
D | StringHelper.cpp | 65 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()
|