Home
last modified time | relevance | path

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

12345

/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()
/libcore/luni/src/benchmark/native/
Dlibcore_io_Memory_bench.cpp23 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_x(); 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/
DReduceOps.java75 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/lang/
DShutdown.java45 private static int state = RUNNING; field in Shutdown
103 if (state > RUNNING) in add()
106 if (state > HOOKS || (state == HOOKS && slot <= currentRunningHook)) in add()
168 if (state != HOOKS) return; in sequence()
173 state = FINALIZERS; in sequence()
188 switch (state) { in exit()
190 state = HOOKS; in exit()
227 switch (state) { in shutdown()
229 state = HOOKS; in shutdown()
/libcore/ojluni/src/main/java/sun/net/
DProgressSource.java51 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()
DProgressEvent.java48 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/luni/src/main/java/java/util/concurrent/
DFutureTask.java64 private volatile int state; field in FutureTask
108 this.state = NEW; // ensure visibility of callable in FutureTask()
125 this.state = NEW; // ensure visibility of callable in FutureTask()
129 return state >= CANCELLED; in isCancelled()
133 return state != NEW; in isDone()
137 if (!(state == NEW && in cancel()
161 int s = state; in get()
174 int s = state; in get()
228 if (state != NEW || in run()
233 if (c != null && state == NEW) { in run()
[all …]
DPhaser.java265 private volatile long state; field in Phaser
354 long s = (root == this) ? state : reconcileState(); in doArrive()
402 long s = (parent == null) ? state : reconcileState(); in doRegister()
426 if (state == s) { // recheck under lock in doRegister()
436 s = state; in doRegister()
437 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
459 long s = state; in reconcileState()
463 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
471 s = state; in reconcileState()
537 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()
/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()
/libcore/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java158 int state; // Transition to sum, cumulate, or both in compute() local
162 state = ((b & CUMULATE) != 0 ? FINISHED : in compute()
164 if (t.compareAndSetPendingCount(b, b|state)) in compute()
169 if (state != SUMMED) { in compute()
194 if ((state & FINISHED) != 0) // enable join in compute()
199 if ((b & state & FINISHED) != 0) in compute()
201 else if ((b & state & SUMMED) != 0) { // both summed in compute()
211 if ((nextState = b|state|refork) == b || in compute()
213 state = SUMMED; // drop finished in compute()
219 else if (par.compareAndSetPendingCount(b, b|state)) in compute()
[all …]
DTimerTask.java45 int state = VIRGIN; field in TimerTask
118 boolean result = (state == SCHEDULED); in cancel()
119 state = CANCELLED; in cancel()
/libcore/ojluni/src/main/java/sun/net/www/http/
DChunkedInputStream.java166 private int state; field in ChunkedInputStream
218 if (!error && state == STATE_DONE) { in closeUnderlying()
252 state = STATE_AWAITING_CHUNK_EOL; in fastRead()
280 while (state != STATE_DONE) { in processRaw()
282 switch (state) { in processRaw()
333 state = STATE_READING_CHUNK; in processRaw()
335 state = STATE_AWAITING_TRAILERS; in processRaw()
387 state = STATE_AWAITING_CHUNK_EOL; in processRaw()
416 state = STATE_AWAITING_CHUNK_HEADER; in processRaw()
454 state = STATE_DONE; in processRaw()
[all …]
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetDecoder.java156 private int state = ST_RESET; field in CharsetDecoder
555 if ((state != ST_RESET) && (state != ST_CODING) in decode()
556 && !(endOfInput && (state == ST_END))) in decode()
557 throwIllegalStateException(state, newState); in decode()
558 state = newState; in decode()
652 if (state == ST_END) { in flush()
655 state = ST_FLUSHED; in flush()
659 if (state != ST_FLUSHED) in flush()
660 throwIllegalStateException(state, ST_FLUSHED); in flush()
695 state = ST_RESET; in reset()
DCharsetEncoder.java156 private int state = ST_RESET; field in CharsetEncoder
570 if ((state != ST_RESET) && (state != ST_CODING) in encode()
571 && !(endOfInput && (state == ST_END))) in encode()
572 throwIllegalStateException(state, newState); in encode()
573 state = newState; in encode()
667 if (state == ST_END) { in flush()
670 state = ST_FLUSHED; in flush()
674 if (state != ST_FLUSHED) in flush()
675 throwIllegalStateException(state, ST_FLUSHED); in flush()
710 state = ST_RESET; in reset()
[all …]
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketChannelImpl.java86 private int state = ST_UNINITIALIZED; field in SocketChannelImpl
109 this.state = ST_UNCONNECTED; in SocketChannelImpl()
120 this.state = ST_UNCONNECTED; in SocketChannelImpl()
134 this.state = ST_CONNECTED; in SocketChannelImpl()
279 if (state == ST_KILLPENDING) in readerCleanup()
287 if (state == ST_KILLPENDING) in writerCleanup()
599 if (state == ST_PENDING) in bind()
616 return (state == ST_CONNECTED); in isConnected()
622 return (state == ST_PENDING); in isConnectionPending()
630 if (state == ST_CONNECTED) in ensureOpenAndUnconnected()
[all …]
/libcore/ojluni/src/main/java/java/security/
DMessageDigest.java138 private int state = INITIAL; field in MessageDigest
319 state = IN_PROGRESS; in update()
341 state = IN_PROGRESS; in update()
351 state = IN_PROGRESS; in update()
369 state = IN_PROGRESS; in update()
381 state = INITIAL; in digest()
408 state = INITIAL; in digest()
439 switch (state) { in toString()
478 state = INITIAL; in reset()
582 that.state = ((MessageDigest)this).state; in clone()

12345