Home
last modified time | relevance | path

Searched refs:BufferReader (Results 1 – 25 of 25) sorted by relevance

/frameworks/minikin/include/minikin/
DBuffer.h45 class BufferReader {
49 explicit BufferReader(const void* buffer) : BufferReader(buffer, 0) {} in BufferReader() function
50 BufferReader(const void* buffer, uint32_t pos) in BufferReader() function
81 mCurrent = BufferReader::align<T, align>(mCurrent); in map()
90 mCurrent = BufferReader::align<T, align>(mCurrent); in skip()
100 mCurrent = BufferReader::align<T, align>(mCurrent); in readArray()
110 mCurrent = BufferReader::align<T, align>(mCurrent); in skipArray()
201 return BufferReader::align<T, AlignT>(mData + pos) - mData; in align()
DMinikinFontFactory.h33 virtual std::shared_ptr<MinikinFont> create(BufferReader reader) const = 0;
37 virtual void skip(BufferReader* reader) const = 0;
DSparseBitSet.h47 explicit SparseBitSet(BufferReader* reader) : SparseBitSet() { initFromBuffer(reader); } in SparseBitSet()
75 void initFromBuffer(BufferReader* reader);
DFont.h150 explicit Font(BufferReader* reader);
172 BufferReader typefaceMetadataReader() const { return mTypefaceMetadataReader; } in typefaceMetadataReader()
228 BufferReader mTypefaceMetadataReader;
DFontFamily.h57 static std::vector<std::shared_ptr<FontFamily>> readVector(BufferReader* reader);
115 explicit FontFamily(BufferReader* reader, const std::shared_ptr<std::vector<Font>>& fonts);
DFontCollection.h63 static std::vector<std::shared_ptr<FontCollection>> readVector(BufferReader* reader);
208 BufferReader* reader,
DFontStyle.h53 explicit FontStyle(BufferReader* reader) { in FontStyle()
/frameworks/minikin/tests/unittest/
DFontTest.cpp42 BufferReader reader(buffer.data()); in TEST()
68 BufferReader reader(buffer.data()); in TEST()
76 BufferReader reader(buffer.data()); in TEST()
96 BufferReader reader(buffer.data()); in TEST()
98 BufferReader reader2(buffer.data()); in TEST()
107 BufferReader reader(buffer.data()); in TEST()
110 BufferReader reader2(buffer.data()); in TEST()
119 BufferReader reader(buffer.data()); in TEST()
121 BufferReader reader2(buffer.data()); in TEST()
131 BufferReader reader(buffer.data()); in TEST()
[all …]
DSparseBitSetTest.cpp61 BufferReader reader(buffer.data()); in TEST()
74 BufferReader reader(buffer.data()); in TEST()
DBufferTest.cpp55 BufferReader reader(buffer.data()); in TEST()
85 BufferReader reader(buffer.data()); in TEST()
DFontCollectionTest.cpp206 BufferReader reader(buffer.data()); in TEST()
226 BufferReader reader(buffer.data()); in TEST()
240 BufferReader reader(buffer.data()); in TEST()
DFontLanguageListCacheTest.cpp78 BufferReader reader(buffer.data()); in TEST()
DFontFamilyTest.cpp924 BufferReader reader(buffer.data()); in TEST_F()
/frameworks/minikin/libs/minikin/
DLocaleListCache.h41 static inline uint32_t readFrom(BufferReader* reader) { in readFrom()
63 uint32_t readFromInternal(BufferReader* reader);
DLocaleListCache.cpp156 uint32_t LocaleListCache::readFromInternal(BufferReader* reader) { in readFromInternal()
DSparseBitSet.cpp107 void SparseBitSet::initFromBuffer(BufferReader* reader) { in initFromBuffer()
DFontFamily.cpp162 FontFamily::FontFamily(BufferReader* reader, const std::shared_ptr<std::vector<Font>>& allFonts) in FontFamily()
237 std::vector<std::shared_ptr<FontFamily>> FontFamily::readVector(BufferReader* reader) { in readVector()
DFont.cpp78 Font::Font(BufferReader* reader) in Font()
DFontCollection.cpp213 BufferReader* reader, in FontCollection()
259 std::vector<std::shared_ptr<FontCollection>> FontCollection::readVector(BufferReader* reader) { in readVector()
/frameworks/minikin/tests/util/
DFreeTypeMinikinFontForTest.h81 std::shared_ptr<MinikinFont> create(BufferReader reader) const override;
83 void skip(BufferReader* reader) const override;
DFreeTypeMinikinFontForTest.cpp130 std::shared_ptr<MinikinFont> FreeTypeMinikinFontForTestFactory::create(BufferReader reader) const { in create()
135 void FreeTypeMinikinFontForTestFactory::skip(BufferReader* reader) const { in skip()
/frameworks/base/libs/androidfw/
DZipUtils.cpp82 class BufferReader final : public zip_archive::Reader { class
84 BufferReader(incfs::map_ptr<void> input, size_t inputSize) : Reader(), in BufferReader() function in BufferReader
149 BufferReader reader(in, compressedLen); in inflateToBuffer()
/frameworks/base/libs/hwui/jni/
DTypeface.cpp201 void skip(minikin::BufferReader* reader) const override;
202 std::shared_ptr<minikin::MinikinFont> create(minikin::BufferReader reader) const override;
206 void MinikinFontSkiaFactory::skip(minikin::BufferReader* reader) const { in skip()
219 minikin::BufferReader reader) const { in create()
304 reinterpret_cast<intptr_t>(addr) % minikin::BufferReader::kMaxAlignment != 0) { in Typeface_writeTypefaces()
335 if (reinterpret_cast<intptr_t>(addr) % minikin::BufferReader::kMaxAlignment != 0) { in Typeface_readTypefaces()
339 minikin::BufferReader reader(addr, position); in Typeface_readTypefaces()
/frameworks/minikin/fuzz/locale_fuzzer/
Dlocale_fuzzer.cpp49 BufferReader reader(buffer.data()); in LLVMFuzzerTestOneInput()
/frameworks/base/libs/hwui/jni/fonts/
DFont.cpp229 minikin::BufferReader reader = font->font->typefaceMetadataReader(); in Font_getFontPath()
271 minikin::BufferReader reader = font->font->typefaceMetadataReader(); in Font_getIndex()
284 minikin::BufferReader reader = font->font->typefaceMetadataReader(); in Font_getAxisCount()
298 minikin::BufferReader reader = font->font->typefaceMetadataReader(); in Font_getAxisInfo()