Searched defs:result (Results 1 - 25 of 57) 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 DIcuUtilities.cpp40 jobjectArray result = env->NewObjectArray(count, JniConstants::stringClass, NULL); local
47 env->SetObjectArrayElement(result, i, javaString.get());
49 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.cpp46 UBool result = icu::Normalizer::isNormalized(src.unicodeString(), mode, status); local
48 return result;
H A Dlibcore_icu_NativePluralRules.cpp53 icu::PluralRules* result = icu::PluralRules::forLocale(locale, status); local
55 return reinterpret_cast<uintptr_t>(result);
H A Djava_util_regex_Pattern.cpp90 icu::RegexPattern* result = icu::RegexPattern::compile(regexString, flags, error, status); local
94 return static_cast<jlong>(reinterpret_cast<uintptr_t>(result));
H A Djava_io_File.cpp48 std::string result; local
49 if (!canonicalize_path(path.c_str(), result)) {
53 return env->NewStringUTF(result.c_str());
95 dirent* result = readdir(mDirStream); local
96 if (result != NULL) {
97 return result->d_name;
H A Dlibcore_icu_TimeZoneNames.cpp64 static void TimeZoneNames_fillZoneStrings(JNIEnv* env, jclass, jstring javaLocaleName, jobjectArray result) { argument
80 size_t id_count = env->GetArrayLength(result);
83 reinterpret_cast<jobjectArray>(env->GetObjectArrayElement(result, i)));
H A DPortability.h49 int result = sendfile(in_fd, out_fd, *offset, &in_out_count, NULL, 0); local
50 if (result == -1) {
H A Dlibcore_icu_AlphabeticIndex.cpp83 jint result = ai->getBucketCount(status); local
87 return result;
97 jint result = ai->getBucketIndex(string.unicodeString(), status); local
101 return result;
162 jint result = ii->getBucketIndex(string.unicodeString(), status); local
166 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 DAbstractExecutorService.java53 * the given value as its result and provide for cancellation of
67 * the callable's result as its result and provide for
90 public <T> Future<T> submit(Runnable task, T result) { argument
92 RunnableFuture<T> ftask = newTaskFor(task, result);
131 // 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.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();}
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
280 * Executes the given tasks, returning the result
288 * @return the result returned by one of the tasks
301 * Executes the given tasks, returning the result
[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/native/
H A Dlibcore_io_Memory_test.cpp92 T result = peek_func(nullptr, nullptr, src_aligned); local
93 ASSERT_EQ(value, result);
/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/luni/src/main/java/libcore/icu/
H A DTimeZoneNames.java64 String[][] result = new String[availableTimeZoneIds.length][5];
66 result[i][0] = availableTimeZoneIds[i];
70 fillZoneStrings(locale.toString(), result);
73 internStrings(result);
82 return result;
86 private synchronized void internStrings(String[][] result) { argument
88 for (int i = 0; i < result.length; ++i) {
90 String original = result[i][j];
95 result[i][j] = nonDuplicate;
162 private static native void fillZoneStrings(String locale, String[][] result); argument
[all...]
/libcore/luni/src/test/java/libcore/java/util/prefs/
H A DOldPreferenceChangeEventTest.java57 result = true;
82 result = true;
112 result = true;
131 protected boolean result = false; field in class:OldPreferenceChangeEventTest.MockPreferenceChangeListener
156 return result;
174 result = false;
/libcore/support/src/test/java/libcore/javax/net/ssl/
H A DTestSSLEnginePair.java226 private static void assertFinishedOnce(boolean[] finishedOut, SSLEngineResult result) { argument
227 if (result.getHandshakeStatus() == HandshakeStatus.FINISHED) {
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/
H A DCalendarTest.java40 // Test for correct result defined by the last set field
45 assertTrue("Incorrect result 0: " + cal.getTime().getTime(), cal
51 assertTrue("Incorrect result 0a: " + cal.getTime(), cal.getTime()
57 assertTrue("Incorrect result 0b: " + cal.getTime(), cal.getTime()
75 assertTrue("Incorrect result 0c1: " + cal.getTime().getTime(), cal
81 assertTrue("Incorrect result 0c2: " + cal.getTime().getTime(), cal
87 assertTrue("Incorrect result 0c3: " + cal.getTime(), cal.getTime()
93 assertTrue("Incorrect result 0d: " + cal.getTime(), cal.getTime()
99 assertTrue("Incorrect result 0e: " + cal.getTime(), cal.getTime()
105 assertTrue("Incorrect result
1061 assertDisplayNameMap(String[] values, Map<String, Integer> result, int shift) argument
[all...]
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/util/prefs/
H A DMockAbstractPreferences.java36 int result = NORMAL; field in class:MockAbstractPreferences
81 result = r;
91 if (result == returnNull)
99 switch (result) {
119 if (result == returnNull)
144 return result == returnNull ? null : attr.getProperty(key);
153 return result == returnNull ? null : results;
/libcore/jsr166-tests/src/test/java/jsr166/
H A DFutureTaskTest.java184 PublicFutureTask(Runnable runnable, Object result) { argument
185 this(runnable, result, new AtomicInteger(0));
187 private PublicFutureTask(final Runnable runnable, Object result, argument
193 }}, result);

Completed in 486 milliseconds

123