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

123

/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 DtoStringArray.h26 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local
27 if (result == NULL) {
35 env->SetObjectArrayElement(result, i, s.get());
40 return result;
46 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local
47 if (result == NULL) {
57 env->SetObjectArrayElement(result, i, s.get());
62 return result;
H A Djava_util_zip_CRC32.cpp31 jlong result = crc32(crc, reinterpret_cast<const Bytef*>(bytes.get() + off), len); local
32 return result;
H A Dlibcore_icu_NativeNormalizer.cpp39 UBool result = Normalizer::isNormalized(src.unicodeString(), mode, status); local
41 return result;
H A Dlibcore_icu_NativePluralRules.cpp36 PluralRules* result = PluralRules::forLocale(locale, status); local
38 return reinterpret_cast<uintptr_t>(result);
H A Djava_util_regex_Pattern.cpp87 RegexPattern* result = RegexPattern::compile(regexString, flags, error, status); local
91 return static_cast<jint>(reinterpret_cast<uintptr_t>(result));
H A Djava_io_File.cpp49 std::string result; local
50 if (!readlink(path.c_str(), result)) {
54 return env->NewStringUTF(result.c_str());
64 std::string result; local
65 if (!realpath(path.c_str(), result)) {
69 return env->NewStringUTF(result.c_str());
110 dirent* result = NULL; local
111 int rc = readdir_r(mDirStream, &mEntry, &result);
116 return (result != NULL) ? result
[all...]
H A Djava_lang_Character.cpp57 double result = u_getNumericValue(codePoint); local
58 if (result == U_NO_NUMERIC_VALUE) {
60 } else if (result < 0 || floor(result + 0.5) != result) {
63 return static_cast<jint>(result);
H A Dlibcore_icu_TimeZones.cpp50 jobjectArray result = env->NewObjectArray(idCount, JniConstants::stringClass, NULL); local
57 env->SetObjectArrayElement(result, i, idString.get());
59 return result;
182 jobjectArray result = env->NewObjectArray(idCount, JniConstants::stringArrayClass, NULL); local
218 env->SetObjectArrayElement(result, i, javaRow.get());
222 return result;
/libcore/dalvik/src/main/native/
H A Dorg_apache_harmony_dalvik_NativeTestTarget.cpp59 int result = jniRegisterNativeMethods(env, local
62 if (result != 0) {
/libcore/luni/src/main/java/java/util/concurrent/
H A DCompletionService.java53 * @param result the result to return upon successful completion
56 * result value upon completion
61 Future<V> submit(Runnable task, V result); argument
H A DRecursiveTask.java10 * A recursive result-bearing {@link ForkJoinTask}.
44 * The result of the computation.
46 V result; field in class:RecursiveTask
54 return result;
58 result = value;
65 result = compute();
H A DAbstractExecutorService.java52 * the given value as its result and provide for cancellation of
66 * the callable's result as its result and provide for
89 public <T> Future<T> submit(Runnable task, T result) { argument
91 RunnableFuture<T> ftask = newTaskFor(task, result);
130 // result, we can throw the last exception we got.
H A DExecutorCompletionService.java42 * Suppose instead that you would like to use the first non-null result
55 * Result result = null;
63 * result = r;
74 * if (result != null)
75 * use(result);
102 private RunnableFuture<V> newTaskFor(Runnable task, V result) { argument
104 return new FutureTask<V>(task, result);
106 return aes.newTaskFor(task, result);
156 public Future<V> submit(Runnable task, V result) { argument
158 RunnableFuture<V> f = newTaskFor(task, result);
[all...]
H A DExecutorService.java107 * result is retrieved via {@code Future.get()}.
177 * Future's <tt>get</tt> method will return the task's result upon
183 * <tt>result = exec.submit(aCallable).get();</tt>
201 * return the given result upon successful completion.
204 * @param result the result to return
210 <T> Future<T> submit(Runnable task, T result); argument
281 * Executes the given tasks, returning the result
289 * @return the result returned by one of the tasks
302 * Executes the given tasks, returning the result
[all...]
H A DExecutors.java298 * called, runs the given task and returns the given result. This
302 * @param result the result to return
306 public static <T> Callable<T> callable(Runnable task, T result) { argument
309 return new RunnableAdapter<T>(task, result);
327 * called, runs the given privileged action and returns its result.
342 * its result.
380 * A callable that runs given task and returns given result
384 final T result; field in class:Executors.RunnableAdapter
385 RunnableAdapter(Runnable task, T result) { argument
567 submit(Runnable task, T result) argument
[all...]
/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/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/java/libcore/java/util/prefs/
H A DOldPreferenceChangeEventTest.java36 result = true;
61 result = true;
91 result = true;
110 protected boolean result = false; field in class:OldPreferenceChangeEventTest.MockPreferenceChangeListener
135 return result;
153 result = false;
/libcore/luni/src/main/java/javax/xml/validation/
H A DValidator.java97 * result to the specified output.
161 * @param result
170 * (in which case <tt>source.getNode()==result.getNode()</tt>),
197 public abstract void validate(Source source, Result result) throws SAXException, IOException; argument
/libcore/include/
H A DUniquePtr.h68 T* result = mPtr; local
70 return result;
114 T* result = mPtr; local
116 return result;
/libcore/luni/src/main/java/libcore/icu/
H A DTimeZones.java68 String[][] result = getZoneStringsImpl(locale.toString(), availableTimeZones);
70 internStrings(result);
79 return result;
82 private synchronized void internStrings(String[][] result) { argument
83 for (int i = 0; i < result.length; ++i) {
85 String original = result[i][j];
90 result[i][j] = nonDuplicate;
/libcore/support/src/test/java/tests/support/
H A DSupport_Configuration.java304 static void load(InputStream in, Hashtable<String, String> result) throws IOException { argument
377 result.put(key.toString(), value.toString());
419 result.put(key.toString(), value.toString());
/libcore/luni/src/main/java/java/nio/charset/
H A DCharsetDecoder.java50 * indicate the stop reason, and the invoker can identify the result and choose
188 CoderResult result = null;
190 result = decode(in, output, false);
191 checkCoderResult(result);
192 if (result.isUnderflow()) {
194 } else if (result.isOverflow()) {
198 result = decode(in, output, true);
199 checkCoderResult(result);
202 result = flush(output);
203 checkCoderResult(result);
219 checkCoderResult(CoderResult result) argument
[all...]
H A DCharsetEncoder.java197 boolean result = true;
201 result = false;
206 return result;
281 CoderResult result = null;
283 result = encode(in, output, false);
284 if (result==CoderResult.UNDERFLOW) {
286 } else if (result==CoderResult.OVERFLOW) {
290 checkCoderResult(result);
292 result = encode(in, output, true);
293 checkCoderResult(result);
321 checkCoderResult(CoderResult result) argument
[all...]

Completed in 543 milliseconds

123