Lines Matching refs:ite
205 std::unique_ptr<ASystemFontIterator> ite(new ASystemFontIterator()); in ASystemFontIterator_open() local
206 ite->mXmlDoc.reset(xmlReadFile("/system/etc/fonts.xml", nullptr, 0)); in ASystemFontIterator_open()
207 … ite->mCustomizationXmlDoc.reset(xmlReadFile("/product/etc/fonts_customization.xml", nullptr, 0)); in ASystemFontIterator_open()
208 return ite.release(); in ASystemFontIterator_open()
211 void ASystemFontIterator_close(ASystemFontIterator* ite) { in ASystemFontIterator_close() argument
212 delete ite; in ASystemFontIterator_close()
296 AFont* ASystemFontIterator_next(ASystemFontIterator* ite) { in ASystemFontIterator_next() argument
297 LOG_ALWAYS_FATAL_IF(ite == nullptr, "nullptr has passed as iterator argument"); in ASystemFontIterator_next()
298 if (ite->mXmlDoc) { in ASystemFontIterator_next()
299 ite->mFontNode = findNextFontNode(ite->mXmlDoc, ite->mFontNode); in ASystemFontIterator_next()
300 if (ite->mFontNode == nullptr) { in ASystemFontIterator_next()
302 ite->mXmlDoc.reset(); in ASystemFontIterator_next()
303 ite->mFontNode = nullptr; in ASystemFontIterator_next()
306 copyFont(ite->mXmlDoc, ite->mFontNode, font.get(), "/system/fonts/"); in ASystemFontIterator_next()
308 return ASystemFontIterator_next(ite); in ASystemFontIterator_next()
313 if (ite->mCustomizationXmlDoc) { in ASystemFontIterator_next()
315 ite->mFontNode = findNextFontNode(ite->mCustomizationXmlDoc, ite->mFontNode); in ASystemFontIterator_next()
316 if (ite->mFontNode == nullptr) { in ASystemFontIterator_next()
318 ite->mCustomizationXmlDoc.reset(); in ASystemFontIterator_next()
319 ite->mFontNode = nullptr; in ASystemFontIterator_next()
323 copyFont(ite->mCustomizationXmlDoc, ite->mFontNode, font.get(), "/product/fonts/"); in ASystemFontIterator_next()
325 return ASystemFontIterator_next(ite); in ASystemFontIterator_next()