/libcore/luni/src/main/native/ |
H A D | readlink.cpp | 23 bool readlink(const char* path, std::string& result) { argument 36 result.assign(&buf[0], len);
|
H A D | IcuUtilities.cpp | 40 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local 47 env->SetObjectArrayElement(result, i, javaString.get()); 49 return result;
|
H A D | valueOf.cpp | 29 jobject result = env->CallStaticObjectMethod(c, valueOfMethod, value); local 33 return result;
|
/libcore/luni/src/main/java/java/util/concurrent/ |
H A D | CompletionService.java | 52 * @param result the result to return upon successful completion 55 * result value upon completion 60 Future<V> submit(Runnable task, V result); argument
|
H A D | RecursiveTask.java | 10 * A recursive result-bearing {@link ForkJoinTask}. 43 * The result of the computation. 45 V result; field in class:RecursiveTask 49 * @return the result of the computation 54 return result; 58 result = value; 65 result = compute();
|
H A D | ExecutorCompletionService.java | 42 * Suppose instead that you would like to use the first non-null result 54 * Result result = null; 62 * result = r; 73 * if (result != null) 74 * use(result); 104 private RunnableFuture<V> newTaskFor(Runnable task, V result) { argument 106 return new FutureTask<V>(task, result); 108 return aes.newTaskFor(task, result); 158 public Future<V> submit(Runnable task, V result) { argument 160 RunnableFuture<V> f = newTaskFor(task, result); [all...] |
H A D | ExecutorService.java | 108 * result is retrieved via {@code Future.get()}. 177 * Future's {@code get} method will return the task's result upon 183 * {@code result = exec.submit(aCallable).get();} 191 * @param <T> the type of the task's result 202 * return the given result upon successful completion. 205 * @param result the result to return 206 * @param <T> the type of the result 212 <T> Future<T> submit(Runnable task, T result); argument 284 * Executes the given tasks, returning the result [all...] |
H A D | AbstractExecutorService.java | 59 * the given value as its result and provide for cancellation of 71 * @param <T> the type of the callable's result 74 * the callable's result as its result and provide for 97 public <T> Future<T> submit(Runnable task, T result) { argument 99 RunnableFuture<T> ftask = newTaskFor(task, result); 138 // result, we can throw the last exception we got.
|
/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/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/main/native/ |
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...] |
H A D | MappedByteBuffer.c | 44 int result = 0; local 58 result = mincore(a, (size_t)len, vec); 59 if (result == -1) { 81 int result = madvise((caddr_t)a, (size_t)len, MADV_WILLNEED); local 82 if (result == -1) { 93 int result = msync(a, (size_t)len, MS_SYNC); local 94 if (result == -1) {
|
H A D | ProcessEnvironment_md.c | 55 jobjectArray result; local 64 result = (*env)->NewObjectArray(env, 2*count, byteArrCls, 0); 65 if (result == NULL) return NULL; 83 (*env)->SetObjectArrayElement(env, result, 2*j , var); 84 (*env)->SetObjectArrayElement(env, result, 2*j+1, val); 91 return result;
|
/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();
|
H A D | LongAdderTest.java | 179 volatile long result; field in class:LongAdderTest.AdderTask 192 result = a.sum();
|
/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/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...] |