Search in sources :

Example 1 with Array

use of com.android.aapt.Resources.Array in project jadx by skylot.

the class ResProtoParser method parse.

private ProtoValue parse(Array a) {
    List<ProtoValue> namedValues = new ArrayList<>(a.getElementCount());
    for (int i = 0; i < a.getElementCount(); i++) {
        Array.Element e = a.getElement(i);
        String value = parse(e.getItem());
        namedValues.add(new ProtoValue(value));
    }
    return new ProtoValue().setNamedValues(namedValues);
}
Also used : Array(com.android.aapt.Resources.Array) ArrayList(java.util.ArrayList) ProtoValue(jadx.core.xmlgen.entry.ProtoValue)

Aggregations

Array (com.android.aapt.Resources.Array)1 ProtoValue (jadx.core.xmlgen.entry.ProtoValue)1 ArrayList (java.util.ArrayList)1