Lines Matching defs:array
58 // Create and destroy an array
88 // Check the creation of a sizable OSArray from an array of IOObjects
89 // Also check indexing into the array.
114 // Test array creation from another array by both the setObject method
175 // Test object replacement from one array to another
231 // Test array duplicate removal
283 OSArray *array;
449 // Test array duplicate removal
451 array = OSArray::withCapacity(numStrCache);
454 count += array->setObject(sym);
457 set1 = OSSet::withArray(array, numStrCache);
460 TEST_ASSERT('S', "5b", array->getCount() != set1->getCount());
461 array->release();
534 // Check the creation of a sizable OSDictionary from an array of IOObjects
535 // Also check indexing into the array.
574 // Check the creation of a sizable Dictionary from an array of IOStrings
717 OSArray *array, *bigReturn;
733 // Test the array iterator
736 array = OSArray::withCapacity(numSymbols);
737 TEST_ASSERT('I', "1a", array);
738 if (array) {
741 count1 += array->setObject(cache[i], 0);
744 iter1 = OSCollectionIterator::withCollection(array);
745 iter2 = OSCollectionIterator::withCollection(array);
764 str = (OSString *) array->__takeObject(0);
765 array->setObject(str, 0);
788 TEST_ASSERT('I', "1o", 3 == array->getRetainCount());
789 array->release();