/system/core/liblog/ |
D | logger_write.cpp | 187 static int write_to_log(log_id_t log_id, struct iovec* vec, size_t nr) { in write_to_log() argument 198 if (vec[0].iov_len < 4) { in write_to_log() 211 if (vec[0].iov_len < 4) { in write_to_log() 216 ret = LogdWrite(log_id, &ts, vec, nr); in write_to_log() 217 PmsgWrite(log_id, &ts, vec, nr); in write_to_log() 279 struct iovec vec[3]; in __android_log_logd_logger() local 280 vec[0].iov_base = in __android_log_logd_logger() 282 vec[0].iov_len = 1; in __android_log_logd_logger() 283 vec[1].iov_base = const_cast<void*>(static_cast<const void*>(log_message->tag)); in __android_log_logd_logger() 284 vec[1].iov_len = strlen(log_message->tag) + 1; in __android_log_logd_logger() [all …]
|
D | pmsg_writer.cpp | 62 int PmsgWrite(log_id_t logId, struct timespec* ts, struct iovec* vec, size_t nr) { in PmsgWrite() argument 76 if (vec[0].iov_len < 4) { in PmsgWrite() 80 if (SNET_EVENT_LOG_TAG != *static_cast<uint32_t*>(vec[0].iov_base)) { in PmsgWrite() 128 newVec[i].iov_base = vec[i - headerLength].iov_base; in PmsgWrite() 129 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in PmsgWrite() 181 struct iovec vec[3]; in __android_log_pmsg_file_write() local 211 vec[0].iov_base = &prio; in __android_log_pmsg_file_write() 212 vec[0].iov_len = sizeof(char); in __android_log_pmsg_file_write() 213 vec[1].iov_base = (unsigned char*)tag; in __android_log_pmsg_file_write() 214 vec[1].iov_len = length; in __android_log_pmsg_file_write() [all …]
|
/system/core/libutils/ |
D | Vector_fuzz.cpp | 22 android::Vector<uint8_t> vec = android::Vector<uint8_t>(); in runVectorFuzz() local 28 vec.setCapacity(vectorSize); in runVectorFuzz() 32 vec.insertAt((uint8_t)i, i, count); in runVectorFuzz() 34 vec.push_front(i); in runVectorFuzz() 40 size_t index = dataProvider.ConsumeIntegralInRange<size_t>(0, vec.size()); in runVectorFuzz() 43 vec.insertArrayAt(remainingVec.data(), index, remainingVec.size()); in runVectorFuzz() 44 android::Vector<uint8_t> vecCopy = android::Vector<uint8_t>(vec); in runVectorFuzz() 45 vec.insertVectorAt(vecCopy, index); in runVectorFuzz() 52 vec.replaceAt(remainingVec[0], index); in runVectorFuzz() 55 vec.replaceAt(0, index); in runVectorFuzz() [all …]
|
/system/core/libstats/push_compat/ |
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 …]
|
/system/core/adb/ |
D | types_test.cpp | 122 IOVector vec; in TEST() local 124 vec.append(create_block('x', 2)); in TEST() 125 vec.append(create_block('y', 1000)); in TEST() 126 ASSERT_EQ(2U, vec.front_size()); in TEST() 127 ASSERT_EQ(1002U, vec.size()); in TEST() 129 vec.drop_front(1); in TEST() 130 ASSERT_EQ(1U, vec.front_size()); in TEST() 131 ASSERT_EQ(1001U, vec.size()); in TEST() 133 vec.drop_front(1); in TEST() 134 ASSERT_EQ(1000U, vec.front_size()); in TEST() [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/libstats/socket/ |
D | stats_buffer_writer.c | 30 static int __write_to_statsd_init(struct iovec* vec, size_t nr); 31 static int (*__write_to_statsd)(struct iovec* vec, size_t nr) = __write_to_statsd_init; 72 static int __write_to_stats_daemon(struct iovec* vec, size_t nr) { in __write_to_stats_daemon() argument 78 len += vec[i].iov_len; in __write_to_stats_daemon() 94 int ret = (int)(*statsdLoggerWrite.write)(&ts, vec, nr); in __write_to_stats_daemon() 109 static int __write_to_statsd_init(struct iovec* vec, size_t nr) { in __write_to_statsd_init() argument 127 ret = __write_to_statsd(vec, nr); in __write_to_statsd_init()
|
D | statsd_writer.c | 63 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr); 156 static int statsdWrite(struct timespec* ts, struct iovec* vec, size_t nr) { in statsdWrite() argument 227 newVec[i].iov_base = vec[i - headerLength].iov_base; in statsdWrite() 228 payloadSize += newVec[i].iov_len = vec[i - headerLength].iov_len; in statsdWrite()
|
/system/libhwbinder/ |
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 …]
|
D | Static.cpp | 41 virtual status_t writeLines(const struct iovec& vec, size_t N) in writeLines() argument 45 ALOGI("%.*s", (int)vec.iov_len, (const char*) vec.iov_base); in writeLines()
|
/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/bt/gd/common/ |
D | byte_array.h | 82 auto vec = common::FromHexString(from); in FromString() local 83 if (!vec) { in FromString() 87 std::move(vec->data(), vec->data() + vec->size(), byte_array.data()); in FromString()
|
/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/adb/fdevent/ |
D | fdevent_test.cpp | 176 std::vector<int> vec; in TEST_F() local 187 fdevent_run_on_main_thread([i, &vec]() { in TEST_F() 189 vec.push_back(i); in TEST_F() 195 ASSERT_EQ(1000000u, vec.size()); in TEST_F() 197 ASSERT_EQ(i, vec[i]); in TEST_F() 201 static std::function<void()> make_appender(std::vector<int>* vec, int value) { in make_appender() argument 202 return [vec, value]() { in make_appender() 208 vec->push_back(value); in make_appender() 209 fdevent_run_on_main_thread(make_appender(vec, value + 1)); in make_appender() 214 std::vector<int> vec; in TEST_F() local [all …]
|
/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/trusty/gatekeeper/ |
D | trusty_gatekeeper.cpp | 57 SizedBuffer hidl_vec2sized_buffer(const hidl_vec<uint8_t>& vec) { in hidl_vec2sized_buffer() argument 58 if (vec.size() == 0 || vec.size() > std::numeric_limits<uint32_t>::max()) return {}; in hidl_vec2sized_buffer() 59 auto buffer = new uint8_t[vec.size()]; in hidl_vec2sized_buffer() 60 std::copy(vec.begin(), vec.end(), buffer); in hidl_vec2sized_buffer() 61 return {buffer, static_cast<uint32_t>(vec.size())}; in hidl_vec2sized_buffer()
|
/system/bt/gd/packet/parser/ |
D | util.h | 117 inline std::string StringJoin(const std::string& delimiter, const std::vector<std::string>& vec) { in StringJoin() argument 119 for (size_t i = 0; i < vec.size(); i++) { in StringJoin() 120 ss << vec[i]; in StringJoin() 121 if (i != (vec.size() - 1)) { in StringJoin()
|
/system/libhidl/transport/include/hidl/ |
D | HidlBinderSupport.h | 86 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/tools/hidl/hidl2aidl/ |
D | AidlType.cpp | 34 const VectorType& vec = static_cast<const VectorType&>(type); in getAidlType() local 35 const Type* elementType = vec.getElementType(); in getAidlType()
|
/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/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/bt/bta/gatt/ |
D | database_builder.cc | 42 auto& vec = database.services; in AddService() local 46 vec.begin(), vec.end(), handle, in AddService() 50 vec.emplace(it, Service{ 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()
|