Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 85) sorted by relevance

1234

/libcore/luni/src/test/java/tests/org/w3c/dom/
DIsSupported.java60 boolean state; in testIsSupported1()
63 state = rootNode.isSupported("XXX", "1.0"); in testIsSupported1()
64 assertFalse("throw_False", state); in testIsSupported1()
69 boolean state; in testIsSupported2()
72 state = rootNode.isSupported("XML", "9.0"); in testIsSupported2()
73 assertFalse("throw_False", state); in testIsSupported2()
78 boolean state; in testIsSupported4()
81 state = rootNode.isSupported("xml", "1.0"); in testIsSupported4()
82 assertTrue("throw_True", state); in testIsSupported4()
87 boolean state; in testIsSupported5()
[all …]
DElementHasAttribute.java51 boolean state; in testHasAttribute1()
54 state = element.hasAttribute(""); in testHasAttribute1()
55 assertFalse("elementhasattribute01", state); in testHasAttribute1()
74 boolean state; in testHasAttribute3()
80 state = element.hasAttribute("domestic"); in testHasAttribute3()
81 assertFalse("elementhasattribute03_False", state); in testHasAttribute3()
83 state = element.hasAttribute("domestic"); in testHasAttribute3()
84 assertTrue("elementhasattribute03_True", state); in testHasAttribute3()
89 boolean state; in testHasAttribute4()
96 state = element.hasAttribute("domestic"); in testHasAttribute4()
[all …]
DHasAttributeNS.java79 boolean state; in testHasAttributeNS1()
83 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS1()
84 assertFalse("throw_False", state); in testHasAttributeNS1()
92 boolean state; in testHasAttributeNS2()
96 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS2()
97 assertFalse("throw_False", state); in testHasAttributeNS2()
105 boolean state; in testHasAttributeNS3()
110 state = testNode.hasAttributeNS(namespaceURI, localName); in testHasAttributeNS3()
111 assertFalse("throw_False", state); in testHasAttributeNS3()
135 boolean state; in testHasAttributeNS5()
[all …]
DHasAttribute.java53 boolean state; in testHasAttribute1()
57 state = testNode.hasAttribute("domestic"); in testHasAttribute1()
58 assertFalse("throw_False", state); in testHasAttribute1()
77 boolean state; in testHasAttribute3()
81 state = testNode.hasAttribute("nomatch"); in testHasAttribute3()
82 assertFalse("throw_False", state); in testHasAttribute3()
88 boolean state; in testHasAttribute4()
92 state = testNode.hasAttribute("dmstc:domestic"); in testHasAttribute4()
93 assertTrue("hasDomesticAttr", state); in testHasAttribute4()
DElementHasAttributeNS.java77 boolean state; in _testHasAttributeNS1()
82 state = element in _testHasAttributeNS1()
84 assertTrue("elementhasattributens01", state); in _testHasAttributeNS1()
89 boolean state; in testHasAttributeNS2()
96 state = element.hasAttributeNS("http://www.w3.org/DOM", "domestic"); in testHasAttributeNS2()
97 assertTrue("hasDomesticAttr", state); in testHasAttributeNS2()
102 boolean state; in testHasAttributeNS3()
112 state = element.hasAttributeNS(nullNS, "domestic"); in testHasAttributeNS3()
113 assertTrue("elementhasattributens03", state); in testHasAttributeNS3()
DHasAttributes.java74 boolean state; in testHasAttributes1()
78 state = addrNode.hasAttributes(); in testHasAttributes1()
79 assertFalse("throw_False", state); in testHasAttributes1()
85 boolean state; in testHasAttributes2()
89 state = addrNode.hasAttributes(); in testHasAttributes2()
90 assertTrue("throw_True", state); in testHasAttributes2()
DDOMImplementationHasFeature.java58 boolean state; in testHasFeatureCore()
61 state = domImpl.hasFeature("core", "2.0"); in testHasFeatureCore()
62 assertTrue("domimplementationFeaturecoreAssert", state); in testHasFeatureCore()
67 boolean state; in testHasFeatureXml()
70 state = domImpl.hasFeature("xml", "2.0"); in testHasFeatureXml()
71 assertTrue("domimplementationFeaturexmlVersion2Assert", state); in testHasFeatureXml()
/libcore/luni/src/test/java/libcore/java/util/
DRandomTest.java28 public String state; in test_subclassing() field in RandomTest.MyRandom
31 @Override protected synchronized int next(int bits) { return state.length(); } in test_subclassing()
32 @Override public synchronized void setSeed(long seed) { state = Long.toString(seed); } in test_subclassing()
37 assertNotNull(r1.state); in test_subclassing()
41 assertNotNull(r2.state); in test_subclassing()
/libcore/luni/src/main/java/java/util/concurrent/
DFutureTask.java63 private volatile int state; field in FutureTask
107 this.state = NEW; // ensure visibility of callable in FutureTask()
124 this.state = NEW; // ensure visibility of callable in FutureTask()
128 return state >= CANCELLED; in isCancelled()
132 return state != NEW; in isDone()
136 if (!(state == NEW && in cancel()
160 int s = state; in get()
173 int s = state; in get()
227 if (state != NEW || in run()
233 if (c != null && state == NEW) { in run()
[all …]
DPhaser.java266 private volatile long state; field in Phaser
355 long s = (root == this) ? state : reconcileState(); in doArrive()
404 long s = (parent == null) ? state : reconcileState(); in doRegister()
429 if (state == s) { // recheck under lock in doRegister()
439 s = state; in doRegister()
440 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
462 long s = state; in reconcileState()
466 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
474 s = state; in reconcileState()
540 this.state = (parties == 0) ? (long)EMPTY : in Phaser()
[all …]
/libcore/dom/src/test/java/org/w3c/domts/level1/core/
Dhc_domimplementationfeaturexml.java64 boolean state; in runTest()
69 state = domImpl.hasFeature("html", "1.0"); in runTest()
70 assertTrue("supports_html_1.0", state); in runTest()
72 state = domImpl.hasFeature("xml", "1.0"); in runTest()
73 assertTrue("supports_xml_1.0", state); in runTest()
Dhc_domimplementationfeaturenull.java73 boolean state; in runTest()
78 state = domImpl.hasFeature("HTML", null); in runTest()
79 assertTrue("supports_HTML_null", state); in runTest()
81 state = domImpl.hasFeature("XML", null); in runTest()
82 assertTrue("supports_XML_null", state); in runTest()
Dhc_domimplementationfeaturenoversion.java66 boolean state; in runTest()
71 state = domImpl.hasFeature("HTML", ""); in runTest()
73 state = domImpl.hasFeature("XML", ""); in runTest()
76 assertTrue("hasFeatureBlank", state); in runTest()
Ddocumentgetimplementation.java65 boolean state; in runTest()
68 state = docImpl.hasFeature("XML", "1.0"); in runTest()
69 assertTrue("documentGetImplementationAssert", state); in runTest()
/libcore/dom/src/test/java/org/w3c/domts/level2/core/
Delementhasattribute03.java68 boolean state; in runTest()
74 state = element.hasAttribute("domestic"); in runTest()
75 assertFalse("elementhasattribute03_False", state); in runTest()
77 state = element.hasAttribute("domestic"); in runTest()
78 assertTrue("elementhasattribute03_True", state); in runTest()
DisSupported12.java93 boolean state; in runTest()
96 state = rootNode.isSupported("Core", "2.0"); in runTest()
97 assertTrue("Core2", state); in runTest()
100 state = rootNode.isSupported(featureElement, "1.0"); in runTest()
104 state = rootNode.isSupported(featureElement, "2.0"); in runTest()
DisSupported10.java75 boolean state; in runTest()
78 state = rootNode.isSupported("CORE", "2.0"); in runTest()
79 assertTrue("throw_True", state); in runTest()
DisSupported13.java63 boolean state; in runTest()
66 state = rootNode.isSupported("Core", ""); in runTest()
67 assertTrue("Core", state); in runTest()
DisSupported09.java75 boolean state; in runTest()
78 state = rootNode.isSupported("XML", "1.0"); in runTest()
79 assertTrue("throw_True", state); in runTest()
DisSupported05.java75 boolean state; in runTest()
78 state = rootNode.isSupported("core", "2.0"); in runTest()
79 assertTrue("throw_True", state); in runTest()
DisSupported06.java75 boolean state; in runTest()
78 state = rootNode.isSupported("xml", "2.0"); in runTest()
79 assertTrue("throw_True", state); in runTest()
Ddomimplementationfeaturecore.java85 boolean state; in runTest()
88 state = domImpl.hasFeature("core", "2.0"); in runTest()
89 assertTrue("domimplementationFeaturecoreAssert", state); in runTest()
/libcore/luni/src/main/java/java/nio/charset/
DCharsetDecoder.java97 private String state = RESET; field in CharsetDecoder
185 while (state != FLUSHED) { in decode()
297 if (state != RESET && state != ONGOING && !(endOfInput && state == END_OF_INPUT)) { in decode()
301 state = endOfInput ? END_OF_INPUT : ONGOING; in decode()
426 if (state != FLUSHED && state != END_OF_INPUT) { in flush()
431 state = FLUSHED; in flush()
636 state = RESET; in reset()
650 throw new IllegalStateException("State: " + state); in illegalStateException()
DCharsetEncoder.java91 private String state = RESET; field in CharsetEncoder
190 if (state == FLUSHED) { in canEncode()
193 if (state != RESET) { in canEncode()
257 while (state != FLUSHED) { in encode()
359 if (state != RESET && state != ONGOING && !(endOfInput && state == END_OF_INPUT)) { in encode()
363 state = endOfInput ? END_OF_INPUT : ONGOING; in encode()
461 if (state != FLUSHED && state != END_OF_INPUT) { in flush()
466 state = FLUSHED; in flush()
656 state = RESET; in reset()
670 throw new IllegalStateException("State: " + state); in illegalStateException()
/libcore/luni/src/main/java/java/security/
DSignature.java74 protected int state = UNINITIALIZED; field in Signature
269 state = VERIFY; in initVerify()
316 state = VERIFY; in initVerify()
331 state = SIGN; in initSign()
349 state = SIGN; in initSign()
365 if (state != SIGN) { in sign()
399 if (state != SIGN) { in sign()
422 if (state != VERIFY) { in verify()
454 if (state != VERIFY) { in verify()
475 if (state == UNINITIALIZED) { in update()
[all …]

1234