FocusFinderHelperpublic class FocusFinderHelper extends Object A helper class that allows unit tests to access FocusFinder methods. |
Fields Summary |
---|
private FocusFinder | mFocusFinder |
Constructors Summary |
---|
public FocusFinderHelper(FocusFinder focusFinder)Wrap the FocusFinder object
mFocusFinder = focusFinder;
|
Methods Summary |
---|
public boolean | beamBeats(int direction, android.graphics.Rect source, android.graphics.Rect rect1, android.graphics.Rect rect2)
return mFocusFinder.beamBeats(direction, source, rect1, rect2);
| public boolean | beamsOverlap(int direction, android.graphics.Rect rect1, android.graphics.Rect rect2)
return mFocusFinder.beamsOverlap(direction, rect1, rect2);
| public boolean | isBetterCandidate(int direction, android.graphics.Rect source, android.graphics.Rect rect1, android.graphics.Rect rect2)
return mFocusFinder.isBetterCandidate(direction, source, rect1, rect2);
| public boolean | isCandidate(android.graphics.Rect srcRect, android.graphics.Rect destRect, int direction)
return mFocusFinder.isCandidate(srcRect, destRect, direction);
| public static int | majorAxisDistance(int direction, android.graphics.Rect source, android.graphics.Rect dest)
return FocusFinder.majorAxisDistance(direction, source, dest);
| public static int | majorAxisDistanceToFarEdge(int direction, android.graphics.Rect source, android.graphics.Rect dest)
return FocusFinder.majorAxisDistanceToFarEdge(direction, source, dest);
|
|