/external/guava/guava/src/com/google/common/io/ |
CountingInputStream.java | 54 int result = in.read(); local 55 if (result != -1) { 58 return result; 62 int result = in.read(b, off, len); local 63 if (result != -1) { 64 count += result; 66 return result; 70 long result = in.skip(n); local 71 count += result; 72 return result; [all...] |
MultiInputStream.java | 85 int result = in.read(); local 86 if (result == -1) { 90 return result; 97 int result = in.read(b, off, len); local 98 if (result == -1) { 102 return result; 109 long result = in.skip(n); local 110 if (result != 0) { 111 return result;
|
MultiReader.java | 56 int result = current.read(cbuf, off, len); local 57 if (result == -1) { 61 return result; 68 long result = current.skip(n); local 69 if (result > 0) { 70 return result;
|
/external/guava/guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ |
EnumMultiset.java | 66 EnumMultiset<E> result = create(type); local 67 Iterables.addAll(result, elements); 68 return result;
|
SingletonImmutableBiMap.java | 57 ImmutableBiMap<V, K> result = inverse; local 58 if (result == null) { 61 return result;
|
/external/guava/guava-testlib/src/com/google/common/collect/testing/google/ |
SortedSetMultimapTestSuiteBuilder.java | 47 SortedSetMultimapTestSuiteBuilder<K, V> result = new SortedSetMultimapTestSuiteBuilder<K, V>(); local 48 result.usingGenerator(generator); 49 return result;
|
/external/guava/guava-testlib/src/com/google/common/testing/ |
TestLogHandler.java | 85 List<LogRecord> result = new ArrayList<LogRecord>(list); local 86 return Collections.unmodifiableList(result);
|
/external/guava/guava-tests/benchmark/com/google/common/hash/ |
HashFunctionBenchmark.java | 56 int result = 37; local 58 result ^= hashFunction.hashBytes(testBytes).asBytes()[0]; 60 return result;
|
/external/guice/core/src/com/google/inject/ |
ConfigurationException.java | 49 ConfigurationException result = new ConfigurationException(messages); local 50 result.partialValue = partialValue; 51 return result;
|
/external/guice/core/src/com/google/inject/internal/ |
FailableCache.java | 35 V result = null; 37 result = FailableCache.this.create(key, errors); 41 return errors.hasErrors() ? errors : result; 53 @SuppressWarnings("unchecked") // create returned a non-error result, so this is safe 54 V result = (V) resultOrError; local 55 return result;
|
/external/guice/extensions/persist/test/com/google/inject/persist/jpa/ |
JpaTestEntity.java | 69 int result = id != null ? id.hashCode() : 0; local 70 result = 31 * result + (text != null ? text.hashCode() : 0); 71 return result;
|
/external/hamcrest/library/src/org/hamcrest/text/ |
IsEqualIgnoringWhiteSpace.java | 38 StringBuilder result = new StringBuilder();
local 44 result.append(' ');
48 result.append(c);
52 return result.toString().trim();
|
/external/hamcrest/library/src/org/hamcrest/xml/ |
HasXPath.java | 44 String result = (String) compiledXPath.evaluate(item, XPathConstants.STRING); local 45 if (result == null) { 48 return !result.equals(""); 50 return valueMatcher.matches(result);
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
ICUResourceTableAccess.java | 36 String result = null; local 48 result = stable.findStringWithFallback(item); 49 if (result != null) { 64 result = table.findStringWithFallback(currentName); 65 if (result != null) { 93 // If the result is empty return item instead 94 return ((result != null && result.length() > 0) ? result : item);
|
IterableComparator.java | 53 int result = comparator != null ? comparator.compare(aItem, bItem) : ((Comparable<T>)aItem).compareTo(bItem); local 54 if (result != 0) { 55 return result;
|
/external/icu/android_icu4j/src/main/java/android/icu/text/ |
CharsDictionaryMatcher.java | 12 import android.icu.util.BytesTrie.Result; 29 Result result = uct.firstForCodePoint(c); local 34 if (result.hasValue()) { 43 if (result == Result.FINAL_VALUE) { 46 } else if (result == Result.NO_MATCH) { 58 result = uct.nextForCodePoint(c);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/duration/ |
RegressionTest.java | 35 String result = df.formatDurationFromNow(500); local 39 result); 51 String result = df.formatDurationFromNow(500); local 55 result); 70 String result = df.formatDurationFromNow(500); local 74 result);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/serializable/ |
SerializableWriter.java | 38 StringBuffer result = new StringBuffer("ICU_"); local 40 result.append(major); 41 result.append("."); 42 result.append(minor); 45 result.append("."); 46 result.append(milli); 49 result.append("."); 50 result.append(micro); 54 return result.toString();
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/ |
TestStringPrepProfiles.java | 37 * *Note: For expected failures add FAIL to beginning of the source string and for expected result use "FAIL". 145 String result = null; local 159 result = sprep.prepare(src, StringPrep.ALLOW_UNASSIGNED); 162 } else if (!result.equals(expected)) { 163 errln("Failed: Test[" + i + "] Result string does not match expected string for StringPrep test for profile: " + profileName);
|
/external/icu/android_icu4j/src/main/tests/android/icu/dev/util/ |
FileUtilities.java | 83 String result = source.toLowerCase(Locale.ENGLISH).replaceAll("[^\\p{L}\\p{N}]+", "_"); local 84 if (result.endsWith("_")) result = result.substring(0,result.length()-1); 85 if (result.startsWith("_")) result = result.substring(1); 86 return result;
|
/external/icu/icu4c/source/common/ |
bytestrie.cpp | 101 UStringTrieResult result; local 106 result=USTRINGTRIE_FINAL_VALUE; 130 result= node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE; 133 return result; 267 UStringTrieResult result=branchNext(pos, node, inByte); 268 if(result==USTRINGTRIE_NO_MATCH) { 274 return result; 278 return result; 283 if(result==USTRINGTRIE_FINAL_VALUE) {
|
/external/icu/icu4c/source/i18n/ |
casetrn.cpp | 152 int32_t textPos, delta, result, locCache=0; local 159 result=fMap(fCsp, c, utrans_rep_caseContextIterator, &csc, &s, "", &locCache); 168 if(result>=0) { 169 // replace the current code point with its full case mapping result 171 if(result<=UCASE_MAX_STRING_LENGTH) { 172 // string s[result] 173 tmp.setTo(FALSE, s, result); 174 delta=result-U16_LENGTH(c); 177 tmp.setTo(result);
|
nfrlist.h | 56 NFRule* result = fStuff[index]; local 61 return result; 79 NFRule** result = fStuff; local 83 return result;
|
remtrans.cpp | 50 Transliterator* result = new RemoveTransliterator(); local 51 if (result != NULL && getFilter() != 0) { 52 result->adoptFilter((UnicodeFilter*)(getFilter()->clone())); 54 return result;
|
titletrn.cpp | 119 int32_t textPos, delta, result, locCache=0; local 129 result=ucase_toFullTitle(fCsp, c, utrans_rep_caseContextIterator, &csc, &s, "", &locCache); 131 result=ucase_toFullLower(fCsp, c, utrans_rep_caseContextIterator, &csc, &s, "", &locCache); 142 if(result>=0) { 143 // replace the current code point with its full case mapping result 145 if(result<=UCASE_MAX_STRING_LENGTH) { 146 // string s[result] 147 tmp.setTo(FALSE, s, result); 148 delta=result-U16_LENGTH(c); 151 tmp.setTo(result); [all...] |