From 5c22a8c80aefe8c0739e93321f8cead5b60571e4 Mon Sep 17 00:00:00 2001
From: Romain Guy
@@ -173,61 +173,61 @@ import java.util.concurrent.CopyOnWriteArrayList;
*
*
- * To enable touch filtering, call {@link #setFilterTouchesWhenObscured} or set the
+ * To enable touch filtering, call {@link #setFilterTouchesWhenObscured(boolean)} or set the
* android:filterTouchesWhenObscured layout attribute to true. When enabled, the framework
* will discard touches that are received whenever the view's window is obscured by
* another visible window. As a result, the view will not receive touches whenever a
* toast, dialog or other window appears above the view's window.
*
* For more fine-grained control over security, consider overriding the
- * {@link #onFilterTouchEventForSecurity} method to implement your own security policy.
- * See also {@link MotionEvent#FLAG_WINDOW_IS_OBSCURED}.
+ * {@link #onFilterTouchEventForSecurity(MotionEvent)} method to implement your own
+ * security policy. See also {@link MotionEvent#FLAG_WINDOW_IS_OBSCURED}.
*
- * Do not call this method directly. Call {@link #dispatchGenericMotionEvent} instead.
+ * Do not call this method directly.
+ * Call {@link #dispatchGenericMotionEvent(MotionEvent)} instead.
*
- * Do not call this method directly. Call {@link #dispatchGenericMotionEvent} instead.
+ * Do not call this method directly.
+ * Call {@link #dispatchGenericMotionEvent(MotionEvent)} instead.
*
- * Do not call this method directly. Call {@link #dispatchGenericMotionEvent} instead.
+ * Do not call this method directly.
+ * Call {@link #dispatchGenericMotionEvent(MotionEvent)} instead.
*
- * Dispatches touch related pointer events to {@link #onTouchEvent} and all
- * other events to {@link #onGenericMotionEvent}. This separation of concerns
- * reinforces the invariant that {@link #onTouchEvent} is really about touches
+ * Dispatches touch related pointer events to {@link #onTouchEvent(MotionEvent)} and all
+ * other events to {@link #onGenericMotionEvent(MotionEvent)}. This separation of concerns
+ * reinforces the invariant that {@link #onTouchEvent(MotionEvent)} is really about touches
* and should not be expected to handle other pointing device features.
*
* The view receives hover enter as the pointer enters the bounds of the view and hover
* exit as the pointer exits the bound of the view or just before the pointer goes down
- * (which implies that {@link #onTouchEvent} will be called soon).
+ * (which implies that {@link #onTouchEvent(MotionEvent)} will be called soon).
*
* If the view would like to handle the hover event itself and prevent its children
* from receiving hover, it should return true from this method. If this method returns
@@ -5945,7 +5946,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Return the full width measurement information for this view as computed
- * by the most recent call to {@link #measure}. This result is a bit mask
+ * by the most recent call to {@link #measure(int, int)}. This result is a bit mask
* as defined by {@link #MEASURED_SIZE_MASK} and {@link #MEASURED_STATE_TOO_SMALL}.
* This should be used during measurement and layout calculations only. Use
* {@link #getWidth()} to see how wide a view is after layout.
@@ -5969,7 +5970,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Return the full height measurement information for this view as computed
- * by the most recent call to {@link #measure}. This result is a bit mask
+ * by the most recent call to {@link #measure(int, int)}. This result is a bit mask
* as defined by {@link #MEASURED_SIZE_MASK} and {@link #MEASURED_STATE_TOO_SMALL}.
* This should be used during measurement and layout calculations only. Use
* {@link #getHeight()} to see how wide a view is after layout.
@@ -6938,9 +6939,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* When a view has focus and the user navigates away from it, the next view is searched for
* starting from the rectangle filled in by this method.
*
- * By default, the rectange is the {@link #getDrawingRect})of the view. However, if your
- * view maintains some idea of internal selection, such as a cursor, or a selected row
- * or column, you should override this method and fill in a more specific rectangle.
+ * By default, the rectange is the {@link #getDrawingRect(android.graphics.Rect)})
+ * of the view. However, if your view maintains some idea of internal selection,
+ * such as a cursor, or a selected row or column, you should override this method and
+ * fill in a more specific rectangle.
*
* @param r The rectangle to fill in, in this view's coordinates.
*/
@@ -7307,9 +7309,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Mark the the area defined by dirty as needing to be drawn. If the view is
- * visible, {@link #onDraw} will be called at some point in the future.
- * This must be called from a UI thread. To call from a non-UI thread, call
- * {@link #postInvalidate()}.
+ * visible, {@link #onDraw(android.graphics.Canvas)} will be called at some point
+ * in the future. This must be called from a UI thread. To call from a non-UI
+ * thread, call {@link #postInvalidate()}.
*
* WARNING: This method is destructive to dirty.
* @param dirty the rectangle representing the bounds of the dirty region
@@ -7349,9 +7351,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Mark the the area defined by the rect (l,t,r,b) as needing to be drawn.
* The coordinates of the dirty rect are relative to the view.
- * If the view is visible, {@link #onDraw} will be called at some point
- * in the future. This must be called from a UI thread. To call
- * from a non-UI thread, call {@link #postInvalidate()}.
+ * If the view is visible, {@link #onDraw(android.graphics.Canvas)}
+ * will be called at some point in the future. This must be called from
+ * a UI thread. To call from a non-UI thread, call {@link #postInvalidate()}.
* @param l the left position of the dirty region
* @param t the top position of the dirty region
* @param r the right position of the dirty region
@@ -7389,9 +7391,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
}
/**
- * Invalidate the whole view. If the view is visible, {@link #onDraw} will
- * be called at some point in the future. This must be called from a
- * UI thread. To call from a non-UI thread, call {@link #postInvalidate()}.
+ * Invalidate the whole view. If the view is visible,
+ * {@link #onDraw(android.graphics.Canvas)} will be called at some point in
+ * the future. This must be called from a UI thread. To call from a non-UI thread,
+ * call {@link #postInvalidate()}.
*/
public void invalidate() {
invalidate(true);
@@ -8304,9 +8307,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* This is called when the view is attached to a window. At this point it
* has a Surface and will start drawing. Note that this function is
- * guaranteed to be called before {@link #onDraw}, however it may be called
- * any time before the first onDraw -- including before or after
- * {@link #onMeasure}.
+ * guaranteed to be called before {@link #onDraw(android.graphics.Canvas)},
+ * however it may be called any time before the first onDraw -- including
+ * before or after {@link #onMeasure(int, int)}.
*
* @see #onDetachedFromWindow()
*/
@@ -8479,24 +8482,24 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*
* @param container The SparseArray in which to save the view's state.
*
- * @see #restoreHierarchyState
- * @see #dispatchSaveInstanceState
- * @see #onSaveInstanceState
+ * @see #restoreHierarchyState(android.util.SparseArray)
+ * @see #dispatchSaveInstanceState(android.util.SparseArray)
+ * @see #onSaveInstanceState()
*/
public void saveHierarchyState(SparseArray Be sure to call through to the superclass when overriding this
* function.
*
- * @see Drawable#setState
+ * @see Drawable#setState(int[])
*/
protected void drawableStateChanged() {
Drawable d = mBGDrawable;
@@ -10079,9 +10083,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*
* @return The current drawable state
*
- * @see Drawable#setState
- * @see #drawableStateChanged
- * @see #onCreateDrawableState
+ * @see Drawable#setState(int[])
+ * @see #drawableStateChanged()
+ * @see #onCreateDrawableState(int)
*/
public final int[] getDrawableState() {
if ((mDrawableState != null) && ((mPrivateFlags & DRAWABLE_STATE_DIRTY) == 0)) {
@@ -10106,7 +10110,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* @return Returns an array holding the current {@link Drawable} state of
* the view.
*
- * @see #mergeDrawableStates
+ * @see #mergeDrawableStates(int[], int[])
*/
protected int[] onCreateDrawableState(int extraSpace) {
if ((mViewFlags & DUPLICATE_PARENT_STATE) == DUPLICATE_PARENT_STATE &&
@@ -10170,10 +10174,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Merge your own state values in additionalState into the base
* state values baseState that were returned by
- * {@link #onCreateDrawableState}.
+ * {@link #onCreateDrawableState(int)}.
*
* @param baseState The base state values returned by
- * {@link #onCreateDrawableState}, which will be modified to also hold your
+ * {@link #onCreateDrawableState(int)}, which will be modified to also hold your
* own additional state values.
*
* @param additionalState The additional state values you would like
@@ -10182,7 +10186,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* @return As a convenience, the baseState array you originally
* passed into the function is returned.
*
- * @see #onCreateDrawableState
+ * @see #onCreateDrawableState(int)
*/
protected static int[] mergeDrawableStates(int[] baseState, int[] additionalState) {
final int N = baseState.length;
@@ -10701,8 +10705,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* number.
*
* @see #NO_ID
- * @see #getId
- * @see #findViewById
+ * @see #getId()
+ * @see #findViewById(int)
*
* @param id a number used to identify the view
*
@@ -10741,8 +10745,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* @return a positive integer used to identify the view or {@link #NO_ID}
* if the view has no ID
*
- * @see #setId
- * @see #findViewById
+ * @see #setId(int)
+ * @see #findViewById(int)
* @attr ref android.R.styleable#View_id
*/
@ViewDebug.CapturedViewProperty
@@ -11605,6 +11609,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
*
* @return The View object associate with this builder object.
*/
+ @SuppressWarnings({"JavadocReference"})
final public View getView() {
return mView.get();
}
@@ -11818,7 +11823,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
/**
* Given a Drawable whose bounds have been set to draw into this view,
- * update a Region being computed for {@link #gatherTransparentRegion} so
+ * update a Region being computed for
+ * {@link #gatherTransparentRegion(android.graphics.Region)} so
* that any non-transparent parts of the Drawable are removed from the
* given transparent region.
*
@@ -12352,12 +12358,12 @@ public class View implements Drawable.Callback, KeyEvent.Callback, Accessibility
* Interface definition for a callback to be invoked when the status bar changes
* visibility.
*
- * @see #setOnSystemUiVisibilityChangeListener
+ * @see View#setOnSystemUiVisibilityChangeListener(android.view.View.OnSystemUiVisibilityChangeListener)
*/
public interface OnSystemUiVisibilityChangeListener {
/**
* Called when the status bar changes visibility because of a call to
- * {@link #setSystemUiVisibility}.
+ * {@link View#setSystemUiVisibility(int)}.
*
* @param visibility {@link #STATUS_BAR_VISIBLE} or {@link #STATUS_BAR_HIDDEN}.
*/
*
* Layout
- *
+ * {@link #onMeasure}
* {@link #onMeasure(int, int)}Called to determine the size requirements for this view and all
* of its children.
*
*
- *
*
+ * {@link #onLayout}
* {@link #onLayout(boolean, int, int, int, int)}Called when this view should assign a size and position to all
* of its children.
*
*
- *
*
*
+ * {@link #onSizeChanged}
* {@link #onSizeChanged(int, int, int, int)}Called when the size of this view has changed.
*
*
*
*
* Drawing
- *
+ * {@link #onDraw}
* {@link #onDraw(android.graphics.Canvas)}Called when the view should render its content.
*
*
*
* Event processing
- *
+ * {@link #onKeyDown}
* {@link #onKeyDown(int, KeyEvent)}Called when a new key event occurs.
*
*
- *
*
+ * {@link #onKeyUp}
* {@link #onKeyUp(int, KeyEvent)}Called when a key up event occurs.
*
*
- *
*
+ * {@link #onTrackballEvent}
* {@link #onTrackballEvent(MotionEvent)}Called when a trackball motion event occurs.
*
*
- *
*
*
+ * {@link #onTouchEvent}
* {@link #onTouchEvent(MotionEvent)}Called when a touch screen motion event occurs.
*
*
*
*
* Focus
- *
+ * {@link #onFocusChanged}
* {@link #onFocusChanged(boolean, int, android.graphics.Rect)}Called when the view gains or loses focus.
*
*
- *
@@ -246,7 +246,7 @@ import java.util.concurrent.CopyOnWriteArrayList;
*
*
*
+ * {@link #onWindowFocusChanged}
* {@link #onWindowFocusChanged(boolean)}Called when the window containing the view gains or loses focus.
*
*
- *
+ * {@link #onWindowVisibilityChanged}
* {@link #onWindowVisibilityChanged(int)}Called when the visibility of the window containing the view
* has changed.
*
@@ -562,15 +562,15 @@ import java.util.concurrent.CopyOnWriteArrayList;
* As a remedy, the framework offers a touch filtering mechanism that can be used to
* improve the security of views that provide access to sensitive functionality.
*