/system/bt/common/ |
D | metric_id_allocator_unittest.cc | 51 auto& allocator = MetricIdAllocator::GetInstance(); in TEST() local 56 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST() 57 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST() 58 EXPECT_TRUE(allocator.Close()); in TEST() 62 auto& allocator = MetricIdAllocator::GetInstance(); in TEST() local 67 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST() 70 EXPECT_FALSE(allocator.Init(paired_device_map, callback, callback)); in TEST() 71 EXPECT_TRUE(allocator.Close()); in TEST() 75 auto& allocator = MetricIdAllocator::GetInstance(); in TEST() local 81 EXPECT_TRUE(allocator.Init(paired_device_map, callback, callback)); in TEST() [all …]
|
/system/memory/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/memory/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 | 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 | MemUnreachable.cpp | 55 MemUnreachable(pid_t pid, Allocator<void> allocator) in MemUnreachable() argument 56 : pid_(pid), allocator_(allocator), heap_walker_(allocator_) {} in MemUnreachable() 57 bool CollectAllocations(const allocator::vector<ThreadInfo>& threads, 58 const allocator::vector<Mapping>& mappings, 59 const allocator::vector<uintptr_t>& refs); 60 bool GetUnreachableMemory(allocator::vector<Leak>& leaks, size_t limit, size_t* num_leaks, 66 bool ClassifyMappings(const allocator::vector<Mapping>& mappings, 67 allocator::vector<Mapping>& heap_mappings, 68 allocator::vector<Mapping>& anon_mappings, 69 allocator::vector<Mapping>& globals_mappings, [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() 41 allocator::vector<Mapping>& mappings_; 44 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings) { in ProcessMappings() 51 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 | ProcessMappings.h | 43 bool ProcessMappings(pid_t pid, allocator::vector<Mapping>& mappings);
|
/system/memory/libdmabufheap/tests/ |
D | dmabuf_heap_test.cpp | 34 virtual void SetUp() { allocator = new BufferAllocator(); } in SetUp() 38 int map_fd = allocator->AllocSystem(cpu_access_needed, kAllocSizeInBytes); in DoAlloc() 44 int ret = allocator->CpuSyncStart(map_fd, kSyncReadWrite); in DoAlloc() 47 ret = allocator->CpuSyncEnd(map_fd, kSyncReadWrite); in DoAlloc() 60 allocator->MapNameToIonHeap(kDmabufSystemHeapName, "" /* no mapping for non-legacy */, in DoConcurrentAllocWithMapName() 64 allocator->MapNameToIonHeap( in DoConcurrentAllocWithMapName() 70 virtual void TearDown() { delete allocator; } in TearDown() 72 BufferAllocator* allocator = nullptr; member in DmaBufHeapConcurrentAccessTest 111 DmaBufHeapTest::DmaBufHeapTest() : allocator(new BufferAllocator()) { in DmaBufHeapTest() 120 allocator->MapNameToIonHeap(kDmabufSystemHeapName, "" /* no mapping for non-legacy */, in DmaBufHeapTest() [all …]
|
D | dmabuf_heap_test.h | 31 std::unique_ptr<BufferAllocator> allocator; variable
|
/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 | 25 name: "android.hidl.allocator@1.0-service", 32 init_rc: ["android.hidl.allocator@1.0-service.rc"], 33 vintf_fragments: ["android.hidl.allocator@1.0-service.xml"], 36 "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 | 30 using ::android::hidl::allocator::V1_0::IAllocator; 39 allocator = IAllocator::getService(GetParam()); in SetUp() 40 ASSERT_NE(allocator, nullptr); in SetUp() 45 EXPECT_OK(allocator->allocate(size, [&](bool success, const hidl_memory& mem) { in expectAllocateSuccess() 60 EXPECT_OK(allocator->batchAllocate( in expectBatchAllocateSuccess() 79 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()
|