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

/frameworks/base/libs/androidfw/tests/
H A DTestHelpers.cpp36 const ResStringPool* pool = table.getTableStringBlock(block); local
37 if (pool == NULL) {
38 return ::testing::AssertionFailure() << "table has no string pool for block " << block;
41 const String8 actual = pool->string8ObjectAt(val.data);
H A DIdmap_test.cpp76 const ResStringPool* pool = mTargetTable.getTableStringBlock(block); local
77 ASSERT_TRUE(pool != NULL);
78 ASSERT_LT(val.data, pool->size());
81 const char16_t* targetStr16 = pool->stringAt(val.data, &strLen);
91 pool = mTargetTable.getTableStringBlock(newBlock);
92 ASSERT_TRUE(pool != NULL);
93 ASSERT_LT(val.data, pool->size());
95 targetStr16 = pool->stringAt(val.data, &strLen);
/frameworks/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/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/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.cpp46 void printStringPool(const ResStringPool* pool) argument
48 if (pool->getError() == NO_INIT) {
49 printf("String pool is unitialized.\n");
51 } else if (pool->getError() != NO_ERROR) {
52 printf("String pool is corrupt/invalid.\n");
57 const size_t N = pool->size();
60 if (pool->isUTF8()) {
61 uniqueStrings.add(pool->string8At(i, &len));
63 uniqueStrings.add(pool->stringAt(i, &len));
67 printf("String pool o
367 sp<AaptFile> pool = new AaptFile(String8(), AaptGroupEntry(), local
383 writeStringBlock(const sp<AaptFile>& pool) argument
[all...]
H A DCommand.cpp347 *outError = "failed to get XML element name (bad string pool)";
417 *outError = "failed to get XML element name (bad string pool)";
430 *outError = "failed to get XML element name (bad string pool)";
643 const ResStringPool* pool = res.getTableStringBlock(0); local
644 printStringPool(pool);
728 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
1003 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
H A DResource.cpp465 const ResStringPool* pool = &parser.getStrings(); local
477 pool = table.getTableStringBlock(strIdx);
479 if (pool != NULL) {
480 str = pool->stringAt(value.data, &len);
494 if (pool == NULL) {
500 if ((str=pool->stringAt(value.data, &len)) == NULL) {
960 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
H A DResourceTable.cpp2207 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2241 if (pool) {
2248 NOISY(printf("Adding to pool string style #%d config %s: %s\n",
2252 outValue->data = pool->add(finalStr, *style, configTypeName, config);
2254 outValue->data = pool->add(finalStr, true, configTypeName, config);
4035 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,
482 * To take advantage of this behavior as an optimization, the connection pool
1220 // Next item in pool.
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp1834 const ResStringPool* pool = res.getTableStringBlock(block); local
1835 const char* str8 = pool->string8At(value.data, &strLen);
1839 const char16_t* str16 = pool->stringAt(value.data, &strLen);
/frameworks/base/libs/androidfw/
H A DResourceTypes.cpp510 ALOGW("Bad string block: string pool starts at %d, after total size %d\n",
537 // check invariant: stringCount > 0 requires a string pool to exist
539 ALOGW("Bad string block: stringCount is %d but pool size is 0\n", (int)mHeader->stringCount);
587 ALOGW("Bad string block: style pool starts %d, after total size %d\n",
848 // The string pool contains UTF 8 strings; we don't want to cause
853 // the ordering, we need to convert strings in the pool to UTF-16.
5406 StringPoolRef::StringPoolRef(const ResStringPool* pool, uint32_t index) argument
5407 : mPool(pool), mIndex(index) {}
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java1432 // this new one to the pool.
1434 // Add this timer to the active pool
1476 // active in the pool, before taking this one out of the pool.
1478 // Remove this timer from the active pool
1510 final ArrayList<StopwatchTimer> pool, StopwatchTimer self) {
1512 final int N = pool.size();
1514 final StopwatchTimer t = pool.get(i);
5232 * proper timer pool from the given BatteryStatsImpl object.
5237 private StopwatchTimer readTimerFromParcel(int type, ArrayList<StopwatchTimer> pool, argument
1509 refreshTimersLocked(long batteryRealtime, final ArrayList<StopwatchTimer> pool, StopwatchTimer self) argument
[all...]
/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java601 * When adapter is changed, all existing views are recycled back to the pool. If the pool has
800 * if no pool is set for this view a new one will be created. See
803 * @return The pool used to store recycled item views for reuse.
811 * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
816 * @param pool Pool to set. If this parameter is null a new pool will be created and used.
818 public void setRecycledViewPool(RecycledViewPool pool) { argument
819 mRecycler.setRecycledViewPool(pool);
835 * {@link #getRecycledViewPool() recycled view pool}
4202 setRecycledViewPool(RecycledViewPool pool) argument
[all...]

Completed in 346 milliseconds