| 753 | } |
| 754 | |
| 755 | status_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"); |
no test coverage detected