Loading api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -42670,6 +42670,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int); api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -45668,6 +45668,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int); api/test-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -42750,6 +42750,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int); core/java/android/view/View.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -5695,6 +5695,18 @@ public class View implements Drawable.Callback, KeyEvent.Callback, return handled; return handled; } } /** * Call this view's OnContextClickListener, if it is defined. * * @param x the x coordinate of the context click * @param y the y coordinate of the context click * @return True if there was an assigned OnContextClickListener that consumed the event, false * otherwise. */ public boolean performContextClick(float x, float y) { return performContextClick(); } /** /** * Call this view's OnContextClickListener, if it is defined. * Call this view's OnContextClickListener, if it is defined. * * Loading Loading @@ -10044,7 +10056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (isContextClickable() && !mInContextButtonPress && !mHasPerformedLongPress if (isContextClickable() && !mInContextButtonPress && !mHasPerformedLongPress && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY || actionButton == MotionEvent.BUTTON_SECONDARY)) { || actionButton == MotionEvent.BUTTON_SECONDARY)) { if (performContextClick()) { if (performContextClick(event.getX(), event.getY())) { mInContextButtonPress = true; mInContextButtonPress = true; setPressed(true, event.getX(), event.getY()); setPressed(true, event.getX(), event.getY()); removeTapCallback(); removeTapCallback(); Loading Loading
api/current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -42670,6 +42670,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int);
api/system-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -45668,6 +45668,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int);
api/test-current.txt +1 −0 Original line number Original line Diff line number Diff line Loading @@ -42750,6 +42750,7 @@ package android.view { method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method protected boolean overScrollBy(int, int, int, int, int, int, int, int, boolean); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performAccessibilityAction(int, android.os.Bundle); method public boolean performClick(); method public boolean performClick(); method public boolean performContextClick(float, float); method public boolean performContextClick(); method public boolean performContextClick(); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int); method public boolean performHapticFeedback(int, int); method public boolean performHapticFeedback(int, int);
core/java/android/view/View.java +13 −1 Original line number Original line Diff line number Diff line Loading @@ -5695,6 +5695,18 @@ public class View implements Drawable.Callback, KeyEvent.Callback, return handled; return handled; } } /** * Call this view's OnContextClickListener, if it is defined. * * @param x the x coordinate of the context click * @param y the y coordinate of the context click * @return True if there was an assigned OnContextClickListener that consumed the event, false * otherwise. */ public boolean performContextClick(float x, float y) { return performContextClick(); } /** /** * Call this view's OnContextClickListener, if it is defined. * Call this view's OnContextClickListener, if it is defined. * * Loading Loading @@ -10044,7 +10056,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (isContextClickable() && !mInContextButtonPress && !mHasPerformedLongPress if (isContextClickable() && !mInContextButtonPress && !mHasPerformedLongPress && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY && (actionButton == MotionEvent.BUTTON_STYLUS_PRIMARY || actionButton == MotionEvent.BUTTON_SECONDARY)) { || actionButton == MotionEvent.BUTTON_SECONDARY)) { if (performContextClick()) { if (performContextClick(event.getX(), event.getY())) { mInContextButtonPress = true; mInContextButtonPress = true; setPressed(true, event.getX(), event.getY()); setPressed(true, event.getX(), event.getY()); removeTapCallback(); removeTapCallback(); Loading