/frameworks/base/tools/aapt2/ |
D | StringPool_test.cpp | 37 StringPool pool; in TEST() local 39 StringPool::Ref ref = pool.MakeRef("wut"); in TEST() 44 StringPool pool; in TEST() local 46 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 47 StringPool::Ref ref_b = pool.MakeRef("hey"); in TEST() 54 StringPool pool; in TEST() local 56 StringPool::Ref ref_a = pool.MakeRef("wut"); in TEST() 57 StringPool::Ref ref_b = pool.MakeRef("wut"); in TEST() 61 EXPECT_THAT(pool.size(), Eq(1u)); in TEST() 65 StringPool pool; in TEST() local [all …]
|
D | ResourceValues_test.cpp | 40 StringPool pool; in TEST() local 43 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST() 44 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST() 47 b.values[Plural::One] = util::make_unique<String>(pool.MakeRef("une")); in TEST() 48 b.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("autre")); in TEST() 51 c.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST() 52 c.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST() 59 StringPool pool; in TEST() local 62 a.values[Plural::One] = util::make_unique<String>(pool.MakeRef("one")); in TEST() 63 a.values[Plural::Other] = util::make_unique<String>(pool.MakeRef("other")); in TEST() [all …]
|
D | StringPool.cpp | 251 void StringPool::Merge(StringPool&& pool) { in Merge() argument 253 for (std::unique_ptr<Entry>& entry : pool.strings_) { in Merge() 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() 434 bool StringPool::Flatten(BigBuffer* out, const StringPool& pool, bool utf8, in Flatten() argument 441 header->stringCount = util::HostToDevice32(pool.size()); in Flatten() [all …]
|
D | Debug.cpp | 415 void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer* printer) { in DumpResStringPool() argument 418 if (pool->getError() == NO_INIT) { in DumpResStringPool() 421 } else if (pool->getError() != NO_ERROR) { in DumpResStringPool() 427 const size_t N = pool->size(); in DumpResStringPool() 430 if (pool->isUTF8()) { in DumpResStringPool() 431 uniqueStrings.add(pool->string8At(i, &len)); in DumpResStringPool() 433 uniqueStrings.add(pool->stringAt(i, &len)); in DumpResStringPool() 439 pool->isUTF8() ? "UTF-8" : "UTF-16", in DumpResStringPool() 440 pool->isSorted() ? "sorted" : "non-sorted", N, pool->styleCount(), in DumpResStringPool() 441 pool->bytes())); in DumpResStringPool() [all …]
|
D | StringPool.h | 156 static bool FlattenUtf8(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 157 static bool FlattenUtf16(BigBuffer* out, const StringPool& pool, IDiagnostics* diag); 186 void Merge(StringPool&& pool); 211 static bool Flatten(BigBuffer* out, const StringPool& pool, bool utf8, IDiagnostics* diag);
|
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolImplTest.java | 54 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDispose() local 55 Image img1 = pool.acquire(width, height, type, in testImageDispose() 71 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDisposeFromFunction() local 73 BufferedImage img = createImageAndReturnBufferedImage(pool, width, height, type, cd); in testImageDisposeFromFunction() 89 ImagePoolImpl pool = new ImagePoolImpl(new ImagePoolPolicy( in testImageDisposedAndRecycled() local 98 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled() 116 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled() 138 ImagePoolImpl pool = new ImagePoolImpl(new ImagePoolPolicy( in testBufferedImageReleased() local 143 Image image1 = pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB, in testBufferedImageReleased() 152 for (Bucket bucket : ((ImagePoolImpl) pool).mPool.values()) { in testBufferedImageReleased() [all …]
|
/frameworks/base/core/tests/coretests/src/android/database/sqlite/ |
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()
|
/frameworks/base/tools/aapt/ |
D | StringPool.cpp | 40 void printStringPool(const ResStringPool* pool) in printStringPool() argument 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() 55 uniqueStrings.add(pool->string8At(i, &len)); in printStringPool() 57 uniqueStrings.add(pool->stringAt(i, &len)); in printStringPool() 63 (ZD_TYPE)uniqueStrings.size(), pool->isUTF8() ? "UTF-8" : "UTF-16", in printStringPool() 64 pool->isSorted() ? "sorted" : "non-sorted", in printStringPool() 65 (ZD_TYPE)N, (ZD_TYPE)pool->styleCount(), (ZD_TYPE)pool->bytes()); in printStringPool() [all …]
|
/frameworks/base/media/mca/filterfw/jni/ |
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 …]
|
/frameworks/base/libs/androidfw/tests/ |
D | Idmap_test.cpp | 67 const ResStringPool* pool = target_table_.getTableStringBlock(block); in TEST_F() local 68 ASSERT_TRUE(pool != NULL); in TEST_F() 69 ASSERT_LT(val.data, pool->size()); in TEST_F() 72 const char16_t* target_str16 = pool->stringAt(val.data, &str_len); in TEST_F() 83 pool = target_table_.getTableStringBlock(new_block); in TEST_F() 84 ASSERT_TRUE(pool != NULL); in TEST_F() 85 ASSERT_LT(val.data, pool->size()); in TEST_F() 87 target_str16 = pool->stringAt(val.data, &str_len); in TEST_F()
|
D | TestHelpers.cpp | 71 const ResStringPool* pool = table.getTableStringBlock(block); in IsStringEqual() local 72 if (pool == NULL) { in IsStringEqual() 76 const String8 actual_str = pool->string8ObjectAt(val.data); in IsStringEqual()
|
/frameworks/base/libs/hwui/thread/ |
D | CommonPool.cpp | 31 CommonPool* pool = this; in CommonPool() local 34 std::thread worker([pool, i] { in CommonPool() 46 pool->workerLoop(); in CommonPool() 53 static CommonPool pool; in instance() local 54 return pool; in instance()
|
/frameworks/base/tools/aapt2/compile/ |
D | PseudolocaleGenerator_test.cpp | 27 StringPool pool; in TEST() local 33 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST() 34 Pseudolocalizer::Method::kNone, &pool); in TEST() 54 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST() 55 Pseudolocalizer::Method::kAccent, &pool); in TEST() 74 StringPool pool; in TEST() local 80 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST() 81 Pseudolocalizer::Method::kAccent, &pool); in TEST() 96 StringPool pool; in TEST() local 102 util::make_unique<StyledString>(pool.MakeRef(original_style)).get(), in TEST() [all …]
|
/frameworks/av/media/codec2/components/gav1/ |
D | C2SoftGav1Dec.h | 45 const std::shared_ptr<C2BlockPool>& pool) override; 47 const std::shared_ptr<C2BlockPool>& pool) override; 66 bool outputBuffer(const std::shared_ptr<C2BlockPool>& pool, 69 const std::shared_ptr<C2BlockPool>& pool,
|
/frameworks/base/core/proto/android/server/ |
D | usagestatsservice.proto | 46 // package_index contains the index + 1 of the package name in the string pool 74 // package_index contains the index + 1 of the package name in the string pool 77 // class_index contains the index + 1 of the class name in the string pool 86 // notification_channel_index contains the index + 1 of the channel name in the string pool 92 // pool 94 // task_root_class_index contains the index + 1 of the task root class name in the string pool 99 // pool. 102 // They will hold a number that is equal to the index + 1 of their string in the pool
|
/frameworks/av/media/codec2/components/aac/ |
D | C2SoftAacDec.h | 42 const std::shared_ptr<C2BlockPool> &pool) override; 45 const std::shared_ptr<C2BlockPool> &pool) override; 83 const std::shared_ptr<C2BlockPool> &pool, 87 const std::shared_ptr<C2BlockPool> &pool,
|
/frameworks/av/media/codec2/components/vpx/ |
D | C2SoftVpxDec.h | 43 const std::shared_ptr<C2BlockPool> &pool) override; 46 const std::shared_ptr<C2BlockPool> &pool) override; 89 const std::shared_ptr<C2BlockPool> &pool, 93 const std::shared_ptr<C2BlockPool> &pool,
|
/frameworks/av/media/codec2/components/mpeg4_h263/ |
D | C2SoftMpeg4Dec.h | 42 const std::shared_ptr<C2BlockPool> &pool) override; 45 const std::shared_ptr<C2BlockPool> &pool) override; 52 c2_status_t ensureDecoderState(const std::shared_ptr<C2BlockPool> &pool);
|
/frameworks/av/media/codec2/components/aom/ |
D | C2SoftAomDec.h | 45 const std::shared_ptr<C2BlockPool>& pool) override; 47 const std::shared_ptr<C2BlockPool>& pool) override; 70 bool outputBuffer(const std::shared_ptr<C2BlockPool>& pool, 74 const std::shared_ptr<C2BlockPool>& pool,
|
/frameworks/av/media/codec2/components/opus/ |
D | C2SoftOpusEnc.h | 43 const std::shared_ptr<C2BlockPool> &pool) override; 46 const std::shared_ptr<C2BlockPool> &pool) override; 84 c2_status_t drainInternal(const std::shared_ptr<C2BlockPool>& pool,
|
/frameworks/av/media/codec2/components/hevc/ |
D | C2SoftHevcDec.h | 66 const std::shared_ptr<C2BlockPool> &pool) override; 69 const std::shared_ptr<C2BlockPool> &pool) override; 91 c2_status_t ensureDecoderState(const std::shared_ptr<C2BlockPool> &pool); 96 const std::shared_ptr<C2BlockPool> &pool,
|
D | C2SoftHevcEnc.h | 58 const std::shared_ptr<C2BlockPool>& pool) override; 60 const std::shared_ptr<C2BlockPool>& pool) override; 108 const std::shared_ptr<C2BlockPool>& pool, 111 const std::shared_ptr<C2BlockPool>& pool,
|
/frameworks/minikin/tests/unittest/ |
D | WordBreakerTests.cpp | 564 TestableICULineBreakerPoolImpl pool; in TEST() local 570 ICULineBreakerPool::Slot enUSBreaker = pool.acquire(enUS); in TEST() 571 ICULineBreakerPool::Slot enUSBreaker2 = pool.acquire(enUS); in TEST() 572 ICULineBreakerPool::Slot frFRBreaker = pool.acquire(frFR); in TEST() 588 TestableICULineBreakerPoolImpl pool; in TEST() local 594 ICULineBreakerPool::Slot enUSBreaker = pool.acquire(enUS); in TEST() 599 pool.release(std::move(enUSBreaker)); in TEST() 603 ICULineBreakerPool::Slot frFRBreaker = pool.acquire(frFR); in TEST() 608 ICULineBreakerPool::Slot enUSBreaker2 = pool.acquire(enUS); in TEST() 615 TestableICULineBreakerPoolImpl pool; in TEST() local [all …]
|
/frameworks/av/media/codec2/vndk/ |
D | C2Store.cpp | 305 std::shared_ptr<C2BlockPool> *pool) { in _createBlockPool() argument 320 *pool = ptr; in _createBlockPool() 332 *pool = ptr; in _createBlockPool() 344 *pool = ptr; in _createBlockPool() 355 *pool = ptr; in _createBlockPool() 367 std::shared_ptr<C2BlockPool> *pool) { in createBlockPool() argument 368 return _createBlockPool(allocatorId, component, mBlockPoolSeqId++, pool); in createBlockPool() 374 std::shared_ptr<C2BlockPool> *pool) { in getBlockPool() argument 386 *pool = ptr; in getBlockPool() 409 std::shared_ptr<C2BlockPool> *pool) { in GetCodec2BlockPool() argument [all …]
|
/frameworks/av/media/codec2/hidl/1.0/utils/ |
D | Component.cpp | 280 std::shared_ptr<C2BlockPool> pool; in setOutputSurface() local 281 GetCodec2BlockPool(blockPoolId, mComponent, &pool); in setOutputSurface() 282 if (pool && pool->getAllocatorId() == C2PlatformAllocatorStore::BUFFERQUEUE) { in setOutputSurface() 284 std::static_pointer_cast<C2BufferQueueBlockPool>(pool); in setOutputSurface() 337 BlockPoolIntf(const std::shared_ptr<C2BlockPool>& pool) in BlockPoolIntf() 340 (pool ? std::to_string(pool->getLocalId()) : "null"), in BlockPoolIntf() 342 mPool{pool} {
|