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

Commit 67c0091f authored by Eric Holk's avatar Eric Holk Committed by android-build-merger
Browse files

Merge "Add more tracing for obtainStyledAttributes" am: 2ef63383 am: 106905df

am: 66a177f9

Change-Id: Ic3155c4c7685e5ea7bdf55eae2d250081d8e12f3
parents 880b41cb 66a177f9
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1349,9 +1349,11 @@ public class ResourcesImpl {
                @StyleableRes int[] attrs,
                @AttrRes int defStyleAttr,
                @StyleRes int defStyleRes) {
            Trace.traceBegin(Trace.TRACE_TAG_RESOURCES, "obtainStyledAttributes");
            TypedArray array;
            synchronized (mKey) {
                final int len = attrs.length;
                final TypedArray array = TypedArray.obtain(wrapper.getResources(), len);
                array = TypedArray.obtain(wrapper.getResources(), len);

                // XXX note that for now we only work with compiled XML files.
                // To support generic XML files we will need to manually parse
@@ -1362,8 +1364,9 @@ public class ResourcesImpl {
                        array.mDataAddress, array.mIndicesAddress);
                array.mTheme = wrapper;
                array.mXml = parser;
                return array;
            }
            Trace.traceEnd(Trace.TRACE_TAG_RESOURCES);
            return array;
        }

        @NonNull