/libcore/luni/src/test/java/libcore/java/math/ |
OldBigIntegerOperateBitsTest.java | 41 int result = aNumber.getLowestSetBit(); local 42 assertTrue("incorrect value", result == iNumber); 56 int result = aNumber.getLowestSetBit(); local 57 assertTrue("incorrect value", result == iNumber); 64 result = aNumber.getLowestSetBit(); 65 assertTrue("incorrect value", result == iNumber); 72 result = aNumber.getLowestSetBit(); 73 assertTrue("incorrect value", result == iNumber); 87 int result = aNumber.getLowestSetBit(); local 88 assertTrue("incorrect value", result == iNumber) [all...] |
/libcore/luni/src/test/native/ |
libcore_io_Memory_test.cpp | 92 T result = peek_func(nullptr, nullptr, src_aligned); local 93 ASSERT_EQ(value, result);
|
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/security/ |
DigestInputStream.java | 161 int result = in.read(b, off, len); local 162 if (on && result != -1) { 163 digest.update(b, off, result); 165 return result;
|
/libcore/ojluni/src/main/java/sun/misc/ |
MessageUtils.java | 59 StringBuffer result = new StringBuffer(); local 67 result.append(patt.charAt(i + 1)); 70 result.append(args[index]); 75 result.append(ch); 78 return result.toString();
|
/libcore/ojluni/src/main/java/sun/nio/ch/ |
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) { 43 this.result = result; 47 static <V> CompletedFuture<V> withResult(V result) { 48 return new CompletedFuture<V>(result, null); 58 static <V> CompletedFuture<V> withResult(V result, Throwable exc) { 60 return withResult(result); 70 return result; [all...] |
/libcore/ojluni/src/main/java/sun/util/ |
ResourceBundleEnumeration.java | 75 String result = next; local 77 return result;
|
/libcore/ojluni/src/main/native/ |
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_FALSE) 118 ssize_t result = 0; local [all...] |
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[0] = 0 [all...] |
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) {
|
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/support/src/test/java/libcore/tlswire/handshake/ |
CompressionMethod.java | 54 int result = 1; local 55 result = prime * result + type; 56 return result;
|
/libcore/support/src/test/java/libcore/tlswire/util/ |
IoUtils.java | 31 byte[] result = new byte[sizeBytes]; 32 in.readFully(result); 33 return result; 40 int[] result = new int[elementCount]; local 42 result[i] = in.readUnsignedShort(); 44 return result;
|
/libcore/support/src/test/java/tests/util/ |
Pair.java | 72 int result = 1; local 73 result = prime * result + ((mFirst == null) ? 0 : mFirst.hashCode()); 74 result = prime * result + ((mSecond == null) ? 0 : mSecond.hashCode()); 75 return result;
|
/ndk/sources/android/support/src/ |
locale_support.c | 59 int result = vasprintf_l(strp, locale, fmt, args); local 61 return result; 72 int result = vsprintf_l(str, l, fmt, args); local 74 return result; 84 int result = vsnprintf_l(str, size, l, fmt, args); local 86 return result; 96 int result = vsscanf_l(str, l, fmt, args); local 98 return result;
|
/ndk/sources/cxx-stl/gabi++/src/ |
dwarf_helper.cc | 57 uintptr_t result = 0; local 63 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; 67 return result; 71 uintptr_t result = 0; local 77 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; 81 if ((byte & 0x40) && (shift < (sizeof(result) << 3))) { 82 result |= static_cast<uintptr_t>(~0) << shift; 84 return static_cast<intptr_t>(result); 145 uintptr_t result = 0; local 147 return result; [all...] |
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/test/ |
test_exception_storage.pass.cpp | 25 size_t *result = (size_t *) parm; local 30 std::cerr << "Got null result from __cxa_get_globals" << std::endl; 36 *result = (size_t) glob1;
|
/ndk/tests/build/issue22345-ICE-postreload/jni/ |
issue22345-ICE-postreload.cpp | 8 float32x4_t result = vmulq_f32(vec1, vec2); local 9 result = vaddq_f32(result, _IOS_SHUFFLE_1032(result)); 10 result = vaddq_f32(result, _IOS_SHUFFLE_2301(result)); 11 return result; 15 float32x4_t result; local 16 result = vrsqrteq_f32(vec) 32 Vector3 result; local 42 Vector3 result; local [all...] |
/ndk/tests/device/test-gnustl-full/unit/ |
copy_test.cpp | 43 char result[23]; local 44 copy(string, string + 23, result); 45 CPPUNIT_ASSERT(!strncmp(string, result, 23)); 122 int result[5]; local 123 copy_backward(numbers, numbers + 5, (int*)result + 5); 124 CPPUNIT_ASSERT(result[0]==numbers[0]); 125 CPPUNIT_ASSERT(result[1]==numbers[1]); 126 CPPUNIT_ASSERT(result[2]==numbers[2]); 127 CPPUNIT_ASSERT(result[3]==numbers[3]); 128 CPPUNIT_ASSERT(result[4]==numbers[4]) [all...] |
mismatch_test.cpp | 44 pair <int*, int*> result = mismatch((int*)n1, (int*)n1 + 5, (int*)n2); local 45 CPPUNIT_ASSERT(result.first ==(n1 + 5) && result.second ==(n2 + 5)); 47 result = mismatch((int*)n1, (int*)n1 + 5, (int*)n3); 48 CPPUNIT_ASSERT(!(result.first ==(n1 + 5) && result.second ==(n3 + 5))); 49 CPPUNIT_ASSERT((result.first - n1)==3); 58 pair <IntVec::iterator, IntVec::iterator> result = mismatch(v1.begin(), v1.end(), v2.begin()); local 60 CPPUNIT_ASSERT(result.first == v1.end() && result.second == v2.end()) 74 pair <char const**, char const**> result = mismatch((char const**)n1, (char const**)n1 + size, (char const**)n2, str_equal); local [all...] |
rm_cp_test.cpp | 71 int result[6]; local 72 reverse_copy((int*)numbers, (int*)numbers + 6, (int*)result); 74 CPPUNIT_ASSERT(result[0]==5); 75 CPPUNIT_ASSERT(result[1]==4); 76 CPPUNIT_ASSERT(result[2]==3); 77 CPPUNIT_ASSERT(result[3]==2); 78 CPPUNIT_ASSERT(result[4]==1); 79 CPPUNIT_ASSERT(result[5]==0); 106 int result[6] = { 0, 0, 0, 0, 0, 0 }; local 108 replace_copy((int*)numbers, (int*)numbers + 6, (int*)result, 2, 42) 219 int result[6] = { 0, 0, 0, 0, 0, 0 }; local 234 int result[6] = { 0, 0, 0, 0, 0, 0 }; local [all...] |
setdiff_test.cpp | 47 int result[4] = { 0, 0, 0, 0 }; local 49 set_symmetric_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); 50 CPPUNIT_ASSERT(result[0]==10); 51 CPPUNIT_ASSERT(result[1]==17); 52 CPPUNIT_ASSERT(result[2]==18); 53 CPPUNIT_ASSERT(result[3]==0); 91 int result[4] = { 0, 0, 0, 0 }; local 95 set_difference((int*)v1, (int*)v1 + 3, (int*)v2, (int*)v2 + 4, (int*)result); 96 CPPUNIT_ASSERT( result[0] == 18 ); 97 CPPUNIT_ASSERT( result[1] == 0 ) [all...] |
transform_test.cpp | 48 int result[6]; local 49 transform((int*)numbers, (int*)numbers + 6, (int*)result, negate_int); 51 CPPUNIT_ASSERT(result[0]==5); 52 CPPUNIT_ASSERT(result[1]==1); 53 CPPUNIT_ASSERT(result[2]==0); 54 CPPUNIT_ASSERT(result[3]==-1); 55 CPPUNIT_ASSERT(result[4]==-6); 56 CPPUNIT_ASSERT(result[5]==-11);
|
unique_test.cpp | 71 int result[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; local 73 unique_copy((int*)numbers, (int*)numbers + 8, (int*)result); 76 CPPUNIT_ASSERT(result[0]==0); 77 CPPUNIT_ASSERT(result[1]==1); 78 CPPUNIT_ASSERT(result[2]==2); 79 CPPUNIT_ASSERT(result[3]==3); 80 CPPUNIT_ASSERT(result[4]==4); 81 CPPUNIT_ASSERT(result[5]==0); 82 CPPUNIT_ASSERT(result[6]==0); 83 CPPUNIT_ASSERT(result[7]==0) [all...] |
/ndk/tests/device/test-stlport/unit/ |
copy_test.cpp | 43 char result[23]; local 44 copy(string, string + 23, result); 45 CPPUNIT_ASSERT(!strncmp(string, result, 23)); 122 int result[5]; local 123 copy_backward(numbers, numbers + 5, (int*)result + 5); 124 CPPUNIT_ASSERT(result[0]==numbers[0]); 125 CPPUNIT_ASSERT(result[1]==numbers[1]); 126 CPPUNIT_ASSERT(result[2]==numbers[2]); 127 CPPUNIT_ASSERT(result[3]==numbers[3]); 128 CPPUNIT_ASSERT(result[4]==numbers[4]) [all...] |