Merge "Add more tracing for obtainStyledAttributes"
am: 2ef6338351
Change-Id: I9f65106687262f180dd62d329c7197cb720def51
This commit is contained in:
@@ -1343,9 +1343,11 @@ public class ResourcesImpl {
|
|||||||
@StyleableRes int[] attrs,
|
@StyleableRes int[] attrs,
|
||||||
@AttrRes int defStyleAttr,
|
@AttrRes int defStyleAttr,
|
||||||
@StyleRes int defStyleRes) {
|
@StyleRes int defStyleRes) {
|
||||||
|
Trace.traceBegin(Trace.TRACE_TAG_RESOURCES, "obtainStyledAttributes");
|
||||||
|
TypedArray array;
|
||||||
synchronized (mKey) {
|
synchronized (mKey) {
|
||||||
final int len = attrs.length;
|
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.
|
// XXX note that for now we only work with compiled XML files.
|
||||||
// To support generic XML files we will need to manually parse
|
// To support generic XML files we will need to manually parse
|
||||||
@@ -1356,8 +1358,9 @@ public class ResourcesImpl {
|
|||||||
array.mDataAddress, array.mIndicesAddress);
|
array.mDataAddress, array.mIndicesAddress);
|
||||||
array.mTheme = wrapper;
|
array.mTheme = wrapper;
|
||||||
array.mXml = parser;
|
array.mXml = parser;
|
||||||
return array;
|
|
||||||
}
|
}
|
||||||
|
Trace.traceEnd(Trace.TRACE_TAG_RESOURCES);
|
||||||
|
return array;
|
||||||
}
|
}
|
||||||
|
|
||||||
@NonNull
|
@NonNull
|
||||||
|
|||||||
Reference in New Issue
Block a user