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

Commit b47ddd4a authored by Ember Rose's avatar Ember Rose
Browse files

Run inspector annotation processor on framework

Test: m
Bug: 117616612
Change-Id: Ifb013cf576e57818493a52aefec9729ecca4ac08
parent a319c644
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -778,6 +778,7 @@ java_defaults {
        "--multi-dex",
    ],

    plugins: ["view-inspector-annotation-processor"],
}

filegroup {
+4 −5
Original line number Diff line number Diff line
@@ -11396,7 +11396,6 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     * @see #setAssistBlocked(boolean)
     * @attr ref android.R.styleable#View_assistBlocked
     */
    @InspectableProperty
    public boolean isAssistBlocked() {
        return (mPrivateFlags3 & PFLAG3_ASSIST_BLOCKED) != 0;
    }
@@ -18272,7 +18271,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @attr ref android.R.styleable#View_scrollbarDefaultDelayBeforeFade
     */
    @InspectableProperty
    @InspectableProperty(name = "scrollbarDefaultDelayBeforeFade")
    public int getScrollBarDefaultDelayBeforeFade() {
        return mScrollCache == null ? ViewConfiguration.getScrollDefaultDelay() :
                mScrollCache.scrollBarDefaultDelayBeforeFade;
@@ -18297,7 +18296,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @attr ref android.R.styleable#View_scrollbarFadeDuration
     */
    @InspectableProperty
    @InspectableProperty(name = "scrollbarFadeDuration")
    public int getScrollBarFadeDuration() {
        return mScrollCache == null ? ViewConfiguration.getScrollBarFadeDuration() :
                mScrollCache.scrollBarFadeDuration;
@@ -18322,7 +18321,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
     *
     * @attr ref android.R.styleable#View_scrollbarSize
     */
    @InspectableProperty
    @InspectableProperty(name = "scrollbarSize")
    public int getScrollBarSize() {
        return mScrollCache == null ? ViewConfiguration.get(mContext).getScaledScrollBarSize() :
                mScrollCache.scrollBarSize;
@@ -18382,7 +18381,7 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
            @ViewDebug.IntToString(from = SCROLLBARS_OUTSIDE_OVERLAY, to = "OUTSIDE_OVERLAY"),
            @ViewDebug.IntToString(from = SCROLLBARS_OUTSIDE_INSET, to = "OUTSIDE_INSET")
    })
    @InspectableProperty(enumMapping = {
    @InspectableProperty(name = "scrollbarStyle", enumMapping = {
            @EnumMap(value = SCROLLBARS_INSIDE_OVERLAY, name = "insideOverlay"),
            @EnumMap(value = SCROLLBARS_INSIDE_INSET, name = "insideInset"),
            @EnumMap(value = SCROLLBARS_OUTSIDE_OVERLAY, name = "outsideOverlay"),
+2 −0
Original line number Diff line number Diff line
@@ -352,6 +352,8 @@ public final class InspectablePropertyProcessor implements ModelProcessor {
                } else {
                    return Property.Type.OBJECT;
                }
            case ARRAY:
                return Property.Type.OBJECT;
            default:
                throw new ProcessingException(
                        String.format("Unsupported return type %s.", returnType),