Searched defs:state (Results 1 - 25 of 39) sorted by relevance

12

/libcore/luni/src/test/java/libcore/java/lang/
H A DOldThreadStateTest.java54 boolean isContain(Thread.State state) { argument
56 if(ts.equals(state)) return true;
/libcore/ojluni/src/main/java/java/util/
H A DTimerTask.java43 * The state of this task, chosen from the constants below.
45 int state = VIRGIN; field in class:TimerTask
118 boolean result = (state == SCHEDULED);
119 state = CANCELLED;
/libcore/support/src/test/java/org/apache/harmony/security/tests/support/
H A DMyGuard.java29 public MyGuard(boolean state) { argument
30 enabled = state;
/libcore/luni/src/benchmark/native/
H A Dlibcore_io_Memory_bench.cpp23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) { argument
24 size_t num_elements = state.range_x();
48 while (state.KeepRunning()) {
61 static void BM_swapShorts_aligned(benchmark::State& state) { argument
62 swap_bench<jshort, 0>(state, swapShorts);
66 static void BM_swapInts_aligned(benchmark::State& state) { argument
67 swap_bench<jint, 0>(state, swapInts);
71 static void BM_swapLongs_aligned(benchmark::State& state) { argument
72 swap_bench<jlong, 0>(state, swapLongs);
78 static void BM_swapShorts_unaligned_1(benchmark::State& state) { argument
83 BM_swapInts_unaligned_1(benchmark::State& state) argument
88 BM_swapLongs_unaligned_1(benchmark::State& state) argument
95 BM_swapShorts_unaligned_2(benchmark::State& state) argument
100 BM_swapInts_unaligned_2(benchmark::State& state) argument
105 BM_swapLongs_unaligned_2(benchmark::State& state) argument
[all...]
/libcore/ojluni/src/main/java/sun/net/
H A DProgressEvent.java48 private ProgressSource.State state; field in class:ProgressEvent
53 public ProgressEvent(ProgressSource source, URL url, String method, String contentType, ProgressSource.State state, long progress, long expected) { argument
60 this.state = state;
103 * Return state.
106 return state;
110 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state
H A DProgressSource.java51 private State state; field in class:ProgressSource
76 this.state = State.NEW;
84 state = State.CONNECTED;
94 state = State.DELETE;
138 * Return state.
141 return state;
167 state = State.CONNECTED;
169 state = State.UPDATE;
207 return getClass().getName() + "[url=" + url + ", method=" + method + ", state=" + state
[all...]
/libcore/luni/src/main/java/javax/xml/parsers/
H A DSAXParserFactory.java328 * <p>Set state of XInclude processing.</p>
336 * @param state Set XInclude processing to <code>true</code> or
346 public void setXIncludeAware(final boolean state) { argument
357 * <p>Get state of XInclude processing.</p>
359 * @return current state of XInclude processing
H A DDocumentBuilderFactory.java306 * It is possible for an <code>DocumentBuilderFactory</code> to expose a feature value but be unable to change its state.
327 * @param value Is feature state <code>true</code> or <code>false</code>.
337 * <p>Get the state of the named feature.</p>
344 * It is possible for an <code>DocumentBuilderFactory</code> to expose a feature value but be unable to change its state.
452 * <p>Set state of XInclude processing.</p>
460 * @param state Set XInclude processing to <code>true</code> or
470 public void setXIncludeAware(final boolean state) { argument
481 * <p>Get state of XInclude processing.</p>
483 * @return current state of XInclude processing
/libcore/ojluni/src/main/java/java/lang/
H A DShutdown.java41 /* Shutdown state */
45 private static int state = RUNNING; field in class:Shutdown
77 * Add a new shutdown hook. Checks the shutdown state and the hook itself,
103 if (state > RUNNING)
106 if (state > HOOKS || (state == HOOKS && slot <= currentRunningHook))
168 if (state != HOOKS) return;
173 state = FINALIZERS;
188 switch (state) {
190 state
[all...]
/libcore/ojluni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java66 * flush any internal state to the output buffer. </p></li>
120 * state should, additionally, override the {@link #implFlush implFlush} and
156 private int state = ST_RESET; field in class:CharsetDecoder
555 if ((state != ST_RESET) && (state != ST_CODING)
556 && !(endOfInput && (state == ST_END)))
557 throwIllegalStateException(state, newState);
558 state = newState;
615 * <p> Some decoders maintain internal state and may need to write some
652 if (state
[all...]
H A DCharsetEncoder.java66 * flush any internal state to the output buffer. </p></li>
120 * state should, additionally, override the {@link #implFlush implFlush} and
156 private int state = ST_RESET; field in class:CharsetEncoder
570 if ((state != ST_RESET) && (state != ST_CODING)
571 && !(endOfInput && (state == ST_END)))
572 throwIllegalStateException(state, newState);
573 state = newState;
630 * <p> Some encoders maintain internal state and may need to write some
667 if (state
[all...]
/libcore/ojluni/src/main/java/java/security/
H A DMessageDigest.java53 * object is reset to its initialized state.
135 // The state of this digest
138 private int state = INITIAL; field in class:MessageDigest
319 state = IN_PROGRESS;
341 state = IN_PROGRESS;
351 state = IN_PROGRESS;
369 state = IN_PROGRESS;
381 state = INITIAL;
408 state = INITIAL;
439 switch (state) {
[all...]
H A DSecureRandom.java635 private byte[] state; field in class:SecureRandom
/libcore/ojluni/src/main/java/java/util/stream/
H A DReduceOps.java75 state = seed;
80 state = reducer.apply(state, t);
85 state = combiner.apply(state, other.state);
110 private T state;
114 state = null;
121 state = t;
123 state
665 U state; field in class:ReduceOps.Box
[all...]
/libcore/ojluni/src/main/java/sun/nio/ch/
H A DSinkChannelImpl.java55 // Lock held by any thread that modifies the state fields declared below
61 // Channel state
65 private volatile int state = ST_UNINITIALIZED; field in class:SinkChannelImpl
82 this.state = ST_INUSE;
87 if (state != ST_KILLED)
99 if (state == ST_KILLED)
101 if (state == ST_UNINITIALIZED) {
102 state = ST_KILLED;
107 state = ST_KILLED;
H A DSourceChannelImpl.java56 // Lock held by any thread that modifies the state fields declared below
62 // Channel state
66 private volatile int state = ST_UNINITIALIZED; field in class:SourceChannelImpl
83 this.state = ST_INUSE;
88 if (state != ST_KILLED)
100 if (state == ST_KILLED)
102 if (state == ST_UNINITIALIZED) {
103 state = ST_KILLED;
108 state = ST_KILLED;
H A DServerSocketChannelImpl.java62 // Lock held by any thread that modifies the state fields declared below
68 // Channel state, increases monotonically
72 private int state = ST_UNINITIALIZED; field in class:ServerSocketChannelImpl
90 this.state = ST_INUSE;
101 this.state = ST_INUSE;
279 if (state != ST_KILLED)
291 if (state == ST_KILLED)
293 if (state == ST_UNINITIALIZED) {
294 state = ST_KILLED;
299 state
[all...]
/libcore/xml/src/main/java/org/xmlpull/v1/
H A DXmlPullParserFactory.java52 * @param state if true feature will be set; if false will be ignored
54 public void setFeature(String name, boolean state) throws XmlPullParserException { argument
55 features.put(name, state);
H A DXmlSerializer.java49 boolean state)
48 setFeature(String name, boolean state) argument
/libcore/luni/src/main/java/java/util/concurrent/
H A DFutureTask.java41 * on a "state" field updated via CAS to track completion, along
49 * The run state of this task, initially NEW. The run state
50 * transitions to a terminal state only in methods set,
51 * setException, and cancel. During completion, state may take on
58 * Possible state transitions:
64 private volatile int state; field in class:FutureTask
76 private Object outcome; // non-volatile, protected by state reads/writes
85 * @param s completed state value
108 this.state
[all...]
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/
H A DSHA1PRNG_SecureRandomImpl.java96 // UNDEFINED - three states of engine; initially its state is "UNDEFINED"
97 // SET_SEED call to "engineSetSeed" sets up "SET_SEED" state,
98 // NEXT_BYTES call to "engineNextByte" sets up "NEXT_BYTES" state
144 // contains int value corresponding to engine's current state
145 private transient int state; field in class:SHA1PRNG_SecureRandomImpl
182 state = UNDEFINED;
220 if (state == NEXT_BYTES) { // first setSeed after NextBytes; restoring hash
224 state = SET_SEED;
297 if (state == UNDEFINED) {
299 // no seed supplied by user, hence it is generated thus randomizing internal state
[all...]
/libcore/ojluni/src/main/java/sun/net/www/http/
H A DChunkedInputStream.java66 * input stream is inside a chunk (ie: state == STATE_READING_CHUNK).
164 * Indicates the current state.
166 private int state; field in class:ChunkedInputStream
218 if (!error && state == STATE_DONE) {
237 // assert state == STATE_READING_CHUNKS;
252 state = STATE_AWAITING_CHUNK_EOL;
267 * The parsing of the chunked stream is performed as a state machine with
268 * <code>state</code> representing the current state of the processing.
280 while (state !
[all...]
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/
H A DTestData.java213 protected final T_STATE state; field in class:TestData.AbstractTestData
221 T_STATE state,
228 this.state = state;
247 return sizeFn.applyAsInt(state);
252 return splitrFn.apply(state);
257 return streamFn.apply(state);
262 return parStreamFn.apply(state);
270 I state,
275 super(name, StreamShape.REFERENCE, state, streamF
219 AbstractTestData(String name, StreamShape shape, T_STATE state, Function<T_STATE, S> streamFn, Function<T_STATE, S> parStreamFn, Function<T_STATE, T_SPLITR> splitrFn, ToIntFunction<T_STATE> sizeFn) argument
269 RefTestData(String name, I state, Function<I, Stream<T>> streamFn, Function<I, Stream<T>> parStreamFn, Function<I, Spliterator<T>> splitrFn, ToIntFunction<I> sizeFn) argument
284 IntTestData(String name, I state, Function<I, IntStream> streamFn, Function<I, IntStream> parStreamFn, Function<I, Spliterator.OfInt> splitrFn, ToIntFunction<I> sizeFn) argument
309 LongTestData(String name, I state, Function<I, LongStream> streamFn, Function<I, LongStream> parStreamFn, Function<I, Spliterator.OfLong> splitrFn, ToIntFunction<I> sizeFn) argument
334 DoubleTestData(String name, I state, Function<I, DoubleStream> streamFn, Function<I, DoubleStream> parStreamFn, Function<I, Spliterator.OfDouble> splitrFn, ToIntFunction<I> sizeFn) argument
[all...]
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/
H A DTestData.java214 protected final T_STATE state; field in class:TestData.AbstractTestData
222 T_STATE state,
229 this.state = state;
248 return sizeFn.applyAsInt(state);
253 return splitrFn.apply(state);
258 return streamFn.apply(state);
263 return parStreamFn.apply(state);
271 I state,
276 super(name, StreamShape.REFERENCE, state, streamF
220 AbstractTestData(String name, StreamShape shape, T_STATE state, Function<T_STATE, S> streamFn, Function<T_STATE, S> parStreamFn, Function<T_STATE, T_SPLITR> splitrFn, ToIntFunction<T_STATE> sizeFn) argument
270 RefTestData(String name, I state, Function<I, Stream<T>> streamFn, Function<I, Stream<T>> parStreamFn, Function<I, Spliterator<T>> splitrFn, ToIntFunction<I> sizeFn) argument
285 IntTestData(String name, I state, Function<I, IntStream> streamFn, Function<I, IntStream> parStreamFn, Function<I, Spliterator.OfInt> splitrFn, ToIntFunction<I> sizeFn) argument
310 LongTestData(String name, I state, Function<I, LongStream> streamFn, Function<I, LongStream> parStreamFn, Function<I, Spliterator.OfLong> splitrFn, ToIntFunction<I> sizeFn) argument
335 DoubleTestData(String name, I state, Function<I, DoubleStream> streamFn, Function<I, DoubleStream> parStreamFn, Function<I, Spliterator.OfDouble> splitrFn, ToIntFunction<I> sizeFn) argument
[all...]
/libcore/libart/src/main/java/dalvik/system/
H A DVMRuntime.java343 * Let the heap know of the new process state. This can change allocation and garbage collection
346 public native void updateProcessState(int state); argument

Completed in 2312 milliseconds

12