Searched refs:pool (Results 1 - 19 of 19) sorted by relevance

/frameworks/base/core/java/android/util/
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;
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);
/frameworks/media/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
60 pool = M4OSA_NULL;
61 pool = (VIDEOEDITOR_BUFFER_Pool*)M4OSA_32bitAlignedMalloc(
63 (M4OSA_Char*)("VIDEOEDITOR_BUFFER_allocatePool: pool"));
64 if (M4OSA_NULL == pool)
71 pool
202 VIDEOEDITOR_BUFFER_initPoolBuffers(VIDEOEDITOR_BUFFER_Pool* pool, M4OSA_UInt32 lSize) argument
237 VIDEOEDITOR_BUFFER_getOldestBuffer(VIDEOEDITOR_BUFFER_Pool *pool, VIDEOEDITOR_BUFFER_State desiredState, VIDEOEDITOR_BUFFER_Buffer** pNXPBuffer) argument
[all...]
/frameworks/base/tools/aapt/
H A DStringPool.cpp31 void printStringPool(const ResStringPool* pool) argument
33 const size_t NS = pool->size();
36 const char *str = (const char*)pool->string8At(s, &len);
38 str = String8(pool->stringAt(s, &len)).string();
111 NOISY(printf("Adding string %s to pool: pos=%d eidx=%d vidx=%d\n",
174 sp<AaptFile> pool = new AaptFile(String8(), AaptGroupEntry(), local
176 status_t err = writeStringBlock(pool);
177 return err == NO_ERROR ? pool : NULL;
190 status_t StringPool::writeStringBlock(const sp<AaptFile>& pool) argument
193 if (pool
[all...]
H A DStringPool.h31 void printStringPool(const ResStringPool* pool);
35 * generating the string pool resource data structure that can be parsed with
70 * be included multiple times in the pool).
78 * Add a new string to the pool. If mergeDuplicates is true, thenif
84 * if this string pool is sorted, the returned index will not be valid
85 * when the pool is finally written.
107 status_t writeStringBlock(const sp<AaptFile>& pool);
110 * Find out an offset in the pool for a particular string. If the string
111 * pool is sorted, this can not be called until after createStringBlock()
114 * multiple times in the pool, th
[all...]
H A DResource.cpp424 const ResStringPool* pool = &parser.getStrings(); local
436 pool = table.getTableStringBlock(strIdx);
438 if (pool != NULL) {
439 str = pool->stringAt(value.data, &len);
453 if (pool == NULL) {
459 if ((str=pool->stringAt(value.data, &len)) == NULL) {
H A DResourceTable.h180 bool stringToValue(Res_value* outValue, StringPool* pool,
295 // Index of the entry's name string in the key pool.
H A DResourceTable.cpp2044 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2077 if (pool) {
2079 outValue->data = pool->add(finalStr, *style);
2081 outValue->data = pool->add(finalStr, true);
3545 NOISY(aout << "Setting restable string pool: "
/frameworks/media/libvideoeditor/vss/stagefrightshells/inc/
H A DVideoEditorBuffer.h57 M4OSA_UInt32 idx; /**< Index of the buffer inside the pool */
82 * @brief Allocate a pool of nbBuffers buffers
84 * @param ppool : IN The buffer pool to create
85 * @param nbBuffers : IN The number of buffers in the pool
86 * @param poolName : IN a name given to the pool
96 * @brief Deallocate a buffer pool
98 * @param ppool : IN The buffer pool to free
110 * @param ppool : IN The buffer pool
124 M4OSA_ERR VIDEOEDITOR_BUFFER_getOldestBuffer(VIDEOEDITOR_BUFFER_Pool *pool,
/frameworks/compile/libbcc/lib/ExecutionEngine/
H A DMCCacheWriter.cpp175 // Calculate string pool size
185 // Create string pool
186 OBCC_StringPool *pool = (OBCC_StringPool *)malloc(size); local
188 if (!pool) {
189 LOGE("Unable to allocate string pool.\n");
193 mpStringPoolSection = pool;
196 pool->count = mStringPool.size();
198 char *strPtr = reinterpret_cast<char *>(pool) + strOffset;
201 OBCC_String *str = &pool->list[i];
H A DMCCacheReader.cpp249 vector<char const *> &pool = mpResult->mStringPool; local
252 pool.push_back(str);
261 vector<char const *> &pool = mpResult->mStringPool; local
265 if (pool[i][poolR->list[i].length] != '\0') {
/frameworks/compile/libbcc/lib/ExecutionEngine/OldJIT/
H A DCacheWriter.cpp229 // Calculate string pool size
239 // Create string pool
240 OBCC_StringPool *pool = (OBCC_StringPool *)malloc(size); local
242 if (!pool) {
243 LOGE("Unable to allocate string pool.\n");
247 mpStringPoolSection = pool;
250 pool->count = mStringPool.size();
252 char *strPtr = reinterpret_cast<char *>(pool) + strOffset;
255 OBCC_String *str = &pool->list[i];
H A DCacheReader.cpp262 vector<char const *> &pool = mpResult->mStringPool; local
265 pool.push_back(str);
274 vector<char const *> &pool = mpResult->mStringPool; local
278 if (pool[i][poolR->list[i].length] != '\0') {
/frameworks/base/core/tests/coretests/src/android/database/sqlite/
H A DSQLiteCursorTest.java60 // have a few connections in the database connection pool
61 DatabaseConnectionPool pool = mDatabase.mConnectionPool;
62 pool.setMaxPoolSize(5);
71 assertTrue(pool.getConnectionList().contains(db));
H A DSQLiteDatabaseTest.java84 DatabaseConnectionPool pool = mDatabase.mConnectionPool;
85 assertNotNull(pool);
86 // make the same call again and make sure the pool already setup is not re-created
88 assertEquals(pool, mDatabase.mConnectionPool);
101 // disable WAL - which should close connection pool and all pooled connections
126 // disable WAL - which should close connection pool and all pooled connections
238 * This test starts 1 Writer and 2 Readers and sets up connection pool for readers
256 * The test is repeated for different connection-pool-sizes (1..3)
260 * <li>connection-pool-size</li>
280 // set up connection pool
[all...]
/frameworks/base/core/java/android/os/
H A DParcel.java238 * Retrieve a new Parcel object from the pool.
241 final Parcel[] pool = sOwnedPool;
242 synchronized (pool) {
245 p = pool[i];
247 pool[i] = null;
259 * Put a Parcel object back into the pool. You must not touch
265 final Parcel[] pool = mOwnObject != 0 ? sOwnedPool : sHolderPool;
266 synchronized (pool) {
268 if (pool[i] == null) {
269 pool[
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DTestWebServer.java407 Vector pool = threads;
408 synchronized (pool) {
409 if (pool.size() >= workers) {
414 pool.addElement(this);
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java916 // this new one to the pool.
918 // Add this timer to the active pool
944 // active in the pool, before taking this one out of the pool.
946 // Remove this timer from the active pool
973 final ArrayList<StopwatchTimer> pool) {
976 final int N = pool.size();
978 final StopwatchTimer t = pool.get(i);
3014 * proper timer pool from the given BatteryStatsImpl object.
3019 private StopwatchTimer readTimerFromParcel(int type, ArrayList<StopwatchTimer> pool, argument
972 refreshTimersLocked(final BatteryStatsImpl stats, final ArrayList<StopwatchTimer> pool) argument
[all...]
/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);

Completed in 378 milliseconds