Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/floatingmenu/
DPosition.java47 final float percentageX = Float.parseFloat(sStringCommaSplitter.next()); in fromString() local
49 return new Position(percentageX, percentageY); in fromString()
56 Position(float percentageX, float percentageY) { in Position() argument
57 update(percentageX, percentageY); in Position()
78 public void update(@FloatRange(from = 0.0, to = 1.0) float percentageX, in update()
80 mPercentageX = percentageX; in update()
DMenuAnimationController.java438 final float percentageX = position.x < draggableBounds.centerX() in constrainPositionAndUpdate()
448 mMenuView.persistPositionAndUpdateEdge(new Position(percentageX, percentageY)); in constrainPositionAndUpdate()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/floatingmenu/
DMenuViewTest.java127 final float percentageX = 0.0f; in onAnimationend_updatePositionForSharedPreference() local
130 mMenuView.persistPositionAndUpdateEdge(new Position(percentageX, percentageY)); in onAnimationend_updatePositionForSharedPreference()
135 assertThat(position.getPercentageX()).isEqualTo(percentageX); in onAnimationend_updatePositionForSharedPreference()