/external/chromium_org/base/memory/ |
D | discardable_memory_ashmem_allocator_unittest.cc | 48 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(size)); in TEST_F() 54 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(0)); in TEST_F() 60 allocator_.Allocate(kMaxAllowedAllocationSize + 1)); in TEST_F() 75 allocator_.Allocate(kMaxAllowedAllocationSize)); in TEST_F() 85 scoped_ptr<DiscardableAshmemChunk> memory(allocator.Allocate(kPageSize)); in TEST_F() 93 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(size)); in TEST_F() 99 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(kPageSize)); in TEST_F() 106 scoped_ptr<DiscardableAshmemChunk> memory(allocator_.Allocate(kPageSize)); in TEST_F() 110 allocator_.Allocate(kPageSize)); in TEST_F() 115 memory = allocator_.Allocate(kPageSize); in TEST_F() [all …]
|
/external/llvm/unittests/Support/ |
D | AllocatorTest.cpp | 20 int *a = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 21 int *b = (int*)Alloc.Allocate(sizeof(int) * 10, 0); in TEST() 22 int *c = (int*)Alloc.Allocate(sizeof(int), 0); in TEST() 52 Alloc.Allocate(3000, 0); in TEST() 54 Alloc.Allocate(3000, 0); in TEST() 56 Alloc.Allocate(3000, 0); in TEST() 64 Alloc.Allocate(3000, 0); in TEST() 66 Alloc.Allocate(3000, 0); in TEST() 70 Alloc.Allocate(3000, 0); in TEST() 72 Alloc.Allocate(3000, 0); in TEST() [all …]
|
/external/chromium_org/content/browser/loader/ |
D | resource_buffer_unittest.cc | 18 char* ptr = buf->Allocate(&size); in TEST() 33 char* ptr = buf->Allocate(&size); in TEST() 53 buf->Allocate(&size); in TEST() 59 buf->Allocate(&size); in TEST() 69 buf->Allocate(&size); in TEST() 72 buf->Allocate(&size); in TEST() 78 buf->Allocate(&size); in TEST() 90 buf->Allocate(&size); in TEST() 93 buf->Allocate(&size); in TEST() 96 buf->Allocate(&size); in TEST() [all …]
|
/external/chromium_org/mojo/public/cpp/bindings/tests/ |
D | buffer_unittest.cc | 29 void* a = buf.Allocate(10); in TEST() 34 void* b = buf.Allocate(10); in TEST() 50 ptr = buf.Allocate(8); in TEST() 74 EXPECT_EQ(reinterpret_cast<void*>(0), buf.Allocate(32)); in TEST() 77 EXPECT_NE(reinterpret_cast<void*>(0), buf.Allocate(16)); in TEST() 81 buf.Allocate(std::numeric_limits<size_t>::max() - 1024u)); in TEST() 85 buf.Allocate(std::numeric_limits<size_t>::max() - 8u)); in TEST()
|
/external/chromium_org/third_party/tcmalloc/vendor/src/tests/ |
D | heap-profiler_unittest.cc | 59 static ATTRIBUTE_NOINLINE void Allocate(int start, int end, int size) { in Allocate() function 91 Allocate(0, 40, 100); in TestHeapProfilerStartStopIsRunning() 110 Allocate(0, 40, 100); in TestDumpHeapProfiler() 133 Allocate(0, 40, 100); in main() 136 Allocate(0, 40, 100); in main() 137 Allocate(0, 40, 100); in main() 142 Allocate(0, 100, 100000); in main()
|
/external/chromium_org/third_party/tcmalloc/chromium/src/tests/ |
D | heap-profiler_unittest.cc | 59 static ATTRIBUTE_NOINLINE void Allocate(int start, int end, int size) { in Allocate() function 91 Allocate(0, 40, 100); in TestHeapProfilerStartStopIsRunning() 110 Allocate(0, 40, 100); in TestDumpHeapProfiler() 133 Allocate(0, 40, 100); in main() 136 Allocate(0, 40, 100); in main() 137 Allocate(0, 40, 100); in main() 142 Allocate(0, 100, 100000); in main()
|
/external/llvm/include/llvm/Support/ |
D | Allocator.h | 46 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 49 &AllocatorBase::Allocate) != in Allocate() 51 &DerivedT::Allocate), in Allocate() 55 return static_cast<DerivedT *>(this)->Allocate(Size, Alignment); in Allocate() 76 template <typename T> T *Allocate(size_t Num = 1) { 77 return static_cast<T *>(Allocate(Num * sizeof(T), AlignOf<T>::Alignment)); 93 void *Allocate(size_t Size, size_t /*Alignment*/) { return malloc(Size); } in Allocate() function 96 using AllocatorBase<MallocAllocator>::Allocate; 203 void *Allocate(size_t Size, size_t Alignment) { in Allocate() function 230 void *NewSlab = Allocator.Allocate(PaddedSize, 0); in Allocate() [all …]
|
D | RecyclingAllocator.h | 44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate() function 46 T *Allocate() { return Base.Allocate(Allocator); } in Allocate() function 67 return Allocator.Allocate(); in new()
|
D | Recycler.h | 101 SubClass *Allocate(AllocatorType &Allocator) { 108 static_cast<SubClass *>(Allocator.Allocate(Size, Align)); 112 T *Allocate(AllocatorType &Allocator) { 113 return Allocate<T>(Allocator);
|
/external/chromium_org/mojo/public/cpp/bindings/lib/ |
D | message_builder.cc | 13 void Allocate(Buffer* buf, Header** header) { in Allocate() function 14 *header = static_cast<Header*>(buf->Allocate(sizeof(Header))); in Allocate() 21 Allocate(&buf_, &header); in MessageBuilder() 44 Allocate(&buf_, &header); in MessageWithRequestIDBuilder()
|
/external/clang/lib/AST/ |
D | Stmt.cpp | 289 void *Mem = C.Allocate(sizeof(AttributedStmt) + sizeof(Attr *) * Attrs.size(), in Create() 297 void *Mem = C.Allocate(sizeof(AttributedStmt) + sizeof(Attr *) * NumAttrs, in CreateEmpty() 740 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in Create() 750 void *Mem = Context.Allocate(Size, llvm::alignOf<ObjCAtTryStmt>()); in CreateEmpty() 767 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create() 776 void *Mem = C.Allocate(Size, llvm::alignOf<CXXTryStmt>()); in Create() 1078 void *Mem = Context.Allocate(Size); in Create() 1091 void *Mem = Context.Allocate(Size); in CreateDeserialized() 1130 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in Create() 1141 void *Mem = C.Allocate(llvm::RoundUpToAlignment(sizeof(OMPPrivateClause), in CreateEmpty() [all …]
|
D | ExprCXX.cpp | 303 void *Mem = C.Allocate(sizeof(UnresolvedLookupExpr) + in Create() 319 void *Mem = C.Allocate(size, llvm::alignOf<UnresolvedLookupExpr>()); in CreateEmpty() 363 C.Allocate(sizeof(DeclAccessPair) * NumResults, in OverloadExpr() 404 C.Allocate(sizeof(DeclAccessPair) * NumResults, in initializeResults() 464 void *Mem = C.Allocate(size); in Create() 476 void *Mem = C.Allocate(size); in CreateEmpty() 597 void *Buffer = C.Allocate(sizeof(CXXStaticCastExpr) in Create() 609 C.Allocate(sizeof(CXXStaticCastExpr) + PathSize * sizeof(CXXBaseSpecifier*)); in CreateEmpty() 622 void *Buffer = C.Allocate(sizeof(CXXDynamicCastExpr) in Create() 634 C.Allocate(sizeof(CXXDynamicCastExpr) + PathSize * sizeof(CXXBaseSpecifier*)); in CreateEmpty() [all …]
|
/external/compiler-rt/lib/sanitizer_common/tests/ |
D | sanitizer_allocator_test.cc | 100 char *x = (char*)cache.Allocate(a, class_id0); in TestSizeClassAllocator() 169 void *x = cache.Allocate(a, 1 + i % 50); in SizeClassAllocatorMetadataStress() 213 void *x = cache.Allocate(a, max_size_class); in SizeClassAllocatorGetBlockBeginStress() 303 void *x = a.Allocate(&stats, 1 << 20, 1); in TEST() 343 allocated[i] = (char *)a.Allocate(&stats, size, 1); in TEST() 358 char *x = (char *)a.Allocate(&stats, size, 1); in TEST() 387 char *p = allocated[i] = (char *)a.Allocate(&stats, size, alignment); in TEST() 401 char *p = (char *)a.Allocate(&stats, page_size, 1); in TEST() 424 EXPECT_EQ(a->Allocate(&cache, -1, 1), (void*)0); in TestCombinedAllocator() 425 EXPECT_EQ(a->Allocate(&cache, -1, 1024), (void*)0); in TestCombinedAllocator() [all …]
|
D | sanitizer_allocator_testlib.cc | 76 void *p = allocator.Allocate(&cache, size, 8); in malloc() 92 void *p = allocator.Allocate(&cache, size, 8, false); in calloc() 114 void *p = allocator.Allocate(&cache, size, alignment); in memalign() 122 *memptr = allocator.Allocate(&cache, size, alignment); in posix_memalign() 132 void *p = allocator.Allocate(&cache, size, GetPageSizeCached()); in valloc()
|
/external/compiler-rt/lib/lsan/ |
D | lsan_interceptors.cc | 69 return Allocate(stack, size, 1, kAlwaysClearMemory); in INTERCEPTOR() 93 return Allocate(stack, size, 1, true); in INTERCEPTOR() 105 return Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 111 return Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 117 *memptr = Allocate(stack, size, alignment, kAlwaysClearMemory); in INTERCEPTOR() 127 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory); in INTERCEPTOR() 158 return Allocate(stack, size, GetPageSizeCached(), kAlwaysClearMemory); in INTERCEPTOR() 166 return Allocate(stack, size, 1, kAlwaysClearMemory);
|
/external/chromium_org/courgette/third_party/ |
D | paged_array_unittest.cc | 20 EXPECT_TRUE(a.Allocate(kSize)); in TEST_F() 27 EXPECT_TRUE(a.Allocate(kSize)); in TEST_F() 35 a.Allocate(kAccessSize); in TEST_F()
|
/external/chromium_org/third_party/android_crazy_linker/src/src/ |
D | crazy_linker_ashmem.cpp | 21 bool AshmemRegion::Allocate(size_t region_size, const char* region_name) { in Allocate() function in crazy::AshmemRegion 55 if (map.Allocate(NULL, map_size, MemoryMapping::CAN_WRITE, fd)) { in CheckFileDescriptorIsReadOnly() 69 if (!map.Allocate(NULL, map_size, MemoryMapping::CAN_READ, fd)) { in CheckFileDescriptorIsReadOnly()
|
D | crazy_linker_elf_relro.cpp | 70 bool SharedRelro::Allocate(size_t relro_size, in Allocate() function in crazy::SharedRelro 76 if (!ashmem_.Allocate(relro_size, name.c_str())) { in Allocate() 93 if (!map.Allocate(NULL, relro_size, MemoryMapping::CAN_WRITE, ashmem_.fd())) { in CopyFrom() 124 if (!map.Allocate( in CopyFromRelocated() 172 if (!fd_map.Allocate(NULL, relro_size, MemoryMapping::CAN_READ, ashmem_fd)) { in InitFrom()
|
D | crazy_linker_ashmem_unittest.cpp | 18 TEST(AshmemRegion, Allocate) { in TEST() argument 21 EXPECT_TRUE(region.Allocate(kSize, __FUNCTION__)); in TEST()
|
/external/e2fsprogs/tests/f_holedir/ |
D | expect.1 | 12 Directory inode 11 has an unallocated block #0. Allocate? yes 14 Directory inode 11 has an unallocated block #3. Allocate? yes 16 Directory inode 11 has an unallocated block #6. Allocate? yes
|
/external/clang/test/CXX/temp/temp.spec/temp.inst/ |
D | p11.cpp | 9 void Allocate(unsigned Alignment in Allocate() function 13 void f1(A<int> x) { x.Allocate(); } in f1()
|
/external/chromium_org/third_party/libjingle/source/talk/p2p/base/ |
D | relayserver_unittest.cc | 84 void Allocate() { in Allocate() function in RelayServerTest 275 Allocate(); in TEST_F() 305 Allocate(); in TEST_F() 340 Allocate(); in TEST_F() 350 Allocate(); in TEST_F() 373 Allocate(); in TEST_F() 398 Allocate(); in TEST_F() 422 Allocate(); in TEST_F() 447 Allocate(); in TEST_F() 472 Allocate(); in TEST_F() [all …]
|
/external/chromium_org/cc/resources/ |
D | scoped_resource_unittest.cc | 60 texture->Allocate( in TEST() 92 texture->Allocate( in TEST() 103 texture->Allocate( in TEST() 132 texture->Allocate( in TEST()
|
/external/chromium_org/v8/src/ |
D | transitions.cc | 15 Handle<TransitionArray> TransitionArray::Allocate(Isolate* isolate, in Allocate() function in v8::internal::TransitionArray 57 result = Allocate(isolate, 1); in NewWith() 71 Handle<TransitionArray> result = Allocate(containing_map->GetIsolate(), nof); in ExtendToFullTransitionArray() 102 Handle<TransitionArray> result = Allocate(map->GetIsolate(), new_size); in CopyInsert()
|
/external/compiler-rt/lib/asan/ |
D | asan_allocator2.cc | 263 void *Allocate(uptr size) { in Allocate() function 264 return allocator.Allocate(cache_, size, 1, false); in Allocate() 283 static void *Allocate(uptr size, uptr alignment, StackTrace *stack, in Allocate() function 325 allocated = allocator.Allocate(cache, needed_size, 8, false); in Allocate() 329 allocated = allocator.Allocate(cache, needed_size, 8, false); in Allocate() 489 void *new_ptr = Allocate(new_size, 8, stack, FROM_MALLOC, true); in Reallocate() 594 return Allocate(size, alignment, stack, alloc_type, true); in asan_memalign() 602 return Allocate(size, 8, stack, FROM_MALLOC, true); in asan_malloc() 608 void *ptr = Allocate(nmemb * size, 8, stack, FROM_MALLOC, false); in asan_calloc() 618 return Allocate(size, 8, stack, FROM_MALLOC, true); in asan_realloc() [all …]
|