/aosp12/frameworks/base/tools/aapt2/ |
H A D | StringPool_test.cpp | 37 StringPool pool; in TEST() local 44 StringPool pool; in TEST() local 54 StringPool pool; in TEST() local 65 StringPool pool; in TEST() local 76 StringPool pool; in TEST() local 96 pool.Prune(); in TEST() 105 pool.Prune(); in TEST() 110 pool.Prune(); in TEST() 130 pool.Sort(); in TEST() 149 pool.Sort(); in TEST() [all …]
|
H A D | ResourceValues_test.cpp | 40 StringPool pool; in TEST() local 59 StringPool pool; in TEST() local 65 CloningValueTransformer cloner(&pool); in TEST() 71 StringPool pool; in TEST() local 74 a.elements.push_back(util::make_unique<String>(pool.MakeRef("one"))); in TEST() 75 a.elements.push_back(util::make_unique<String>(pool.MakeRef("two"))); in TEST() 78 b.elements.push_back(util::make_unique<String>(pool.MakeRef("une"))); in TEST() 95 StringPool pool; in TEST() local 101 CloningValueTransformer cloner(&pool); in TEST() 107 StringPool pool; in TEST() local [all …]
|
H A D | StringPool.cpp | 251 void StringPool::Merge(StringPool&& pool) { in Merge() argument 258 std::move(pool.styles_.begin(), pool.styles_.end(), std::back_inserter(styles_)); in Merge() 259 pool.styles_.clear(); in Merge() 260 std::move(pool.strings_.begin(), pool.strings_.end(), std::back_inserter(strings_)); in Merge() 261 pool.strings_.clear(); in Merge() 262 indexed_strings_.insert(pool.indexed_strings_.begin(), pool.indexed_strings_.end()); in Merge() 263 pool.indexed_strings_.clear(); in Merge() 447 uint32_t* indices = pool.size() != 0 ? out->NextBlock<uint32_t>(pool.size()) : nullptr; in Flatten() 449 pool.styles_.size() != 0 ? out->NextBlock<uint32_t>(pool.styles_.size()) : nullptr; in Flatten() 504 return Flatten(out, pool, true, diag); in FlattenUtf8() [all …]
|
/aosp12/system/libufdt/ |
H A D | ufdt_node_pool.c | 67 pool->first_block = NULL; in ufdt_node_pool_construct() 68 pool->last_block_ptr = &pool->first_block; in ufdt_node_pool_construct() 86 pool->first_block = NULL; in ufdt_node_pool_destruct() 87 pool->last_block_ptr = NULL; in ufdt_node_pool_destruct() 148 pool->first_block = block; in _ufdt_node_pool_preppend_block() 150 pool->last_block_ptr = &block->next_block; in _ufdt_node_pool_preppend_block() 158 *pool->last_block_ptr = block; in _ufdt_node_pool_append_block() 159 pool->last_block_ptr = &block->next_block; in _ufdt_node_pool_append_block() 163 struct ufdt_node_pool *pool, in _ufdt_node_pool_remove_block() argument 170 pool->last_block_ptr = block_ptr; in _ufdt_node_pool_remove_block() [all …]
|
H A D | ufdt_overlay.c | 317 struct ufdt_node_pool *pool) { in ufdt_overlay_node() argument 402 ret = ufdt_apply_fragment(main_tree, *it, pool); in ufdt_overlay_apply_fragments() 567 struct ufdt_node_pool *pool) { in ufdt_overlay_apply() argument 656 struct ufdt_node_pool pool; in ufdt_apply_overlay() local 657 ufdt_node_pool_construct(&pool); in ufdt_apply_overlay() 671 ufdt_destruct(overlay_tree, &pool); in ufdt_apply_overlay() 672 ufdt_destruct(main_tree, &pool); in ufdt_apply_overlay() 673 ufdt_node_pool_destruct(&pool); in ufdt_apply_overlay() 678 ufdt_destruct(overlay_tree, &pool); in ufdt_apply_overlay() 679 ufdt_destruct(main_tree, &pool); in ufdt_apply_overlay() [all …]
|
H A D | ufdt_node.c | 22 struct ufdt_node_pool *pool) { in ufdt_node_construct() argument 23 void *buf = ufdt_node_pool_alloc(pool); in ufdt_node_construct() 44 void ufdt_node_destruct(struct ufdt_node *node, struct ufdt_node_pool *pool) { in ufdt_node_destruct() argument 51 ufdt_node_destruct(it, pool); in ufdt_node_destruct() 56 ufdt_node_pool_free(pool, node); in ufdt_node_destruct() 206 struct ufdt_node_pool *pool) { in merge_children() argument 224 err = ufdt_node_merge_into(target_node, cur_node, pool); in merge_children() 225 ufdt_node_pool_free(pool, cur_node); in merge_children() 242 struct ufdt_node_pool *pool) { in ufdt_node_merge_into() argument 249 err = merge_children(node_a, node_b, pool); in ufdt_node_merge_into()
|
H A D | ufdt_convert.c | 22 struct ufdt *ufdt_construct(void *fdtp, struct ufdt_node_pool *pool) { in ufdt_construct() argument 23 (void)(pool); /* unused parameter */ in ufdt_construct() 53 void ufdt_destruct(struct ufdt *tree, struct ufdt_node_pool *pool) { in ufdt_destruct() argument 56 ufdt_node_destruct(tree->root, pool); in ufdt_destruct() 112 struct ufdt_node_pool *pool) { in ufdt_new_node() argument 144 res = ufdt_new_node(fdtp, cur_fdt_tag_offset, pool); in fdt_to_ufdt_tree() 148 res = ufdt_new_node(fdtp, cur_fdt_tag_offset, pool); in fdt_to_ufdt_tree() 154 next_fdt_tag_offset, tag, pool); in fdt_to_ufdt_tree() 287 struct ufdt_node_pool *pool) { in ufdt_from_fdt() argument 292 return ufdt_construct(NULL, pool); in ufdt_from_fdt() [all …]
|
/aosp12/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
H A D | ImagePoolImplTest.java | 56 Image img1 = pool.acquire(width, height, type, in testImageDispose() 169 ImagePool pool = new ImagePoolImpl( in testPoolWidthHeightNotBigEnough() local 174 assertEquals(getTooBigForPoolCount(pool), 1); in testPoolWidthHeightNotBigEnough() 183 ImagePoolImpl pool = new ImagePoolImpl( in testSizeNotBigEnough() local 188 assertEquals(getTooBigForPoolCount(pool), 1); in testSizeNotBigEnough() 210 Image img2 = pool.acquire(width, height, type); in testImageMultipleCopies() 221 Image img3 = pool.acquire(width, height, type); in testImageMultipleCopies() 247 assertEquals(getTooBigForPoolCount(pool), 0); in testPoolDispose() 255 pool.dispose(); in testPoolDispose() 256 assertEquals(getAllocatedTotalBytes(pool), 0); in testPoolDispose() [all …]
|
/aosp12/art/libartbase/base/ |
H A D | arena_allocator_test.cc | 38 MallocArenaPool pool; in TEST_F() local 49 MallocArenaPool pool; in TEST_F() local 76 MallocArenaPool pool; in TEST_F() local 85 MallocArenaPool pool; in TEST_F() local 97 MallocArenaPool pool; in TEST_F() local 110 MallocArenaPool pool; in TEST_F() local 123 MallocArenaPool pool; in TEST_F() local 138 MallocArenaPool pool; in TEST_F() local 155 MallocArenaPool pool; in TEST_F() local 168 MallocArenaPool pool; in TEST_F() local [all …]
|
H A D | bit_table_test.cc | 30 MallocArenaPool pool; in TEST() local 31 ArenaStack arena_stack(&pool); in TEST() 46 MallocArenaPool pool; in TEST() local 47 ArenaStack arena_stack(&pool); in TEST() 72 MallocArenaPool pool; in TEST() local 73 ArenaStack arena_stack(&pool); in TEST() 92 MallocArenaPool pool; in TEST() local 93 ArenaStack arena_stack(&pool); in TEST() 123 MallocArenaPool pool; in TEST() local 138 MallocArenaPool pool; in TEST() local [all …]
|
/aosp12/hardware/interfaces/media/bufferpool/1.0/ |
H A D | README.md | 3 A buffer pool enables processes to transfer buffers asynchronously. 4 Without a buffer pool, a process calls a synchronous method of the other 6 unwanted latency due to context switching. With help from a buffer pool, a 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 26 its own ID from a buffer pool. A client is specified with the ID. 35 clients. This must be verified with an FMQ message from a buffer pool. 42 A connection to a buffer pool from a buffer pool client. The connection [all …]
|
H A D | IAccessor.hal | 22 * use functionality of the specified buffer pool. 27 * Registers a new client and creates IConnection to the buffer pool for 29 * communicate with the buffer pool. Via FMQ IClientManager sends 30 * BufferStatusMesage(s) to the buffer pool. 32 * FMQ is used to send buffer ownership status changes to a buffer pool 33 * from a buffer pool client. A buffer pool synchronizes FMQ messages when 40 * client. FMQ has its own ID from a buffer pool. A client is specified 45 * the transaction ID to fetch a buffer from a buffer pool. Since the 47 * pool must verify the receiver with the transaction ID. In order to 51 * verified with an FMQ message from a buffer pool. [all …]
|
/aosp12/hardware/interfaces/media/bufferpool/2.0/ |
H A D | README.md | 3 A buffer pool enables processes to transfer buffers asynchronously. 4 Without a buffer pool, a process calls a synchronous method of the other 6 unwanted latency due to context switching. With help from a buffer pool, a 11 rogue clients, FMQ is used to communicate between a buffer pool and a client 13 process to a buffer pool. Except FMQ, a buffer pool does not use any shared 18 FMQ is used to send buffer ownership status changes to a buffer pool from a 19 buffer pool client. A buffer pool synchronizes FMQ messages when there is a 26 its own ID from a buffer pool. A client is specified with the ID. 35 clients. This must be verified with an FMQ message from a buffer pool. 42 A connection to a buffer pool from a buffer pool client. The connection [all …]
|
H A D | IAccessor.hal | 23 * use functionality of the specified buffer pool. 30 * communicate with the buffer pool. Via FMQ IClientManager sends 31 * BufferStatusMesage(s) to the buffer pool. 34 * from a buffer pool client. A buffer pool synchronizes FMQ messages when 46 * the transaction ID to fetch a buffer from a buffer pool. Since the 48 * pool must verify the receiver with the transaction ID. In order to 52 * verified with an FMQ message from a buffer pool. 54 * @param observer The buffer pool event observer from the client. 67 * to get shared buffers from the buffer pool. 70 * @return msgId Id of the most recent message from buffer pool. [all …]
|
/aosp12/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/ |
H A D | BitmapPoolTest.java | 52 final Bitmap temp = pool.createOrReuseBitmap(width, height); in fillPoolAndGetPoolContents() 57 pool.reclaimBitmap(b); in fillPoolAndGetPoolContents() 59 assertTrue(pool.isFull(width, height)); in fillPoolAndGetPoolContents() 64 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateAndPutBackInPoolTest() local 65 final Bitmap bitmap = pool.createOrReuseBitmap(IMAGE_DIM, IMAGE_DIM); in testCreateAndPutBackInPoolTest() 67 assertFalse(pool.isFull(IMAGE_DIM, IMAGE_DIM)); in testCreateAndPutBackInPoolTest() 68 pool.reclaimBitmap(bitmap); in testCreateAndPutBackInPoolTest() 75 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testCreateBeyondFullAndCheckReuseTest() local 77 fillPoolAndGetPoolContents(pool, IMAGE_DIM, IMAGE_DIM); in testCreateBeyondFullAndCheckReuseTest() 93 final BitmapPool pool = new BitmapPool(POOL_SIZE, NAME); in testDecodeFromResourceBitmap() local [all …]
|
/aosp12/frameworks/base/tools/aapt/ |
H A D | StringPool.cpp | 42 if (pool->getError() == NO_INIT) { in printStringPool() 45 } else if (pool->getError() != NO_ERROR) { in printStringPool() 51 const size_t N = pool->size(); in printStringPool() 54 if (pool->isUTF8()) { in printStringPool() 65 (ZD_TYPE)N, (ZD_TYPE)pool->styleCount(), (ZD_TYPE)pool->bytes()); in printStringPool() 67 const size_t NS = pool->size(); in printStringPool() 69 auto str = pool->string8ObjectAt(s); in printStringPool() 239 StringPool::ConfigSorter::ConfigSorter(const StringPool& pool) : pool(pool) in ConfigSorter() argument 245 const StringPool::entry& lhe = pool.mEntries[pool.mEntryArray[l]]; in operator ()() 246 const StringPool::entry& rhe = pool.mEntries[pool.mEntryArray[r]]; in operator ()() [all …]
|
/aosp12/packages/apps/RemoteProvisioner/src/com/android/remoteprovisioner/ |
H A D | PeriodicProvisioner.java | 228 AttestationPoolStatus pool = in generateNumKeysNeeded() local 230 if (pool == null) { in generateNumKeysNeeded() 234 Log.i(TAG, "Pool status.\nTotal: " + pool.total in generateNumKeysNeeded() 235 + "\nAttested: " + pool.attested in generateNumKeysNeeded() 236 + "\nUnassigned: " + pool.unassigned in generateNumKeysNeeded() 237 + "\nExpiring: " + pool.expiring); in generateNumKeysNeeded() 238 int unattestedKeys = pool.total - pool.attested; in generateNumKeysNeeded() 239 int keysInUse = pool.attested - pool.unassigned; in generateNumKeysNeeded() 247 if (pool.expiring < pool.unassigned && pool.attested >= totalSignedKeys) { in generateNumKeysNeeded() 257 if (pool.total != 0) { in generateNumKeysNeeded()
|
/aosp12/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
H A D | SQLiteConnectionPoolTest.java | 76 SQLiteConnectionPool pool = SQLiteConnectionPool.open(mTestConf); in testCloseIdleConnections() local 77 pool.setupIdleConnectionHandler(thread.getLooper(), 100); in testCloseIdleConnections() 78 SQLiteConnection c1 = pool.acquireConnection("pragma user_version", 0, null); in testCloseIdleConnections() 80 pool.releaseConnection(c1); in testCloseIdleConnections() 81 SQLiteConnection c2 = pool.acquireConnection("pragma user_version", 0, null); in testCloseIdleConnections() 83 pool.releaseConnection(c2); in testCloseIdleConnections() 85 SQLiteConnection c3 = pool.acquireConnection("pragma user_version", 0, null); in testCloseIdleConnections() 88 pool.releaseConnection(c3); in testCloseIdleConnections() 89 pool.close(); in testCloseIdleConnections()
|
/aosp12/frameworks/base/media/mca/filterfw/jni/ |
H A D | jni_util.h | 215 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in WrapObjectInJava() local 216 return pool ? pool->WrapObject(c_object, env, j_object, owns) : false; in WrapObjectInJava() 235 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in WrapNewObjectInJava() local 236 if (pool) { in WrapNewObjectInJava() 237 jobject result = pool->CreateJavaObject(env); in WrapNewObjectInJava() 249 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in ConvertFromJava() local 250 return pool && j_object in ConvertFromJava() 251 ? pool->ObjectWithID(pool->GetObjectID(env, j_object)) in ConvertFromJava() 259 ObjectPool<T>* pool = ObjectPool<T>::Instance(); in DeleteNativeObject() local 260 return pool && j_object in DeleteNativeObject() [all …]
|
/aosp12/art/test/636-arm64-veneer-pool/ |
H A D | Android.bp | 3 // Build rules for ART run-test `636-arm64-veneer-pool`. 16 name: "art-run-test-636-arm64-veneer-pool", 21 ":art-run-test-636-arm64-veneer-pool-expected-stdout", 22 ":art-run-test-636-arm64-veneer-pool-expected-stderr", 28 name: "art-run-test-636-arm64-veneer-pool-expected-stdout", 29 out: ["art-run-test-636-arm64-veneer-pool-expected-stdout.txt"], 36 name: "art-run-test-636-arm64-veneer-pool-expected-stderr", 37 out: ["art-run-test-636-arm64-veneer-pool-expected-stderr.txt"],
|
/aosp12/system/libufdt/tests/libufdt_verify/ |
H A D | ufdt_test_overlay.cpp | 233 struct ufdt_node_pool* pool) { in combine_overlay_node() argument 243 ufdt_node_merge_into((*path_node_map)[path], node, pool); in combine_overlay_node() 315 struct ufdt_node_pool* pool in ufdt_overlay_combine_common_nodes() argument 364 if (!overlay_trees || !overlay_count || !final_tree || !pool) { in ufdt_combine_all_overlays() 420 struct ufdt_node_pool pool; in ufdt_verify_dtbo() local 440 ufdt_node_pool_construct(&pool); in ufdt_verify_dtbo() 441 final_tree = ufdt_from_fdt(final_fdt_header, final_fdt_size, &pool); in ufdt_verify_dtbo() 446 overlay_trees[i] = ufdt_from_fdt(overlay_arr[i], fdt_size, &pool); in ufdt_verify_dtbo() 463 ufdt_destruct(overlay_trees[i], &pool); in ufdt_verify_dtbo() 468 ufdt_destruct(final_tree, &pool); in ufdt_verify_dtbo() [all …]
|
/aosp12/packages/apps/Camera2/src/com/android/camera/processing/memory/ |
H A D | LruPool.java | 176 final Queue<TValue> pool; in add() local 180 pool = new LinkedList<>(); in add() 181 mValuePool.put(key, pool); in add() 183 pool = mValuePool.get(key); in add() 185 pool.add(value); in add() 233 Queue<TValue> pool = mValuePool.get(key); in unsafeTrimToSize() local 234 TValue value = pool.remove(); in unsafeTrimToSize() 236 if (pool.size() <= 0) { in unsafeTrimToSize()
|
/aosp12/system/libufdt/include/ |
H A D | libufdt.h | 37 struct ufdt_node_pool *pool); 42 void ufdt_node_destruct(struct ufdt_node *node, struct ufdt_node_pool *pool); 156 struct ufdt *ufdt_construct(void *fdtp, struct ufdt_node_pool *pool); 162 void ufdt_destruct(struct ufdt *tree, struct ufdt_node_pool *pool); 270 struct ufdt_node_pool *pool); 289 struct ufdt_node_pool *pool);
|
H A D | ufdt_node_pool.h | 30 void ufdt_node_pool_construct(struct ufdt_node_pool *pool); 31 void ufdt_node_pool_destruct(struct ufdt_node_pool *pool); 33 void *ufdt_node_pool_alloc(struct ufdt_node_pool *pool); 34 void ufdt_node_pool_free(struct ufdt_node_pool *pool, void *node);
|
/aosp12/packages/apps/Gallery2/src/com/android/photos/data/ |
H A D | GalleryBitmapPool.java | 128 SparseArrayBitmapPool pool = getPoolForDimensions(width, height); in get() local 129 if (pool == null) { in get() 132 return pool.get(width, height); in get() 144 SparseArrayBitmapPool pool = getPoolForDimensions(b.getWidth(), b.getHeight()); in put() local 145 if (pool == null) { in put() 149 return pool.put(b); in put()
|