/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 | 416 void Debug::DumpResStringPool(const android::ResStringPool* pool, text::Printer* printer) { in DumpResStringPool() argument 419 if (pool->getError() == NO_INIT) { in DumpResStringPool() 422 } else if (pool->getError() != NO_ERROR) { in DumpResStringPool() 428 const size_t N = pool->size(); in DumpResStringPool() 431 if (pool->isUTF8()) { in DumpResStringPool() 432 uniqueStrings.add(UnpackOptionalString(pool->string8At(i), &len)); in DumpResStringPool() 434 uniqueStrings.add(UnpackOptionalString(pool->stringAt(i), &len)); in DumpResStringPool() 440 pool->isUTF8() ? "UTF-8" : "UTF-16", in DumpResStringPool() 441 pool->isSorted() ? "sorted" : "non-sorted", N, pool->styleCount(), in DumpResStringPool() 442 pool->bytes())); in DumpResStringPool() [all …]
|
/frameworks/layoutlib/bridge/tests/src/android/util/imagepool/ |
D | ImagePoolImplTest.java | 55 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDispose() local 56 Image img1 = pool.acquire(width, height, type, in testImageDispose() 72 ImagePoolImpl pool = getSimpleSingleBucketPool(width, height); in testImageDisposeFromFunction() local 74 BufferedImage img = createImageAndReturnBufferedImage(pool, width, height, type, cd); in testImageDisposeFromFunction() 90 ImagePoolImpl pool = new ImagePoolImpl(new ImagePoolPolicy( in testImageDisposedAndRecycled() local 99 Image img1 = pool.acquire(width, height, type, in testImageDisposedAndRecycled() 117 Image img2 = pool.acquire(width - variant, height - variant, type, in testImageDisposedAndRecycled() 139 ImagePoolImpl pool = new ImagePoolImpl(new ImagePoolPolicy( in testBufferedImageReleased() local 144 Image image1 = pool.acquire(width, height, BufferedImage.TYPE_INT_ARGB, in testBufferedImageReleased() 153 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(UnpackOptionalString(pool->string8At(i), &len)); in printStringPool() 57 uniqueStrings.add(UnpackOptionalString(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/native/libs/renderengine/skia/debug/ |
D | CommonPool.cpp | 36 CommonPool* pool = this; in CommonPool() local 39 std::thread worker([pool, i] { in CommonPool() 47 pool->workerLoop(); in CommonPool() 54 static CommonPool pool; in instance() local 55 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/base/libs/hwui/thread/ |
D | CommonPool.cpp | 31 CommonPool* pool = this; in CommonPool() local 38 std::thread worker([pool, i, &mLock, &tids, &tidConditionVars] { in CommonPool() 55 pool->workerLoop(); in CommonPool() 71 static CommonPool pool; in instance() local 72 return pool; in instance()
|
/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 76 // package_index contains the index + 1 of the package name in the string pool 79 // class_index contains the index + 1 of the class name in the string pool 88 // notification_channel_index contains the index + 1 of the channel name in the string pool 94 // pool 96 // task_root_class_index contains the index + 1 of the task root class name in the string pool 98 // locus_id_index contains the index + 1 of the locus id in the string pool 103 // pool. 106 // They will hold a number that is equal to the index + 1 of their string in the pool
|
/frameworks/av/media/codec2/hidl/1.2/utils/ |
D | Component.cpp | 285 std::shared_ptr<C2BlockPool> pool; in setOutputSurface() local 286 GetCodec2BlockPool(blockPoolId, mComponent, &pool); in setOutputSurface() 287 if (pool && pool->getAllocatorId() == C2PlatformAllocatorStore::BUFFERQUEUE) { in setOutputSurface() 289 std::static_pointer_cast<C2BufferQueueBlockPool>(pool); in setOutputSurface() 342 BlockPoolIntf(const std::shared_ptr<C2BlockPool>& pool) in BlockPoolIntf() 345 (pool ? std::to_string(pool->getLocalId()) : "null"), in BlockPoolIntf() 347 mPool{pool} { 483 std::shared_ptr<C2BlockPool> pool; in setOutputSurfaceWithSyncObj() local 484 GetCodec2BlockPool(blockPoolId, mComponent, &pool); in setOutputSurfaceWithSyncObj() 485 if (pool && pool->getAllocatorId() == C2PlatformAllocatorStore::BUFFERQUEUE) { in setOutputSurfaceWithSyncObj() [all …]
|
/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; 84 const std::shared_ptr<C2BlockPool> &pool, 88 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/vndk/include/ |
D | C2PlatformSupport.h | 121 std::shared_ptr<C2BlockPool> *pool); 138 std::shared_ptr<C2BlockPool> *pool); 155 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/base/libs/androidfw/tests/ |
D | TestHelpers.cpp | 71 const ResStringPool* pool = table.getTableStringBlock(block); in IsStringEqual() local 72 if (pool == NULL) { in IsStringEqual() 76 auto actual_str = pool->string8ObjectAt(val.data); in IsStringEqual()
|
/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 | 65 const std::shared_ptr<C2BlockPool> &pool) override; 68 const std::shared_ptr<C2BlockPool> &pool) override; 90 c2_status_t ensureDecoderState(const std::shared_ptr<C2BlockPool> &pool); 95 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; 109 const std::shared_ptr<C2BlockPool>& pool, 112 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/hidl/plugin/ |
D | FilterWrapperStub.cpp | 47 std::shared_ptr<C2BlockPool> *pool) { in createBlockPool() argument 48 return CreateCodec2BlockPool(allocatorId, component, pool); in createBlockPool()
|