/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
D | ConnectionPoolTest.java | 65 private ConnectionPool pool; field in ConnectionPoolTest 105 pool = new ConnectionPool(poolSize, KEEP_ALIVE_DURATION_MS); in setUp() 108 pool.replaceCleanupExecutorForTests(cleanupExecutor); in setUp() 109 httpA = new Connection(pool, httpRoute); in setUp() 111 httpB = new Connection(pool, httpRoute); in setUp() 113 httpC = new Connection(pool, httpRoute); in setUp() 115 httpD = new Connection(pool, httpRoute); in setUp() 117 httpE = new Connection(pool, httpRoute); in setUp() 119 spdyA = new Connection(pool, spdyRoute); in setUp() 149 Connection connection = pool.get(httpAddress); in poolSingleHttpConnection() [all …]
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_slab.c | 46 util_slab_get_block(struct util_slab_mempool *pool, in util_slab_get_block() argument 51 (pool->block_size * index)); in util_slab_get_block() 54 static void util_slab_add_new_page(struct util_slab_mempool *pool) in util_slab_add_new_page() argument 60 page = MALLOC(pool->page_size); in util_slab_add_new_page() 61 insert_at_tail(&pool->list, page); in util_slab_add_new_page() 64 for (i = 0; i < pool->num_blocks-1; i++) { in util_slab_add_new_page() 65 block = util_slab_get_block(pool, page, i); in util_slab_add_new_page() 66 block->next_free = util_slab_get_block(pool, page, i+1); in util_slab_add_new_page() 70 block = util_slab_get_block(pool, page, pool->num_blocks-1); in util_slab_add_new_page() 71 block->next_free = pool->first_free; in util_slab_add_new_page() [all …]
|
D | u_slab.h | 57 void *(*alloc)(struct util_slab_mempool *pool); 58 void (*free)(struct util_slab_mempool *pool, void *ptr); 74 void util_slab_create(struct util_slab_mempool *pool, 79 void util_slab_destroy(struct util_slab_mempool *pool); 81 void util_slab_set_thread_safety(struct util_slab_mempool *pool, 84 #define util_slab_alloc(pool) (pool)->alloc(pool) argument 85 #define util_slab_free(pool, ptr) (pool)->free(pool, ptr) argument
|
/external/deqp/framework/delibs/depool/ |
D | deMemPool.c | 171 deMemPool* pool; in createPoolInternal() local 189 pool = (deMemPool*)(initialPage + 1); in createPoolInternal() 192 memset(pool, 0, sizeof(deMemPool)); in createPoolInternal() 193 pool->currentPage = initialPage; in createPoolInternal() 196 pool->parent = parent; in createPoolInternal() 200 if (parent->firstChild) parent->firstChild->prevPool = pool; in createPoolInternal() 201 pool->nextPool = parent->firstChild; in createPoolInternal() 202 parent->firstChild = pool; in createPoolInternal() 206 pool->util = parent ? parent->util : DE_NULL; in createPoolInternal() 209 pool->allowFailing = parent ? parent->allowFailing : DE_FALSE; in createPoolInternal() [all …]
|
D | deMemPool.h | 67 void deMemPool_destroy (deMemPool* pool); 68 int deMemPool_getNumChildren (const deMemPool* pool); 69 int deMemPool_getNumAllocatedBytes (const deMemPool* pool, deBool recurse); 70 int deMemPool_getCapacity (const deMemPool* pool, deBool recurse); 72 void* deMemPool_alloc (deMemPool* pool, int numBytes); 73 void* deMemPool_alignedAlloc (deMemPool* pool, int numBytes, deUint32 alignBytes); 74 void* deMemPool_memDup (deMemPool* pool, const void* ptr, int numBytes); 75 char* deMemPool_strDup (deMemPool* pool, const char* str); 76 char* deMemPool_strnDup (deMemPool* pool, const char* str, int maxLength); 79 int deMemPool_getMaxNumAllocatedBytes (const deMemPool* pool); [all …]
|
D | dePoolStringBuilder.c | 38 deMemPool* pool; member 44 dePoolStringBuilder* dePoolStringBuilder_create (deMemPool* pool) in dePoolStringBuilder_create() argument 46 dePoolStringBuilder* builder = DE_POOL_NEW(pool, dePoolStringBuilder); in dePoolStringBuilder_create() 50 builder->pool = pool; in dePoolStringBuilder_create() 60 StringBlock* block = DE_POOL_NEW(builder->pool, StringBlock); in dePoolStringBuilder_appendString() 62 char* blockStr = (char*)deMemPool_alloc(builder->pool, len + 1); in dePoolStringBuilder_appendString() 115 return dePoolStringBuilder_dupToPool(builder, builder->pool); in dePoolStringBuilder_dupToString() 118 char* dePoolStringBuilder_dupToPool (dePoolStringBuilder* builder, deMemPool* pool) in dePoolStringBuilder_dupToPool() argument 120 char* resultStr = (char*)deMemPool_alloc(pool, builder->length + 1); in dePoolStringBuilder_dupToPool()
|
/external/mesa3d/src/gallium/auxiliary/pipebuffer/ |
D | pb_bufmgr_pool.c | 109 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_destroy() local 113 pipe_mutex_lock(pool->mutex); in pool_buffer_destroy() 114 LIST_ADD(&pool_buf->head, &pool->free); in pool_buffer_destroy() 115 pool->numFree++; in pool_buffer_destroy() 116 pipe_mutex_unlock(pool->mutex); in pool_buffer_destroy() 124 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_map() local 129 pipe_mutex_lock(pool->mutex); in pool_buffer_map() 130 map = (unsigned char *) pool->map + pool_buf->start; in pool_buffer_map() 131 pipe_mutex_unlock(pool->mutex); in pool_buffer_map() 149 struct pool_pb_manager *pool = pool_buf->mgr; in pool_buffer_validate() local [all …]
|
/external/fio/ |
D | smalloc.c | 37 struct pool { struct 54 static struct pool mp[MAX_POOLS]; argument 59 static inline void pool_lock(struct pool *pool) in pool_lock() argument 61 fio_mutex_down(pool->lock); in pool_lock() 64 static inline void pool_unlock(struct pool *pool) in pool_unlock() argument 66 fio_mutex_up(pool->lock); in pool_unlock() 89 static inline int ptr_valid(struct pool *pool, void *ptr) in ptr_valid() argument 91 unsigned int pool_size = pool->nr_blocks * SMALLOC_BPL; in ptr_valid() 93 return (ptr >= pool->map) && (ptr < pool->map + pool_size); in ptr_valid() 101 static int blocks_iter(struct pool *pool, unsigned int pool_idx, in blocks_iter() argument [all …]
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | compute_memory_pool.c | 79 struct compute_memory_pool* pool = (struct compute_memory_pool*) in compute_memory_pool_new() local 84 pool->screen = rscreen; in compute_memory_pool_new() 85 return pool; in compute_memory_pool_new() 88 static void compute_memory_pool_init(struct compute_memory_pool * pool, in compute_memory_pool_init() argument 99 pool->next_id = 1; in compute_memory_pool_init() 100 pool->size_in_dw = initial_size_in_dw; in compute_memory_pool_init() 101 pool->bo = (struct r600_resource*)create_pool_texture(pool->screen, in compute_memory_pool_init() 102 pool->size_in_dw); in compute_memory_pool_init() 108 void compute_memory_pool_delete(struct compute_memory_pool* pool) in compute_memory_pool_delete() argument 111 free(pool->shadow); in compute_memory_pool_delete() [all …]
|
D | compute_memory_pool.h | 41 struct compute_memory_pool* pool; member 61 void compute_memory_pool_delete(struct compute_memory_pool* pool); ///Frees all stuff in the pool a… 63 int64_t compute_memory_prealloc_chunk(struct compute_memory_pool* pool, int64_t size_in_dw); ///sea… 65 struct compute_memory_item* compute_memory_postalloc_chunk(struct compute_memory_pool* pool, int64_… 70 void compute_memory_grow_pool(struct compute_memory_pool* pool, struct pipe_context * pipe, 76 void compute_memory_shadow(struct compute_memory_pool* pool, 82 void compute_memory_finalize_pending(struct compute_memory_pool* pool, 84 void compute_memory_defrag(struct compute_memory_pool* pool); ///Defragment the memory pool, always… 85 void compute_memory_free(struct compute_memory_pool* pool, int64_t id); 86 struct compute_memory_item* compute_memory_alloc(struct compute_memory_pool* pool, int64_t size_in_… [all …]
|
/external/mesa3d/src/gallium/drivers/r300/compiler/ |
D | memory_pool.c | 38 void memory_pool_init(struct memory_pool * pool) in memory_pool_init() argument 40 memset(pool, 0, sizeof(struct memory_pool)); in memory_pool_init() 44 void memory_pool_destroy(struct memory_pool * pool) in memory_pool_destroy() argument 46 while(pool->blocks) { in memory_pool_destroy() 47 struct memory_block * block = pool->blocks; in memory_pool_destroy() 48 pool->blocks = block->next; in memory_pool_destroy() 53 static void refill_pool(struct memory_pool * pool) in refill_pool() argument 55 unsigned int blocksize = pool->total_allocated; in refill_pool() 62 newblock->next = pool->blocks; in refill_pool() 63 pool->blocks = newblock; in refill_pool() [all …]
|
/external/libunwind/src/mi/ |
D | mempool.c | 86 free_object (struct mempool *pool, void *object) in free_object() argument 90 obj->next = pool->free_list; in free_object() 91 pool->free_list = obj; in free_object() 92 ++pool->num_free; in free_object() 96 add_memory (struct mempool *pool, char *mem, size_t size, size_t obj_size) in add_memory() argument 101 free_object (pool, obj); in add_memory() 105 expand (struct mempool *pool) in expand() argument 110 size = pool->chunk_size; in expand() 114 size = UNW_ALIGN(pool->obj_size, pg_size); in expand() 119 size = pool->obj_size; in expand() [all …]
|
/external/zopfli/src/zopfli/ |
D | katajainen.c | 67 static Node* GetFreeNode(Node* (*lists)[2], int maxbits, NodePool* pool) { in GetFreeNode() argument 69 if (pool->next >= &pool->nodes[pool->size]) { in GetFreeNode() 72 for (i = 0; i < pool->size; i++) { in GetFreeNode() 73 pool->nodes[i].inuse = 0; in GetFreeNode() 83 pool->next = &pool->nodes[0]; in GetFreeNode() 85 if (!pool->next->inuse) break; /* Found one. */ in GetFreeNode() 86 pool->next++; in GetFreeNode() 88 return pool->next++; in GetFreeNode() 106 Node* leaves, int numsymbols, NodePool* pool, int index, char final) { in BoundaryPM() argument 113 newchain = GetFreeNode(lists, maxbits, pool); in BoundaryPM() [all …]
|
/external/javassist/src/main/javassist/bytecode/ |
D | InstructionPrinter.java | 41 ConstPool pool = info.getConstPool(); in print() local 55 stream.println(pos + ": " + instructionString(iterator, pos, pool)); in print() 59 public static String instructionString(CodeIterator iter, int pos, ConstPool pool) { in instructionString() argument 72 return opstring + " " + ldc(pool, iter.byteAt(pos + 1)); in instructionString() 75 return opstring + " " + ldc(pool, iter.u16bitAt(pos + 1)); in instructionString() 119 return opstring + " " + fieldInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 123 return opstring + " " + methodInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 125 return opstring + " " + interfaceMethodInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 129 return opstring + " " + classInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() 134 return opstring + " " + classInfo(pool, iter.u16bitAt(pos + 1)); in instructionString() [all …]
|
/external/javassist/src/main/javassist/bytecode/annotation/ |
D | AnnotationsWriter.java | 61 private ConstPool pool; field in AnnotationsWriter 71 pool = cp; in AnnotationsWriter() 78 return pool; in getConstPool() 121 annotation(pool.addUtf8Info(type), numMemberValuePairs); in annotation() 150 memberValuePair(pool.addUtf8Info(memberName)); in memberValuePair() 174 constValueIndex('Z', pool.addIntegerInfo(value ? 1 : 0)); in constValueIndex() 184 constValueIndex('B', pool.addIntegerInfo(value)); in constValueIndex() 194 constValueIndex('C', pool.addIntegerInfo(value)); in constValueIndex() 204 constValueIndex('S', pool.addIntegerInfo(value)); in constValueIndex() 214 constValueIndex('I', pool.addIntegerInfo(value)); in constValueIndex() [all …]
|
/external/skia/tests/ |
D | DiscardableMemoryPoolTest.cpp | 12 SkAutoTUnref<SkDiscardableMemoryPool> pool( in DEF_TEST() local 14 pool->setRAMBudget(3); in DEF_TEST() 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST() 17 SkAutoTDelete<SkDiscardableMemory> dm1(pool->create(100)); in DEF_TEST() 19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed()); in DEF_TEST() 21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed()); in DEF_TEST() 25 SkAutoTDelete<SkDiscardableMemory> dm2(pool->create(200)); in DEF_TEST() 26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); in DEF_TEST() 27 pool->setRAMBudget(400); in DEF_TEST() 29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed()); in DEF_TEST() [all …]
|
/external/libxml2/ |
D | dict.c | 242 xmlDictStringsPtr pool; in xmlDictAddString() local 250 pool = dict->strings; in xmlDictAddString() 251 while (pool != NULL) { in xmlDictAddString() 252 if (pool->end - pool->free > namelen) in xmlDictAddString() 254 if (pool->size > size) size = pool->size; in xmlDictAddString() 255 limit += pool->size; in xmlDictAddString() 256 pool = pool->next; in xmlDictAddString() 261 if (pool == NULL) { in xmlDictAddString() 270 pool = (xmlDictStringsPtr) xmlMalloc(sizeof(xmlDictStrings) + size); in xmlDictAddString() 271 if (pool == NULL) in xmlDictAddString() [all …]
|
/external/llvm/test/CodeGen/XCore/ |
D | atomic.ll | 18 @pool = external global i64 24 ; CHECK: ldw r[[R0:[0-9]+]], dp[pool] 25 ; CHECK-NEXT: ldaw r[[R1:[0-9]+]], dp[pool] 28 %0 = load atomic i32, i32* bitcast (i64* @pool to i32*) acquire, align 4 32 %1 = load atomic i16, i16* bitcast (i64* @pool to i16*) acquire, align 2 36 %2 = load atomic i8, i8* bitcast (i64* @pool to i8*) acquire, align 1 38 ; CHECK-NEXT: ldw r4, dp[pool] 40 %3 = load atomic i32, i32* bitcast (i64* @pool to i32*) seq_cst, align 4 44 %4 = load atomic i16, i16* bitcast (i64* @pool to i16*) seq_cst, align 2 48 %5 = load atomic i8, i8* bitcast (i64* @pool to i8*) seq_cst, align 1 [all …]
|
/external/guava/guava-tests/test/com/google/common/collect/ |
D | InternersTest.java | 38 Interner<String> pool = Interners.newStrongInterner(); in testStrong_simplistic() local 39 assertSame(canonical, pool.intern(canonical)); in testStrong_simplistic() 40 assertSame(canonical, pool.intern(not)); in testStrong_simplistic() 44 Interner<String> pool = Interners.newStrongInterner(); in testStrong_null() local 46 pool.intern(null); in testStrong_null() 55 Interner<String> pool = Interners.newWeakInterner(); in testWeak_simplistic() local 56 assertSame(canonical, pool.intern(canonical)); in testWeak_simplistic() 57 assertSame(canonical, pool.intern(not)); in testWeak_simplistic() 61 Interner<String> pool = Interners.newWeakInterner(); in testWeak_null() local 63 pool.intern(null); in testWeak_null() [all …]
|
/external/javassist/sample/vector/ |
D | VectorAssistant.java | 52 public CtClass[] assist(ClassPool pool, String vec, String[] args) in assist() argument 61 CtClass elementType = pool.get(args[0]); in assist() 63 subclass = makeSubclass2(pool, elementType); in assist() 65 subclass = makeSubclass(pool, elementType); in assist() 67 CtClass[] results = { subclass, pool.get(vec) }; in assist() 84 public CtClass makeSubclass(ClassPool pool, CtClass type) in makeSubclass() argument 87 CtClass vec = pool.makeClass(makeClassName(type)); in makeSubclass() 88 vec.setSuperclass(pool.get("java.util.Vector")); in makeSubclass() 90 CtClass c = pool.get("sample.vector.Sample"); in makeSubclass() 109 public CtClass makeSubclass2(ClassPool pool, CtClass type) in makeSubclass2() argument [all …]
|
/external/protobuf/python/google/protobuf/internal/ |
D | descriptor_pool_test.py | 56 self.pool = descriptor_pool.DescriptorPool() 61 self.pool.Add(self.factory_test1_fd) 62 self.pool.Add(self.factory_test2_fd) 66 file_desc1 = self.pool.FindFileByName(name1) 73 file_desc2 = self.pool.FindFileByName(name2) 81 self.pool.FindFileByName('Does not exist') 84 file_desc1 = self.pool.FindFileContainingSymbol( 92 file_desc2 = self.pool.FindFileContainingSymbol( 102 self.pool.FindFileContainingSymbol('Does not exist') 105 msg1 = self.pool.FindMessageTypeByName( [all …]
|
/external/valgrind/memcheck/tests/ |
D | mempool.c | 30 } pool; typedef 32 pool *make_pool() in make_pool() 34 pool *p; in make_pool() 37 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool() 43 p = (pool *)malloc(sizeof(pool)); in make_pool() 53 void push(pool *p) in push() 70 void pop(pool *p) in pop() 83 void destroy_pool(pool *p) in destroy_pool() 92 munmap(p, sizeof(pool)); in destroy_pool() 99 char *allocate(pool *p, int size) in allocate() [all …]
|
D | mempool2.c | 33 } pool; typedef 35 pool *make_pool( int use_mmap ) in make_pool() 37 pool *p; in make_pool() 40 p = (pool *)mmap(0, sizeof(pool), PROT_READ|PROT_WRITE|PROT_EXEC, in make_pool() 46 p = (pool *)malloc(sizeof(pool)); in make_pool() 56 void push(pool *p, int use_mmap ) in push() 73 void pop(pool *p, int use_mmap) in pop() 86 void destroy_pool(pool *p, int use_mmap) in destroy_pool() 95 munmap(p, sizeof(pool)); in destroy_pool() 102 char *allocate(pool *p, int size) in allocate() [all …]
|
/external/jetty/src/resources/org/eclipse/jetty/util/thread/jmx/ |
D | QueuedThreadPool-mbean.properties | 1 QueuedThreadPool: A thread pool with no max bound by default 2 minThreads: Minimum number of threads in the pool 3 maxThreads: Maximum number threads in the pool 5 name: Name of the thread pool 6 daemon: Is pool thread using daemon thread 7 threadsPriority: The priority of threads in the pool 11 stopThread(long): Stop a pool thread 13 interruptThread(long): Interrupt a pool thread 15 dumpThread(long): Dump a pool thread stack
|
/external/v8/tools/testrunner/local/ |
D | pool_unittest.py | 8 from pool import Pool 18 pool = Pool(3) 19 for result in pool.imap_unordered(Run, [[x] for x in range(0, 10)]): 25 pool = Pool(3) 26 for result in pool.imap_unordered(Run, [[x] for x in range(0, 12)]): 35 pool = Pool(3) 36 for result in pool.imap_unordered(Run, [[x] for x in range(0, 10)]): 39 pool.add([result + 20])
|