/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
H A D | RecycledViewPoolTest.java | 47 RecyclerView.RecycledViewPool pool = new RecyclerView.RecycledViewPool(); 48 assertEquals(0, pool.getRecycledViewCount(0)); 49 assertEquals(0, pool.size()); 60 RecyclerView.RecycledViewPool pool = new RecyclerView.RecycledViewPool(); 61 pool.putRecycledView(makeHolder(0)); 62 pool.putRecycledView(makeHolder(1)); 63 pool.putRecycledView(makeHolder(2)); 64 pool.putRecycledView(makeHolder(2)); 66 assertEquals(1, pool.getRecycledViewCount(0)); 67 assertEquals(1, pool [all...] |
/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 32 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 D | ResourceValues_test.cpp | 24 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 D | StringPool.h | 148 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 D | StringPool.cpp | 229 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/libs/hwui/tests/unit/ |
H A D | OffscreenBufferPoolTests.cpp | 61 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/compile/ |
H A D | PseudolocaleGenerator.h | 27 StyledString* string, Pseudolocalizer::Method method, StringPool* pool);
|
H A D | PseudolocaleGenerator_test.cpp | 25 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 D | PseudolocaleGenerator.cpp | 113 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/media/mca/filterfw/jni/ |
H A D | jni_util.h | 102 // 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/aapt/ |
H A D | StringPool.cpp | 47 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 D | StringPool.h | 31 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...] |
/frameworks/base/libs/androidfw/tests/ |
H A D | Idmap_test.cpp | 67 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 D | TestHelpers.cpp | 117 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);
|
H A D | TestHelpers.h | 62 std::string GetStringFromPool(const ResStringPool* pool, uint32_t idx);
|
/frameworks/base/tools/aapt2/proto/ |
H A D | ProtoHelpers.h | 30 void SerializeStringPoolToPb(const StringPool& pool,
|
H A D | TableProtoDeserializer.cpp | 165 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...] |
H A D | ProtoHelpers.cpp | 21 void SerializeStringPoolToPb(const StringPool& pool, argument 24 StringPool::FlattenUtf8(&buffer, pool);
|
/frameworks/base/tools/aapt2/flatten/ |
H A D | XmlFlattener.cpp | 65 StringPool pool; 168 pool.MakeRef(str, StringPool::Context(priority)), dest}); 302 // Merge the package pools into the main pool. 304 visitor.pool.Merge(std::move(package_pool_entry.second)); 307 // Sort the string pool so that attribute resource IDs show up first. 308 visitor.pool.Sort( 313 // Now we flatten the string pool references into the correct places. 323 StringPool::FlattenUtf8(buffer_, visitor.pool); 329 for (const auto& str : visitor.pool) {
|
/frameworks/native/vulkan/nulldrv/ |
H A D | null_driver.cpp | 705 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/core/java/android/net/ |
H A D | NetworkStats.java | 956 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/av/media/mtp/ |
H A D | AsyncIO.cpp | 95 std::thread pool[NUM_THREADS]; member in namespace:__anon955 107 pool[i] = std::thread(f, i); 128 pool[i].join();
|
/frameworks/base/tools/aapt2/util/ |
H A D | Util.cpp | 557 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/tests/CoreTests/android/core/ |
H A D | TestWebServer.java | 407 Vector pool = threads; 408 synchronized (pool) { 409 if (pool.size() >= workers) { 414 pool.addElement(this);
|
/frameworks/base/tools/aapt2/link/ |
H A D | TableMerger.cpp | 191 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
|