Searched defs:vector (Results 1 - 16 of 16) sorted by relevance

/system/chre/util/tests/
H A Dfixed_size_vector_test.cc86 FixedSizeVector<int, 8> vector; local
87 vector.push_back(0x1337);
88 vector.push_back(0xcafe);
89 vector.push_back(0xbeef);
90 vector.push_back(0xface);
92 vector.erase(1);
93 ASSERT_EQ(vector[0], 0x1337);
94 ASSERT_EQ(vector.data()[0], 0x1337);
95 ASSERT_EQ(vector[1], 0xbeef);
96 ASSERT_EQ(vector
103 FixedSizeVector<Foo, 4> vector; local
132 FixedSizeVector<int, 4> vector; local
139 FixedSizeVector<int, 4> vector; local
146 FixedSizeVector<int, 4> vector; local
156 FixedSizeVector<int, 4> vector; local
164 FixedSizeVector<Foo, 4> vector; local
178 FixedSizeVector<int, 8> vector; local
197 FixedSizeVector<int, 8> vector; local
217 FixedSizeVector<int, 8> vector; local
234 FixedSizeVector<int, 8> vector; local
251 FixedSizeVector<int, 8> vector; local
267 FixedSizeVector<int, 8> vector; local
288 FixedSizeVector<int, 8> vector; local
[all...]
H A Ddynamic_vector_test.cc56 DynamicVector<int> vector; local
57 EXPECT_EQ(vector.data(), nullptr);
58 EXPECT_TRUE(vector.empty());
59 EXPECT_EQ(vector.size(), 0);
60 EXPECT_EQ(vector.capacity(), 0);
61 vector.clear();
65 DynamicVector<int> vector; local
66 ASSERT_TRUE(vector.push_back(0x1337));
67 EXPECT_EQ(vector.size(), 1);
68 EXPECT_EQ(vector
75 DynamicVector<int> vector; local
142 DynamicVector<MovableButNonCopyable> vector; local
188 DynamicVector<CopyableButNonMovable> vector; local
243 DynamicVector<MovableAndCopyable> vector; local
301 DynamicVector<Foo> vector; local
319 DynamicVector<int> vector; local
380 DynamicVector<int> vector; local
393 DynamicVector<int> vector; local
408 DynamicVector<int> vector; local
413 DynamicVector<int> vector; local
427 DynamicVector<Dummy> vector; local
459 DynamicVector<Dummy> vector; local
486 DynamicVector<Dummy> vector; local
507 DynamicVector<Dummy> vector; local
523 DynamicVector<int> vector; local
530 DynamicVector<int> vector; local
537 DynamicVector<int> vector; local
547 DynamicVector<int> vector; local
560 DynamicVector<int> vector; local
579 DynamicVector<int> vector; local
598 DynamicVector<int> vector; local
617 DynamicVector<int> vector; local
636 DynamicVector<int> vector; local
655 DynamicVector<int> vector; local
673 DynamicVector<int> vector; local
689 DynamicVector<int> vector; local
710 DynamicVector<int> vector; local
725 DynamicVector<int> vector; local
748 DynamicVector<int> vector; local
882 DynamicVector<int> vector; local
908 DynamicVector<int> vector; local
913 DynamicVector<int> vector; local
939 DynamicVector<FancyInt> vector; local
[all...]
/system/core/libutils/tests/
H A DVector_test.cpp43 Vector<int> vector; local
45 vector.setCapacity(8);
47 vector.add(1);
48 vector.add(2);
49 vector.add(3);
51 EXPECT_EQ(3U, vector.size());
53 // copy the vector
54 other = vector;
58 // add an element to the first vector
59 vector
78 Vector<int> vector; local
83 Vector<int> vector; local
96 Vector<int> vector; local
105 Vector<int> vector; local
113 Vector<int> vector; local
[all...]
/system/chre/platform/android/
H A Dhost_link.cc37 * Assigns a vector the contents of a C-style, null-terminated string.
39 * @param vector The vector to assign with the contents of a string.
42 void setVectorToString(std::vector<int8_t> *vector, const char *str) { argument
43 *vector = std::vector<int8_t>(str, str + strlen(str));
/system/core/libmemunreachable/
H A DLeakPipe.h22 #include <vector>
115 bool SendVector(const std::vector<T, Alloc>& vector) { argument
116 size_t size = vector.size() * sizeof(T);
121 ssize_t ret = TEMP_FAILURE_RETRY(write(fd_, vector.data(), size));
123 MEM_ALOGE("failed to send vector: %s", strerror(errno));
126 MEM_ALOGE("eof while writing vector");
153 bool ReceiveVector(std::vector<T, Alloc>& vector) { argument
159 vector
[all...]
/system/nvram/messages/include/nvram/messages/
H A Dproto.hpp40 // std::vector<uint32_t> reports;
94 #include <nvram/messages/vector.h>
209 static bool Encode(const Vector<ElementType>& vector, ProtoWriter* writer) { argument
210 for (const ElementType& elem : vector) {
218 static bool Decode(Vector<ElementType>& vector, ProtoReader* reader) { argument
219 return vector.Resize(vector.size() + 1) &&
220 DecodeField<ElementCodec>(vector[vector.size() - 1], reader);
/system/core/include/utils/
H A DSortedVector.h56 * empty the vector
62 * vector stats
65 //! returns number of items in the vector
67 //! returns whether or not the vector is empty
100 //! stack-usage of the vector. returns the top of the stack (last element)
115 //! merges a vector into this one
116 ssize_t merge(const Vector<TYPE>& vector);
117 ssize_t merge(const SortedVector<TYPE>& vector);
235 ssize_t SortedVector<TYPE>::merge(const Vector<TYPE>& vector) { argument
236 return SortedVectorImpl::merge(reinterpret_cast<const VectorImpl&>(vector));
240 merge(const SortedVector<TYPE>& vector) argument
[all...]
H A DVector.h49 * The main templated vector class ensuring type safety
53 * DO NOT USE: please use std::vector
79 * empty the vector
85 * vector stats
88 //! returns number of items in the vector
90 //! returns whether or not the vector is empty
98 * set the size of the vector. items are appended with the default
120 //! stack-usage of the vector. returns the top of the stack (last element)
133 * append/insert another vector
136 //! insert another vector a
317 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
322 appendVector(const Vector<TYPE>& vector) argument
[all...]
/system/core/libutils/
H A DVectorImpl.cpp116 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
118 return insertArrayAt(vector.arrayImpl(), index, vector.size());
121 ssize_t VectorImpl::appendVector(const VectorImpl& vector) argument
123 return insertVectorAt(vector, size());
339 // of this vector.
410 // ALOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
634 ssize_t SortedVectorImpl::merge(const VectorImpl& vector)
637 if (!vector.isEmpty()) {
638 const void* buffer = vector
[all...]
/system/core/libutils/include/utils/
H A DSortedVector.h56 * empty the vector
62 * vector stats
65 //! returns number of items in the vector
67 //! returns whether or not the vector is empty
100 //! stack-usage of the vector. returns the top of the stack (last element)
115 //! merges a vector into this one
116 ssize_t merge(const Vector<TYPE>& vector);
117 ssize_t merge(const SortedVector<TYPE>& vector);
235 ssize_t SortedVector<TYPE>::merge(const Vector<TYPE>& vector) { argument
236 return SortedVectorImpl::merge(reinterpret_cast<const VectorImpl&>(vector));
240 merge(const SortedVector<TYPE>& vector) argument
[all...]
H A DVector.h49 * The main templated vector class ensuring type safety
53 * DO NOT USE: please use std::vector
79 * empty the vector
85 * vector stats
88 //! returns number of items in the vector
90 //! returns whether or not the vector is empty
98 * set the size of the vector. items are appended with the default
120 //! stack-usage of the vector. returns the top of the stack (last element)
133 * append/insert another vector
136 //! insert another vector a
317 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
322 appendVector(const Vector<TYPE>& vector) argument
[all...]
/system/security/keystore/
H A Dblob.h58 uint8_t vector[AES_BLOCK_SIZE]; member in struct:blobv2
67 offsetof(blobv3, initialization_vector) == offsetof(blobv2, vector) &&
/system/core/liblog/
H A Dfake_log_device.c556 * Receive a log message. We happen to know that "vector" has three parts:
562 LIBLOG_HIDDEN ssize_t fakeLogWritev(int fd, const struct iovec* vector, argument
589 int logPrio = *(const char*)vector[0].iov_base;
590 const char* tag = (const char*)vector[1].iov_base;
591 const char* msg = (const char*)vector[2].iov_base;
617 len += vector[i].iov_len;
/system/libhidl/base/include/hidl/
H A DHidlSupport.h34 #include <vector>
352 hidl_vec(const std::vector<T> &other) : hidl_vec() {
393 details::logAlwaysFatal("external vector size exceeds 2^32 elements.");
437 // copy from an std::vector.
438 hidl_vec &operator=(const std::vector<T> &other) {
446 // cast to an std::vector.
447 operator std::vector<T>() const {
448 std::vector<T> v(mSize);
/system/tools/hidl/test/java_test/src/com/android/commands/hidl_test_java/
H A DHidlTestJava.java1068 public ArrayList<String> haveAStringVec(ArrayList<String> vector) { argument
1070 + "\"" + vector.get(0) + "\", "
1071 + "\"" + vector.get(1) + "\", "
1072 + "\"" + vector.get(2) + "\"]");
/system/update_engine/common/
H A Dhttp_fetcher_unittest.cc25 #include <vector>
59 using std::vector;
135 vector<char> buf(128);
1103 const vector<pair<off_t, off_t>>& ranges,
1114 for (vector<pair<off_t, off_t>>::const_iterator it = ranges.begin(),
1147 vector<pair<off_t, off_t>> ranges;
1166 vector<pair<off_t, off_t>> ranges;
1184 vector<pair<off_t, off_t>> ranges;
1203 vector<pair<off_t, off_t>> ranges;
1230 vector<pai
1100 MultiTest(HttpFetcher* fetcher_in, FakeHardware* fake_hardware, const string& url, const vector<pair<off_t, off_t>>& ranges, const string& expected_prefix, size_t expected_size, HttpResponseCode expected_response_code) argument
[all...]

Completed in 333 milliseconds