Home | History | Annotate | Download | only in androidfw

Lines Matching defs:pContents

1305     SortedVector<AssetDir::FileInfo>* pContents;
1315 pContents = new SortedVector<AssetDir::FileInfo>;
1328 delete pContents;
1357 pContents->add(tmp);
1369 pContents = scanDirLocked(path);
1370 if (pContents == NULL)
1383 count = pContents->size();
1389 name = pContents->itemAt(i).getFileName().string();
1407 ALOGD("HEY: size=%d removing %d\n", (int)pContents->size(), i);
1408 pContents->removeAt(i);
1414 mergeInfoLocked(pMergedInfo, pContents);
1416 delete pContents;
1434 SortedVector<AssetDir::FileInfo>* pContents = NULL;
1445 pContents = new SortedVector<AssetDir::FileInfo>;
1476 pContents->add(info);
1480 return pContents;
1608 * If an entry for a file exists in both "pMergedInfo" and "pContents",
1609 * we use the newer "pContents" entry.
1612 const SortedVector<AssetDir::FileInfo>* pContents)
1621 * (2) Take the elements from pContents and shove them into pMergedInfo.
1640 contMax = pContents->size();
1646 pNewSorted->add(pContents->itemAt(contIdx));
1652 } else if (pMergedInfo->itemAt(mergeIdx) == pContents->itemAt(contIdx))
1655 pNewSorted->add(pContents->itemAt(contIdx));
1658 } else if (pMergedInfo->itemAt(mergeIdx) < pContents->itemAt(contIdx))
1665 assert(pContents->itemAt(contIdx) < pMergedInfo->itemAt(mergeIdx));
1666 pNewSorted->add(pContents->itemAt(contIdx));
1679 for (i = pContents->size() -1; i >= 0; i--) {
1684 if (strcmp(pContents->itemAt(i).mFileName,
1694 pMergedInfo->add(pContents->itemAt(i));
1779 SortedVector<AssetDir::FileInfo>* pContents;
1792 pContents = scanDirLocked(fullPath);
1793 if (pContents == NULL) {
1801 for (int i = 0; i < (int) pContents->size(); i++) {
1802 if (pContents->itemAt(i).getFileType() == kFileTypeDirectory) {
1804 subdir.appendPath(pContents->itemAt(i).getFileName());
1819 pContents->add(tmpInfo);
1824 * "pContents". It's the same value for each entry, so this will
1827 for (int i = 0; i < (int) pContents->size(); i++) {
1828 const AssetDir::FileInfo& info = pContents->itemAt(i);
1829 pContents->editItemAt(i).setFileName(partialPath.appendPathCopy(info.getFileName()));
1832 mergeInfoLocked(pMergedInfo, pContents);
1833 delete pContents;