Lines Matching refs:sym
44 OSObject *cache[numStrCache], *str, *sym; in testArray() local
205 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testArray()
206 count += array2->setObject(sym, 0); in testArray()
208 sym->release(); in testArray()
217 for (i = array1->getCount() - 1; (sym = array2->__takeObject(0)); i--) { in testArray()
218 str = array1->replaceObject(sym, i); in testArray()
220 count2 += (sym != str); in testArray()
224 if (sym) { in testArray()
225 sym->release(); in testArray()
249 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testArray()
250 count += array1->setObject(sym); in testArray()
251 sym->release(); in testArray()
256 for (i = 0; (sym = array1->getObject(i));) { in testArray()
257 if (sym->getRetainCount() == 1) { in testArray()
269 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testArray()
271 if (str == sym) { in testArray()
277 sym->release(); in testArray()
297 OSObject *cache[numStrCache], *str, *sym; in testSet() local
445 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testSet()
446 count += set1->setObject(sym); in testSet()
447 sym->release(); in testSet()
454 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testSet()
455 count += set1->member(sym); in testSet()
456 count2 += sym->getRetainCount(); in testSet()
457 sym->release(); in testSet()
477 sym = (OSObject *) OSSymbol::withCStringNoCopy(strCache[i]); in testSet()
478 count += array->setObject(sym); in testSet()
479 sym->release(); in testSet()
488 while ((sym = set1->getAnyObject())) { in testSet()
489 count -= set1->__takeObject(sym); in testSet()
490 count2 -= sym->getRetainCount(); in testSet()
491 sym->release(); in testSet()
513 const OSSymbol *symCache[numStrCache], *sym; in testDictionary() local
545 sym = OSSymbol::withCStringNoCopy(strCache[0]); in testDictionary()
548 TEST_ASSERT('D', "1h", dict1->setObject((OSObject *) sym, sym)); in testDictionary()
549 TEST_ASSERT('D', "1i", (OSObject *) sym == dict1->getObject(sym)); in testDictionary()
550 sym->release(); in testDictionary()
551 TEST_ASSERT('D', "1i", 2 == sym->getRetainCount()); in testDictionary()
567 sym = OSSymbol::withCStringNoCopy(strCache[i]); in testDictionary()
568 if (1 == sym->getRetainCount()) { in testDictionary()
569 symCache[numSymbols++] = sym; in testDictionary()
571 sym->release(); in testDictionary()
609 sym = OSSymbol::withCStringNoCopy(strCache[i]); in testDictionary()
610 if (1 == sym->getRetainCount()) { in testDictionary()
612 symCache[numSymbols] = sym; in testDictionary()
615 sym->release(); in testDictionary()
666 sym = OSSymbol::withCStringNoCopy(strCache[i]); in testDictionary()
667 if (1 == sym->getRetainCount()) { in testDictionary()
669 symCache[numSymbols] = sym; in testDictionary()
672 sym->release(); in testDictionary()
681 sym = symCache[i]; in testDictionary()
682 count1 += ((OSObject *) sym == dict1->setObject((OSObject *) sym, in testDictionary()
683 sym->getCStringNoCopy())); in testDictionary()
684 count2 += (sym->getRetainCount() == 3); in testDictionary()
704 sym = symCache[i]; in testDictionary()
707 count1 += ((OSString *) sym == replacedObject); in testDictionary()
709 count2 += (sym->getRetainCount() == 2); in testDictionary()
717 sym = symCache[i]; in testDictionary()
719 count1 += (str == dict2->__takeObject(sym)); in testDictionary()
721 count2 += (sym->getRetainCount() == 1); in testDictionary()
722 sym->release(); in testDictionary()
747 const OSSymbol *symCache[numStrCache], *sym; in testIterator() local
756 sym = OSSymbol::withCStringNoCopy(strCache[i]); in testIterator()
757 if (1 == sym->getRetainCount()) { in testIterator()
759 symCache[numSymbols] = sym; in testIterator()
762 sym->release(); in testIterator()
926 for (i = 0; (sym = (const IOSymbol *) iter1->getNextObject()); i++) { in testIterator()
930 count3 += (symCache[i] == sym); in testIterator()
943 sym = (const OSSymbol *) iter1->getNextObject(); in testIterator()
946 sym = (const OSSymbol *) bigReturn->getObject(0); in testIterator()
949 sym = 0; in testIterator()
952 if (!sym) { in testIterator()
956 count1 += (symCache[i] == sym); in testIterator()