Loading api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -49099,7 +49099,7 @@ package android.view { method public void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent); method public void onProvideAutofillStructure(android.view.ViewStructure, int); method public void onProvideAutofillVirtualStructure(android.view.ViewStructure, int); method public boolean onProvideContentCaptureStructure(android.view.ViewStructure, int); method public void onProvideContentCaptureStructure(android.view.ViewStructure, int); method public void onProvideStructure(android.view.ViewStructure); method public void onProvideVirtualStructure(android.view.ViewStructure); method public android.view.PointerIcon onResolvePointerIcon(android.view.MotionEvent, int); api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -7517,7 +7517,7 @@ package android.webkit { method public default void onMovedToDisplay(int, android.content.res.Configuration); method public abstract void onOverScrolled(int, int, boolean, boolean); method public default void onProvideAutofillVirtualStructure(android.view.ViewStructure, int); method public default boolean onProvideContentCaptureStructure(android.view.ViewStructure, int); method public default void onProvideContentCaptureStructure(android.view.ViewStructure, int); method public abstract void onProvideVirtualStructure(android.view.ViewStructure); method public abstract void onScrollChanged(int, int, int, int); method public abstract void onSizeChanged(int, int, int, int); Loading core/java/android/view/View.java +6 −12 Original line number Diff line number Diff line Loading @@ -8152,6 +8152,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * the user, and the activity rendering the view is enabled for Content Capture) is laid out and * is visible. * * <p>The populated structure is then passed to the service through * {@link IntelligenceManager#notifyViewAppeared(ViewStructure)}. * * <p><b>Note: </b>the following methods of the {@code structure} will be ignored: * <ul> * <li>{@link ViewStructure#setChildCount(int)} Loading @@ -8165,16 +8168,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * <li>{@link ViewStructure#setHtmlInfo(android.view.ViewStructure.HtmlInfo)} * <li>{@link ViewStructure#setDataIsSensitive(boolean)} * </ul> * * @return whether the IntelligenceService should be notified that the view was added (through * the {@link IntelligenceManager#notifyViewAppeared(ViewStructure)} method) to the view * hierarchy. Most views should return {@code true} here, but views that contains virtual * hierarchy might opt to return {@code false} and notify the manager independently, as the * virtual views are rendered. */ public boolean onProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { public void onProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { onProvideStructure(structure, VIEW_STRUCTURE_FOR_CONTENT_CAPTURE, flags); return true; } /** @hide */ Loading Loading @@ -8986,10 +8982,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (type == CONTENT_CAPTURE_NOTIFICATION_TYPE_APPEARED) { final ViewStructure structure = im.newViewStructure(this); boolean notifyMgr = onProvideContentCaptureStructure(structure, /* flags= */ 0); if (notifyMgr) { onProvideContentCaptureStructure(structure, /* flags= */ 0); im.notifyViewAppeared(structure); } mPrivateFlags4 |= PFLAG4_NOTIFIED_CONTENT_CAPTURE_ADDED; } else { if ((mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_ADDED) == 0) { core/java/android/webkit/WebView.java +2 −2 Original line number Diff line number Diff line Loading @@ -2695,8 +2695,8 @@ public class WebView extends AbsoluteLayout } @Override public boolean onProvideContentCaptureStructure(ViewStructure structure, int flags) { return mProvider.getViewDelegate().onProvideContentCaptureStructure(structure, flags); public void onProvideContentCaptureStructure(ViewStructure structure, int flags) { mProvider.getViewDelegate().onProvideContentCaptureStructure(structure, flags); } @Override Loading core/java/android/webkit/WebViewProvider.java +1 −2 Original line number Diff line number Diff line Loading @@ -341,10 +341,9 @@ public interface WebViewProvider { return true; // true is the default value returned by View.isVisibleToUserForAutofill() } default boolean onProvideContentCaptureStructure( default void onProvideContentCaptureStructure( @SuppressWarnings("unused") android.view.ViewStructure structure, @SuppressWarnings("unused") int flags) { return false; // WebView provides virtual views and is responsible to notify manager } public AccessibilityNodeProvider getAccessibilityNodeProvider(); Loading Loading
api/current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -49099,7 +49099,7 @@ package android.view { method public void onPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent); method public void onProvideAutofillStructure(android.view.ViewStructure, int); method public void onProvideAutofillVirtualStructure(android.view.ViewStructure, int); method public boolean onProvideContentCaptureStructure(android.view.ViewStructure, int); method public void onProvideContentCaptureStructure(android.view.ViewStructure, int); method public void onProvideStructure(android.view.ViewStructure); method public void onProvideVirtualStructure(android.view.ViewStructure); method public android.view.PointerIcon onResolvePointerIcon(android.view.MotionEvent, int);
api/system-current.txt +1 −1 Original line number Diff line number Diff line Loading @@ -7517,7 +7517,7 @@ package android.webkit { method public default void onMovedToDisplay(int, android.content.res.Configuration); method public abstract void onOverScrolled(int, int, boolean, boolean); method public default void onProvideAutofillVirtualStructure(android.view.ViewStructure, int); method public default boolean onProvideContentCaptureStructure(android.view.ViewStructure, int); method public default void onProvideContentCaptureStructure(android.view.ViewStructure, int); method public abstract void onProvideVirtualStructure(android.view.ViewStructure); method public abstract void onScrollChanged(int, int, int, int); method public abstract void onSizeChanged(int, int, int, int); Loading
core/java/android/view/View.java +6 −12 Original line number Diff line number Diff line Loading @@ -8152,6 +8152,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * the user, and the activity rendering the view is enabled for Content Capture) is laid out and * is visible. * * <p>The populated structure is then passed to the service through * {@link IntelligenceManager#notifyViewAppeared(ViewStructure)}. * * <p><b>Note: </b>the following methods of the {@code structure} will be ignored: * <ul> * <li>{@link ViewStructure#setChildCount(int)} Loading @@ -8165,16 +8168,9 @@ public class View implements Drawable.Callback, KeyEvent.Callback, * <li>{@link ViewStructure#setHtmlInfo(android.view.ViewStructure.HtmlInfo)} * <li>{@link ViewStructure#setDataIsSensitive(boolean)} * </ul> * * @return whether the IntelligenceService should be notified that the view was added (through * the {@link IntelligenceManager#notifyViewAppeared(ViewStructure)} method) to the view * hierarchy. Most views should return {@code true} here, but views that contains virtual * hierarchy might opt to return {@code false} and notify the manager independently, as the * virtual views are rendered. */ public boolean onProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { public void onProvideContentCaptureStructure(@NonNull ViewStructure structure, int flags) { onProvideStructure(structure, VIEW_STRUCTURE_FOR_CONTENT_CAPTURE, flags); return true; } /** @hide */ Loading Loading @@ -8986,10 +8982,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, if (type == CONTENT_CAPTURE_NOTIFICATION_TYPE_APPEARED) { final ViewStructure structure = im.newViewStructure(this); boolean notifyMgr = onProvideContentCaptureStructure(structure, /* flags= */ 0); if (notifyMgr) { onProvideContentCaptureStructure(structure, /* flags= */ 0); im.notifyViewAppeared(structure); } mPrivateFlags4 |= PFLAG4_NOTIFIED_CONTENT_CAPTURE_ADDED; } else { if ((mPrivateFlags4 & PFLAG4_NOTIFIED_CONTENT_CAPTURE_ADDED) == 0) {
core/java/android/webkit/WebView.java +2 −2 Original line number Diff line number Diff line Loading @@ -2695,8 +2695,8 @@ public class WebView extends AbsoluteLayout } @Override public boolean onProvideContentCaptureStructure(ViewStructure structure, int flags) { return mProvider.getViewDelegate().onProvideContentCaptureStructure(structure, flags); public void onProvideContentCaptureStructure(ViewStructure structure, int flags) { mProvider.getViewDelegate().onProvideContentCaptureStructure(structure, flags); } @Override Loading
core/java/android/webkit/WebViewProvider.java +1 −2 Original line number Diff line number Diff line Loading @@ -341,10 +341,9 @@ public interface WebViewProvider { return true; // true is the default value returned by View.isVisibleToUserForAutofill() } default boolean onProvideContentCaptureStructure( default void onProvideContentCaptureStructure( @SuppressWarnings("unused") android.view.ViewStructure structure, @SuppressWarnings("unused") int flags) { return false; // WebView provides virtual views and is responsible to notify manager } public AccessibilityNodeProvider getAccessibilityNodeProvider(); Loading