Searched defs:halfWidth (Results 1 - 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/font/
H A DFont.cpp237 const float halfWidth = glyph->mBitmapWidth * 0.5f; local
243 bool ok = measure.getPosTan(x + hOffset + glyph->mBitmapLeft + halfWidth, position, tangent);
249 destination[0].set(-tangent->fX * halfWidth - tangent->fY * vOffset,
250 -tangent->fY * halfWidth + tangent->fX * vOffset);
251 destination[1].set(tangent->fX * halfWidth - tangent->fY * vOffset,
252 tangent->fY * halfWidth + tangent->fX * vOffset);
/frameworks/base/libs/hwui/
H A DSkiaCanvas.cpp782 float halfWidth = layout.getCharAdvance(i) * 0.5f; local
783 float x = hOffset + layout.getX(i) + halfWidth;
794 xform[i - start].fTx = pos.x() - tan.y() * y - halfWidth * tan.x();
795 xform[i - start].fTy = pos.y() + tan.x() * y - halfWidth * tan.y();
/frameworks/native/services/inputflinger/
H A DInputReader.cpp3960 int32_t halfWidth = virtualKeyDefinition.width / 2; local
3963 virtualKey.hitLeft = (virtualKeyDefinition.centerX - halfWidth)
3965 virtualKey.hitRight= (virtualKeyDefinition.centerX + halfWidth)

Completed in 95 milliseconds