Searched defs:result (Results 1 - 25 of 81) sorted by relevance

1234

/libcore/luni/src/main/native/
H A Dreadlink.cpp23 bool readlink(const char* path, std::string& result) { argument
36 result.assign(&buf[0], len);
H A DIcuUtilities.cpp40 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local
47 env->SetObjectArrayElement(result, i, javaString.get());
49 return result;
H A DvalueOf.cpp29 jobject result = env->CallStaticObjectMethod(c, valueOfMethod, value); local
33 return result;
/libcore/luni/src/main/java/java/util/concurrent/
H A DCompletionService.java52 * @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 DRecursiveTask.java10 * 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 DExecutorCompletionService.java42 * 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 DExecutorService.java108 * 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 DAbstractExecutorService.java59 * 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 DTransformerHandler.java40 * @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 DCompletedFuture.java34 * 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 DSocketChannelImpl.c59 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 DDatagramDispatcher.c56 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 DFileSystemPreferences.c47 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 DMappedByteBuffer.c44 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 DProcessEnvironment_md.c55 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 DLoggingTestCase.java51 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 DLoggingTestCase.java51 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 DDoubleAccumulatorTest.java122 * 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 DDoubleAdderTest.java156 volatile double result; field in class:DoubleAdderTest.AdderTask
169 result = a.sum();
H A DLongAccumulatorTest.java122 * 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 DLongAdderTest.java179 volatile long result; field in class:LongAdderTest.AdderTask
192 result = a.sum();
/libcore/luni/src/main/java/java/math/
H A DBitLevel.java114 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 Dlibcore_io_Memory_test.cpp92 T result = peek_func(nullptr, nullptr, src_aligned); local
93 ASSERT_EQ(value, result);
H A Dlibcore_java_lang_ThreadTest.cpp82 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 DAbstractShortCircuitTask.java32 * 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...]

Completed in 654 milliseconds

1234