Loading api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -52312,7 +52312,7 @@ package android.view.accessibility { method public java.util.List<android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction> getActionList(); method @Deprecated public int getActions(); method public java.util.List<java.lang.String> getAvailableExtraData(); method public void getBoundsInParent(android.graphics.Rect); method @Deprecated public void getBoundsInParent(android.graphics.Rect); method public void getBoundsInScreen(android.graphics.Rect); method public android.view.accessibility.AccessibilityNodeInfo getChild(int); method public int getChildCount(); Loading Loading @@ -52381,7 +52381,7 @@ package android.view.accessibility { method public boolean removeChild(android.view.View, int); method public void setAccessibilityFocused(boolean); method public void setAvailableExtraData(java.util.List<java.lang.String>); method public void setBoundsInParent(android.graphics.Rect); method @Deprecated public void setBoundsInParent(android.graphics.Rect); method public void setBoundsInScreen(android.graphics.Rect); method public void setCanOpenPopup(boolean); method public void setCheckable(boolean); core/java/android/view/accessibility/AccessibilityNodeInfo.java +16 −2 Original line number Diff line number Diff line Loading @@ -1682,17 +1682,29 @@ public class AccessibilityNodeInfo implements Parcelable { } /** * Gets the node bounds in parent coordinates. * Gets the node bounds in the viewParent's coordinates. * {@link #getParent()} does not represent the source's viewParent. * Instead it represents the result of {@link View#getParentForAccessibility()}, * which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. * So this method is not reliable. * * @param outBounds The output node bounds. * @deprecated Use {@link #getBoundsInScreen(Rect)} instead. * */ @Deprecated public void getBoundsInParent(Rect outBounds) { outBounds.set(mBoundsInParent.left, mBoundsInParent.top, mBoundsInParent.right, mBoundsInParent.bottom); } /** * Sets the node bounds in parent coordinates. * Sets the node bounds in the viewParent's coordinates. * {@link #getParent()} does not represent the source's viewParent. * Instead it represents the result of {@link View#getParentForAccessibility()}, * which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. * So this method is not reliable. * * <p> * <strong>Note:</strong> Cannot be called from an * {@link android.accessibilityservice.AccessibilityService}. Loading @@ -1702,7 +1714,9 @@ public class AccessibilityNodeInfo implements Parcelable { * @param bounds The node bounds. * * @throws IllegalStateException If called from an AccessibilityService. * @deprecated Accessibility services should not care about these bounds. */ @Deprecated public void setBoundsInParent(Rect bounds) { enforceNotSealed(); mBoundsInParent.set(bounds.left, bounds.top, bounds.right, bounds.bottom); Loading Loading
api/current.txt +2 −2 Original line number Diff line number Diff line Loading @@ -52312,7 +52312,7 @@ package android.view.accessibility { method public java.util.List<android.view.accessibility.AccessibilityNodeInfo.AccessibilityAction> getActionList(); method @Deprecated public int getActions(); method public java.util.List<java.lang.String> getAvailableExtraData(); method public void getBoundsInParent(android.graphics.Rect); method @Deprecated public void getBoundsInParent(android.graphics.Rect); method public void getBoundsInScreen(android.graphics.Rect); method public android.view.accessibility.AccessibilityNodeInfo getChild(int); method public int getChildCount(); Loading Loading @@ -52381,7 +52381,7 @@ package android.view.accessibility { method public boolean removeChild(android.view.View, int); method public void setAccessibilityFocused(boolean); method public void setAvailableExtraData(java.util.List<java.lang.String>); method public void setBoundsInParent(android.graphics.Rect); method @Deprecated public void setBoundsInParent(android.graphics.Rect); method public void setBoundsInScreen(android.graphics.Rect); method public void setCanOpenPopup(boolean); method public void setCheckable(boolean);
core/java/android/view/accessibility/AccessibilityNodeInfo.java +16 −2 Original line number Diff line number Diff line Loading @@ -1682,17 +1682,29 @@ public class AccessibilityNodeInfo implements Parcelable { } /** * Gets the node bounds in parent coordinates. * Gets the node bounds in the viewParent's coordinates. * {@link #getParent()} does not represent the source's viewParent. * Instead it represents the result of {@link View#getParentForAccessibility()}, * which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. * So this method is not reliable. * * @param outBounds The output node bounds. * @deprecated Use {@link #getBoundsInScreen(Rect)} instead. * */ @Deprecated public void getBoundsInParent(Rect outBounds) { outBounds.set(mBoundsInParent.left, mBoundsInParent.top, mBoundsInParent.right, mBoundsInParent.bottom); } /** * Sets the node bounds in parent coordinates. * Sets the node bounds in the viewParent's coordinates. * {@link #getParent()} does not represent the source's viewParent. * Instead it represents the result of {@link View#getParentForAccessibility()}, * which returns the closest ancestor where {@link View#isImportantForAccessibility()} is true. * So this method is not reliable. * * <p> * <strong>Note:</strong> Cannot be called from an * {@link android.accessibilityservice.AccessibilityService}. Loading @@ -1702,7 +1714,9 @@ public class AccessibilityNodeInfo implements Parcelable { * @param bounds The node bounds. * * @throws IllegalStateException If called from an AccessibilityService. * @deprecated Accessibility services should not care about these bounds. */ @Deprecated public void setBoundsInParent(Rect bounds) { enforceNotSealed(); mBoundsInParent.set(bounds.left, bounds.top, bounds.right, bounds.bottom); Loading