/frameworks/volley/src/test/java/com/android/volley/toolbox/ |
H A D | PoolingByteArrayOutputStreamTest.java | 28 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...] |
H A D | ByteArrayPoolTest.java | 28 ByteArrayPool pool = new ByteArrayPool(32); 30 byte[] buf1 = pool.getBuf(16); 31 byte[] buf2 = pool.getBuf(16); 33 pool.returnBuf(buf1); 34 pool.returnBuf(buf2); 36 byte[] buf3 = pool.getBuf(16); 37 byte[] buf4 = pool.getBuf(16); 44 ByteArrayPool pool = new ByteArrayPool(32); 46 byte[] buf1 = pool.getBuf(16); 47 byte[] buf2 = pool [all...] |
/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 26 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 D | StringPool.h | 129 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 D | StringPool.cpp | 197 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/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/libs/androidfw/tests/ |
H A D | TestHelpers.cpp | 36 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 D | Idmap_test.cpp | 76 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 D | PseudolocaleGenerator.h | 28 StringPool* pool);
|
H A D | PseudolocaleGenerator_test.cpp | 29 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 D | PseudolocaleGenerator.cpp | 29 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/main/java/com/android/volley/toolbox/ |
H A D | PoolingByteArrayOutputStream.java | 23 * 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 D | BasicNetwork.java | 71 // 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/media/mca/filterfw/jni/ |
H A D | jni_util.h | 101 // 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 D | StringPool.cpp | 51 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 D | StringPool.h | 32 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/proto/ |
H A D | ProtoHelpers.h | 31 void serializeStringPoolToPb(const StringPool& pool, pb::StringPool* outPbPool);
|
H A D | TableProtoDeserializer.cpp | 161 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...] |
H A D | ProtoHelpers.cpp | 21 void serializeStringPoolToPb(const StringPool& pool, pb::StringPool* outPbPool) { argument 23 StringPool::flattenUtf8(&buffer, pool);
|
/frameworks/base/core/java/android/net/ |
H A D | NetworkStats.java | 903 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/native/vulkan/nulldrv/ |
H A D | null_driver.cpp | 667 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/aapt2/util/ |
H A D | Util.h | 152 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/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/layoutlib/rename_font/ |
H A D | build_font.py | 93 pool = Pool(processes=None) 94 pool.map(convert_font, input_fonts)
|
/frameworks/base/core/java/android/os/ |
H A D | Parcel.java | 313 * Retrieve a new Parcel object from the pool. 316 final Parcel[] pool = sOwnedPool; 317 synchronized (pool) { 320 p = pool[i]; 322 pool[i] = null; 334 * Put a Parcel object back into the pool. You must not touch 341 final Parcel[] pool; 343 pool = sOwnedPool; 346 pool = sHolderPool; 349 synchronized (pool) { [all...] |