Lines Matching refs:rects
82 final Pair<Rect, Rect> rects = obtainEmptyRects();
83 paint.getTextBounds(TOFU_STRING, 0, TOFU_STRING.length(), rects.first);
84 paint.getTextBounds(string, 0, length, rects.second);
85 return !rects.first.equals(rects.second);
89 Pair<Rect, Rect> rects = sRectThreadLocal.get();
90 if (rects == null) {
91 rects = new Pair<>(new Rect(), new Rect());
92 sRectThreadLocal.set(rects);
94 rects.first.setEmpty();
95 rects.second.setEmpty();
97 return rects;