(float spread)
| 98 | } |
| 99 | |
| 100 | @NotNull |
| 101 | public Rect inflate(float spread) { |
| 102 | if (spread <= 0) |
| 103 | return Rect.makeLTRB(_left - spread, |
| 104 | _top - spread, |
| 105 | Math.max(_left - spread, _right + spread), |
| 106 | Math.max(_top - spread, _bottom + spread)); |
| 107 | else |
| 108 | return RRect.makeLTRB(_left - spread, |
| 109 | _top - spread, |
| 110 | Math.max(_left - spread, _right + spread), |
| 111 | Math.max(_top - spread, _bottom + spread), |
| 112 | spread); |
| 113 | } |
| 114 | |
| 115 | public boolean isEmpty() { |
| 116 | return _right == _left || _top == _bottom; |
no test coverage detected