Home
last modified time | relevance | path

Searched refs:LayoutPiece (Results 1 – 9 of 9) sorted by relevance

/frameworks/minikin/include/minikin/
DLayoutCache.h127 class LayoutCache : private android::OnEntryRemoved<LayoutCacheKey, LayoutPiece*> {
140 f(LayoutPiece(text, range, dir, paint, startHyphen, endHyphen), paint); in getOrCreate()
146 LayoutPiece* layout = mCache.get(key); in getOrCreate()
156 std::unique_ptr<LayoutPiece> layout = in getOrCreate()
157 std::make_unique<LayoutPiece>(text, range, dir, paint, startHyphen, endHyphen); in getOrCreate()
203 void operator()(LayoutCacheKey& key, LayoutPiece*& value) { in operator()
208 android::LruCache<LayoutCacheKey, LayoutPiece*> mCache GUARDED_BY(mMutex);
DLayoutCore.h45 class LayoutPiece {
47 LayoutPiece(const U16StringPiece& textBuf, const Range& range, bool isRtl,
DLayoutPieces.h73 std::unordered_map<Key, LayoutPiece, KeyHasher> offsetMap;
75 void insert(const Range& range, HyphenEdit edit, const LayoutPiece& layout, bool dir, in insert()
DLayout.h105 void appendLayout(const LayoutPiece& src, size_t start, float extraAdvance);
/frameworks/minikin/libs/minikin/
DMeasuredText.cpp40 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in operator ()()
89 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& paint) { in operator ()()
166 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()()
213 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()()
248 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()()
DLayout.cpp107 void operator()(const LayoutPiece& layoutPiece, const MinikinPaint& /* paint */) { in operator ()()
149 void Layout::appendLayout(const LayoutPiece& src, size_t start, float extraAdvance) { in appendLayout()
DLayoutCore.cpp342 LayoutPiece::LayoutPiece(const U16StringPiece& textBuf, const Range& range, bool isRtl, in LayoutPiece() function in minikin::LayoutPiece
/frameworks/minikin/tests/unittest/
DLayoutCoreTest.cpp30 static LayoutPiece buildLayout(const std::string& text, const MinikinPaint& paint) { in buildLayout()
32 return LayoutPiece(utf16, Range(0, utf16.size()), false /* rtl */, paint, in buildLayout()
36 static LayoutPiece buildLayout(const std::string& text, const std::vector<std::string>& fonts) { in buildLayout()
47 static LayoutPiece buildLayout(const std::string& text, const std::vector<std::string>& fonts, in buildLayout()
DLayoutCacheTest.cpp39 void operator()(const LayoutPiece& layout, const MinikinPaint& /* dir */) { mLayout = &layout; } in operator ()()
41 const LayoutPiece* get() const { return mLayout; } in get()
44 const LayoutPiece* mLayout;