Lines Matching defs:candidate
143 // Initialize the best candidate to something impossible so that
187 * Is candidate a better candidate than currentBest for a focus search
193 * @param candidate the candidate rectangle
195 * @return {@code true} if the candidate rectangle is a better than the
200 @NonNull Rect candidate, @NonNull Rect currentBest) {
201 // To be a better candidate, need to at least be a candidate in the
203 if (!isCandidate(source, candidate, direction)) {
207 // We know that candidateRect is a candidate. If currentBest is not
208 // a candidate, candidateRect is better.
214 if (beamBeats(direction, source, candidate, currentBest)) {
219 if (beamBeats(direction, source, currentBest, candidate)) {
226 majorAxisDistance(direction, source, candidate),
227 minorAxisDistance(direction, source, candidate));
235 * One rectangle may be another candidate than another by virtue of
238 * @return whether rect1 is a better candidate than rect2 by virtue of
288 * Is destRect a candidate for the next focus given the direction? This