| 750 | } |
| 751 | |
| 752 | String8 |
| 753 | AaptGroupEntry::toDirName(const String8& resType) const |
| 754 | { |
| 755 | String8 s = resType; |
| 756 | if (this->mcc != "") { |
| 757 | if (s.length() > 0) { |
| 758 | s += "-"; |
| 759 | } |
| 760 | s += mcc; |
| 761 | } |
| 762 | if (this->mnc != "") { |
| 763 | if (s.length() > 0) { |
| 764 | s += "-"; |
| 765 | } |
| 766 | s += mnc; |
| 767 | } |
| 768 | if (this->locale != "") { |
| 769 | if (s.length() > 0) { |
| 770 | s += "-"; |
| 771 | } |
| 772 | s += locale; |
| 773 | } |
| 774 | if (this->layoutDirection != "") { |
| 775 | if (s.length() > 0) { |
| 776 | s += "-"; |
| 777 | } |
| 778 | s += layoutDirection; |
| 779 | } |
| 780 | if (this->smallestScreenWidthDp != "") { |
| 781 | if (s.length() > 0) { |
| 782 | s += "-"; |
| 783 | } |
| 784 | s += smallestScreenWidthDp; |
| 785 | } |
| 786 | if (this->screenWidthDp != "") { |
| 787 | if (s.length() > 0) { |
| 788 | s += "-"; |
| 789 | } |
| 790 | s += screenWidthDp; |
| 791 | } |
| 792 | if (this->screenHeightDp != "") { |
| 793 | if (s.length() > 0) { |
| 794 | s += "-"; |
| 795 | } |
| 796 | s += screenHeightDp; |
| 797 | } |
| 798 | if (this->screenLayoutSize != "") { |
| 799 | if (s.length() > 0) { |
| 800 | s += "-"; |
| 801 | } |
| 802 | s += screenLayoutSize; |
| 803 | } |
| 804 | if (this->screenLayoutLong != "") { |
| 805 | if (s.length() > 0) { |
| 806 | s += "-"; |
| 807 | } |
| 808 | s += screenLayoutLong; |
| 809 | } |
no test coverage detected