Home
last modified time | relevance | path

Searched refs:LinearStdAllocator (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/utils/
DLinearAllocator.h155 class LinearStdAllocator {
160 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {} in LinearStdAllocator() function
161 LinearStdAllocator(const LinearStdAllocator& other) : linearAllocator(other.linearAllocator) {} in LinearStdAllocator() function
162 ~LinearStdAllocator() {} in ~LinearStdAllocator()
167 typedef LinearStdAllocator<U> other;
171 LinearStdAllocator(const LinearStdAllocator<U>& other) // NOLINT(google-explicit-constructor) in LinearStdAllocator() function
189 bool operator==(const LinearStdAllocator<T1>&, const LinearStdAllocator<T2>&) {
193 bool operator!=(const LinearStdAllocator<T1>&, const LinearStdAllocator<T2>&) {
198 class LsaVector : public std::vector<T, LinearStdAllocator<T>> {
200 explicit LsaVector(const LinearStdAllocator<T>& allocator) in LsaVector()
[all …]
/frameworks/base/libs/hwui/tests/unit/
DLinearAllocatorTests.cpp89 TEST(LinearStdAllocator, simpleAllocate) { in TEST() argument
91 LinearStdAllocator<void*> stdAllocator(la); in TEST()
93 std::vector<char, LinearStdAllocator<char> > v(stdAllocator); in TEST()
118 LinearStdAllocator<void*> stdAllocator(allocator); in TEST()
/frameworks/base/libs/hwui/tests/microbench/
DLinearAllocatorBench.cpp40 LinearStdAllocator<void*> stdAllocator(la); in BM_LinearStdAllocator_vector()
41 std::vector<char, LinearStdAllocator<char> > v(stdAllocator); in BM_LinearStdAllocator_vector()