Home
last modified time | relevance | path

Searched refs:writeU16 (Results 1 – 3 of 3) sorted by relevance

/frameworks/minikin/tests/unittest/
DFontFileParserTest.cpp28 static size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16() function
51 size_t head = writeU16(1, out.data(), 0); // major version in buildHeadTable()
52 head = writeU16(0, out.data(), head); // minor version in buildHeadTable()
56 head = writeU16(0, out.data(), head); // flasgs in buildHeadTable()
57 head = writeU16(1024, out.data(), head); // unitsPerEm in buildHeadTable()
60 head = writeU16(0, out.data(), head); // xMin in buildHeadTable()
61 head = writeU16(100, out.data(), head); // yMin in buildHeadTable()
62 head = writeU16(1024, out.data(), head); // xMax in buildHeadTable()
63 head = writeU16(2048, out.data(), head); // yMax in buildHeadTable()
64 head = writeU16(0, out.data(), head); // macStyle in buildHeadTable()
[all …]
DFontUtilsTest.cpp28 static size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16() function
61 size_t head = writeU16(1, out.data(), 0); // major version in buildFvarTable()
62 head = writeU16(0, out.data(), head); // minor version in buildFvarTable()
63 head = writeU16(HEADER_SIZE, out.data(), head); // axes array offset in buildFvarTable()
64 head = writeU16(2, out.data(), head); // reserved in buildFvarTable()
65 head = writeU16(fvars.size(), out.data(), head); // count of axes in buildFvarTable()
66 head = writeU16(AXIS_RECORD_SIZE, out.data(), head); // size of variaiton axis record in buildFvarTable()
67 head = writeU16(0, out.data(), head); // number of instance record count in buildFvarTable()
68 head = writeU16(0, out.data(), head); // instance record size in buildFvarTable()
75 head = writeU16(0, out.data(), head); // flags in buildFvarTable()
[all …]
DCmapCoverageTest.cpp38 size_t writeU16(uint16_t x, uint8_t* out, size_t offset) { in writeU16() function
45 return writeU16(static_cast<uint16_t>(sx), out, offset); in writeI16()
77 head = writeU16(4, out.data(), head); // format in buildCmapFormat4Table()
78 head = writeU16(finalLength, out.data(), head); // length in buildCmapFormat4Table()
79 head = writeU16(0, out.data(), head); // langauge in buildCmapFormat4Table()
83 head = writeU16(segmentCount * 2, out.data(), head); // segCountX2 in buildCmapFormat4Table()
84 head = writeU16(searchRange, out.data(), head); // searchRange in buildCmapFormat4Table()
85 head = writeU16(__builtin_ctz(searchRange) - 1, out.data(), head); // entrySelector in buildCmapFormat4Table()
86 head = writeU16(segmentCount * 2 - searchRange, out.data(), head); // rangeShift in buildCmapFormat4Table()
96 startCountHead = writeU16(begin, out.data(), startCountHead); in buildCmapFormat4Table()
[all …]