Home | History | Annotate | Download | only in aapt

Lines Matching full:size

56         prefixSize = RESOURCES_PREFIX.size();
59 prefixSize = RESOURCES_PRV_PREFIX.size();
66 //printf("namespace: %s\n", String8(String16(namespaceUri, namespaceUri.size()-prefixSize, prefixSize)).string());
68 return String16(namespaceUri, namespaceUri.size()-prefixSize, prefixSize);
92 if (firstTime && text.size() > 0) {
144 curString.size(), false, &errorMsg, true)) {
163 span.span.firstChar = span.span.lastChar = outString->size();
179 curString.size(), false, &errorMsg, true)) {
187 if (spanStack.size() == 0) {
213 if (outString->size() > 0) {
214 span.span.lastChar = outString->size()-1;
243 if (outSpans != NULL && outSpans->size() > 0) {
244 if (curString.size() > 0) {
246 curString.size(), false, &errorMsg, true)) {
285 const size_t N = namespaces.size();
500 if (mElementName.size() != 0) {
503 if (mNamespaceUri.size() != 0) {
548 for (size_t i=0; i<mAttributes.size(); i++) {
561 for (size_t i=0; i<mAttributes.size(); i++) {
599 for (size_t i=0; i<mChildren.size(); i++) {
611 for (size_t i=0; i<mChildren.size(); i++) {
658 mAttributeOrder.add(e.index, mAttributes.size()-1);
691 if (mComment.size() > 0) {
711 size_t N = mChildren.size();
744 const char16_t* e = node->mChars.string()+node->mChars.size()-1;
751 if (e < (node->mChars.string()+node->mChars.size()-1)) {
755 e < (node->mChars.string()+node->mChars.size()-1)) {
772 const size_t N = mAttributes.size();
781 e.string.string(), e.string.size(), true, true,
790 const size_t N = mChildren.size();
808 const size_t N = mAttributes.size();
811 if (e.ns.size() <= 0) continue;
821 if (pkg.size() <= 0) continue;
825 identifierForName(e.name.string(), e.name.size(),
826 attr.string(), attr.size(),
827 pkg.string(), pkg.size());
840 const size_t N = mChildren.size();
868 const size_t N = strings.size();
889 if (resids.size() > 0) {
892 sizeof(ResChunk_header)+(sizeof(uint32_t)*resids.size());
897 idsHeader->size = htodl(resIdsSize);
899 for (size_t i=0; i<resids.size(); i++) {
908 size_t size = dest->getSize()-basePos;
909 hd->header.size = htodl(dest->getSize()-basePos);
915 fprintf(stderr, "**** total xml size: %d / %d%% strings (in %s)\n",
932 if (elemNs.size() > 0) {
937 int N = mAttributes.size();
947 if (attrNs.size() > 0) {
961 getNamespacePrefix().size() > 0
967 int N = mChildren.size();
996 if (st->stack.size() > 0) {
997 st->stack.itemAt(st->stack.size()-1)->addChild(node);
1013 if (st->pendingComment.size() > 0) {
1017 if (st->stack.size() > 0) {
1018 st->stack.itemAt(st->stack.size()-1)->addChild(node);
1036 if (st->stack.size() == 0) {
1039 sp<XMLNode> parent = st->stack.itemAt(st->stack.size()-1);
1040 if (parent != NULL && parent->getChildren().size() > 0) {
1041 node = parent->getChildren()[parent->getChildren().size()-1];
1062 sp<XMLNode> node = st->stack.itemAt(st->stack.size()-1);
1064 if (st->pendingComment.size() > 0) {
1082 sp<XMLNode> node = st->stack.itemAt(st->stack.size()-1);
1094 if (st->pendingComment.size() > 0) {
1106 if (mNamespacePrefix.size() > 0) {
1109 if (mNamespaceUri.size() > 0) {
1112 if (mElementName.size() > 0) {
1116 if (!stripComments && mComment.size() > 0) {
1120 const int NA = mAttributes.size();
1124 if (ae.ns.size() > 0) {
1138 if (mElementName.size() == 0) {
1143 const int NC = mChildren.size();
1155 const int NA = mAttributes.size();
1166 const int NJ = indices->size();
1167 const size_t NR = outResIds->size();
1190 while ((ssize_t)outResIds->size() <= idx) {
1210 const int NC = mChildren.size();
1230 const size_t NA = mAttributes.size();
1231 const size_t NC = mChildren.size();
1234 LOG_ALWAYS_FATAL_IF(NA != mAttributeOrder.size(), "Attributes messed up!");
1248 mComment.size() > 0 ? strings.offsetForString(mComment) : -1);
1249 //if (mComment.size() > 0) {
1260 if (mNamespaceUri.size() > 0) {
1275 if (ae.ns.size() == 0) {
1290 if (mNamespacePrefix.size() > 0) {
1304 cdataExt.typedData.size = htods(sizeof(cdataExt.typedData));
1311 node.header.size = htodl(sizeof(node) + extSize + (sizeof(attr)*NA));
1321 if (ae.ns.size() > 0) {
1333 attr.typedValue.size = htods(sizeof(attr.typedValue));
1359 node.header.size = htodl(sizeof(node)+sizeof(endElementExt));
1370 node.header.size = htodl(sizeof(node)+extSize);