Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5eb07f37 authored by Haoran Zhang's avatar Haoran Zhang
Browse files

[Autofill Framework] Add a new key for specifying virtual structure type in ViewStructure extra.

Verified the key can be used and assist structure dump contains the
value by testing on a local build, where I added a placeholder value into the ViewStructure extra. Screenshot of assist structure dumped at debug build: https://screenshot.googleplex.com/6CGGfUgu8kVqx6E

Bug: b/331269835
Test: Tested key is dumped locally with a debug build
Change-Id: I22cbf06c2f3ddf7f35b2063f59d72176056c3f27
parent ea89bae8
Loading
Loading
Loading
Loading
+15 −0
Original line number Diff line number Diff line
@@ -75,6 +75,21 @@ public abstract class ViewStructure {
    public static final String EXTRA_FIRST_ACTIVE_POSITION =
            "android.view.ViewStructure.extra.FIRST_ACTIVE_POSITION";

    /**
     * Key used for writing the type of the view that generated the virtual structure of its
     * children.
     *
     * For example, if the virtual structure is generated by a webview, the value would be
     * "WebView". If the virtual structure is generated by a compose view, then the value would be
     * "ComposeView". The value is of type String.
     *
     * This value is added to mainly help with debugging purpose.
     *
     * @hide
     */
    public static final String EXTRA_VIRTUAL_STRUCTURE_TYPE =
            "android.view.ViewStructure.extra.VIRTUAL_STRUCTURE_TYPE";

    /**
     * Set the identifier for this view.
     *