Home | History | Annotate | Download | only in androidfw

Lines Matching refs:pContents

1266     SortedVector<AssetDir::FileInfo>* pContents;
1276 pContents = new SortedVector<AssetDir::FileInfo>;
1289 delete pContents;
1318 pContents->add(tmp);
1330 pContents = scanDirLocked(path);
1331 if (pContents == NULL)
1344 count = pContents->size();
1350 name = pContents->itemAt(i).getFileName().string();
1368 ALOGD("HEY: size=%d removing %d\n", (int)pContents->size(), i);
1369 pContents->removeAt(i);
1375 mergeInfoLocked(pMergedInfo, pContents);
1377 delete pContents;
1395 SortedVector<AssetDir::FileInfo>* pContents = NULL;
1406 pContents = new SortedVector<AssetDir::FileInfo>;
1437 pContents->add(info);
1441 return pContents;
1564 * If an entry for a file exists in both "pMergedInfo" and "pContents",
1565 * we use the newer "pContents" entry.
1568 const SortedVector<AssetDir::FileInfo>* pContents)
1577 * (2) Take the elements from pContents and shove them into pMergedInfo.
1596 contMax = pContents->size();
1602 pNewSorted->add(pContents->itemAt(contIdx));
1608 } else if (pMergedInfo->itemAt(mergeIdx) == pContents->itemAt(contIdx))
1611 pNewSorted->add(pContents->itemAt(contIdx));
1614 } else if (pMergedInfo->itemAt(mergeIdx) < pContents->itemAt(contIdx))
1621 assert(pContents->itemAt(contIdx) < pMergedInfo->itemAt(mergeIdx));
1622 pNewSorted->add(pContents->itemAt(contIdx));
1635 for (i = pContents->size() -1; i >= 0; i--) {
1640 if (strcmp(pContents->itemAt(i).mFileName,
1650 pMergedInfo->add(pContents->itemAt(i));
1735 SortedVector<AssetDir::FileInfo>* pContents;
1748 pContents = scanDirLocked(fullPath);
1749 if (pContents == NULL) {
1757 for (int i = 0; i < (int) pContents->size(); i++) {
1758 if (pContents->itemAt(i).getFileType() == kFileTypeDirectory) {
1760 subdir.appendPath(pContents->itemAt(i).getFileName());
1775 pContents->add(tmpInfo);
1780 * "pContents". It's the same value for each entry, so this will
1783 for (int i = 0; i < (int) pContents->size(); i++) {
1784 const AssetDir::FileInfo& info = pContents->itemAt(i);
1785 pContents->editItemAt(i).setFileName(partialPath.appendPathCopy(info.getFileName()));
1788 mergeInfoLocked(pMergedInfo, pContents);