Home
last modified time | relevance | path

Searched refs:item (Results 1 – 25 of 585) sorted by relevance

12345678910>>...24

/libcore/luni/src/main/java/java/util/concurrent/
DConcurrentLinkedQueue.java149 volatile E item; field in ConcurrentLinkedQueue.Node
156 Node(E item) { in Node() argument
157 UNSAFE.putObject(this, itemOffset, item); in Node()
328 E item = p.item; in poll() local
330 if (item != null && p.casItem(item, null)) { in poll()
335 return item; in poll()
353 E item = p.item; in peek() local
354 if (item != null || (q = p.next) == null) { in peek()
356 return item; in peek()
378 boolean hasItem = (p.item != null); in first()
[all …]
DConcurrentLinkedDeque.java264 volatile E item; field in ConcurrentLinkedDeque.Node
274 Node(E item) { in Node() argument
275 UNSAFE.putObject(this, itemOffset, item); in Node()
430 if (p.item != null) { in unlink()
451 if (p.item != null) { in unlink()
487 (isFirst ? activePred.prev == null : activePred.item != null) && in unlink()
488 (isLast ? activeSucc.next == null : activeSucc.item != null)) { in unlink()
508 if (p.item != null || (q = p.next) == null) { in unlinkFirst()
512 (p.next == null || p.item != null) && in unlinkFirst()
542 if (p.item != null || (q = p.prev) == null) { in unlinkLast()
[all …]
DLinkedTransferQueue.java421 volatile Object item; // initially non-null if isData; CASed to match field in LinkedTransferQueue.Node
439 Node(Object item, boolean isData) { in Node() argument
440 UNSAFE.putObject(this, itemOffset, item); // relaxed write in Node()
471 Object x = item; in isMatched()
479 return !isData && item == null; in isUnmatchedRequest()
490 return d != haveData && (x = item) != this && (x != null) == d; in cannotPrecede()
498 Object x = item; in tryMatchData()
560 static <E> E cast(Object item) { in cast() argument
562 return (E) item; in cast()
585 Object item = p.item; in xfer() local
[all …]
DExchanger.java287 Object item; // This thread's current item field in Exchanger.Node
334 private final Object arenaExchange(Object item, boolean timed, long ns) { in arenaExchange() argument
341 Object v = q.item; // release in arenaExchange()
342 q.match = item; in arenaExchange()
349 p.item = item; // offer in arenaExchange()
357 p.item = null; // clear for next use in arenaExchange()
385 p.item = null; in arenaExchange()
397 p.item = null; // clear offer in arenaExchange()
427 private final Object slotExchange(Object item, boolean timed, long ns) { in slotExchange() argument
436 Object v = q.item; in slotExchange()
[all …]
DLinkedBlockingDeque.java82 E item; field in LinkedBlockingDeque.Node
101 item = x; in Node()
229 E item = f.item; in unlinkFirst() local
230 f.item = null; in unlinkFirst()
239 return item; in unlinkFirst()
251 E item = l.item; in unlinkLast() local
252 l.item = null; in unlinkLast()
261 return item; in unlinkLast()
278 x.item = null; in unlink()
538 return (first == null) ? null : first.item; in peekFirst()
[all …]
DLinkedBlockingQueue.java91 E item; field in LinkedBlockingQueue.Node
101 Node(E x) { item = x; } in Node()
184 E x = first.item; in dequeue()
185 first.item = null; in dequeue()
482 return first.item; in peek()
495 p.item = null; in unlink()
521 if (o.equals(p.item)) { in remove()
545 if (o.equals(p.item)) in contains()
573 a[k++] = p.item; in toArray()
626 a[k++] = (T)p.item; in toArray()
[all …]
/libcore/luni/src/test/java/libcore/xml/
DDomTest.java103 private Element item; field in DomTest
138 sp = (Entity) doctype.getEntities().item(0); in setUp()
141 png = (Notation) doctype.getNotations().item(0); in setUp()
146 item = (Element) menu.getChildNodes().item(1); in setUp()
147 itemXmlns = item.getAttributeNode("xmlns"); in setUp()
148 itemXmlnsA = item.getAttributeNode("xmlns:a"); in setUp()
149 name = (Element) item.getChildNodes().item(1); in setUp()
152 waffles = (Text) name.getChildNodes().item(0); in setUp()
153 description = (Element) item.getChildNodes().item(3); in setUp()
154 descriptionText1 = (Text) description.getChildNodes().item(0); in setUp()
[all …]
DSimpleBuilderTest.java71 Element one = (Element) list.item(0); in testGoodFile1()
72 Element two = (Element) list.item(1); in testGoodFile1()
73 Element three = (Element) list.item(2); in testGoodFile1()
74 Element four = (Element) list.item(3); in testGoodFile1()
97 Node node = list.item(i); in testGoodFile1()
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_namednodemapchildnoderange.java72 testEmployee = elementList.item(2); in runTest()
80 child = attributes.item(2); in runTest()
84 child = attributes.item(0); in runTest()
86 child = attributes.item(1); in runTest()
88 child = attributes.item(3); in runTest()
Dnodereplacechildnewchildexists.java101 employeeNode = elementList.item(1); in runTest()
106 newChild = childList.item(1); in runTest()
107 oldChild = childList.item(11); in runTest()
110 newChild = childList.item(0); in runTest()
111 oldChild = childList.item(5); in runTest()
118 childNode = (Node) childList.item(indexN100DE); in runTest()
Dnodeinsertbeforenewchildexists.java105 employeeNode = elementList.item(1); in runTest()
111 refChild = childList.item(5); in runTest()
112 newChild = childList.item(0); in runTest()
115 refChild = childList.item(11); in runTest()
116 newChild = childList.item(1); in runTest()
121 child = (Node) childList.item(indexN100DD); in runTest()
Dhc_attrchildnodes2.java69 testNode = acronymList.item(3); in runTest()
76 textNode = (Text) childNodes.item(0); in runTest()
79 textNode = (Text) childNodes.item(1); in runTest()
82 textNode = (Text) childNodes.item(2); in runTest()
Dnodeinsertbeforedocfragment.java81 employeeNode = elementList.item(1); in runTest()
83 refChild = childList.item(3); in runTest()
90 child = childList.item(3); in runTest()
93 child = childList.item(4); in runTest()
Dhc_nodeinsertbeforedocfragment.java81 employeeNode = elementList.item(1); in runTest()
83 refChild = childList.item(3); in runTest()
90 child = childList.item(3); in runTest()
93 child = childList.item(4); in runTest()
Dhc_nodeinsertbeforenewchildexists.java88 employeeNode = elementList.item(1); in runTest()
90 refChild = childList.item(5); in runTest()
91 newChild = childList.item(0); in runTest()
94 child = (Node) childList.item(indexN1008C); in runTest()
Dnamednodemapchildnoderange.java73 testEmployee = elementList.item(2); in runTest()
77 child = attributes.item(0); in runTest()
78 child = attributes.item(1); in runTest()
Dnodelistindexnotzero.java72 employeeNode = elementList.item(2); in runTest()
77 child = employeeList.item(1); in runTest()
79 child = employeeList.item(3); in runTest()
Dhc_nodereplacechildnewchildexists.java85 employeeNode = elementList.item(1); in runTest()
87 newChild = childList.item(0); in runTest()
88 oldChild = childList.item(5); in runTest()
92 childNode = (Node) childList.item(indexN10094); in runTest()
/libcore/luni/src/test/java/libcore/java/security/cert/
DX509CertificateTest.java840 for (List<?> item : col) { in checkAlternativeNames()
844 item.remove(0); in checkAlternativeNames()
850 assertTrue(item.get(0) instanceof Integer); in checkAlternativeNames()
851 int type = (Integer) item.get(0); in checkAlternativeNames()
857 assertEquals(Arrays.toString(der), Arrays.toString((byte[]) item.get(1))); in checkAlternativeNames()
860 assertEquals("x509@example.com", (String) item.get(1)); in checkAlternativeNames()
863 assertEquals("x509.example.com", (String) item.get(1)); in checkAlternativeNames()
866 assertEquals("UNSUPPORTED", (String) item.get(1)); in checkAlternativeNames()
873 assertEquals(string, (String) item.get(1)); in checkAlternativeNames()
875 … assertEquals("CN=∆ƒ,OU=Über Frîends,O=Awesome Dudes,C=US", (String) item.get(1)); in checkAlternativeNames()
[all …]
/libcore/luni/src/test/java/tests/org/w3c/dom/
DPrefix.java93 testEmployee = elementList.item(0); in testGetPrefix2()
106 testEmployee = elementList.item(0); in testGetPrefix3()
118 testEmployee = elementList.item(0); in testGetPrefix4()
129 addrNode = (Element) elementList.item(0); in testGetPrefix5()
149 employeeNode = elementList.item(0); in _testGetPrefix6()
167 employeeNode = elementList.item(0); in testGetPrefix7()
220 addrNode = (Element) elementList.item(3); in _testGetPrefix9()
239 employeeNode = elementList.item(1); in testGetPrefix10()
258 employeeNode = elementList.item(1); in testGetPrefix11()
DNamedNodeMapSetNamedItemNS.java95 element = elementList.item(0); in testSetNamedItemNS1()
139 element = (Element) elementList.item(1); in testSetNamedItemNS3()
143 elementAlt = (Element) elementListAlt.item(1); in testSetNamedItemNS3()
173 element = (Element) elementList.item(1); in testSetNamedItemNS4()
237 element = (Element) elementList.item(0); in testSetNamedItemNS6()
241 element = (Element) elementList.item(1); in testSetNamedItemNS6()
263 element = (Element) elementList.item(0); in testSetNamedItemNS7()
267 element = (Element) elementList.item(1); in testSetNamedItemNS7()
289 element = (Element) elementList.item(0); in testSetNamedItemNS8()
293 element = (Element) elementList.item(1); in testSetNamedItemNS8()
DSetAttributeNS.java87 testAddr = elementList.item(0); in testSetAttributeNS1()
108 testAddr = elementList.item(0); in testSetAttributeNS2()
172 testAddr = elementList.item(0); in testSetAttributeNS4()
200 testAddr = elementList.item(0); in testSetAttributeNS5()
216 testAddr = elementList.item(0); in testSetAttributeNS6()
237 testAddr = elementList.item(0); in testSetAttributeNS7()
264 testAddr = elementList.item(0); in testSetAttributeNS9()
287 testAddr = elementList.item(0); in testSetAttributeNS10()
DGetAttributeNS.java103 testAddr = (Element) elementList.item(0); in testGetAttributeNS2()
107 testAddr = (Element) elementList.item(0); in testGetAttributeNS2()
120 testAddr = (Element) elementList.item(0); in testGetAttributeNS3()
139 testAddr = (Element) elementList.item(0); in testGetAttributeNS4()
152 testAddr = (Element) elementList.item(0); in testGetAttributeNS5()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Ddocumentimportnode21.java106 element = (Element) addressList.item(1); in runTest()
108 entRef2 = (EntityReference) addressChildList.item(0); in runTest()
109 entRef3 = (EntityReference) addressChildList.item(2); in runTest()
121 nodeImp2 = nodes.item(0); in runTest()
124 nodeImp3 = nodes.item(0); in runTest()
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/javax/xml/parsers/
DDocumentBuilderTest.java248 d.getChildNodes().item(0).getNodeName()); in test_parseLjava_io_File()
250 d.getChildNodes().item(1).getNodeName()); in test_parseLjava_io_File()
308 d.getChildNodes().item(0).getNodeName()); in test_parseLjava_io_InputStream()
310 d.getChildNodes().item(1).getNodeName()); in test_parseLjava_io_InputStream()
370 d.getChildNodes().item(0).getNodeName()); in testParseInputSource()
372 d.getChildNodes().item(1).getNodeName()); in testParseInputSource()
431 d.getChildNodes().item(0).getNodeName()); in test_parseLjava_io_InputStreamLjava_lang_String()
433 d.getChildNodes().item(1).getNodeName()); in test_parseLjava_io_InputStreamLjava_lang_String()
435 d.getChildNodes().item(2).getNodeName()); in test_parseLjava_io_InputStreamLjava_lang_String()
437 d.getChildNodes().item(3).getNodeName()); in test_parseLjava_io_InputStreamLjava_lang_String()
[all …]

12345678910>>...24