/libcore/ojluni/src/main/native/ |
H A D | UnixAsynchronousSocketChannelImpl.c | 44 int result; local 46 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &arglen); 47 if (result < 0) {
|
H A D | SocketChannelImpl.c | 59 int result = 0; local 67 result = poll(&poller, 1, block ? -1 : 0); 68 if (result < 0) { 72 if (!block && (result == 0)) 78 result = getsockopt(fd, SOL_SOCKET, SO_ERROR, &error, &n); 79 if (result < 0) {
|
H A D | DatagramDispatcher.c | 56 int result = recv(fd, buf, len, 0); local 57 if (result < 0 && errno == ECONNREFUSED) { 61 return convertReturnVal(env, result, JNI_TRUE); 72 ssize_t result = 0; local 89 result = recvmsg(fd, &m, 0); 90 if (result < 0 && errno == ECONNREFUSED) { 94 return convertLongReturnVal(env, (jlong)result, JNI_TRUE); 103 int result = send(fd, buf, len, 0); local 104 if (result < 0 && errno == ECONNREFUSED) { 108 return convertReturnVal(env, result, JNI_FALS 118 ssize_t result = 0; local [all...] |
H A D | FileSystemPreferences.c | 47 int result; local 48 result = chmod(fname, permission); 49 if (result != 0) 50 result = errno; 52 return (jint) result; 63 * The result is a cookie that can be used later to unlock the file. 64 * On failure the result is zero. 71 int result[2]; local 90 result[1] = errno; 95 result[ [all...] |
/libcore/ojluni/src/main/java/java/nio/channels/ |
H A D | CompletionHandler.java | 29 * A handler for consuming the result of an asynchronous I/O operation. 32 * handler to be specified to consume the result of an asynchronous operation. 39 * @param <V> The result type of the I/O operation 50 * @param result 51 * The result of the I/O operation. 55 void completed(V result, A attachment); argument
|
/libcore/luni/src/main/java/javax/xml/transform/sax/ |
H A D | TransformerHandler.java | 40 * @param result A <code>Result</code> instance, should not be 43 * @throws IllegalArgumentException if result is invalid for some reason. 45 public void setResult(Result result) throws IllegalArgumentException; argument
|
/libcore/luni/src/main/native/ |
H A D | IcuUtilities.cpp | 42 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local 49 env->SetObjectArrayElement(result, i, javaString.get()); 51 return result;
|
H A D | libcore_icu_TimeZoneNames.cpp | 47 static void TimeZoneNames_fillZoneStrings(JNIEnv* env, jclass, jstring javaLocaleName, jobjectArray result) { argument 61 size_t id_count = env->GetArrayLength(result); 64 reinterpret_cast<jobjectArray>(env->GetObjectArrayElement(result, i)));
|
H A D | valueOf.cpp | 29 jobject result = env->CallStaticObjectMethod(c, valueOfMethod, value); local 33 return result;
|
/libcore/luni/src/test/java/libcore/java/nio/channels/ |
H A D | FutureLikeCompletionHandler.java | 25 V result; field in class:FutureLikeCompletionHandler 28 public void completed(V result, Object attachment) { argument 33 this.result = result; 60 return result;
|
/libcore/ojluni/src/main/java/java/util/concurrent/ |
H A D | CompletionService.java | 81 * @param result the result to return upon successful completion 84 * result value upon completion 89 Future<V> submit(Runnable task, V result); argument
|
H A D | RecursiveTask.java | 39 * A recursive result-bearing {@link ForkJoinTask}. 72 * The result of the computation. 74 V result; field in class:RecursiveTask 78 * @return the result of the computation 83 return result; 87 result = value; 94 result = compute();
|
H A D | ExecutorCompletionService.java | 71 * Suppose instead that you would like to use the first non-null result 83 * Result result = null; 91 * result = r; 102 * if (result != null) 103 * use(result); 133 private RunnableFuture<V> newTaskFor(Runnable task, V result) { argument 135 return new FutureTask<V>(task, result); 137 return aes.newTaskFor(task, result); 187 public Future<V> submit(Runnable task, V result) { argument 189 RunnableFuture<V> f = newTaskFor(task, result); [all...] |
H A D | ExecutorService.java | 137 * result is retrieved via {@code Future.get()}. 206 * Future's {@code get} method will return the task's result upon 212 * {@code result = exec.submit(aCallable).get();} 220 * @param <T> the type of the task's result 231 * return the given result upon successful completion. 234 * @param result the result to return 235 * @param <T> the type of the result 241 <T> Future<T> submit(Runnable task, T result); argument 313 * Executes the given tasks, returning the result [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | CompletedFuture.java | 34 * A Future representing the result of an I/O operation that has already 39 private final V result; field in class:CompletedFuture 42 private CompletedFuture(V result, Throwable exc) { argument 43 this.result = result; 47 static <V> CompletedFuture<V> withResult(V result) { argument 48 return new CompletedFuture<V>(result, null); 58 static <V> CompletedFuture<V> withResult(V result, Throwable exc) { argument 60 return withResult(result); 70 return result; [all...] |
/libcore/ojluni/src/test/java/util/stream/bootlib/java/util/stream/ |
H A D | LoggingTestCase.java | 51 public void after(ITestResult result) { argument 52 if (!result.isSuccess()) { 54 Collections.addAll(list, result.getParameters()); 56 result.setParameters(list.toArray(new Object[list.size()]));
|
/libcore/ojluni/src/test/java/util/stream/testlib/org/openjdk/testlib/java/util/stream/ |
H A D | LoggingTestCase.java | 51 public void after(ITestResult result) { argument 52 if (!result.isSuccess()) { 54 Collections.addAll(list, result.getParameters()); 56 result.setParameters(list.toArray(new Object[list.size()]));
|
/libcore/jsr166-tests/src/test/java/jsr166/ |
H A D | DoubleAccumulatorTest.java | 122 * accumulates by multiple threads produce correct result 135 double result = a.get(); 136 assertEquals(expected, result); 144 volatile double result; field in class:DoubleAccumulatorTest.AccTask 156 result = a.get();
|
H A D | DoubleAdderTest.java | 156 volatile double result; field in class:DoubleAdderTest.AdderTask 169 result = a.sum();
|
H A D | LongAccumulatorTest.java | 122 * accumulates by multiple threads produce correct result 135 long result = a.get(); 136 assertEquals(expected, result); 144 volatile long result; field in class:LongAccumulatorTest.AccTask 156 result = a.get();
|
/libcore/luni/src/main/java/java/math/ |
H A D | BitLevel.java | 114 static void shiftLeftOneBit(int[] result, int[] source, int srcLen) { argument 118 result[i] = (val << 1) | carry; 122 result[srcLen] = carry; 154 // If the remainder is not zero, add 1 to the result 173 * @param result 185 static boolean shiftRight(int[] result, int resultLen, int[] source, int intCount, int count) { argument 191 System.arraycopy(source, intCount, result, 0, resultLen); 198 result[i] = ( source[i + intCount] >>> count ) 201 result[i] = ( source[i + intCount] >>> count );
|
/libcore/luni/src/test/java/libcore/java/util/prefs/ |
H A D | OldPreferenceChangeEventTest.java | 57 result = true; 82 result = true; 112 result = true; 131 protected boolean result = false; field in class:OldPreferenceChangeEventTest.MockPreferenceChangeListener 149 return result; 167 result = false;
|
/libcore/luni/src/test/native/ |
H A D | libcore_io_Memory_test.cpp | 92 T result = peek_func(nullptr, nullptr, src_aligned); local 93 ASSERT_EQ(value, result);
|
H A D | libcore_java_lang_ThreadTest.cpp | 82 std::string result; local 98 result.append("test 1: "); 99 result.append(*result_test1); 117 result.append("test 2: "); 118 result.append(*result_test2); 123 if (result.size() > 0) { 124 resultJString = env->NewStringUTF(result.c_str());
|
/libcore/ojluni/src/main/java/java/util/stream/ |
H A D | AbstractShortCircuitTask.java | 32 * stream ops, which can produce a result without processing all elements of the 37 * @param <R> type of intermediate result, may be different from operation 38 * result type 47 * The result for this computation; this is shared among all tasks and set 89 * finding a short-circuitable result. For example, for a "find" operation, 92 * @return the result to return when no task finds a result 108 R result; 109 while ((result = sr.get()) == null) { 111 result 150 shortCircuit(R result) argument [all...] |