Home
last modified time | relevance | path

Searched refs:percentageX (Results 1 – 2 of 2) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DPosition.java46 final float percentageX = Float.parseFloat(sStringCommaSplitter.next()); in fromString() local
48 return new Position(percentageX, percentageY); in fromString()
55 Position(float percentageX, float percentageY) { in Position() argument
56 update(percentageX, percentageY); in Position()
70 public void update(@FloatRange(from = 0.0, to = 1.0) float percentageX, in update()
72 mPercentageX = percentageX; in update()
DAccessibilityFloatingMenuView.java811 private int transformToAlignment(@FloatRange(from = 0.0, to = 1.0) float percentageX) { in transformToAlignment()
812 return (percentageX < 0.5f) ? Alignment.LEFT : Alignment.RIGHT; in transformToAlignment()
816 final float percentageX = calculateCurrentPercentageX(); in transformCurrentPercentageXToEdge() local
817 return (percentageX < 0.5) ? 0.0f : 1.0f; in transformCurrentPercentageXToEdge()