MCPcopy Create free account
hub / github.com/CyanogenMod/android_frameworks_base / compileResourceFile

Function compileResourceFile

tools/aapt/ResourceTable.cpp:755–1683  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

753}
754
755status_t compileResourceFile(Bundle* bundle,
756 const sp<AaptAssets>& assets,
757 const sp<AaptFile>& in,
758 const ResTable_config& defParams,
759 const bool overwrite,
760 ResourceTable* outTable)
761{
762 ResXMLTree block;
763 status_t err = parseXMLResource(in, &block, false, true);
764 if (err != NO_ERROR) {
765 return err;
766 }
767
768 // Top-level tag.
769 const String16 resources16("resources");
770
771 // Identifier declaration tags.
772 const String16 declare_styleable16("declare-styleable");
773 const String16 attr16("attr");
774
775 // Data creation organizational tags.
776 const String16 string16("string");
777 const String16 drawable16("drawable");
778 const String16 color16("color");
779 const String16 bool16("bool");
780 const String16 integer16("integer");
781 const String16 dimen16("dimen");
782 const String16 fraction16("fraction");
783 const String16 style16("style");
784 const String16 plurals16("plurals");
785 const String16 array16("array");
786 const String16 string_array16("string-array");
787 const String16 integer_array16("integer-array");
788 const String16 public16("public");
789 const String16 public_padding16("public-padding");
790 const String16 private_symbols16("private-symbols");
791 const String16 java_symbol16("java-symbol");
792 const String16 add_resource16("add-resource");
793 const String16 skip16("skip");
794 const String16 eat_comment16("eat-comment");
795
796 // Data creation tags.
797 const String16 bag16("bag");
798 const String16 item16("item");
799
800 // Attribute type constants.
801 const String16 enum16("enum");
802
803 // plural values
804 const String16 other16("other");
805 const String16 quantityOther16("^other");
806 const String16 zero16("zero");
807 const String16 quantityZero16("^zero");
808 const String16 one16("one");
809 const String16 quantityOne16("^one");
810 const String16 two16("two");
811 const String16 quantityTwo16("^two");
812 const String16 few16("few");

Callers 1

buildResourcesFunction · 0.85

Calls 15

parseXMLResourceFunction · 0.85
SourcePosClass · 0.85
compileAttributeFunction · 0.85
parse_flagsFunction · 0.85
parseAndAddBagFunction · 0.85
localeIsDefinedFunction · 0.85
parseAndAddEntryFunction · 0.85
isWhitespaceFunction · 0.85
stringMethod · 0.80
getPrintableSourceMethod · 0.80
getElementNameMethod · 0.80
indexOfAttributeMethod · 0.80

Tested by

no test coverage detected