Home
last modified time | relevance | path

Searched refs:SparseBitSet (Results 1 – 10 of 10) sorted by relevance

/frameworks/minikin/include/minikin/
DSparseBitSet.h35 class SparseBitSet {
38 SparseBitSet() : mData(nullptr) {} in SparseBitSet() function
43 SparseBitSet(const uint32_t* ranges, size_t nRanges) : SparseBitSet() { in SparseBitSet() function
47 explicit SparseBitSet(BufferReader* reader) : SparseBitSet() { initFromBuffer(reader); } in SparseBitSet() function
49 SparseBitSet(SparseBitSet&&) = default;
50 SparseBitSet& operator=(SparseBitSet&&) = default;
137 SparseBitSet(const SparseBitSet&) = delete;
138 SparseBitSet& operator=(const SparseBitSet&) = delete;
DCmapCoverage.h29 static SparseBitSet getCoverage(const uint8_t* cmap_data, size_t cmap_size,
30 std::vector<SparseBitSet>* out);
DFontFamily.h79 const SparseBitSet& getCoverage() const { in getCoverage()
87 const SparseBitSet& getCmap14Coverage(uint16_t vsIndex) const { in getCmap14Coverage()
126 SparseBitSet mCoverage;
128 std::unique_ptr<SparseBitSet[]> mCmapFmt14Coverage;
/frameworks/minikin/tests/unittest/
DCmapCoverageTest.cpp288 std::vector<SparseBitSet> vsTables; in TEST()
294 SparseBitSet coverage = in TEST()
305 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
315 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
324 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
333 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
340 std::vector<SparseBitSet> vsTables; in TEST()
355 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
363 std::vector<SparseBitSet> vsTables; in TEST()
379 SparseBitSet coverage = CmapCoverage::getCoverage(cmap.data(), cmap.size(), &vsTables); in TEST()
[all …]
DSparseBitSetTest.cpp38 SparseBitSet bitset(range.data(), range.size() / 2); in TEST()
59 SparseBitSet originalBitset(range.data(), range.size() / 2); in TEST()
62 SparseBitSet bitset(&reader); in TEST()
72 SparseBitSet empty; in TEST()
75 SparseBitSet bitset(&reader); in TEST()
83 ASSERT_EQ(sizeof(void*), sizeof(SparseBitSet)); in TEST()
/frameworks/minikin/libs/minikin/
DSparseBitSet.cpp23 const uint32_t SparseBitSet::kNotFound;
25 uint32_t SparseBitSet::calcNumPages(const uint32_t* ranges, size_t nRanges) { in calcNumPages()
49 void SparseBitSet::initFromRanges(const uint32_t* ranges, size_t nRanges) { in initFromRanges()
107 void SparseBitSet::initFromBuffer(BufferReader* reader) { in initFromBuffer()
113 void SparseBitSet::writeTo(BufferWriter* writer) const { in writeTo()
129 int SparseBitSet::CountLeadingZeros(element x) { in CountLeadingZeros()
134 uint32_t SparseBitSet::nextSetBit(uint32_t fromIndex) const { in nextSetBit()
169 SparseBitSet::MappableData* SparseBitSet::MappableData::allocate(uint32_t indicesCount, in allocate()
DCmapCoverage.cpp292 const SparseBitSet& baseCoverage) { in getVSCoverage()
371 static void getCoverageFormat14(std::vector<SparseBitSet>* out, const uint8_t* data, size_t size, in getCoverageFormat14()
372 const SparseBitSet& baseCoverage) { in getCoverageFormat14()
419 (*out)[vsIndex] = SparseBitSet(ranges.data(), ranges.size() >> 1); in getCoverageFormat14()
425 SparseBitSet CmapCoverage::getCoverage(const uint8_t* cmap_data, size_t cmap_size, in getCoverage()
426 std::vector<SparseBitSet>* out) { in getCoverage()
437 return SparseBitSet(); in getCoverage()
441 return SparseBitSet(); in getCoverage()
515 SparseBitSet coverage; in getCoverage()
529 coverage = SparseBitSet(&coverageVec.front(), coverageVec.size() >> 1); in getCoverage()
DFontFamily.cpp188 mCoverage = SparseBitSet(reader); in FontFamily()
193 mCmapFmt14Coverage = std::make_unique<SparseBitSet[]>(mCmapFmt14CoverageCount); in FontFamily()
197 mCmapFmt14Coverage[index] = SparseBitSet(reader); in FontFamily()
346 std::vector<SparseBitSet> cmapFmt14Coverage; in computeCoverage()
355 mCmapFmt14Coverage = std::make_unique<SparseBitSet[]>(mCmapFmt14CoverageCount); in computeCoverage()
394 const SparseBitSet& bitset = getCmap14Coverage(vsIndex); in hasGlyph()
DAndroid.bp86 "SparseBitSet.cpp",
DFontCollection.cpp159 const SparseBitSet& coverage = family->getCoverage(); in init()