Searched defs:pool (Results 1 - 25 of 28) sorted by last modified time

12

/frameworks/support/v7/recyclerview/src/android/support/v7/widget/
H A DRecyclerView.java251 * >Try increasing your pool size and item cache size.
895 * When adapter is changed, all existing views are recycled back to the pool. If the pool has
1176 * if no pool is set for this view a new one will be created. See
1179 * @return The pool used to store recycled item views for reuse.
1187 * Recycled view pools allow multiple RecyclerViews to share a common pool of scrap views.
1192 * @param pool Pool to set. If this parameter is null a new pool will be created and used.
1194 public void setRecycledViewPool(RecycledViewPool pool) { argument
1195 mRecycler.setRecycledViewPool(pool);
5557 setRecycledViewPool(RecycledViewPool pool) argument
[all...]
/frameworks/volley/src/main/java/com/android/volley/toolbox/
H A DBasicNetwork.java71 // If a pool isn't passed in, then build a small default pool that will give us a lot of
78 * @param pool a buffer pool that improves GC performance in copy operations
80 public BasicNetwork(HttpStack httpStack, ByteArrayPool pool) { argument
82 mPool = pool;
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;
/frameworks/volley/src/test/java/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/opt/setupwizard/tools/docs/
H A Djsilver.jarMETA-INF/ META-INF/MANIFEST.MF org/ org/clearsilver/ org/clearsilver/DelegatedHdf.class DelegatedHdf. ...
/frameworks/native/vulkan/nulldrv/
H A Dnull_driver.cpp667 CommandPool* pool = static_cast<CommandPool*>(allocator->pfnAllocation( local
670 if (!pool)
672 pool->allocator = *allocator;
673 *cmd_pool = GetHandleToCommandPool(pool);
680 CommandPool* pool = GetCommandPoolFromHandle(cmd_pool); local
681 pool->allocator.pfnFree(pool->allocator.pUserData, pool);
691 CommandPool& pool = *GetCommandPoolFromHandle(alloc_info->commandPool); local
695 static_cast<VkCommandBuffer_T*>(pool
718 CommandPool& pool = *GetCommandPoolFromHandle(cmd_pool); local
918 CreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo*, const VkAllocationCallbacks* , VkDescriptorPool* pool) argument
1015 CreateQueryPool(VkDevice device, const VkQueryPoolCreateInfo*, const VkAllocationCallbacks* , VkQueryPool* pool) argument
[all...]
/frameworks/base/tools/aapt/
H A DCommand.cpp348 *outError = "failed to get XML element name (bad string pool)";
428 *outError = "failed to get XML element name (bad string pool)";
441 *outError = "failed to get XML element name (bad string pool)";
767 const ResStringPool* pool = res.getTableStringBlock(0); local
768 printStringPool(pool);
853 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
1166 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
H A DResource.cpp486 const ResStringPool* pool = &parser.getStrings(); local
498 pool = table.getTableStringBlock(strIdx);
500 if (pool != NULL) {
501 str = pool->stringAt(value.data, &len);
515 if (pool == NULL) {
521 if ((str=pool->stringAt(value.data, &len)) == NULL) {
988 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
H A DResourceTable.cpp2293 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2327 if (pool) {
2335 printf("Adding to pool string style #%zu config %s: %s\n",
2340 outValue->data = pool->add(finalStr, *style, configTypeName, config);
2342 outValue->data = pool->add(finalStr, true, configTypeName, config);
H A DStringPool.cpp51 void printStringPool(const ResStringPool* pool) argument
53 if (pool->getError() == NO_INIT) {
54 printf("String pool is unitialized.\n");
56 } else if (pool->getError() != NO_ERROR) {
57 printf("String pool is corrupt/invalid.\n");
62 const size_t N = pool->size();
65 if (pool->isUTF8()) {
66 uniqueStrings.add(pool->string8At(i, &len));
68 uniqueStrings.add(pool->stringAt(i, &len));
72 printf("String pool o
[all...]
H A DStringPool.h32 void printStringPool(const ResStringPool* pool);
36 * generating the string pool resource data structure that can be parsed with
89 * Add a new string to the pool. If mergeDuplicates is true, thenif
121 status_t writeStringBlock(const sp<AaptFile>& pool);
124 * Find out an offset in the pool for a particular string. If the string
125 * pool is sorted, this can not be called until after createStringBlock()
128 * multiple times in the pool, the first offset will be returned. Returns
134 * Find all of the offsets in the pool for a particular string. If the
135 * string pool is sorted, this can not be called until after
148 const StringPool& pool; member in class:StringPool::ConfigSorter
[all...]
/frameworks/base/tools/aapt2/
H A DStringPool.cpp197 void StringPool::merge(StringPool&& pool) { argument
198 mIndexedStrings.insert(pool.mIndexedStrings.begin(), pool.mIndexedStrings.end());
199 pool.mIndexedStrings.clear();
200 std::move(pool.mStrings.begin(), pool.mStrings.end(), std::back_inserter(mStrings));
201 pool.mStrings.clear();
202 std::move(pool.mStyles.begin(), pool.mStyles.end(), std::back_inserter(mStyles));
203 pool
297 flatten(BigBuffer* out, const StringPool& pool, bool utf8) argument
399 flattenUtf8(BigBuffer* out, const StringPool& pool) argument
403 flattenUtf16(BigBuffer* out, const StringPool& pool) argument
[all...]
H A DStringPool.h129 static bool flattenUtf8(BigBuffer* out, const StringPool& pool);
130 static bool flattenUtf16(BigBuffer* out, const StringPool& pool);
136 * Adds a string to the pool, unless it already exists. Returns
137 * a reference to the string in the pool.
142 * Adds a string to the pool, unless it already exists, with a context
143 * object that can be used when sorting the string pool. Returns
144 * a reference to the string in the pool.
149 * Adds a style to the string pool and returns a reference to it.
154 * Adds a style to the string pool with a context object that
155 * can be used when sorting the string pool
213 begin(const StringPool& pool) argument
217 end(const StringPool& pool) argument
[all...]
H A DStringPool_test.cpp26 StringPool pool; local
28 StringPool::Ref ref = pool.makeRef(u"wut");
33 StringPool pool; local
35 StringPool::Ref ref = pool.makeRef(u"wut");
36 StringPool::Ref ref2 = pool.makeRef(u"hey");
43 StringPool pool; local
45 StringPool::Ref ref = pool.makeRef(u"wut");
46 StringPool::Ref ref2 = pool.makeRef(u"wut");
50 EXPECT_EQ(1u, pool.size());
54 StringPool pool; local
66 StringPool pool; local
88 StringPool pool; local
119 StringPool pool; local
139 StringPool pool; local
161 StringPool pool; local
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator.cpp29 StringPool* pool) {
111 pool->makeRef(localized));
127 Visitor(StringPool* pool, Pseudolocalizer::Method method) : argument
128 mPool(pool), mMethod(method), mLocalizer(method) {
214 StringPool* pool,
216 Visitor visitor(pool, method);
27 pseudolocalizeStyledString(StyledString* string, Pseudolocalizer::Method method, StringPool* pool) argument
212 pseudolocalizeIfNeeded(const Pseudolocalizer::Method method, ResourceConfigValue* originalValue, StringPool* pool, ResourceEntry* entry) argument
H A DPseudolocaleGenerator_test.cpp29 StringPool pool; local
35 util::make_unique<StyledString>(pool.makeRef(originalStyle)).get(),
36 Pseudolocalizer::Method::kNone, &pool);
56 util::make_unique<StyledString>(pool.makeRef(originalStyle)).get(),
57 Pseudolocalizer::Method::kAccent, &pool);
/frameworks/base/tools/aapt2/proto/
H A DProtoHelpers.cpp21 void serializeStringPoolToPb(const StringPool& pool, pb::StringPool* outPbPool) { argument
23 StringPool::flattenUtf8(&buffer, pool);
H A DTableProtoDeserializer.cpp161 StringPool* pool) {
196 pool->makeRef(styleStr, StringPool::Context{ 1, config }));
199 pool->makeRef(str, StringPool::Context{ 1, config }));
205 pool->makeRef(str, StringPool::Context{ 1, config }));
211 pool->makeRef(str, StringPool::Context{ 0, config }));
221 StringPool* pool) {
226 value = deserializeItemFromPb(pbValue.item(), config, pool);
272 entry.value = deserializeItemFromPb(pbEntry.item(), config, pool);
298 pool);
314 pool);
159 deserializeItemFromPb(const pb::Item& pbItem, const ConfigDescription& config, StringPool* pool) argument
219 deserializeValueFromPb(const pb::Value& pbValue, const ConfigDescription& config, StringPool* pool) argument
[all...]
/frameworks/base/tools/aapt2/util/
H A DUtil.h152 inline StringPiece16 getString(const android::ResStringPool& pool, size_t idx) { argument
154 const char16_t* str = pool.stringAt(idx, &len);
161 inline StringPiece getString8(const android::ResStringPool& pool, size_t idx) { argument
163 const char* str = pool.string8At(idx, &len);
/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/libs/androidfw/
H A DResourceTypes.cpp515 ALOGW("Bad string block: string pool starts at %d, after total size %d\n",
542 // check invariant: stringCount > 0 requires a string pool to exist
544 ALOGW("Bad string block: stringCount is %d but pool size is 0\n", (int)mHeader->stringCount);
592 ALOGW("Bad string block: style pool starts %d, after total size %d\n",
872 // The string pool contains UTF 8 strings; we don't want to cause
877 // the ordering, we need to convert strings in the pool to UTF-16.
5900 StringPoolRef::StringPoolRef(const ResStringPool* pool, uint32_t index) argument
5901 : mPool(pool), mIndex(index) {}
/frameworks/base/libs/androidfw/tests/
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);
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);
/frameworks/base/libs/hwui/tests/unit/
H A DOffscreenBufferPoolTests.cpp61 OffscreenBufferPool pool; local
62 EXPECT_EQ(0u, pool.getCount()) << "pool must be created empty";
63 EXPECT_EQ(0u, pool.getSize()) << "pool must be created empty";
64 EXPECT_EQ((uint32_t) Properties::layerPoolSize, pool.getMaxSize())
65 << "pool must read size from Properties";
69 OffscreenBufferPool pool; local
71 auto layer = pool.get(renderThread.renderState(), 100u, 200u);
75 ASSERT_LT(layer->getSizeInBytes(), pool
92 OffscreenBufferPool pool; local
127 OffscreenBufferPool pool; local
138 OffscreenBufferPool pool; local
[all...]
/frameworks/base/core/java/com/android/internal/os/
H A DBatteryStatsImpl.java1648 // this new one to the pool.
1650 // Add this timer to the active pool
1677 // active in the pool, before taking this one out of the pool.
1679 // Remove this timer from the active pool
1711 final ArrayList<StopwatchTimer> pool, StopwatchTimer self) {
1713 final int N = pool.size();
1715 final StopwatchTimer t = pool.get(i);
6384 * proper timer pool from the given BatteryStatsImpl object.
6389 private StopwatchTimer readTimerFromParcel(int type, ArrayList<StopwatchTimer> pool, argument
1710 refreshTimersLocked(long batteryRealtime, final ArrayList<StopwatchTimer> pool, StopwatchTimer self) argument
[all...]

Completed in 504 milliseconds

12