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

12

/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/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/base/tools/aapt2/compile/
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);
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
/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/volley/src/main/java/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.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;
/frameworks/base/tools/aapt2/
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...]
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.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...]
/frameworks/base/tools/aapt/
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...]
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 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);
/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/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/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/core/java/android/net/
H A DNetworkStats.java903 Entry pool = tunGetPool(tunIfaceTotal, underlyingIfaceTotal);
904 if (pool.isEmpty()) {
907 Entry moved = addTrafficToApplications(tunIface, underlyingIface, tunIfaceTotal, pool);
952 Entry pool = new Entry();
953 pool.rxBytes = Math.min(tunIfaceTotal.rxBytes, underlyingIfaceTotal.rxBytes);
954 pool.rxPackets = Math.min(tunIfaceTotal.rxPackets, underlyingIfaceTotal.rxPackets);
955 pool.txBytes = Math.min(tunIfaceTotal.txBytes, underlyingIfaceTotal.txBytes);
956 pool.txPackets = Math.min(tunIfaceTotal.txPackets, underlyingIfaceTotal.txPackets);
957 pool.operations = Math.min(tunIfaceTotal.operations, underlyingIfaceTotal.operations);
958 return pool;
961 addTrafficToApplications(String tunIface, String underlyingIface, Entry tunIfaceTotal, Entry pool) argument
[all...]
/frameworks/base/core/java/android/database/sqlite/
H A DSQLiteConnection.java57 * 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
1224 // Next item in pool.
/frameworks/base/core/jni/
H A Dandroid_util_AssetManager.cpp1974 const ResStringPool* pool = res.getTableStringBlock(block); local
1975 const char* str8 = pool->string8At(value.data, &strLen);
1979 const char16_t* str16 = pool->stringAt(value.data, &strLen);
/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/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) {}

Completed in 479 milliseconds

12