Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 124) 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(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/
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/benchmarks/src_androidx/libcore/benchmark/
DStringTest.java34 final BenchmarkState state = benchmarkRule.getState(); in stringRepeat_art_x10() local
35 while (state.keepRunning()) { in stringRepeat_art_x10()
42 final BenchmarkState state = benchmarkRule.getState(); in timeStringRepeat_art_x100k() local
43 while (state.keepRunning()) { in timeStringRepeat_art_x100k()
50 final BenchmarkState state = benchmarkRule.getState(); in timeStringRepeat_java_x10() local
51 while (state.keepRunning()) { in timeStringRepeat_java_x10()
58 final BenchmarkState state = benchmarkRule.getState(); in timeStringRepeat_java_x100k() local
59 while (state.keepRunning()) { in timeStringRepeat_java_x100k()
66 final BenchmarkState state = benchmarkRule.getState(); in stringRepeat_art_x1m_singleChar() local
67 while (state.keepRunning()) { in stringRepeat_art_x1m_singleChar()
[all …]
DMethodHandlesTest.java57 final BenchmarkState state = benchmarkRule.getState(); in directCall_noArguments() local
58 while (state.keepRunning()) { in directCall_noArguments()
65 final BenchmarkState state = benchmarkRule.getState(); in directCall_singleArgument() local
66 while (state.keepRunning()) { in directCall_singleArgument()
73 final BenchmarkState state = benchmarkRule.getState(); in methodHandles_noArguments() local
74 while (state.keepRunning()) { in methodHandles_noArguments()
81 final BenchmarkState state = benchmarkRule.getState(); in methodHandles_singleArgument() local
82 while (state.keepRunning()) { in methodHandles_singleArgument()
DFormatterTest.java36 final BenchmarkState state = benchmarkRule.getState(); in stringFormatNumber_allLocales() local
37 while (state.keepRunning()) { in stringFormatNumber_allLocales()
48 final BenchmarkState state = benchmarkRule.getState(); in stringFormatNumber_withWidth_allLocales() local
49 while (state.keepRunning()) { in stringFormatNumber_withWidth_allLocales()
58 final BenchmarkState state = benchmarkRule.getState(); in stringFormatString_allLocales() local
59 while (state.keepRunning()) { in stringFormatString_allLocales()
DClassTest.java35 final BenchmarkState state = benchmarkRule.getState(); in testGetSimpleName() local
36 while (state.keepRunning()) { in testGetSimpleName()
43 final BenchmarkState state = benchmarkRule.getState(); in testIsAnonymousClass() local
44 while (state.keepRunning()) { in testIsAnonymousClass()
/libcore/luni/src/test/java/libcore/java/util/
DArbitrarilyJumpableGeneratorTest.java37 private double state; field in ArbitrarilyJumpableGeneratorTest.StubGenerator
39 StubGenerator(double state) { in StubGenerator() argument
40 this.state = state; in StubGenerator()
60 return new StubGenerator(state); in copy()
65 state += Math.pow(2, logDistance); in jumpPowerOfTwo()
70 state += distance; in jump()
81 assertEquals(initState + rng.jumpDistance(), rng.state, 0.001d); in jump_jumpsToJumpDistance()
91 assertEquals(initState + rng.leapDistance(), rng.state, 0.001d); in leap_jumpsToLeapDistance()
104 assertEquals(initState + jumpDistance * streamSize, rng.state, 0.001d); in jump_advancesEachElementInStream()
109 .map(stubGenerator -> stubGenerator.state) in jump_advancesEachElementInStream()
/libcore/ojluni/src/main/java/java/util/concurrent/
DFutureTask.java92 private volatile int state; field in FutureTask
136 this.state = NEW; // ensure visibility of callable in FutureTask()
153 this.state = NEW; // ensure visibility of callable in FutureTask()
157 return state >= CANCELLED; in isCancelled()
161 return state != NEW; in isDone()
165 if (!(state == NEW && STATE.compareAndSet in cancel()
188 int s = state; in get()
201 int s = state; in get()
255 if (state != NEW || in run()
260 if (c != null && state == NEW) { in run()
[all …]
DPhaser.java297 private volatile long state; field in Phaser
382 long s = (root == this) ? state : reconcileState(); in doArrive()
430 long s = (parent == null) ? state : reconcileState(); in doRegister()
454 if (state == s) { // recheck under lock in doRegister()
464 s = state; in doRegister()
465 phase = (int)(root.state >>> PHASE_SHIFT); in doRegister()
487 long s = state; in reconcileState()
491 while ((phase = (int)(root.state >>> PHASE_SHIFT)) != in reconcileState()
499 s = state; in reconcileState()
565 this.state = (parties == 0) ? (long)EMPTY : in Phaser()
[all …]
/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/ojluni/src/main/java/java/util/
DArrayPrefixHelpers.java192 int state; // Transition to sum, cumulate, or both in compute() local
196 state = ((b & CUMULATE) != 0 ? FINISHED : in compute()
198 if (t.compareAndSetPendingCount(b, b|state)) in compute()
203 if (state != SUMMED) { in compute()
228 if ((state & FINISHED) != 0) // enable join in compute()
233 if ((b & state & FINISHED) != 0) in compute()
235 else if ((b & state & SUMMED) != 0) { // both summed in compute()
245 if ((nextState = b|state|refork) == b || in compute()
247 state = SUMMED; // drop finished in compute()
253 else if (par.compareAndSetPendingCount(b, b|state)) in compute()
[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()
/libcore/ojluni/src/main/java/java/nio/charset/
DCharsetEncoder.java158 private int state = ST_RESET; field in CharsetEncoder
613 if ((state != ST_RESET) && (state != ST_CODING) in encode()
614 && !(endOfInput && (state == ST_END))) in encode()
615 throwIllegalStateException(state, newState); in encode()
616 state = newState; in encode()
708 if (state == ST_END) { in flush()
711 state = ST_FLUSHED; in flush()
715 if (state != ST_FLUSHED) in flush()
716 throwIllegalStateException(state, ST_FLUSHED); in flush()
751 state = ST_RESET; in reset()
[all …]
DCharsetDecoder.java158 private int state = ST_RESET; field in CharsetDecoder
613 if ((state != ST_RESET) && (state != ST_CODING) in decode()
614 && !(endOfInput && (state == ST_END))) in decode()
615 throwIllegalStateException(state, newState); in decode()
616 state = newState; in decode()
708 if (state == ST_END) { in flush()
711 state = ST_FLUSHED; in flush()
715 if (state != ST_FLUSHED) in flush()
716 throwIllegalStateException(state, ST_FLUSHED); in flush()
751 state = ST_RESET; in reset()
/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()
/libcore/ojluni/src/main/java/sun/nio/ch/
DSocketChannelImpl.java106 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 …]
/libcore/ojluni/src/main/java/java/security/
DMessageDigest.java150 private int state = INITIAL; field in MessageDigest
364 state = IN_PROGRESS; in update()
386 state = IN_PROGRESS; in update()
396 state = IN_PROGRESS; in update()
414 state = IN_PROGRESS; in update()
426 state = INITIAL; in digest()
453 state = INITIAL; in digest()
489 switch (state) { in toString()
548 state = INITIAL; in reset()
652 that.state = ((MessageDigest)this).state; in clone()

12345