Home
last modified time | relevance | path

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

/frameworks/base/core/tests/coretests/src/android/view/
DRoundedCornersTest.java83 RoundedCorners roundedCorners = RoundedCorners.fromRadii(radius, 200, 400); in testGetRoundedCorner()
108 equalTo(RoundedCorners.fromRadii(new Pair<>(10, 20), 200, 400).hashCode())); in testHashCode()
110 not(equalTo(RoundedCorners.fromRadii(new Pair<>(5, 10), 200, 400).hashCode()))); in testHashCode()
116 equalTo(RoundedCorners.fromRadii(new Pair<>(10, 20), 200, 400))); in testEquals()
119 not(equalTo(RoundedCorners.fromRadii(new Pair<>(5, 10), 200, 400)))); in testEquals()
166 RoundedCorners roundedCorners = RoundedCorners.fromRadii(radius, 200, 400) in testRotateRoundedCorners_90()
182 RoundedCorners roundedCorners = RoundedCorners.fromRadii(radius, 200, 400) in testRotateRoundedCorners_270()
198 RoundedCorners cached = RoundedCorners.fromRadii(radius, 200, 400); in testFromRadius_cache()
200 assertThat(RoundedCorners.fromRadii(radius, 200, 400), sameInstance(cached)); in testFromRadius_cache()
206 RoundedCorners cached = RoundedCorners.fromRadii(radius, 200, 400); in testFromRadius_wontCacheIfRadiusChanged()
[all …]
/frameworks/base/core/java/android/view/
DRoundedCorners.java103 return fromRadii(loadRoundedCornerRadii(res, displayUniqueId), physicalDisplayWidth, in fromResources()
111 public static RoundedCorners fromRadii(Pair<Integer, Integer> radii, int displayWidth, in fromRadii() method in RoundedCorners
113 return fromRadii(radii, displayWidth, displayHeight, displayWidth, displayHeight); in fromRadii()
116 private static RoundedCorners fromRadii(Pair<Integer, Integer> radii, int physicalDisplayWidth, in fromRadii() method in RoundedCorners