Searched defs:pool (Results 1 - 25 of 29) 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/tools/aapt2/
H A DResourceValues_test.cpp24 StringPool pool; local
27 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one"));
28 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other"));
31 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une"));
32 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre"));
35 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one"));
36 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other"));
43 StringPool pool; local
46 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one"));
47 a.values[Plural::Other] = util::make_unique<String>(pool
54 StringPool pool; local
78 StringPool pool; local
89 StringPool pool; local
171 StringPool pool; local
[all...]
H A DStringPool_test.cpp32 StringPool pool; local
34 StringPool::Ref ref = pool.MakeRef("wut");
39 StringPool pool; local
41 StringPool::Ref ref = pool.MakeRef("wut");
42 StringPool::Ref ref2 = pool.MakeRef("hey");
49 StringPool pool; local
51 StringPool::Ref ref = pool.MakeRef("wut");
52 StringPool::Ref ref2 = pool.MakeRef("wut");
56 EXPECT_EQ(1u, pool.size());
60 StringPool pool; local
72 StringPool pool; local
94 StringPool pool; local
124 StringPool pool; local
144 StringPool pool; local
161 StringPool pool; local
[all...]
H A DStringPool.h148 static bool FlattenUtf8(BigBuffer* out, const StringPool& pool);
149 static bool FlattenUtf16(BigBuffer* out, const StringPool& pool);
156 * Adds a string to the pool, unless it already exists. Returns
157 * a reference to the string in the pool.
162 * Adds a string to the pool, unless it already exists, with a context
163 * object that can be used when sorting the string pool. Returns
164 * a reference to the string in the pool.
169 * Adds a style to the string pool and returns a reference to it.
174 * Adds a style to the string pool with a context object that
175 * can be used when sorting the string pool
233 begin(const StringPool& pool) argument
237 end(const StringPool& pool) argument
[all...]
H A DStringPool.cpp229 void StringPool::Merge(StringPool&& pool) { argument
230 indexed_strings_.insert(pool.indexed_strings_.begin(),
231 pool.indexed_strings_.end());
232 pool.indexed_strings_.clear();
233 std::move(pool.strings_.begin(), pool.strings_.end(),
235 pool.strings_.clear();
236 std::move(pool.styles_.begin(), pool.styles_.end(),
238 pool
330 Flatten(BigBuffer* out, const StringPool& pool, bool utf8) argument
443 FlattenUtf8(BigBuffer* out, const StringPool& pool) argument
447 FlattenUtf16(BigBuffer* out, const StringPool& pool) argument
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPseudolocaleGenerator_test.cpp25 StringPool pool; local
31 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
32 Pseudolocalizer::Method::kNone, &pool);
52 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
53 Pseudolocalizer::Method::kAccent, &pool);
72 StringPool pool; local
78 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(),
79 Pseudolocalizer::Method::kAccent, &pool);
94 StringPool pool; local
100 util::make_unique<StyledString>(pool
116 StringPool pool; local
155 StringPool pool; local
[all...]
H A DPseudolocaleGenerator.cpp113 StringPool* pool) {
213 return util::make_unique<StyledString>(pool->MakeRef(localized));
224 Visitor(StringPool* pool, Pseudolocalizer::Method method) argument
225 : pool_(pool), method_(method), localizer_(method) {}
315 StringPool* pool, ResourceEntry* entry) {
316 Visitor visitor(pool, method);
111 PseudolocalizeStyledString(StyledString* string, Pseudolocalizer::Method method, StringPool* pool) argument
313 PseudolocalizeIfNeeded(const Pseudolocalizer::Method method, ResourceConfigValue* original_value, StringPool* pool, ResourceEntry* entry) argument
/frameworks/base/libs/androidfw/tests/
H A DIdmap_test.cpp67 const ResStringPool* pool = target_table_.getTableStringBlock(block); local
68 ASSERT_TRUE(pool != NULL);
69 ASSERT_LT(val.data, pool->size());
72 const char16_t* target_str16 = pool->stringAt(val.data, &str_len);
83 pool = target_table_.getTableStringBlock(new_block);
84 ASSERT_TRUE(pool != NULL);
85 ASSERT_LT(val.data, pool->size());
87 target_str16 = pool->stringAt(val.data, &str_len);
H A DTestHelpers.cpp117 const ResStringPool* pool = table.getTableStringBlock(block); local
118 if (pool == NULL) {
119 return ::testing::AssertionFailure() << "table has no string pool for block " << block;
122 const String8 actual_str = pool->string8ObjectAt(val.data);
129 std::string GetStringFromPool(const ResStringPool* pool, uint32_t idx) { argument
130 String8 str = pool->string8ObjectAt(idx);
/frameworks/av/media/mtp/
H A DAsyncIO.cpp95 std::thread pool[NUM_THREADS]; member in namespace:__anon955
107 pool[i] = std::thread(f, i);
128 pool[i].join();
/frameworks/base/tools/aapt/
H A DStringPool.cpp47 void printStringPool(const ResStringPool* pool) argument
49 if (pool->getError() == NO_INIT) {
50 printf("String pool is unitialized.\n");
52 } else if (pool->getError() != NO_ERROR) {
53 printf("String pool is corrupt/invalid.\n");
58 const size_t N = pool->size();
61 if (pool->isUTF8()) {
62 uniqueStrings.add(pool->string8At(i, &len));
64 uniqueStrings.add(pool->stringAt(i, &len));
68 printf("String pool o
[all...]
H A DStringPool.h31 void printStringPool(const ResStringPool* pool);
35 * generating the string pool resource data structure that can be parsed with
88 * Add a new string to the pool. If mergeDuplicates is true, thenif
120 status_t writeStringBlock(const sp<AaptFile>& pool);
123 * Find out an offset in the pool for a particular string. If the string
124 * pool is sorted, this can not be called until after createStringBlock()
127 * multiple times in the pool, the first offset will be returned. Returns
133 * Find all of the offsets in the pool for a particular string. If the
134 * string pool is sorted, this can not be called until after
147 const StringPool& pool; member in class:StringPool::ConfigSorter
[all...]
H A DCommand.cpp350 *outError = "failed to get XML element name (bad string pool)";
442 *outError = "failed to get XML element name (bad string pool)";
455 *outError = "failed to get XML element name (bad string pool)";
815 const ResStringPool* pool = res.getTableStringBlock(0); local
816 printStringPool(pool);
902 "ERROR: failed to get XML element name (bad string pool)");
1223 "ERROR: failed to get XML element name (bad string pool)");
H A DResource.cpp487 const ResStringPool* pool = &parser.getStrings(); local
499 pool = table.getTableStringBlock(strIdx);
501 if (pool != NULL) {
502 str = pool->stringAt(value.data, &len);
516 if (pool == NULL) {
522 if ((str=pool->stringAt(value.data, &len)) == NULL) {
1065 fprintf(stderr, "ERROR: failed to get XML element name (bad string pool)\n");
H A DResourceTable.cpp2306 bool ResourceTable::stringToValue(Res_value* outValue, StringPool* pool, argument
2340 if (pool) {
2348 printf("Adding to pool string style #%zu config %s: %s\n",
2353 outValue->data = pool->add(finalStr, *style, configTypeName, config);
2355 outValue->data = pool->add(finalStr, true, configTypeName, config);
/frameworks/base/tools/aapt2/proto/
H A DProtoHelpers.cpp21 void SerializeStringPoolToPb(const StringPool& pool, argument
24 StringPool::FlattenUtf8(&buffer, pool);
H A DTableProtoDeserializer.cpp165 StringPool* pool) {
197 return util::make_unique<StyledString>(pool->MakeRef(
202 pool->MakeRef(str, StringPool::Context(config)));
208 pool->MakeRef(str, StringPool::Context(config)));
213 return util::make_unique<FileReference>(pool->MakeRef(
225 StringPool* pool) {
230 value = DeserializeItemFromPb(pb_value.item(), config, pool);
279 entry.value = DeserializeItemFromPb(pb_entry.item(), config, pool);
305 DeserializeItemFromPb(pb_entry.item(), config, pool);
321 DeserializeItemFromPb(pb_entry.item(), config, pool);
163 DeserializeItemFromPb(const pb::Item& pb_item, const ConfigDescription& config, StringPool* pool) argument
223 DeserializeValueFromPb(const pb::Value& pb_value, const ConfigDescription& config, StringPool* pool) argument
[all...]
/frameworks/base/media/mca/filterfw/jni/
H A Djni_util.h102 // Return the shared instance to this type's pool.
107 // Delete this type's pool.
112 // Register a new C++ object with the pool. This does not affect the Java
114 // assignments. Pass true to owns if the object pool owns the object.
123 // Return the object in the pool with the specified ID.
141 // object. Pass true to owns if the object pool owns the object.
151 // Remove the object with the given ID from this pool, and delete it. This
215 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
216 return pool ? pool
235 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
249 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
259 ObjectPool<T>* pool = ObjectPool<T>::Instance(); local
[all...]
/frameworks/base/tools/aapt2/link/
H A DTableMerger.cpp191 StringPool* pool) {
201 existing_style->MergeWith(incoming_style, pool);
214 StringPool* pool) {
222 collision_result = ResolveMergeCollision(dst_value, src_value, pool);
190 ResolveMergeCollision(Value* existing, Value* incoming, StringPool* pool) argument
209 MergeConfigValue(IAaptContext* context, const ResourceNameRef& res_name, const bool overlay, ResourceConfigValue* dst_config_value, ResourceConfigValue* src_config_value, StringPool* pool) argument
/frameworks/base/tools/aapt2/util/
H A DUtil.cpp557 StringPiece16 GetString16(const android::ResStringPool& pool, size_t idx) { argument
559 const char16_t* str = pool.stringAt(idx, &len);
566 std::string GetString(const android::ResStringPool& pool, size_t idx) { argument
568 const char* str = pool.string8At(idx, &len);
572 return Utf16ToUtf8(GetString16(pool, idx));
/frameworks/base/core/java/android/net/
H A DNetworkStats.java956 Entry pool = tunGetPool(tunIfaceTotal, underlyingIfaceTotal);
957 if (pool.isEmpty()) {
961 addTrafficToApplications(tunUid, tunIface, underlyingIface, tunIfaceTotal, pool);
1007 Entry pool = new Entry();
1008 pool.rxBytes = Math.min(tunIfaceTotal.rxBytes, underlyingIfaceTotal.rxBytes);
1009 pool.rxPackets = Math.min(tunIfaceTotal.rxPackets, underlyingIfaceTotal.rxPackets);
1010 pool.txBytes = Math.min(tunIfaceTotal.txBytes, underlyingIfaceTotal.txBytes);
1011 pool.txPackets = Math.min(tunIfaceTotal.txPackets, underlyingIfaceTotal.txPackets);
1012 pool.operations = Math.min(tunIfaceTotal.operations, underlyingIfaceTotal.operations);
1013 return pool;
1016 addTrafficToApplications(int tunUid, 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.cpp1491 const ResStringPool* pool = res.getTableStringBlock(block); local
1492 const char* str8 = pool->string8At(value.data, &strLen);
1496 const char16_t* str16 = pool->stringAt(value.data, &strLen);
/frameworks/native/vulkan/nulldrv/
H A Dnull_driver.cpp705 CommandPool* pool = static_cast<CommandPool*>(allocator->pfnAllocation( local
708 if (!pool)
710 pool->allocator = *allocator;
711 *cmd_pool = GetHandleToCommandPool(pool);
718 CommandPool* pool = GetCommandPoolFromHandle(cmd_pool); local
719 pool->allocator.pfnFree(pool->allocator.pUserData, pool);
729 CommandPool& pool = *GetCommandPoolFromHandle(alloc_info->commandPool); local
733 static_cast<VkCommandBuffer_T*>(pool
756 CommandPool& pool = *GetCommandPoolFromHandle(cmd_pool); local
968 CreateDescriptorPool(VkDevice device, const VkDescriptorPoolCreateInfo*, const VkAllocationCallbacks* , VkDescriptorPool* pool) argument
1065 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",
878 // The string pool contains UTF 8 strings; we don't want to cause
883 // the ordering, we need to convert strings in the pool to UTF-16.
6014 StringPoolRef::StringPoolRef(const ResStringPool* pool, uint32_t index) argument
6015 : mPool(pool), mIndex(index) {}

Completed in 4482 milliseconds

12