/libcore/luni/src/test/java/libcore/java/lang/ |
H A D | OldThreadStateTest.java | 54 boolean isContain(Thread.State state) { argument 56 if(ts.equals(state)) return true;
|
/libcore/ojluni/src/main/java/java/util/ |
H A D | TimerTask.java | 43 * 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 D | MyGuard.java | 29 public MyGuard(boolean state) { argument 30 enabled = state;
|
/libcore/luni/src/benchmark/native/ |
H A D | libcore_io_Memory_bench.cpp | 23 void swap_bench(benchmark::State& state, void (*swap_func)(T*, const T*, size_t)) { argument 24 size_t num_elements = state.range(0); 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 D | ProgressEvent.java | 48 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 D | ProgressSource.java | 51 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 D | SAXParserFactory.java | 328 * <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 D | DocumentBuilderFactory.java | 306 * 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/sun/nio/fs/ |
H A D | AbstractWatchKey.java | 59 // key state 60 private State state; field in class:AbstractWatchKey 72 this.state = State.READY; 94 if (state == State.READY) { 95 state = State.SIGNALLED; 175 if (state == State.SIGNALLED && isValid()) { 177 state = State.READY;
|
/libcore/ojluni/src/main/java/java/nio/charset/ |
H A D | CharsetDecoder.java | 67 * flush any internal state to the output buffer. </p></li> 121 * state should, additionally, override the {@link #implFlush implFlush} and 157 private int state = ST_RESET; field in class:CharsetDecoder 566 if ((state != ST_RESET) && (state != ST_CODING) 567 && !(endOfInput && (state == ST_END))) 568 throwIllegalStateException(state, newState); 569 state = newState; 626 * <p> Some decoders maintain internal state and may need to write some 663 if (state [all...] |
H A D | CharsetEncoder.java | 67 * flush any internal state to the output buffer. </p></li> 121 * state should, additionally, override the {@link #implFlush implFlush} and 157 private int state = ST_RESET; field in class:CharsetEncoder 584 if ((state != ST_RESET) && (state != ST_CODING) 585 && !(endOfInput && (state == ST_END))) 586 throwIllegalStateException(state, newState); 587 state = newState; 644 * <p> Some encoders maintain internal state and may need to write some 681 if (state [all...] |
/libcore/ojluni/src/main/java/java/security/ |
H A D | MessageDigest.java | 57 * object is reset to its initialized state. 147 // The state of this digest 150 private int state = INITIAL; field in class:MessageDigest 339 state = IN_PROGRESS; 361 state = IN_PROGRESS; 371 state = IN_PROGRESS; 389 state = IN_PROGRESS; 401 state = INITIAL; 428 state = INITIAL; 459 switch (state) { [all...] |
H A D | SecureRandom.java | 747 private byte[] state; field in class:SecureRandom
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | ReduceOps.java | 75 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 D | SinkChannelImpl.java | 55 // 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 D | SourceChannelImpl.java | 56 // 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 D | ServerSocketChannelImpl.java | 62 // 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; 289 if (state != ST_KILLED) 301 if (state == ST_KILLED) 303 if (state == ST_UNINITIALIZED) { 304 state = ST_KILLED; 309 state [all...] |
/libcore/xml/src/main/java/org/xmlpull/v1/ |
H A D | XmlPullParserFactory.java | 52 * @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 D | XmlSerializer.java | 49 boolean state) 48 setFeature(String name, boolean state) argument
|
/libcore/luni/src/main/java/org/apache/harmony/security/provider/crypto/ |
H A D | SHA1PRNG_SecureRandomImpl.java | 96 // 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/luni/src/main/native/ |
H A D | java_util_regex_Matcher.cpp | 153 MatcherState* state = reinterpret_cast<MatcherState*>(address); local 154 delete state; 168 MatcherState* state = toMatcherState(addr); local 169 UBool result = state->matcher()->find(startIndex, state->status()); 171 state->updateOffsets(env, offsets); 177 MatcherState* state = toMatcherState(addr); local 178 UBool result = state->matcher()->find(); 180 state->updateOffsets(env, offsets); 186 MatcherState* state local 191 MatcherState* state = toMatcherState(addr); local 196 MatcherState* state = toMatcherState(addr); local 205 MatcherState* state = toMatcherState(addr); local 225 MatcherState* state = toMatcherState(addr); local 230 MatcherState* state = toMatcherState(addr); local 237 MatcherState* state = toMatcherState(addr); local 242 MatcherState* state = toMatcherState(addr); local [all...] |
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | FutureTask.java | 70 * on a "state" field updated via CAS to track completion, along 78 * The run state of this task, initially NEW. The run state 79 * transitions to a terminal state only in methods set, 80 * setException, and cancel. During completion, state may take on 87 * Possible state transitions: 93 private volatile int state; field in class:FutureTask 105 private Object outcome; // non-volatile, protected by state reads/writes 114 * @param s completed state value 137 this.state [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | TestData.java | 213 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 D | TestData.java | 214 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 D | VMRuntime.java | 356 * Let the heap know of the new process state. This can change allocation and garbage collection 359 public native void updateProcessState(int state); argument
|