/system/core/libmemunreachable/tests/ |
D | Allocator_test.cpp | 42 Allocator<char[100]> allocator(heap); in TEST_F() local 43 void* ptr = allocator.allocate(); in TEST_F() 45 allocator.deallocate(ptr); in TEST_F() 49 Allocator<char[100]> allocator(heap); in TEST_F() local 50 void* ptr1 = allocator.allocate(); in TEST_F() 52 void* ptr2 = allocator.allocate(); in TEST_F() 55 allocator.deallocate(ptr1); in TEST_F() 56 void* ptr3 = allocator.allocate(); in TEST_F() 58 allocator.deallocate(ptr3); in TEST_F() 59 allocator.deallocate(ptr2); in TEST_F() [all …]
|
D | ThreadCapture_test.cpp | 131 auto expected_tids = allocator::vector<pid_t>(1, getpid(), heap); in TEST_F() 132 auto list_tids = allocator::vector<pid_t>(heap); in TEST_F() 150 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 229 auto list_tids = allocator::vector<pid_t>(heap); in TEST_P() 236 auto thread_info = allocator::vector<ThreadInfo>(heap); in TEST_P() 268 auto list_tids = allocator::vector<pid_t>(heap); in TEST_F() 327 auto list_tids = allocator::vector<pid_t>(heap); in TEST_F() 334 auto thread_info = allocator::vector<ThreadInfo>(heap); in TEST_F()
|
D | LeakFolding_test.cpp | 58 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 83 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 112 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 143 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 174 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 217 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 253 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 291 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 328 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() 370 allocator::vector<LeakFolding::Leak> leaked(heap_); in TEST_F() [all …]
|
D | HeapWalker_test.cpp | 108 allocator::vector<Range> leaked(heap_); in TEST_F() 136 allocator::vector<Range> leaked(heap_); in TEST_F() 164 allocator::vector<Range> leaked(heap_); in TEST_F() 189 allocator::vector<Range> leaked(heap_); in TEST_F() 213 allocator::vector<Range> leaked(heap_); in TEST_F()
|
/system/core/libmemunreachable/ |
D | LeakFolding.h | 26 LeakFolding(Allocator<void> allocator, HeapWalker& heap_walker) in LeakFolding() argument 27 : allocator_(allocator), in LeakFolding() 29 leak_map_(allocator), in LeakFolding() 30 leak_graph_(allocator), in LeakFolding() 31 leak_scc_(allocator) {} in LeakFolding() 41 bool Leaked(allocator::vector<Leak>& leaked, size_t* num_leaks_out, size_t* leak_bytes_out); 61 explicit SCCInfo(Allocator<SCCInfo> allocator) in SCCInfo() 62 : node(this, allocator), in SCCInfo() 83 LeakInfo(const Range& range, Allocator<LeakInfo> allocator) in LeakInfo() 84 : node(this, allocator), range(range), scc(nullptr) {} in LeakInfo() [all …]
|
D | MemUnreachable.cpp | 54 MemUnreachable(pid_t pid, Allocator<void> allocator) in MemUnreachable() argument 55 : pid_(pid), allocator_(allocator), heap_walker_(allocator_) {} in MemUnreachable() 56 bool CollectAllocations(const allocator::vector<ThreadInfo>& threads, 57 const allocator::vector<Mapping>& mappings, 58 const allocator::vector<uintptr_t>& refs); 59 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks, 65 bool ClassifyMappings(const allocator::vector<Mapping>& mappings, 66 allocator::vector<Mapping>& heap_mappings, 67 allocator::vector<Mapping>& anon_mappings, 68 allocator::vector<Mapping>& globals_mappings, [all …]
|
D | HeapWalker.h | 49 explicit HeapWalker(Allocator<HeapWalker> allocator) in HeapWalker() argument 50 : allocator_(allocator), in HeapWalker() 51 allocations_(allocator), in HeapWalker() 53 roots_(allocator), in HeapWalker() 54 root_vals_(allocator), in HeapWalker() 55 sigsegv_handler_(allocator), in HeapWalker() 56 sigbus_handler_(allocator), in HeapWalker() 80 void Root(const allocator::vector<uintptr_t>& vals); 84 bool Leaked(allocator::vector<Range>&, size_t limit, size_t* num_leaks, size_t* leak_bytes); 105 using AllocationMap = allocator::map<Range, AllocationInfo, compare_range>; [all …]
|
D | Tarjan.h | 32 allocator::set<Node<T>*> references_in; 33 allocator::set<Node<T>*> references_out; 39 Node(T* ptr, Allocator<Node> allocator) in Node() argument 40 : references_in(allocator), references_out(allocator), ptr(ptr){}; in Node() 58 using Graph = allocator::vector<Node<T>*>; 61 using SCC = allocator::vector<Node<T>*>; 64 using SCCList = allocator::vector<SCC<T>>; 69 explicit TarjanAlgorithm(Allocator<void> allocator) in TarjanAlgorithm() argument 70 : index_(0), stack_(allocator), components_(allocator) {} in TarjanAlgorithm() 79 allocator::vector<Node<T>*> stack_;
|
D | ThreadCapture.h | 28 allocator::vector<uintptr_t> regs; 32 using TidList = allocator::vector<pid_t>; 33 using ThreadInfoList = allocator::vector<ThreadInfo>; 39 ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator);
|
D | ProcessMappings.cpp | 32 ReadMapCallback(allocator::vector<Mapping>& mappings) : mappings_(mappings) {} in ReadMapCallback() 40 allocator::vector<Mapping>& mappings_; 43 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings) { in ProcessMappings() 50 allocator::string content(mappings.get_allocator()); in ProcessMappings()
|
D | Binder.cpp | 37 static bool BinderReferencesToVector(allocator::vector<uintptr_t>& refs, in BinderReferencesToVector() 60 bool BinderReferences(allocator::vector<uintptr_t>& refs) { in BinderReferences() 63 allocator::vector<uintptr_t> binder_refs{refs.get_allocator()}; in BinderReferences() 70 allocator::vector<uintptr_t> hwbinder_refs{refs.get_allocator()}; in BinderReferences()
|
D | ScopedSignalHandler.h | 36 explicit ScopedSignalHandler(Allocator<ScopedSignalHandler> allocator) : signal_(-1) { in ScopedSignalHandler() argument 38 Allocator<SignalFnMap> map_allocator = allocator; in ScopedSignalHandler() 39 handler_map_ = map_allocator.make_unique(allocator); in ScopedSignalHandler() 86 using SignalFnMap = allocator::unordered_map<int, SignalFn>;
|
D | ThreadCapture.cpp | 76 ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator); 92 allocator::map<pid_t, unsigned int> captured_threads_; 98 ThreadCaptureImpl::ThreadCaptureImpl(pid_t pid, Allocator<ThreadCaptureImpl>& allocator) in ThreadCaptureImpl() argument 99 : captured_threads_(allocator), allocator_(allocator), pid_(pid) {} in ThreadCaptureImpl() 327 … ThreadInfo t{0, allocator::vector<uintptr_t>(allocator_), std::pair<uintptr_t, uintptr_t>(0, 0)}; in CapturedThreadInfo() 336 ThreadCapture::ThreadCapture(pid_t pid, Allocator<ThreadCapture> allocator) { in ThreadCapture() argument 337 Allocator<ThreadCaptureImpl> impl_allocator = allocator; in ThreadCapture()
|
D | Binder.h | 24 bool BinderReferences(allocator::vector<uintptr_t>& refs);
|
D | HeapWalker.cpp | 88 allocator::vector<Range> to_do(1, root, allocator_); in RecurseRoot() 113 void HeapWalker::Root(const allocator::vector<uintptr_t>& vals) { in Root() 144 bool HeapWalker::Leaked(allocator::vector<Range>& leaked, size_t limit, size_t* num_leaks_out, in Leaked()
|
D | ProcessMappings.h | 43 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings);
|
/system/libhidl/transport/allocator/1.0/default/ |
D | service.cpp | 11 using android::hidl::allocator::V1_0::IAllocator; 12 using android::hidl::allocator::V1_0::implementation::AshmemAllocator; 19 sp<IAllocator> allocator = new AshmemAllocator(); in main() local 21 status_t status = allocator->registerAsService("ashmem"); in main()
|
D | Android.bp | 16 name: "android.hidl.allocator@1.0-service", 23 init_rc: ["android.hidl.allocator@1.0-service.rc"], 24 vintf_fragments: ["android.hidl.allocator@1.0-service.xml"], 27 "android.hidl.allocator@1.0",
|
D | AshmemAllocator.h | 26 namespace allocator { 30 using ::android::hidl::allocator::V1_0::IAllocator;
|
D | android.hidl.allocator@1.0-service.rc | 1 service hidl_memory /system/bin/hw/android.hidl.allocator@1.0-service
|
/system/libhidl/transport/allocator/1.0/vts/functional/ |
D | VtsHidlAllocatorV1_0TargetTest.cpp | 29 using ::android::hidl::allocator::V1_0::IAllocator; 48 allocator = getService<IAllocator>(AllocatorEnvironment::instance()); in SetUp() 49 ASSERT_NE(allocator, nullptr); in SetUp() 54 EXPECT_OK(allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in expectAllocateSuccess() 69 EXPECT_OK(allocator->batchAllocate( in expectBatchAllocateSuccess() 88 sp<IAllocator> allocator; member in AllocatorHidlTest
|
/system/bt/osi/src/ |
D | list.cc | 17 const allocator_t* allocator; member 31 list->allocator = zeroed_allocator; in list_new_internal() 43 list->allocator->free(list); in list_free() 94 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_insert_after() 109 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_prepend() 123 list_node_t* node = (list_node_t*)list->allocator->alloc(sizeof(list_node_t)); in list_append() 211 list->allocator->free(node); in list_free_node_()
|
/system/vold/ |
D | KeyBuffer.h | 42 class ZeroingAllocator : public std::allocator<char> { 46 std::allocator<char>::deallocate(p, n); in deallocate()
|
/system/libhidl/transport/allocator/1.0/ |
D | Android.bp | 4 name: "android.hidl.allocator@1.0",
|
/system/libhidl/ |
D | update-makefiles.sh | 4 android.hidl.allocator@1.0
|