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

/system/core/libutils/tests/
H A DVector_test.cpp40 Vector<int> vector; local
42 vector.setCapacity(8);
44 vector.add(1);
45 vector.add(2);
46 vector.add(3);
48 EXPECT_EQ(vector.size(), 3);
50 // copy the vector
51 other = vector;
55 // add an element to the first vector
56 vector
[all...]
/system/core/include/utils/
H A DSortedVector.h55 * empty the vector
61 * vector stats
64 //! returns number of items in the vector
66 //! returns whether or not the vector is empty
99 //! stack-usage of the vector. returns the top of the stack (last element)
114 //! merges a vector into this one
115 ssize_t merge(const Vector<TYPE>& vector);
116 ssize_t merge(const SortedVector<TYPE>& vector);
221 ssize_t SortedVector<TYPE>::merge(const Vector<TYPE>& vector) { argument
222 return SortedVectorImpl::merge(reinterpret_cast<const VectorImpl&>(vector));
226 merge(const SortedVector<TYPE>& vector) argument
[all...]
H A DVector.h37 * The main templated vector class ensuring type safety
65 * empty the vector
71 * vector stats
74 //! returns number of items in the vector
76 //! returns whether or not the vector is empty
84 * set the size of the vector. items are appended with the default
106 //! stack-usage of the vector. returns the top of the stack (last element)
119 * append/insert another vector
122 //! insert another vector at a given index
123 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_
307 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
312 appendVector(const Vector<TYPE>& vector) argument
[all...]
/system/core/libpixelflinger/codeflinger/tinyutils/
H A DVector.h36 * The main templated vector class ensuring type safety
60 * empty the vector
66 * vector stats
69 //! returns number of items in the vector
71 //! returns wether or not the vector is empty
95 //! stack-usage of the vector. returns the top of the stack (last element)
97 //! same as operator [], but allows to access the vector backward (from the end) with a negative index
110 * append/insert another vector
113 //! insert another vector at a given index
114 ssize_t insertVectorAt(const Vector<TYPE>& vector, size_
256 insertVectorAt(const Vector<TYPE>& vector, size_t index) argument
261 appendVector(const Vector<TYPE>& vector) argument
[all...]
H A DVectorImpl.cpp112 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
116 void* where = _grow(index, vector.size());
118 _do_copy(where, vector.arrayImpl(), vector.size());
123 ssize_t VectorImpl::appendVector(const VectorImpl& vector) argument
125 return insertVectorAt(vector, size());
286 // ALOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
339 // ALOGV("shrink vector %p, new_capacity=%d", this, (int)new_capacity);
497 ssize_t SortedVectorImpl::merge(const VectorImpl& vector) argument
500 if (!vector
514 merge(const SortedVectorImpl& vector) argument
[all...]
/system/core/libutils/
H A DVectorImpl.cpp109 ssize_t VectorImpl::insertVectorAt(const VectorImpl& vector, size_t index) argument
111 return insertArrayAt(vector.arrayImpl(), index, vector.size());
114 ssize_t VectorImpl::appendVector(const VectorImpl& vector) argument
116 return insertVectorAt(vector, size());
379 // ALOGV("grow vector %p, new_capacity=%d", this, (int)new_capacity);
438 // ALOGV("shrink vector %p, new_capacity=%d", this, (int)new_capacity);
590 ssize_t SortedVectorImpl::merge(const VectorImpl& vector)
593 if (!vector.isEmpty()) {
594 const void* buffer = vector
[all...]
/system/core/liblog/
H A Dfake_log_device.c542 * Receive a log message. We happen to know that "vector" has three parts:
548 static ssize_t logWritev(int fd, const struct iovec* vector, int count) argument
576 int logPrio = *(const char*)vector[0].iov_base;
577 const char* tag = (const char*) vector[1].iov_base;
578 const char* msg = (const char*) vector[2].iov_base;
602 return vector[0].iov_len + vector[1].iov_len + vector[2].iov_len;
649 static ssize_t (*redirectWritev)(int fd, const struct iovec* vector, int count)
687 ssize_t fakeLogWritev(int fd, const struct iovec* vector, in argument
[all...]
/system/security/keystore/
H A Dkeystore.cpp469 uint8_t vector[AES_BLOCK_SIZE]; member in struct:blob
580 if (!entropy->generate_random_data(mBlob.vector, AES_BLOCK_SIZE)) {
603 uint8_t vector[AES_BLOCK_SIZE]; local
604 memcpy(vector, mBlob.vector, AES_BLOCK_SIZE);
606 aes_key, vector, AES_ENCRYPT);
670 mBlob.vector, AES_DECRYPT);

Completed in 1065 milliseconds