Lines Matching refs:OSSharedPtr
802 OSSharedPtr<IOWorkLoop> wl; in IOWorkLoopTest()
803 OSSharedPtr<IOTimerEventSource> tes; in IOWorkLoopTest()
804 OSSharedPtr<IOInterruptEventSource> ies; in IOWorkLoopTest()
852 OSSharedPtr<OSArray> array = OSArray::withCapacity(8); in OSCollectionTest()
869 OSSharedPtr<OSDictionary> dict = IOService::resourceMatching("hello"); in OSCollectionTest()
880 OSSharedPtr<OSSerializer> serializer = OSSerializer::withBlock(^bool (OSSerialize * s){ in OSCollectionTest()
886 OSSharedPtr<OSString> ab = OSString::withCString("abcdef", 2); in OSCollectionTest()
888 OSSharedPtr<OSString> defgh = OSString::withCString("defgh", 10); in OSCollectionTest()
890 OSSharedPtr<OSString> zyxwvut = OSString::withCString("zyxwvut", 7); in OSCollectionTest()
895 OSSharedPtr<OSNumber> num = OSNumber::withDouble(1234.5678); in OSCollectionTest()
898 OSSharedPtr<OSSerialize> s = OSSerialize::binaryWithCapacity(4096); in OSCollectionTest()
901 OSSharedPtr<OSObject> o = OSUnserializeXML((const char *) s->text(), s->getLength()); in OSCollectionTest()
1045 static OSSharedPtr<OSArraySubclass> withCapacity(unsigned int inCapacity);
1051 OSSharedPtr<OSArraySubclass>
1054 OSSharedPtr<OSArraySubclass> me = OSMakeShared<OSArraySubclass>(); in withCapacity()
1075 static OSSharedPtr<OSCISubclass> withCollection(const OSCollection * inColl);
1080 OSSharedPtr<OSCISubclass>
1083 OSSharedPtr<OSCISubclass> me = OSMakeShared<OSCISubclass>(); in withCollection()
1095 OSSharedPtr<OSArray> array = OSArray::withCapacity(0); in OSCollectionIteratorTests()
1096 OSSharedPtr<OSString> firstObj = OSString::withCString("test object"); in OSCollectionIteratorTests()
1097 OSSharedPtr<OSString> secondObj = OSString::withCString("test object 2"); in OSCollectionIteratorTests()
1099 OSSharedPtr<OSCollectionIterator> osci = NULL; in OSCollectionIteratorTests()
1100 OSSharedPtr<OSCISubclass> osciSubclass = NULL; in OSCollectionIteratorTests()
1138 OSSharedPtr<OSArraySubclass> arraySubclass = OSArraySubclass::withCapacity(0); in OSCollectionIteratorTests()
1315 OSSharedPtr<OSValueObject<T> > test = OSValueObject<T>::create(); in OSDefineValueObjectForDependentType()
1329 OSSharedPtr<OSValueObject<T> > test = OSValueObject<T>::create(); in OSDefineValueObjectForDependentType()
1348 …OSSharedPtr<IOSharedDataQueue> sd = IOSharedDataQueue::withCapacity(DATA_QUEUE_ENTRY_HEADER_SIZE +… in IOSharedDataQueue_44636964()
1405 OSSharedPtr<OSDictionary> matching; in IOServiceTest()
1452 OSSharedPtr<OSDictionary> const dict = OSMakeShared<OSDictionary>(); in OSStaticPtrCastTests()
1453 OSSharedPtr<OSCollection> collection = OSStaticPtrCast<OSCollection>(dict); in OSStaticPtrCastTests()
1457 OSSharedPtr<OSDictionary> const dict = nullptr; in OSStaticPtrCastTests()
1458 OSSharedPtr<OSCollection> collection = OSStaticPtrCast<OSCollection>(dict); in OSStaticPtrCastTests()
1463 OSSharedPtr<OSDictionary> dict = OSMakeShared<OSDictionary>(); in OSStaticPtrCastTests()
1465 …__assert_only OSSharedPtr<OSCollection> collection = OSStaticPtrCast<OSCollection>(os::move(dict)); in OSStaticPtrCastTests()
1470 OSSharedPtr<OSDictionary> dict = nullptr; in OSStaticPtrCastTests()
1471 OSSharedPtr<OSCollection> collection = OSStaticPtrCast<OSCollection>(os::move(dict)); in OSStaticPtrCastTests()
1482 OSSharedPtr<OSDictionary const> const dict = OSMakeShared<OSDictionary>(); in OSConstPtrCastTests()
1483 OSSharedPtr<OSDictionary> dict2 = OSConstPtrCast<OSDictionary>(dict); in OSConstPtrCastTests()
1487 OSSharedPtr<OSDictionary const> const dict = OSMakeShared<OSDictionary>(); in OSConstPtrCastTests()
1488 OSSharedPtr<OSDictionary const> dict2 = OSConstPtrCast<OSDictionary const>(dict); in OSConstPtrCastTests()
1492 OSSharedPtr<OSDictionary const> const dict = nullptr; in OSConstPtrCastTests()
1493 OSSharedPtr<OSDictionary> dict2 = OSConstPtrCast<OSDictionary>(dict); in OSConstPtrCastTests()
1497 OSSharedPtr<OSDictionary const> const dict = nullptr; in OSConstPtrCastTests()
1498 OSSharedPtr<OSDictionary const> dict2 = OSConstPtrCast<OSDictionary const>(dict); in OSConstPtrCastTests()
1504 OSSharedPtr<OSDictionary const> dict = OSMakeShared<OSDictionary>(); in OSConstPtrCastTests()
1506 __assert_only OSSharedPtr<OSDictionary> dict2 = OSConstPtrCast<OSDictionary>(os::move(dict)); in OSConstPtrCastTests()
1511 OSSharedPtr<OSDictionary const> dict = nullptr; in OSConstPtrCastTests()
1512 OSSharedPtr<OSDictionary> dict2 = OSConstPtrCast<OSDictionary>(os::move(dict)); in OSConstPtrCastTests()
1521 OSSharedPtr<OSDictionary> const dict = OSMakeShared<OSDictionary>(); in OSDynamicPtrCastTests()
1523 OSSharedPtr<OSCollection> collection = OSDynamicPtrCast<OSCollection>(dict); in OSDynamicPtrCastTests()
1527 OSSharedPtr<OSArray> array = OSDynamicPtrCast<OSArray>(dict); in OSDynamicPtrCastTests()
1543 OSSharedPtr<OSCollection> collection = OSDynamicPtrCast<OSCollection>(dict); in OSDynamicPtrCastTests()
1545 OSSharedPtr<OSDictionary> newDict = OSDynamicPtrCast<OSDictionary>(os::move(collection)); in OSDynamicPtrCastTests()
1579 OSSharedPtr<OSDictionary> dict = OSDictionary::withCapacity(0); in IOUserNotificationTestThread()
1580 OSSharedPtr<OSString> rootPath = OSString::withCStringNoCopy(":/"); in IOUserNotificationTestThread()
1606 OSSharedPtr<IOTestUserNotification> userNotify = OSMakeShared<IOTestUserNotification>(); in IOUserNotificationTests()
1650 OSSharedPtr<const OSSymbol> name = OSSymbol::withCString("name"); in IOServiceMatchingSharedPtrTests()
1651 OSSharedPtr<const OSSymbol> value = OSSymbol::withCString("value"); in IOServiceMatchingSharedPtrTests()
1654 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1655 OSSharedPtr<OSDictionary> result = IOService::serviceMatching("name", table); in IOServiceMatchingSharedPtrTests()
1661 OSSharedPtr<OSDictionary> result2 = IOService::serviceMatching("name", table); in IOServiceMatchingSharedPtrTests()
1668 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1669 OSSharedPtr<OSDictionary> result = IOService::serviceMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1675 OSSharedPtr<OSDictionary> result2 = IOService::serviceMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1682 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1683 OSSharedPtr<OSDictionary> result = IOService::nameMatching("name", table); in IOServiceMatchingSharedPtrTests()
1689 OSSharedPtr<OSDictionary> result2 = IOService::nameMatching("name", table); in IOServiceMatchingSharedPtrTests()
1696 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1697 OSSharedPtr<OSDictionary> result = IOService::nameMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1703 OSSharedPtr<OSDictionary> result2 = IOService::nameMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1710 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1711 OSSharedPtr<OSDictionary> result = IOService::resourceMatching("name", table); in IOServiceMatchingSharedPtrTests()
1717 OSSharedPtr<OSDictionary> result2 = IOService::resourceMatching("name", table); in IOServiceMatchingSharedPtrTests()
1724 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1725 OSSharedPtr<OSDictionary> result = IOService::resourceMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1731 OSSharedPtr<OSDictionary> result2 = IOService::resourceMatching(name.get(), table); in IOServiceMatchingSharedPtrTests()
1738 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1739 OSSharedPtr<OSDictionary> result = IOService::propertyMatching(name.get(), value.get(), table); in IOServiceMatchingSharedPtrTests()
1745 OSSharedPtr<OSDictionary> result2 = IOService::propertyMatching(name.get(), value.get(), table); in IOServiceMatchingSharedPtrTests()
1752 OSSharedPtr<OSDictionary> table; in IOServiceMatchingSharedPtrTests()
1753 OSSharedPtr<OSDictionary> result = IOService::registryEntryIDMatching(12, table); in IOServiceMatchingSharedPtrTests()
1759 OSSharedPtr<OSDictionary> result2 = IOService::registryEntryIDMatching(12, table); in IOServiceMatchingSharedPtrTests()
1780 OSSharedPtr<OSString> str = OSString::withCString(kIOSystemStateClamshellKey); in IOServiceStateNotificationTests()
1785 OSSharedPtr<OSDictionary> value; in IOServiceStateNotificationTests()
1798 OSSharedPtr<OSArray> array = OSArray::withCapacity(4); in IOServiceStateNotificationTests()
1807 OSSharedPtr<OSSerialize> s = OSSerialize::withCapacity(4096); in IOServiceStateNotificationTests()
1815 OSSharedPtr<IOEventSource> es = in IOServiceStateNotificationTests()
1824 OSSharedPtr<OSSerialize> s = OSSerialize::withCapacity(4096); in IOServiceStateNotificationTests()
1882 OSSharedPtr<IOService> entry; in Test100367284()
1883 OSSharedPtr<IOService> replace; in Test100367284()
1884 OSSharedPtr<IOService> root; in Test100367284()
1902 OSSharedPtr<IOService> a;
1903 OSSharedPtr<IOService> b;
1994 OSSharedPtr<IOWorkLoop> wl = IOWorkLoop::workLoop(); in sysctl_iokittest()
1995 OSSharedPtr<IOCommandGate> cg = IOCommandGate::commandGate(wl.get()); in sysctl_iokittest()
2016 OSSharedPtr<OSData> data = OSData::withCapacity(16); in sysctl_iokittest()
2021 OSSharedPtr<OSIterator> iter; in sysctl_iokittest()
2025 OSSharedPtr<OSDictionary> matchingDict = IOService::nameMatching("XHC1"); in sysctl_iokittest()