Home | History | Annotate | Download | only in utils

Lines Matching refs:pContents

1234     SortedVector<AssetDir::FileInfo>* pContents;
1244 pContents = new SortedVector<AssetDir::FileInfo>;
1257 delete pContents;
1286 pContents->add(tmp);
1298 pContents = scanDirLocked(path);
1299 if (pContents == NULL)
1312 count = pContents->size();
1318 name = pContents->itemAt(i).getFileName().string();
1336 LOGD("HEY: size=%d removing %d\n", (int)pContents->size(), i);
1337 pContents->removeAt(i);
1343 mergeInfoLocked(pMergedInfo, pContents);
1345 delete pContents;
1363 SortedVector<AssetDir::FileInfo>* pContents = NULL;
1374 pContents = new SortedVector<AssetDir::FileInfo>;
1405 pContents->add(info);
1409 return pContents;
1532 * If an entry for a file exists in both "pMergedInfo" and "pContents",
1533 * we use the newer "pContents" entry.
1536 const SortedVector<AssetDir::FileInfo>* pContents)
1545 * (2) Take the elements from pContents and shove them into pMergedInfo.
1564 contMax = pContents->size();
1570 pNewSorted->add(pContents->itemAt(contIdx));
1576 } else if (pMergedInfo->itemAt(mergeIdx) == pContents->itemAt(contIdx))
1579 pNewSorted->add(pContents->itemAt(contIdx));
1582 } else if (pMergedInfo->itemAt(mergeIdx) < pContents->itemAt(contIdx))
1589 assert(pContents->itemAt(contIdx) < pMergedInfo->itemAt(mergeIdx));
1590 pNewSorted->add(pContents->itemAt(contIdx));
1603 for (i = pContents->size() -1; i >= 0; i--) {
1608 if (strcmp(pContents->itemAt(i).mFileName,
1618 pMergedInfo->add(pContents->itemAt(i));
1703 SortedVector<AssetDir::FileInfo>* pContents;
1716 pContents = scanDirLocked(fullPath);
1717 if (pContents == NULL) {
1725 for (int i = 0; i < (int) pContents->size(); i++) {
1726 if (pContents->itemAt(i).getFileType() == kFileTypeDirectory) {
1728 subdir.appendPath(pContents->itemAt(i).getFileName());
1743 pContents->add(tmpInfo);
1748 * "pContents". It's the same value for each entry, so this will
1751 for (int i = 0; i < (int) pContents->size(); i++) {
1752 const AssetDir::FileInfo& info = pContents->itemAt(i);
1753 pContents->editItemAt(i).setFileName(partialPath.appendPathCopy(info.getFileName()));
1756 mergeInfoLocked(pMergedInfo, pContents);