Lines Matching refs:asset
56 void Asset::registerAsset(Asset* asset) in registerAsset() argument
60 asset->mNext = asset->mPrev = NULL; in registerAsset()
62 gHead = gTail = asset; in registerAsset()
64 asset->mPrev = gTail; in registerAsset()
65 gTail->mNext = asset; in registerAsset()
66 gTail = asset; in registerAsset()
70 ALOGI("Creating Asset %p #%d\n", asset, gCount); in registerAsset()
74 void Asset::unregisterAsset(Asset* asset) in unregisterAsset() argument
78 if (gHead == asset) { in unregisterAsset()
79 gHead = asset->mNext; in unregisterAsset()
81 if (gTail == asset) { in unregisterAsset()
82 gTail = asset->mPrev; in unregisterAsset()
84 if (asset->mNext != NULL) { in unregisterAsset()
85 asset->mNext->mPrev = asset->mPrev; in unregisterAsset()
87 if (asset->mPrev != NULL) { in unregisterAsset()
88 asset->mPrev->mNext = asset->mNext; in unregisterAsset()
90 asset->mNext = asset->mPrev = NULL; in unregisterAsset()
93 ALOGI("Destroying Asset in %p #%d\n", asset, gCount); in unregisterAsset()