Build 1.0_r1(from source)

android.view
Class FocusFinderHelper

java.lang.Object
  extended by android.view.FocusFinderHelper

public class FocusFinderHelper
extends Object

A helper class that allows unit tests to access FocusFinder methods.


Constructor Summary
FocusFinderHelper(FocusFinder focusFinder)
          Wrap the FocusFinder object
 
Method Summary
 boolean beamBeats(int direction, Rect source, Rect rect1, Rect rect2)
           
 boolean beamsOverlap(int direction, Rect rect1, Rect rect2)
           
 boolean isBetterCandidate(int direction, Rect source, Rect rect1, Rect rect2)
           
 boolean isCandidate(Rect srcRect, Rect destRect, int direction)
           
static int majorAxisDistance(int direction, Rect source, Rect dest)
           
static int majorAxisDistanceToFarEdge(int direction, Rect source, Rect dest)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FocusFinderHelper

public FocusFinderHelper(FocusFinder focusFinder)
Wrap the FocusFinder object

Method Detail

isBetterCandidate

public boolean isBetterCandidate(int direction,
                                 Rect source,
                                 Rect rect1,
                                 Rect rect2)

beamBeats

public boolean beamBeats(int direction,
                         Rect source,
                         Rect rect1,
                         Rect rect2)

isCandidate

public boolean isCandidate(Rect srcRect,
                           Rect destRect,
                           int direction)

beamsOverlap

public boolean beamsOverlap(int direction,
                            Rect rect1,
                            Rect rect2)

majorAxisDistance

public static int majorAxisDistance(int direction,
                                    Rect source,
                                    Rect dest)

majorAxisDistanceToFarEdge

public static int majorAxisDistanceToFarEdge(int direction,
                                             Rect source,
                                             Rect dest)

Build 1.0_r1(from source)

Please submit a feedback, bug or feature