/libcore/luni/src/test/java/tests/org/w3c/dom/ |
D | IsSupported.java | 60 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 …]
|
D | ElementHasAttribute.java | 51 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 …]
|
D | HasAttributeNS.java | 79 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 …]
|
D | HasAttribute.java | 53 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()
|
D | ElementHasAttributeNS.java | 77 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()
|
D | HasAttributes.java | 74 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()
|
D | DOMImplementationHasFeature.java | 58 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/benchmark/native/ |
D | libcore_io_Memory_bench.cpp | 23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) { in swap_bench() argument 24 size_t num_elements = state.range(0); in swap_bench() 48 while (state.KeepRunning()) { in swap_bench() 61 static void BM_swapShorts_aligned(benchmark::State& state) { in BM_swapShorts_aligned() argument 62 swap_bench<jshort, 0>(state, swapShorts); in BM_swapShorts_aligned() 66 static void BM_swapInts_aligned(benchmark::State& state) { in BM_swapInts_aligned() argument 67 swap_bench<jint, 0>(state, swapInts); in BM_swapInts_aligned() 71 static void BM_swapLongs_aligned(benchmark::State& state) { in BM_swapLongs_aligned() argument 72 swap_bench<jlong, 0>(state, swapLongs); in BM_swapLongs_aligned() 78 static void BM_swapShorts_unaligned_1(benchmark::State& state) { in BM_swapShorts_unaligned_1() argument [all …]
|
/libcore/ojluni/src/main/java/java/util/stream/ |
D | ReduceOps.java | 75 state = seed; in makeRef() 80 state = reducer.apply(state, t); in makeRef() 85 state = combiner.apply(state, other.state); in makeRef() 110 private T state; 114 state = null; 121 state = t; 123 state = operator.apply(state, t); 129 return empty ? Optional.empty() : Optional.of(state); 135 accept(other.state); 164 state = supplier.get(); [all …]
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
D | FutureTask.java | 93 private volatile int state; field in FutureTask 137 this.state = NEW; // ensure visibility of callable in FutureTask() 154 this.state = NEW; // ensure visibility of callable in FutureTask() 158 return state >= CANCELLED; in isCancelled() 162 return state != NEW; in isDone() 166 if (!(state == NEW && in cancel() 190 int s = state; in get() 203 int s = state; in get() 257 if (state != NEW || in run() 262 if (c != null && state == NEW) { in run() [all …]
|
D | Phaser.java | 294 private volatile long state; field in Phaser 383 long s = (root == this) ? state : reconcileState(); in doArrive() 431 long s = (parent == null) ? state : reconcileState(); in doRegister() 455 if (state == s) { // recheck under lock in doRegister() 465 s = state; in doRegister() 466 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister() 488 long s = state; in reconcileState() 492 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState() 500 s = state; in reconcileState() 566 this.state = (parties == 0) ? (long)EMPTY : in Phaser() [all …]
|
/libcore/ojluni/src/main/java/sun/net/ |
D | ProgressSource.java | 51 private State state; field in ProgressSource 76 this.state = State.NEW; in ProgressSource() 84 state = State.CONNECTED; in connected() 94 state = State.DELETE; in close() 141 return state; in getState() 167 state = State.CONNECTED; in updateProgress() 169 state = State.UPDATE; in updateProgress() 207 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state in toString()
|
D | ProgressEvent.java | 48 private ProgressSource.State state; field in ProgressEvent 53 … source, URL url, String method, String contentType, ProgressSource.State state, long progress, lo… in ProgressEvent() argument 60 this.state = state; in ProgressEvent() 106 return state; in getState() 110 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state in toString()
|
/libcore/ojluni/src/main/java/java/util/ |
D | ArrayPrefixHelpers.java | 187 int state; // Transition to sum, cumulate, or both in compute() local 191 state = ((b & CUMULATE) != 0 ? FINISHED : in compute() 193 if (t.compareAndSetPendingCount(b, b|state)) in compute() 198 if (state != SUMMED) { in compute() 223 if ((state & FINISHED) != 0) // enable join in compute() 228 if ((b & state & FINISHED) != 0) in compute() 230 else if ((b & state & SUMMED) != 0) { // both summed in compute() 240 if ((nextState = b|state|refork) == b || in compute() 242 state = SUMMED; // drop finished in compute() 248 else if (par.compareAndSetPendingCount(b, b|state)) in compute() [all …]
|
/libcore/dom/src/test/java/org/w3c/domts/level1/core/ |
D | hc_domimplementationfeaturexml.java | 64 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()
|
D | hc_domimplementationfeaturenull.java | 73 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()
|
D | hc_domimplementationfeaturenoversion.java | 66 boolean state; in runTest() 71 state = domImpl.hasFeature("HTML", ""); in runTest() 73 state = domImpl.hasFeature("XML", ""); in runTest() 76 assertTrue("hasFeatureBlank", state); in runTest()
|
/libcore/dom/src/test/java/org/w3c/domts/level2/core/ |
D | elementhasattribute03.java | 68 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()
|
D | isSupported12.java | 93 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()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetEncoder.java | 157 private int state = ST_RESET; field in CharsetEncoder 590 if ((state != ST_RESET) && (state != ST_CODING) in encode() 591 && !(endOfInput && (state == ST_END))) in encode() 592 throwIllegalStateException(state, newState); in encode() 593 state = newState; in encode() 687 if (state == ST_END) { in flush() 690 state = ST_FLUSHED; in flush() 694 if (state != ST_FLUSHED) in flush() 695 throwIllegalStateException(state, ST_FLUSHED); in flush() 730 state = ST_RESET; in reset() [all …]
|
D | CharsetDecoder.java | 157 private int state = ST_RESET; field in CharsetDecoder 572 if ((state != ST_RESET) && (state != ST_CODING) in decode() 573 && !(endOfInput && (state == ST_END))) in decode() 574 throwIllegalStateException(state, newState); in decode() 575 state = newState; in decode() 669 if (state == ST_END) { in flush() 672 state = ST_FLUSHED; in flush() 676 if (state != ST_FLUSHED) in flush() 677 throwIllegalStateException(state, ST_FLUSHED); in flush() 712 state = ST_RESET; in reset()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SocketChannelImpl.java | 106 private int state = ST_UNINITIALIZED; field in SocketChannelImpl 132 this.state = ST_UNCONNECTED; in SocketChannelImpl() 149 this.state = ST_UNCONNECTED; in SocketChannelImpl() 169 this.state = ST_CONNECTED; in SocketChannelImpl() 322 if (state == ST_KILLPENDING) in readerCleanup() 330 if (state == ST_KILLPENDING) in writerCleanup() 615 if (state == ST_PENDING) in bind() 636 return (state == ST_CONNECTED); in isConnected() 642 return (state == ST_PENDING); in isConnectionPending() 650 if (state == ST_CONNECTED) in ensureOpenAndUnconnected() [all …]
|
D | SinkChannelImpl.java | 65 private volatile int state = ST_UNINITIALIZED; field in SinkChannelImpl 82 this.state = ST_INUSE; in SinkChannelImpl() 87 if (state != ST_KILLED) in implCloseSelectableChannel() 99 if (state == ST_KILLED) in kill() 101 if (state == ST_UNINITIALIZED) { in kill() 102 state = ST_KILLED; in kill() 107 state = ST_KILLED; in kill()
|
/libcore/ojluni/src/main/java/java/security/ |
D | MessageDigest.java | 148 private int state = INITIAL; field in MessageDigest 341 state = IN_PROGRESS; in update() 363 state = IN_PROGRESS; in update() 373 state = IN_PROGRESS; in update() 391 state = IN_PROGRESS; in update() 403 state = INITIAL; in digest() 430 state = INITIAL; in digest() 462 switch (state) { in toString() 506 state = INITIAL; in reset() 610 that.state = ((MessageDigest)this).state; in clone()
|
/libcore/ojluni/src/main/java/java/util/concurrent/locks/ |
D | StampedLock.java | 329 private transient volatile long state; field in StampedLock 337 state = ORIGIN; in StampedLock() 348 return ((((s = state) & ABITS) == 0L && in writeLock() 361 return ((((s = state) & ABITS) == 0L && in tryWriteLock() 421 long s = state, next; // bypass acquireRead on common uncontended case in readLock() 436 if ((m = (s = state) & ABITS) == WBIT) in tryReadLock() 465 if ((m = (s = state) & ABITS) != WBIT) { in tryReadLock() 509 return (((s = state) & WBIT) == 0L) ? (s & SBITS) : 0L; in tryOptimisticRead() 526 return (stamp & SBITS) == (state & SBITS); in validate() 539 if (state != stamp || (stamp & WBIT) == 0L) in unlockWrite() [all …]
|