Searched defs:pool (Results 1 - 14 of 14) sorted by relevance

/frameworks/base/core/java/android/util/
H A DPools.java34 public static <T extends Poolable<T>> Pool<T> synchronizedPool(Pool<T> pool) { argument
35 return new SynchronizedPool<T>(pool);
38 public static <T extends Poolable<T>> Pool<T> synchronizedPool(Pool<T> pool, Object lock) { argument
39 return new SynchronizedPool<T>(pool, lock);
H A DSynchronizedPool.java27 public SynchronizedPool(Pool<T> pool) { argument
28 mPool = pool;
32 public SynchronizedPool(Pool<T> pool, Object lock) { argument
33 mPool = pool;
/frameworks/support/volley/tests/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStreamTest.java28 ByteArrayPool pool = new ByteArrayPool(32768);
29 writeOneBuffer(pool);
30 writeOneBuffer(pool);
31 writeOneBuffer(pool);
35 ByteArrayPool pool = new ByteArrayPool(32768);
36 writeBytesIndividually(pool);
37 writeBytesIndividually(pool);
38 writeBytesIndividually(pool);
42 ByteArrayPool pool = new ByteArrayPool(0);
43 writeOneBuffer(pool);
55 writeOneBuffer(ByteArrayPool pool) argument
66 writeBytesIndividually(ByteArrayPool pool) argument
[all...]
/frameworks/support/volley/src/com/android/volley/toolbox/
H A DPoolingByteArrayOutputStream.java23 * A variation of {@link java.io.ByteArrayOutputStream} that uses a pool of byte[] buffers instead
39 public PoolingByteArrayOutputStream(ByteArrayPool pool) { argument
40 this(pool, DEFAULT_SIZE);
51 public PoolingByteArrayOutputStream(ByteArrayPool pool, int size) { argument
52 mPool = pool;
H A DBasicNetwork.java68 // If a pool isn't passed in, then build a small default pool that will give us a lot of
75 * @param pool a buffer pool that improves GC performance in copy operations
77 public BasicNetwork(HttpStack httpStack, ByteArrayPool pool) { argument
79 mPool = pool;
/frameworks/av/libvideoeditor/vss/stagefrightshells/src/
H A DVideoEditorBuffer.c43 * @brief Allocate a pool of nbBuffers buffers
45 * @param ppool : IN The buffer pool to create
46 * @param nbBuffers : IN The number of buffers in the pool
47 * @param poolName : IN a name given to the pool
55 VIDEOEDITOR_BUFFER_Pool* pool; local
61 pool = M4OSA_NULL;
62 pool = (VIDEOEDITOR_BUFFER_Pool*)M4OSA_32bitAlignedMalloc(
64 (M4OSA_Char*)("VIDEOEDITOR_BUFFER_allocatePool: pool"));
65 if (M4OSA_NULL == pool)
72 pool
208 VIDEOEDITOR_BUFFER_initPoolBuffers(VIDEOEDITOR_BUFFER_Pool* pool, M4OSA_UInt32 lSize) argument
243 VIDEOEDITOR_BUFFER_getOldestBuffer(VIDEOEDITOR_BUFFER_Pool *pool, VIDEOEDITOR_BUFFER_State desiredState, VIDEOEDITOR_BUFFER_Buffer** pNXPBuffer) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_util.h101 // Return the shared instance to this type's pool.
106 // Delete this type's pool.
111 // Register a new C++ object with the pool. This does not affect the Java
113 // assignments. Pass true to owns if the object pool owns the object.
122 // Return the object in the pool with the specified ID.
140 // object. Pass true to owns if the object pool owns the object.
150 // Remove the object with the given ID from this pool, and delete it. This
213 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
214 return pool ? pool
222 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
236 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
246 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
[all...]
/frameworks/base/tools/aapt/
H A DStringPool.cpp34 void printStringPool(const ResStringPool* pool) argument
37 const size_t N = pool->size();
40 if (pool->isUTF8()) {
41 uniqueStrings.add(pool->string8At(i, &len));
43 uniqueStrings.add(pool->stringAt(i, &len));
47 printf("String pool of " ZD " unique %s %s strings, " ZD " entries and "
49 (ZD_TYPE)uniqueStrings.size(), pool->isUTF8() ? "UTF-8" : "UTF-16",
50 pool->isSorted() ? "sorted" : "non-sorted",
51 (ZD_TYPE)N, (ZD_TYPE)pool->styleCount(), (ZD_TYPE)pool
347 sp<AaptFile> pool = new AaptFile(String8(), AaptGroupEntry(), local
363 writeStringBlock(const sp<AaptFile>& pool) argument
[all...]
H A DCommand.cpp485 const ResStringPool* pool = res.getTableStringBlock(0); local
486 printStringPool(pool);
H A DResource.cpp460 const ResStringPool* pool = &parser.getStrings(); local
472 pool = table.getTableStringBlock(strIdx);
474 if (pool != NULL) {
475 str = pool->stringAt(value.data, &len);
489 if (pool == NULL) {
495 if ((str=pool->stringAt(value.data, &len)) == NULL) {
H A DResourceTable.cpp2088 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2122 if (pool) {
2129 NOISY(printf("Adding to pool string style #%d config %s: %s\n",
2133 outValue->data = pool->add(finalStr, *style, configTypeName, config);
2135 outValue->data = pool->add(finalStr, true, configTypeName, config);
3677 NOISY(aout << "Setting restable string pool: "
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java55 * perform a database operation and are then returned to the pool. At any
160 private SQLiteConnection(SQLiteConnectionPool pool, argument
163 mPool = pool;
187 static SQLiteConnection open(SQLiteConnectionPool pool, argument
190 SQLiteConnection connection = new SQLiteConnection(pool, configuration,
475 * To take advantage of this behavior as an optimization, the connection pool
1213 // Next item in pool.
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp1492 const ResStringPool* pool = res.getTableStringBlock(block); local
1493 const char* str8 = pool->string8At(value.data, &strLen);
1497 const char16_t* str16 = pool->stringAt(value.data, &strLen);
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java930 // this new one to the pool.
932 // Add this timer to the active pool
958 // active in the pool, before taking this one out of the pool.
960 // Remove this timer from the active pool
987 final ArrayList<StopwatchTimer> pool) {
990 final int N = pool.size();
992 final StopwatchTimer t = pool.get(i);
3049 * proper timer pool from the given BatteryStatsImpl object.
3054 private StopwatchTimer readTimerFromParcel(int type, ArrayList<StopwatchTimer> pool, argument
986 refreshTimersLocked(final BatteryStatsImpl stats, final ArrayList<StopwatchTimer> pool) argument
[all...]

Completed in 177 milliseconds