/system/core/liblog/ |
D | logger_write.c | 39 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 …]
|
D | pmsg_writer.c | 40 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 …]
|
D | fake_writer.c | 30 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()
|
D | stderr_write.c | 48 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()
|
D | fake_log_device.c | 470 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()
|
D | logd_writer.c | 48 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/ |
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()
|
D | pagingtest.h | 13 bool check_caching(void *buf, unsigned char *vec, size_t size, bool is_cached);
|
/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 | 194 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/ |
D | SocketClient.cpp | 111 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/ |
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/chre/util/tests/ |
D | dynamic_vector_test.cc | 788 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/ |
D | host_protocol_host.cc | 44 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/ |
D | IVendor.hal | 24 vec<uint8_t> b; 29 fun2(vec<uint8_t> a) generates(vec<uint8_t> b);
|
/system/core/adb/ |
D | fdevent_test.cpp | 178 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/ |
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/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/tools/hidl/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()
|
/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/chre/external/flatbuffers/include/flatbuffers/ |
D | flatbuffers.h | 1500 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/ |
D | IServiceManager.hal | 97 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/ |
D | BufferedTextOutput.h | 46 virtual status_t writeLines(const struct iovec& vec, size_t N) = 0;
|