/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()
|
/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/luni/src/main/native/ |
D | java_util_regex_Matcher.cpp | 153 MatcherState* state = reinterpret_cast<MatcherState*>(address); in Matcher_free() local 154 delete state; in Matcher_free() 168 MatcherState* state = toMatcherState(addr); in Matcher_findImpl() local 169 UBool result = state->matcher()->find(startIndex, state->status()); in Matcher_findImpl() 171 state->updateOffsets(env, offsets); in Matcher_findImpl() 177 MatcherState* state = toMatcherState(addr); in Matcher_findNextImpl() local 178 UBool result = state->matcher()->find(); in Matcher_findNextImpl() 180 state->updateOffsets(env, offsets); in Matcher_findNextImpl() 186 MatcherState* state = toMatcherState(addr); in Matcher_groupCountImpl() local 187 return state->matcher()->groupCount(); in Matcher_groupCountImpl() [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/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/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/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 …]
|
D | TimerTask.java | 45 int state = VIRGIN; field in TimerTask 118 boolean result = (state == SCHEDULED); in cancel() 119 state = CANCELLED; in cancel()
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
D | CharsetDecoder.java | 157 private int state = ST_RESET; field in CharsetDecoder 566 if ((state != ST_RESET) && (state != ST_CODING) in decode() 567 && !(endOfInput && (state == ST_END))) in decode() 568 throwIllegalStateException(state, newState); in decode() 569 state = newState; in decode() 663 if (state == ST_END) { in flush() 666 state = ST_FLUSHED; in flush() 670 if (state != ST_FLUSHED) in flush() 671 throwIllegalStateException(state, ST_FLUSHED); in flush() 706 state = ST_RESET; in reset()
|
D | CharsetEncoder.java | 157 private int state = ST_RESET; field in CharsetEncoder 584 if ((state != ST_RESET) && (state != ST_CODING) in encode() 585 && !(endOfInput && (state == ST_END))) in encode() 586 throwIllegalStateException(state, newState); in encode() 587 state = newState; in encode() 681 if (state == ST_END) { in flush() 684 state = ST_FLUSHED; in flush() 688 if (state != ST_FLUSHED) in flush() 689 throwIllegalStateException(state, ST_FLUSHED); in flush() 724 state = ST_RESET; in reset() [all …]
|
/libcore/ojluni/src/main/java/java/security/ |
D | MessageDigest.java | 150 private int state = INITIAL; field in MessageDigest 339 state = IN_PROGRESS; in update() 361 state = IN_PROGRESS; in update() 371 state = IN_PROGRESS; in update() 389 state = IN_PROGRESS; in update() 401 state = INITIAL; in digest() 428 state = INITIAL; in digest() 459 switch (state) { in toString() 502 state = INITIAL; in reset() 606 that.state = ((MessageDigest)this).state; in clone()
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
D | SocketChannelImpl.java | 105 private int state = ST_UNINITIALIZED; field in SocketChannelImpl 130 this.state = ST_UNCONNECTED; in SocketChannelImpl() 147 this.state = ST_UNCONNECTED; in SocketChannelImpl() 167 this.state = ST_CONNECTED; in SocketChannelImpl() 320 if (state == ST_KILLPENDING) in readerCleanup() 328 if (state == ST_KILLPENDING) in writerCleanup() 613 if (state == ST_PENDING) in bind() 634 return (state == ST_CONNECTED); in isConnected() 640 return (state == ST_PENDING); in isConnectionPending() 648 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()
|