Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/utils/
DLinearAllocator.h156 class LinearStdAllocator {
161 explicit LinearStdAllocator(LinearAllocator& allocator) : linearAllocator(allocator) {} in LinearStdAllocator() function
162 LinearStdAllocator(const LinearStdAllocator& other) : linearAllocator(other.linearAllocator) {} in LinearStdAllocator() function
163 ~LinearStdAllocator() {} in ~LinearStdAllocator()
168 typedef LinearStdAllocator<U> other;
172 LinearStdAllocator(const LinearStdAllocator<U>& other) // NOLINT(google-explicit-constructor) in LinearStdAllocator() function
190 bool operator==(const LinearStdAllocator<T1>&, const LinearStdAllocator<T2>&) {
194 bool operator!=(const LinearStdAllocator<T1>&, const LinearStdAllocator<T2>&) {
199 class LsaVector : public std::vector<T, LinearStdAllocator<T>> {
201 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()