Loading config/hiddenapi-light-greylist.txt +0 −619 File changed.Preview size limit exceeded, changes collapsed. Show changes config/hiddenapi-vendor-list.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -251,7 +251,6 @@ Landroid/view/IWindowManager;->getStableInsets(ILandroid/graphics/Rect;)V Landroid/view/IWindowManager;->overridePendingAppTransitionMultiThumbFuture(Landroid/view/IAppTransitionAnimationSpecsFuture;Landroid/os/IRemoteCallback;Z)V Landroid/view/IWindowManager;->overridePendingAppTransitionMultiThumbFuture(Landroid/view/IAppTransitionAnimationSpecsFuture;Landroid/os/IRemoteCallback;Z)V Landroid/view/IWindowManager;->overridePendingAppTransitionRemote(Landroid/view/RemoteAnimationAdapter;)V Landroid/view/IWindowManager;->overridePendingAppTransitionRemote(Landroid/view/RemoteAnimationAdapter;)V Landroid/view/IWindowManager;->setNavBarVirtualKeyHapticFeedbackEnabled(Z)V Landroid/view/IWindowManager;->setNavBarVirtualKeyHapticFeedbackEnabled(Z)V Landroid/widget/ListView;->lookForSelectablePosition(IZ)I Lcom/android/ims/ImsConfigListener;->onSetFeatureResponse(IIII)V Lcom/android/ims/ImsConfigListener;->onSetFeatureResponse(IIII)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionConferenceStateUpdated(Lcom/android/ims/internal/IImsCallSession;Landroid/telephony/ims/ImsConferenceState;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionConferenceStateUpdated(Lcom/android/ims/internal/IImsCallSession;Landroid/telephony/ims/ImsConferenceState;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionHandover(Lcom/android/ims/internal/IImsCallSession;IILandroid/telephony/ims/ImsReasonInfo;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionHandover(Lcom/android/ims/internal/IImsCallSession;IILandroid/telephony/ims/ImsReasonInfo;)V Loading core/java/android/widget/AbsListView.java +53 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.ColorInt; import android.annotation.DrawableRes; import android.annotation.DrawableRes; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.TestApi; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.res.Configuration; import android.content.res.Configuration; Loading Loading @@ -248,6 +249,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Controls CHOICE_MODE_MULTIPLE_MODAL. null when inactive. * Controls CHOICE_MODE_MULTIPLE_MODAL. null when inactive. */ */ @UnsupportedAppUsage ActionMode mChoiceActionMode; ActionMode mChoiceActionMode; /** /** Loading Loading @@ -276,16 +278,19 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Controls how the next layout will happen * Controls how the next layout will happen */ */ @UnsupportedAppUsage int mLayoutMode = LAYOUT_NORMAL; int mLayoutMode = LAYOUT_NORMAL; /** /** * Should be used by subclasses to listen to changes in the dataset * Should be used by subclasses to listen to changes in the dataset */ */ @UnsupportedAppUsage AdapterDataSetObserver mDataSetObserver; AdapterDataSetObserver mDataSetObserver; /** /** * The adapter containing the data to be displayed by this view * The adapter containing the data to be displayed by this view */ */ @UnsupportedAppUsage ListAdapter mAdapter; ListAdapter mAdapter; /** /** Loading @@ -311,22 +316,26 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The drawable used to draw the selector * The drawable used to draw the selector */ */ @UnsupportedAppUsage Drawable mSelector; Drawable mSelector; /** /** * The current position of the selector in the list. * The current position of the selector in the list. */ */ @UnsupportedAppUsage int mSelectorPosition = INVALID_POSITION; int mSelectorPosition = INVALID_POSITION; /** /** * Defines the selector's location and dimension at drawing time * Defines the selector's location and dimension at drawing time */ */ @UnsupportedAppUsage Rect mSelectorRect = new Rect(); Rect mSelectorRect = new Rect(); /** /** * The data set used to store unused views that should be reused during the next layout * The data set used to store unused views that should be reused during the next layout * to avoid creating new ones * to avoid creating new ones */ */ @UnsupportedAppUsage final RecycleBin mRecycler = new RecycleBin(); final RecycleBin mRecycler = new RecycleBin(); /** /** Loading @@ -337,6 +346,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The selection's top padding * The selection's top padding */ */ @UnsupportedAppUsage int mSelectionTopPadding = 0; int mSelectionTopPadding = 0; /** /** Loading @@ -347,6 +357,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The selection's bottom padding * The selection's bottom padding */ */ @UnsupportedAppUsage int mSelectionBottomPadding = 0; int mSelectionBottomPadding = 0; /** /** Loading Loading @@ -379,6 +390,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The position of the view that received the down motion event * The position of the view that received the down motion event */ */ @UnsupportedAppUsage int mMotionPosition; int mMotionPosition; /** /** Loading @@ -399,12 +411,14 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The Y value associated with the the down motion event * The Y value associated with the the down motion event */ */ @UnsupportedAppUsage int mMotionY; int mMotionY; /** /** * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or * TOUCH_MODE_DONE_WAITING * TOUCH_MODE_DONE_WAITING */ */ @UnsupportedAppUsage int mTouchMode = TOUCH_MODE_REST; int mTouchMode = TOUCH_MODE_REST; /** /** Loading @@ -420,16 +434,19 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Determines speed during touch scrolling * Determines speed during touch scrolling */ */ @UnsupportedAppUsage private VelocityTracker mVelocityTracker; private VelocityTracker mVelocityTracker; /** /** * Handles one frame of a fling * Handles one frame of a fling */ */ @UnsupportedAppUsage private FlingRunnable mFlingRunnable; private FlingRunnable mFlingRunnable; /** /** * Handles scrolling between positions within the list. * Handles scrolling between positions within the list. */ */ @UnsupportedAppUsage AbsPositionScroller mPositionScroller; AbsPositionScroller mPositionScroller; /** /** Loading Loading @@ -463,11 +480,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Optional callback to notify client when scroll position has changed * Optional callback to notify client when scroll position has changed */ */ @UnsupportedAppUsage private OnScrollListener mOnScrollListener; private OnScrollListener mOnScrollListener; /** /** * Keeps track of our accessory window * Keeps track of our accessory window */ */ @UnsupportedAppUsage PopupWindow mPopup; PopupWindow mPopup; /** /** Loading Loading @@ -501,6 +520,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te */ */ int mResurrectToPosition = INVALID_POSITION; int mResurrectToPosition = INVALID_POSITION; @UnsupportedAppUsage private ContextMenuInfo mContextMenuInfo = null; private ContextMenuInfo mContextMenuInfo = null; /** /** Loading Loading @@ -547,11 +567,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The last CheckForLongPress runnable we posted, if any * The last CheckForLongPress runnable we posted, if any */ */ @UnsupportedAppUsage private CheckForLongPress mPendingCheckForLongPress; private CheckForLongPress mPendingCheckForLongPress; /** /** * The last CheckForTap runnable we posted, if any * The last CheckForTap runnable we posted, if any */ */ @UnsupportedAppUsage private CheckForTap mPendingCheckForTap; private CheckForTap mPendingCheckForTap; /** /** Loading Loading @@ -590,6 +612,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The select child's view (from the adapter's getView) is enabled. * The select child's view (from the adapter's getView) is enabled. */ */ @UnsupportedAppUsage private boolean mIsChildViewEnabled; private boolean mIsChildViewEnabled; /** /** Loading @@ -606,6 +629,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Helper object that renders and controls the fast scroll thumb. * Helper object that renders and controls the fast scroll thumb. */ */ @UnsupportedAppUsage private FastScroller mFastScroll; private FastScroller mFastScroll; /** /** Loading @@ -616,6 +640,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te private boolean mGlobalLayoutListenerAddedFilter; private boolean mGlobalLayoutListenerAddedFilter; @UnsupportedAppUsage private int mTouchSlop; private int mTouchSlop; private float mDensityScale; private float mDensityScale; Loading @@ -627,6 +652,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te private Runnable mClearScrollingCache; private Runnable mClearScrollingCache; Runnable mPositionScrollAfterLayout; Runnable mPositionScrollAfterLayout; private int mMinimumVelocity; private int mMinimumVelocity; @UnsupportedAppUsage private int mMaximumVelocity; private int mMaximumVelocity; private float mVelocityScale = 1.0f; private float mVelocityScale = 1.0f; Loading @@ -651,6 +677,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * ID of the active pointer. This is used to retain consistency during * ID of the active pointer. This is used to retain consistency during * drags/flings if multiple pointers are used. * drags/flings if multiple pointers are used. */ */ @UnsupportedAppUsage private int mActivePointerId = INVALID_POINTER; private int mActivePointerId = INVALID_POINTER; /** /** Loading @@ -662,11 +689,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Maximum distance to overscroll by during edge effects * Maximum distance to overscroll by during edge effects */ */ @UnsupportedAppUsage int mOverscrollDistance; int mOverscrollDistance; /** /** * Maximum distance to overfling during edge effects * Maximum distance to overfling during edge effects */ */ @UnsupportedAppUsage int mOverflingDistance; int mOverflingDistance; // These two EdgeGlows are always set and used together. // These two EdgeGlows are always set and used together. Loading @@ -675,11 +704,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Tracks the state of the top edge glow. * Tracks the state of the top edge glow. */ */ @UnsupportedAppUsage private EdgeEffect mEdgeGlowTop; private EdgeEffect mEdgeGlowTop; /** /** * Tracks the state of the bottom edge glow. * Tracks the state of the bottom edge glow. */ */ @UnsupportedAppUsage private EdgeEffect mEdgeGlowBottom; private EdgeEffect mEdgeGlowBottom; /** /** Loading Loading @@ -1418,6 +1449,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @hide * @hide */ */ @Override @Override @UnsupportedAppUsage protected boolean isVerticalScrollBarHidden() { protected boolean isVerticalScrollBarHidden() { return isFastScrollEnabled(); return isFastScrollEnabled(); } } Loading Loading @@ -1469,6 +1501,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Notify our scroll listener (if there is one) of a change in scroll state * Notify our scroll listener (if there is one) of a change in scroll state */ */ @UnsupportedAppUsage void invokeOnItemScrollListener() { void invokeOnItemScrollListener() { if (mFastScroll != null) { if (mFastScroll != null) { mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); Loading Loading @@ -1691,7 +1724,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te static class SavedState extends BaseSavedState { static class SavedState extends BaseSavedState { long selectedId; long selectedId; @UnsupportedAppUsage long firstId; long firstId; @UnsupportedAppUsage int viewTop; int viewTop; int position; int position; int height; int height; Loading Loading @@ -2228,6 +2263,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te } } } } @UnsupportedAppUsage private boolean canScrollUp() { private boolean canScrollUp() { boolean canScrollUp; boolean canScrollUp; // 0th element is not visible // 0th element is not visible Loading @@ -2244,6 +2280,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te return canScrollUp; return canScrollUp; } } @UnsupportedAppUsage private boolean canScrollDown() { private boolean canScrollDown() { boolean canScrollDown; boolean canScrollDown; int count = getChildCount(); int count = getChildCount(); Loading Loading @@ -2571,6 +2608,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te positionSelector(position, sel, false, -1, -1); positionSelector(position, sel, false, -1, -1); } } @UnsupportedAppUsage private void positionSelector(int position, View sel, boolean manageHotspot, float x, float y) { private void positionSelector(int position, View sel, boolean manageHotspot, float x, float y) { final boolean positionChanged = position != mSelectorPosition; final boolean positionChanged = position != mSelectorPosition; if (position != INVALID_POSITION) { if (position != INVALID_POSITION) { Loading Loading @@ -2857,6 +2895,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrollDown = down; mScrollDown = down; } } @UnsupportedAppUsage void updateSelectorState() { void updateSelectorState() { final Drawable selector = mSelector; final Drawable selector = mSelector; if (selector != null && selector.isStateful()) { if (selector != null && selector.isStateful()) { Loading Loading @@ -3219,6 +3258,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te return false; return false; } } @UnsupportedAppUsage boolean performLongPress(final View child, boolean performLongPress(final View child, final int longPressPosition, final long longPressId) { final int longPressPosition, final long longPressId) { return performLongPress( return performLongPress( Loading @@ -3229,6 +3269,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te CheckForLongPress.INVALID_COORD); CheckForLongPress.INVALID_COORD); } } @UnsupportedAppUsage boolean performLongPress(final View child, boolean performLongPress(final View child, final int longPressPosition, final long longPressId, float x, float y) { final int longPressPosition, final long longPressId, float x, float y) { // CHOICE_MODE_MULTIPLE_MODAL takes over long press. // CHOICE_MODE_MULTIPLE_MODAL takes over long press. Loading Loading @@ -4555,6 +4596,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * * * @param newState The new scroll state. * @param newState The new scroll state. */ */ @UnsupportedAppUsage void reportScrollStateChange(int newState) { void reportScrollStateChange(int newState) { if (newState != mLastScrollState) { if (newState != mLastScrollState) { if (mOnScrollListener != null) { if (mOnScrollListener != null) { Loading @@ -4574,6 +4616,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Tracks the decay of a fling scroll * Tracks the decay of a fling scroll */ */ @UnsupportedAppUsage private final OverScroller mScroller; private final OverScroller mScroller; /** /** Loading Loading @@ -4618,6 +4661,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScroller = new OverScroller(getContext()); mScroller = new OverScroller(getContext()); } } @UnsupportedAppUsage void start(int initialVelocity) { void start(int initialVelocity) { int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0; int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0; mLastFlingY = initialY; mLastFlingY = initialY; Loading Loading @@ -4695,6 +4739,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te postOnAnimation(this); postOnAnimation(this); } } @UnsupportedAppUsage void endFling() { void endFling() { mTouchMode = TOUCH_MODE_REST; mTouchMode = TOUCH_MODE_REST; Loading Loading @@ -4949,6 +4994,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te smoothScrollBy(distance, duration, false, false); smoothScrollBy(distance, duration, false, false); } } @UnsupportedAppUsage void smoothScrollBy(int distance, int duration, boolean linear, void smoothScrollBy(int distance, int duration, boolean linear, boolean suppressEndFlingStateChangeCall) { boolean suppressEndFlingStateChangeCall) { if (mFlingRunnable == null) { if (mFlingRunnable == null) { Loading Loading @@ -5091,6 +5137,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @param incrementalDeltaY Change in deltaY from the previous event. * @param incrementalDeltaY Change in deltaY from the previous event. * @return true if we're already at the beginning/end of the list and have nothing to do. * @return true if we're already at the beginning/end of the list and have nothing to do. */ */ @UnsupportedAppUsage boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { final int childCount = getChildCount(); final int childCount = getChildCount(); if (childCount == 0) { if (childCount == 0) { Loading Loading @@ -5326,6 +5373,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @param y Where the user touched * @param y Where the user touched * @return The position of the first (or only) item in the row containing y * @return The position of the first (or only) item in the row containing y */ */ @UnsupportedAppUsage abstract int findMotionRow(int y); abstract int findMotionRow(int y); /** /** Loading Loading @@ -5358,6 +5406,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * If there is a selection returns false. * If there is a selection returns false. * Otherwise resurrects the selection and returns true if resurrected. * Otherwise resurrects the selection and returns true if resurrected. */ */ @UnsupportedAppUsage boolean resurrectSelectionIfNeeded() { boolean resurrectSelectionIfNeeded() { if (mSelectedPosition < 0 && resurrectSelection()) { if (mSelectedPosition < 0 && resurrectSelection()) { updateSelectorState(); updateSelectorState(); Loading Loading @@ -6523,6 +6572,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"), @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"), @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER") @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER") }) }) @UnsupportedAppUsage int viewType; int viewType; /** /** Loading Loading @@ -6550,6 +6600,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * scrap heap. * scrap heap. * @hide * @hide */ */ @UnsupportedAppUsage int scrappedFromPosition; int scrappedFromPosition; /** /** Loading Loading @@ -6619,6 +6670,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @see android.widget.AbsListView.RecyclerListener * @see android.widget.AbsListView.RecyclerListener */ */ class RecycleBin { class RecycleBin { @UnsupportedAppUsage private RecyclerListener mRecyclerListener; private RecyclerListener mRecyclerListener; /** /** Loading Loading @@ -6700,6 +6752,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Clears the scrap heap. * Clears the scrap heap. */ */ @UnsupportedAppUsage void clear() { void clear() { if (mViewTypeCount == 1) { if (mViewTypeCount == 1) { final ArrayList<View> scrap = mCurrentScrap; final ArrayList<View> scrap = mCurrentScrap; Loading core/java/android/widget/AbsSeekBar.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.widget; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Nullable; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.content.res.TypedArray; Loading @@ -43,6 +44,7 @@ import com.android.internal.R; public abstract class AbsSeekBar extends ProgressBar { public abstract class AbsSeekBar extends ProgressBar { private final Rect mTempRect = new Rect(); private final Rect mTempRect = new Rect(); @UnsupportedAppUsage private Drawable mThumb; private Drawable mThumb; private ColorStateList mThumbTintList = null; private ColorStateList mThumbTintList = null; private PorterDuff.Mode mThumbTintMode = null; private PorterDuff.Mode mThumbTintMode = null; Loading @@ -56,17 +58,20 @@ public abstract class AbsSeekBar extends ProgressBar { private boolean mHasTickMarkTintMode = false; private boolean mHasTickMarkTintMode = false; private int mThumbOffset; private int mThumbOffset; @UnsupportedAppUsage private boolean mSplitTrack; private boolean mSplitTrack; /** /** * On touch, this offset plus the scaled value from the position of the * On touch, this offset plus the scaled value from the position of the * touch will form the progress value. Usually 0. * touch will form the progress value. Usually 0. */ */ @UnsupportedAppUsage float mTouchProgressOffset; float mTouchProgressOffset; /** /** * Whether this is user seekable. * Whether this is user seekable. */ */ @UnsupportedAppUsage boolean mIsUserSeekable = true; boolean mIsUserSeekable = true; /** /** Loading @@ -76,10 +81,12 @@ public abstract class AbsSeekBar extends ProgressBar { private int mKeyProgressIncrement = 1; private int mKeyProgressIncrement = 1; private static final int NO_ALPHA = 0xFF; private static final int NO_ALPHA = 0xFF; @UnsupportedAppUsage private float mDisabledAlpha; private float mDisabledAlpha; private int mScaledTouchSlop; private int mScaledTouchSlop; private float mTouchDownX; private float mTouchDownX; @UnsupportedAppUsage private boolean mIsDragging; private boolean mIsDragging; public AbsSeekBar(Context context) { public AbsSeekBar(Context context) { Loading Loading @@ -729,6 +736,7 @@ public abstract class AbsSeekBar extends ProgressBar { /** /** * Draw the thumb. * Draw the thumb. */ */ @UnsupportedAppUsage void drawThumb(Canvas canvas) { void drawThumb(Canvas canvas) { if (mThumb != null) { if (mThumb != null) { final int saveCount = canvas.save(); final int saveCount = canvas.save(); Loading Loading @@ -834,6 +842,7 @@ public abstract class AbsSeekBar extends ProgressBar { } } } } @UnsupportedAppUsage private void trackTouchEvent(MotionEvent event) { private void trackTouchEvent(MotionEvent event) { final int x = Math.round(event.getX()); final int x = Math.round(event.getX()); final int y = Math.round(event.getY()); final int y = Math.round(event.getY()); Loading core/java/android/widget/ActionMenuPresenter.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.animation.PropertyValuesHolder; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Nullable; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.res.Configuration; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.Resources; Loading Loading @@ -586,6 +587,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter * Dismiss all popup menus - overflow and submenus. * Dismiss all popup menus - overflow and submenus. * @return true if popups were dismissed, false otherwise. (This can be because none were open.) * @return true if popups were dismissed, false otherwise. (This can be because none were open.) */ */ @UnsupportedAppUsage public boolean dismissPopupMenus() { public boolean dismissPopupMenus() { boolean result = hideOverflowMenu(); boolean result = hideOverflowMenu(); result |= hideSubMenus(); result |= hideSubMenus(); Loading @@ -608,6 +610,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter /** /** * @return true if the overflow menu is currently showing * @return true if the overflow menu is currently showing */ */ @UnsupportedAppUsage public boolean isOverflowMenuShowing() { public boolean isOverflowMenuShowing() { return mOverflowPopup != null && mOverflowPopup.isShowing(); return mOverflowPopup != null && mOverflowPopup.isShowing(); } } Loading Loading @@ -766,6 +769,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter } } @Override @Override @UnsupportedAppUsage public Parcelable onSaveInstanceState() { public Parcelable onSaveInstanceState() { SavedState state = new SavedState(); SavedState state = new SavedState(); state.openSubMenuId = mOpenSubMenuId; state.openSubMenuId = mOpenSubMenuId; Loading @@ -773,6 +777,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter } } @Override @Override @UnsupportedAppUsage public void onRestoreInstanceState(Parcelable state) { public void onRestoreInstanceState(Parcelable state) { SavedState saved = (SavedState) state; SavedState saved = (SavedState) state; if (saved.openSubMenuId > 0) { if (saved.openSubMenuId > 0) { Loading Loading
config/hiddenapi-light-greylist.txt +0 −619 File changed.Preview size limit exceeded, changes collapsed. Show changes
config/hiddenapi-vendor-list.txt +0 −1 Original line number Original line Diff line number Diff line Loading @@ -251,7 +251,6 @@ Landroid/view/IWindowManager;->getStableInsets(ILandroid/graphics/Rect;)V Landroid/view/IWindowManager;->overridePendingAppTransitionMultiThumbFuture(Landroid/view/IAppTransitionAnimationSpecsFuture;Landroid/os/IRemoteCallback;Z)V Landroid/view/IWindowManager;->overridePendingAppTransitionMultiThumbFuture(Landroid/view/IAppTransitionAnimationSpecsFuture;Landroid/os/IRemoteCallback;Z)V Landroid/view/IWindowManager;->overridePendingAppTransitionRemote(Landroid/view/RemoteAnimationAdapter;)V Landroid/view/IWindowManager;->overridePendingAppTransitionRemote(Landroid/view/RemoteAnimationAdapter;)V Landroid/view/IWindowManager;->setNavBarVirtualKeyHapticFeedbackEnabled(Z)V Landroid/view/IWindowManager;->setNavBarVirtualKeyHapticFeedbackEnabled(Z)V Landroid/widget/ListView;->lookForSelectablePosition(IZ)I Lcom/android/ims/ImsConfigListener;->onSetFeatureResponse(IIII)V Lcom/android/ims/ImsConfigListener;->onSetFeatureResponse(IIII)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionConferenceStateUpdated(Lcom/android/ims/internal/IImsCallSession;Landroid/telephony/ims/ImsConferenceState;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionConferenceStateUpdated(Lcom/android/ims/internal/IImsCallSession;Landroid/telephony/ims/ImsConferenceState;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionHandover(Lcom/android/ims/internal/IImsCallSession;IILandroid/telephony/ims/ImsReasonInfo;)V Lcom/android/ims/internal/IImsCallSessionListener;->callSessionHandover(Lcom/android/ims/internal/IImsCallSession;IILandroid/telephony/ims/ImsReasonInfo;)V Loading
core/java/android/widget/AbsListView.java +53 −0 Original line number Original line Diff line number Diff line Loading @@ -20,6 +20,7 @@ import android.annotation.ColorInt; import android.annotation.DrawableRes; import android.annotation.DrawableRes; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.TestApi; import android.annotation.TestApi; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.Intent; import android.content.Intent; import android.content.res.Configuration; import android.content.res.Configuration; Loading Loading @@ -248,6 +249,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Controls CHOICE_MODE_MULTIPLE_MODAL. null when inactive. * Controls CHOICE_MODE_MULTIPLE_MODAL. null when inactive. */ */ @UnsupportedAppUsage ActionMode mChoiceActionMode; ActionMode mChoiceActionMode; /** /** Loading Loading @@ -276,16 +278,19 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Controls how the next layout will happen * Controls how the next layout will happen */ */ @UnsupportedAppUsage int mLayoutMode = LAYOUT_NORMAL; int mLayoutMode = LAYOUT_NORMAL; /** /** * Should be used by subclasses to listen to changes in the dataset * Should be used by subclasses to listen to changes in the dataset */ */ @UnsupportedAppUsage AdapterDataSetObserver mDataSetObserver; AdapterDataSetObserver mDataSetObserver; /** /** * The adapter containing the data to be displayed by this view * The adapter containing the data to be displayed by this view */ */ @UnsupportedAppUsage ListAdapter mAdapter; ListAdapter mAdapter; /** /** Loading @@ -311,22 +316,26 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The drawable used to draw the selector * The drawable used to draw the selector */ */ @UnsupportedAppUsage Drawable mSelector; Drawable mSelector; /** /** * The current position of the selector in the list. * The current position of the selector in the list. */ */ @UnsupportedAppUsage int mSelectorPosition = INVALID_POSITION; int mSelectorPosition = INVALID_POSITION; /** /** * Defines the selector's location and dimension at drawing time * Defines the selector's location and dimension at drawing time */ */ @UnsupportedAppUsage Rect mSelectorRect = new Rect(); Rect mSelectorRect = new Rect(); /** /** * The data set used to store unused views that should be reused during the next layout * The data set used to store unused views that should be reused during the next layout * to avoid creating new ones * to avoid creating new ones */ */ @UnsupportedAppUsage final RecycleBin mRecycler = new RecycleBin(); final RecycleBin mRecycler = new RecycleBin(); /** /** Loading @@ -337,6 +346,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The selection's top padding * The selection's top padding */ */ @UnsupportedAppUsage int mSelectionTopPadding = 0; int mSelectionTopPadding = 0; /** /** Loading @@ -347,6 +357,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The selection's bottom padding * The selection's bottom padding */ */ @UnsupportedAppUsage int mSelectionBottomPadding = 0; int mSelectionBottomPadding = 0; /** /** Loading Loading @@ -379,6 +390,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The position of the view that received the down motion event * The position of the view that received the down motion event */ */ @UnsupportedAppUsage int mMotionPosition; int mMotionPosition; /** /** Loading @@ -399,12 +411,14 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The Y value associated with the the down motion event * The Y value associated with the the down motion event */ */ @UnsupportedAppUsage int mMotionY; int mMotionY; /** /** * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or * One of TOUCH_MODE_REST, TOUCH_MODE_DOWN, TOUCH_MODE_TAP, TOUCH_MODE_SCROLL, or * TOUCH_MODE_DONE_WAITING * TOUCH_MODE_DONE_WAITING */ */ @UnsupportedAppUsage int mTouchMode = TOUCH_MODE_REST; int mTouchMode = TOUCH_MODE_REST; /** /** Loading @@ -420,16 +434,19 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Determines speed during touch scrolling * Determines speed during touch scrolling */ */ @UnsupportedAppUsage private VelocityTracker mVelocityTracker; private VelocityTracker mVelocityTracker; /** /** * Handles one frame of a fling * Handles one frame of a fling */ */ @UnsupportedAppUsage private FlingRunnable mFlingRunnable; private FlingRunnable mFlingRunnable; /** /** * Handles scrolling between positions within the list. * Handles scrolling between positions within the list. */ */ @UnsupportedAppUsage AbsPositionScroller mPositionScroller; AbsPositionScroller mPositionScroller; /** /** Loading Loading @@ -463,11 +480,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Optional callback to notify client when scroll position has changed * Optional callback to notify client when scroll position has changed */ */ @UnsupportedAppUsage private OnScrollListener mOnScrollListener; private OnScrollListener mOnScrollListener; /** /** * Keeps track of our accessory window * Keeps track of our accessory window */ */ @UnsupportedAppUsage PopupWindow mPopup; PopupWindow mPopup; /** /** Loading Loading @@ -501,6 +520,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te */ */ int mResurrectToPosition = INVALID_POSITION; int mResurrectToPosition = INVALID_POSITION; @UnsupportedAppUsage private ContextMenuInfo mContextMenuInfo = null; private ContextMenuInfo mContextMenuInfo = null; /** /** Loading Loading @@ -547,11 +567,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The last CheckForLongPress runnable we posted, if any * The last CheckForLongPress runnable we posted, if any */ */ @UnsupportedAppUsage private CheckForLongPress mPendingCheckForLongPress; private CheckForLongPress mPendingCheckForLongPress; /** /** * The last CheckForTap runnable we posted, if any * The last CheckForTap runnable we posted, if any */ */ @UnsupportedAppUsage private CheckForTap mPendingCheckForTap; private CheckForTap mPendingCheckForTap; /** /** Loading Loading @@ -590,6 +612,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * The select child's view (from the adapter's getView) is enabled. * The select child's view (from the adapter's getView) is enabled. */ */ @UnsupportedAppUsage private boolean mIsChildViewEnabled; private boolean mIsChildViewEnabled; /** /** Loading @@ -606,6 +629,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Helper object that renders and controls the fast scroll thumb. * Helper object that renders and controls the fast scroll thumb. */ */ @UnsupportedAppUsage private FastScroller mFastScroll; private FastScroller mFastScroll; /** /** Loading @@ -616,6 +640,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te private boolean mGlobalLayoutListenerAddedFilter; private boolean mGlobalLayoutListenerAddedFilter; @UnsupportedAppUsage private int mTouchSlop; private int mTouchSlop; private float mDensityScale; private float mDensityScale; Loading @@ -627,6 +652,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te private Runnable mClearScrollingCache; private Runnable mClearScrollingCache; Runnable mPositionScrollAfterLayout; Runnable mPositionScrollAfterLayout; private int mMinimumVelocity; private int mMinimumVelocity; @UnsupportedAppUsage private int mMaximumVelocity; private int mMaximumVelocity; private float mVelocityScale = 1.0f; private float mVelocityScale = 1.0f; Loading @@ -651,6 +677,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * ID of the active pointer. This is used to retain consistency during * ID of the active pointer. This is used to retain consistency during * drags/flings if multiple pointers are used. * drags/flings if multiple pointers are used. */ */ @UnsupportedAppUsage private int mActivePointerId = INVALID_POINTER; private int mActivePointerId = INVALID_POINTER; /** /** Loading @@ -662,11 +689,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Maximum distance to overscroll by during edge effects * Maximum distance to overscroll by during edge effects */ */ @UnsupportedAppUsage int mOverscrollDistance; int mOverscrollDistance; /** /** * Maximum distance to overfling during edge effects * Maximum distance to overfling during edge effects */ */ @UnsupportedAppUsage int mOverflingDistance; int mOverflingDistance; // These two EdgeGlows are always set and used together. // These two EdgeGlows are always set and used together. Loading @@ -675,11 +704,13 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Tracks the state of the top edge glow. * Tracks the state of the top edge glow. */ */ @UnsupportedAppUsage private EdgeEffect mEdgeGlowTop; private EdgeEffect mEdgeGlowTop; /** /** * Tracks the state of the bottom edge glow. * Tracks the state of the bottom edge glow. */ */ @UnsupportedAppUsage private EdgeEffect mEdgeGlowBottom; private EdgeEffect mEdgeGlowBottom; /** /** Loading Loading @@ -1418,6 +1449,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @hide * @hide */ */ @Override @Override @UnsupportedAppUsage protected boolean isVerticalScrollBarHidden() { protected boolean isVerticalScrollBarHidden() { return isFastScrollEnabled(); return isFastScrollEnabled(); } } Loading Loading @@ -1469,6 +1501,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Notify our scroll listener (if there is one) of a change in scroll state * Notify our scroll listener (if there is one) of a change in scroll state */ */ @UnsupportedAppUsage void invokeOnItemScrollListener() { void invokeOnItemScrollListener() { if (mFastScroll != null) { if (mFastScroll != null) { mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); mFastScroll.onScroll(mFirstPosition, getChildCount(), mItemCount); Loading Loading @@ -1691,7 +1724,9 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te static class SavedState extends BaseSavedState { static class SavedState extends BaseSavedState { long selectedId; long selectedId; @UnsupportedAppUsage long firstId; long firstId; @UnsupportedAppUsage int viewTop; int viewTop; int position; int position; int height; int height; Loading Loading @@ -2228,6 +2263,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te } } } } @UnsupportedAppUsage private boolean canScrollUp() { private boolean canScrollUp() { boolean canScrollUp; boolean canScrollUp; // 0th element is not visible // 0th element is not visible Loading @@ -2244,6 +2280,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te return canScrollUp; return canScrollUp; } } @UnsupportedAppUsage private boolean canScrollDown() { private boolean canScrollDown() { boolean canScrollDown; boolean canScrollDown; int count = getChildCount(); int count = getChildCount(); Loading Loading @@ -2571,6 +2608,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te positionSelector(position, sel, false, -1, -1); positionSelector(position, sel, false, -1, -1); } } @UnsupportedAppUsage private void positionSelector(int position, View sel, boolean manageHotspot, float x, float y) { private void positionSelector(int position, View sel, boolean manageHotspot, float x, float y) { final boolean positionChanged = position != mSelectorPosition; final boolean positionChanged = position != mSelectorPosition; if (position != INVALID_POSITION) { if (position != INVALID_POSITION) { Loading Loading @@ -2857,6 +2895,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScrollDown = down; mScrollDown = down; } } @UnsupportedAppUsage void updateSelectorState() { void updateSelectorState() { final Drawable selector = mSelector; final Drawable selector = mSelector; if (selector != null && selector.isStateful()) { if (selector != null && selector.isStateful()) { Loading Loading @@ -3219,6 +3258,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te return false; return false; } } @UnsupportedAppUsage boolean performLongPress(final View child, boolean performLongPress(final View child, final int longPressPosition, final long longPressId) { final int longPressPosition, final long longPressId) { return performLongPress( return performLongPress( Loading @@ -3229,6 +3269,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te CheckForLongPress.INVALID_COORD); CheckForLongPress.INVALID_COORD); } } @UnsupportedAppUsage boolean performLongPress(final View child, boolean performLongPress(final View child, final int longPressPosition, final long longPressId, float x, float y) { final int longPressPosition, final long longPressId, float x, float y) { // CHOICE_MODE_MULTIPLE_MODAL takes over long press. // CHOICE_MODE_MULTIPLE_MODAL takes over long press. Loading Loading @@ -4555,6 +4596,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * * * @param newState The new scroll state. * @param newState The new scroll state. */ */ @UnsupportedAppUsage void reportScrollStateChange(int newState) { void reportScrollStateChange(int newState) { if (newState != mLastScrollState) { if (newState != mLastScrollState) { if (mOnScrollListener != null) { if (mOnScrollListener != null) { Loading @@ -4574,6 +4616,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Tracks the decay of a fling scroll * Tracks the decay of a fling scroll */ */ @UnsupportedAppUsage private final OverScroller mScroller; private final OverScroller mScroller; /** /** Loading Loading @@ -4618,6 +4661,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te mScroller = new OverScroller(getContext()); mScroller = new OverScroller(getContext()); } } @UnsupportedAppUsage void start(int initialVelocity) { void start(int initialVelocity) { int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0; int initialY = initialVelocity < 0 ? Integer.MAX_VALUE : 0; mLastFlingY = initialY; mLastFlingY = initialY; Loading Loading @@ -4695,6 +4739,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te postOnAnimation(this); postOnAnimation(this); } } @UnsupportedAppUsage void endFling() { void endFling() { mTouchMode = TOUCH_MODE_REST; mTouchMode = TOUCH_MODE_REST; Loading Loading @@ -4949,6 +4994,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te smoothScrollBy(distance, duration, false, false); smoothScrollBy(distance, duration, false, false); } } @UnsupportedAppUsage void smoothScrollBy(int distance, int duration, boolean linear, void smoothScrollBy(int distance, int duration, boolean linear, boolean suppressEndFlingStateChangeCall) { boolean suppressEndFlingStateChangeCall) { if (mFlingRunnable == null) { if (mFlingRunnable == null) { Loading Loading @@ -5091,6 +5137,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @param incrementalDeltaY Change in deltaY from the previous event. * @param incrementalDeltaY Change in deltaY from the previous event. * @return true if we're already at the beginning/end of the list and have nothing to do. * @return true if we're already at the beginning/end of the list and have nothing to do. */ */ @UnsupportedAppUsage boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { boolean trackMotionScroll(int deltaY, int incrementalDeltaY) { final int childCount = getChildCount(); final int childCount = getChildCount(); if (childCount == 0) { if (childCount == 0) { Loading Loading @@ -5326,6 +5373,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @param y Where the user touched * @param y Where the user touched * @return The position of the first (or only) item in the row containing y * @return The position of the first (or only) item in the row containing y */ */ @UnsupportedAppUsage abstract int findMotionRow(int y); abstract int findMotionRow(int y); /** /** Loading Loading @@ -5358,6 +5406,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * If there is a selection returns false. * If there is a selection returns false. * Otherwise resurrects the selection and returns true if resurrected. * Otherwise resurrects the selection and returns true if resurrected. */ */ @UnsupportedAppUsage boolean resurrectSelectionIfNeeded() { boolean resurrectSelectionIfNeeded() { if (mSelectedPosition < 0 && resurrectSelection()) { if (mSelectedPosition < 0 && resurrectSelection()) { updateSelectorState(); updateSelectorState(); Loading Loading @@ -6523,6 +6572,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"), @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_IGNORE, to = "ITEM_VIEW_TYPE_IGNORE"), @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER") @ViewDebug.IntToString(from = ITEM_VIEW_TYPE_HEADER_OR_FOOTER, to = "ITEM_VIEW_TYPE_HEADER_OR_FOOTER") }) }) @UnsupportedAppUsage int viewType; int viewType; /** /** Loading Loading @@ -6550,6 +6600,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * scrap heap. * scrap heap. * @hide * @hide */ */ @UnsupportedAppUsage int scrappedFromPosition; int scrappedFromPosition; /** /** Loading Loading @@ -6619,6 +6670,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te * @see android.widget.AbsListView.RecyclerListener * @see android.widget.AbsListView.RecyclerListener */ */ class RecycleBin { class RecycleBin { @UnsupportedAppUsage private RecyclerListener mRecyclerListener; private RecyclerListener mRecyclerListener; /** /** Loading Loading @@ -6700,6 +6752,7 @@ public abstract class AbsListView extends AdapterView<ListAdapter> implements Te /** /** * Clears the scrap heap. * Clears the scrap heap. */ */ @UnsupportedAppUsage void clear() { void clear() { if (mViewTypeCount == 1) { if (mViewTypeCount == 1) { final ArrayList<View> scrap = mCurrentScrap; final ArrayList<View> scrap = mCurrentScrap; Loading
core/java/android/widget/AbsSeekBar.java +9 −0 Original line number Original line Diff line number Diff line Loading @@ -18,6 +18,7 @@ package android.widget; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Nullable; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.res.ColorStateList; import android.content.res.ColorStateList; import android.content.res.TypedArray; import android.content.res.TypedArray; Loading @@ -43,6 +44,7 @@ import com.android.internal.R; public abstract class AbsSeekBar extends ProgressBar { public abstract class AbsSeekBar extends ProgressBar { private final Rect mTempRect = new Rect(); private final Rect mTempRect = new Rect(); @UnsupportedAppUsage private Drawable mThumb; private Drawable mThumb; private ColorStateList mThumbTintList = null; private ColorStateList mThumbTintList = null; private PorterDuff.Mode mThumbTintMode = null; private PorterDuff.Mode mThumbTintMode = null; Loading @@ -56,17 +58,20 @@ public abstract class AbsSeekBar extends ProgressBar { private boolean mHasTickMarkTintMode = false; private boolean mHasTickMarkTintMode = false; private int mThumbOffset; private int mThumbOffset; @UnsupportedAppUsage private boolean mSplitTrack; private boolean mSplitTrack; /** /** * On touch, this offset plus the scaled value from the position of the * On touch, this offset plus the scaled value from the position of the * touch will form the progress value. Usually 0. * touch will form the progress value. Usually 0. */ */ @UnsupportedAppUsage float mTouchProgressOffset; float mTouchProgressOffset; /** /** * Whether this is user seekable. * Whether this is user seekable. */ */ @UnsupportedAppUsage boolean mIsUserSeekable = true; boolean mIsUserSeekable = true; /** /** Loading @@ -76,10 +81,12 @@ public abstract class AbsSeekBar extends ProgressBar { private int mKeyProgressIncrement = 1; private int mKeyProgressIncrement = 1; private static final int NO_ALPHA = 0xFF; private static final int NO_ALPHA = 0xFF; @UnsupportedAppUsage private float mDisabledAlpha; private float mDisabledAlpha; private int mScaledTouchSlop; private int mScaledTouchSlop; private float mTouchDownX; private float mTouchDownX; @UnsupportedAppUsage private boolean mIsDragging; private boolean mIsDragging; public AbsSeekBar(Context context) { public AbsSeekBar(Context context) { Loading Loading @@ -729,6 +736,7 @@ public abstract class AbsSeekBar extends ProgressBar { /** /** * Draw the thumb. * Draw the thumb. */ */ @UnsupportedAppUsage void drawThumb(Canvas canvas) { void drawThumb(Canvas canvas) { if (mThumb != null) { if (mThumb != null) { final int saveCount = canvas.save(); final int saveCount = canvas.save(); Loading Loading @@ -834,6 +842,7 @@ public abstract class AbsSeekBar extends ProgressBar { } } } } @UnsupportedAppUsage private void trackTouchEvent(MotionEvent event) { private void trackTouchEvent(MotionEvent event) { final int x = Math.round(event.getX()); final int x = Math.round(event.getX()); final int y = Math.round(event.getY()); final int y = Math.round(event.getY()); Loading
core/java/android/widget/ActionMenuPresenter.java +5 −0 Original line number Original line Diff line number Diff line Loading @@ -22,6 +22,7 @@ import android.animation.ObjectAnimator; import android.animation.PropertyValuesHolder; import android.animation.PropertyValuesHolder; import android.annotation.NonNull; import android.annotation.NonNull; import android.annotation.Nullable; import android.annotation.Nullable; import android.annotation.UnsupportedAppUsage; import android.content.Context; import android.content.Context; import android.content.res.Configuration; import android.content.res.Configuration; import android.content.res.Resources; import android.content.res.Resources; Loading Loading @@ -586,6 +587,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter * Dismiss all popup menus - overflow and submenus. * Dismiss all popup menus - overflow and submenus. * @return true if popups were dismissed, false otherwise. (This can be because none were open.) * @return true if popups were dismissed, false otherwise. (This can be because none were open.) */ */ @UnsupportedAppUsage public boolean dismissPopupMenus() { public boolean dismissPopupMenus() { boolean result = hideOverflowMenu(); boolean result = hideOverflowMenu(); result |= hideSubMenus(); result |= hideSubMenus(); Loading @@ -608,6 +610,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter /** /** * @return true if the overflow menu is currently showing * @return true if the overflow menu is currently showing */ */ @UnsupportedAppUsage public boolean isOverflowMenuShowing() { public boolean isOverflowMenuShowing() { return mOverflowPopup != null && mOverflowPopup.isShowing(); return mOverflowPopup != null && mOverflowPopup.isShowing(); } } Loading Loading @@ -766,6 +769,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter } } @Override @Override @UnsupportedAppUsage public Parcelable onSaveInstanceState() { public Parcelable onSaveInstanceState() { SavedState state = new SavedState(); SavedState state = new SavedState(); state.openSubMenuId = mOpenSubMenuId; state.openSubMenuId = mOpenSubMenuId; Loading @@ -773,6 +777,7 @@ public class ActionMenuPresenter extends BaseMenuPresenter } } @Override @Override @UnsupportedAppUsage public void onRestoreInstanceState(Parcelable state) { public void onRestoreInstanceState(Parcelable state) { SavedState saved = (SavedState) state; SavedState saved = (SavedState) state; if (saved.openSubMenuId > 0) { if (saved.openSubMenuId > 0) { Loading