/ndk/tests/device/test-stlport/unit/ |
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...] |
/packages/apps/Camera2/src/com/android/camera/debug/ |
LogUtil.java | 60 String result = ""; local 65 result += "[" + trimmed + "]"; 68 return result;
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
AlarmInitReceiver.java | 56 final PendingResult result = goAsync(); local 88 result.finish();
|
/packages/apps/Dialer/src/com/android/dialer/contactinfo/ |
ContactInfoRequest.java | 59 int result = 1; local 60 result = prime * result + ((callLogInfo == null) ? 0 : callLogInfo.hashCode()); 61 result = prime * result + ((countryIso == null) ? 0 : countryIso.hashCode()); 62 result = prime * result + ((number == null) ? 0 : number.hashCode()); 63 return result;
|
/packages/apps/Gallery2/jni/ |
jni_egl_fence.cpp | 70 EGLint result = FuncEglClientWaitSyncKHR(display, local 74 if (result == EGL_FALSE) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/data/ |
SingleItemAlbum.java | 40 ArrayList<MediaItem> result = new ArrayList<MediaItem>(); local 44 result.add(mItem); 47 return result;
|
/packages/apps/Gallery2/src/com/android/gallery3d/util/ |
MediaSetUtils.java | 61 int result = set1.getName().compareToIgnoreCase(set2.getName()); local 62 if (result != 0) return result;
|
/packages/apps/Nfc/nxp/jni/ |
com_android_nfc_list.cpp | 59 bool result; local 65 result = false; 94 result = true; 98 return result; 105 bool result; local 113 result = false; 141 result = false; 157 result = true; 161 return result; 167 bool result; local [all...] |
/packages/apps/Settings/src/com/android/settings/search/ |
SettingsSearchIndexablesProvider.java | 65 MatrixCursor result = new MatrixCursor(INDEXABLES_RAW_COLUMNS); local 66 return result;
|
/packages/apps/Settings/src/com/android/settings/vpn2/ |
AppVpnInfo.java | 26 int result = packageName.compareTo(that.packageName); local 27 if (result == 0) { 28 result = that.userId - userId; 30 return result;
|
/packages/apps/TV/common/src/com/android/tv/common/ |
CollectionUtils.java | 37 T[] result = Arrays.copyOf(first, totalLength); local 40 System.arraycopy(array, 0, result, offset, array.length); 43 return result;
|
/packages/apps/UnifiedEmail/src/com/android/mail/utils/ |
ObjectCache.java | 54 T result; local 56 result = mDataStore.poll(); 58 if (result == null) { 59 result = mCallback.newInstance(); 61 return result;
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/comparator/ |
SizeFileComparator.java | 121 long result = size1 - size2; local 122 if (result < 0) { 124 } else if (result > 0) {
|
/packages/apps/UnifiedEmail/src/org/apache/commons/io/input/ |
CountingInputStream.java | 120 long result = getByteCount(); local 121 if (result > Integer.MAX_VALUE) { 122 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int"); 124 return (int) result; 138 long result = resetByteCount(); local 139 if (result > Integer.MAX_VALUE) { 140 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int"); 142 return (int) result; 150 * result in incorrect count for files over 2GB. 164 * result in incorrect count for files over 2GB [all...] |
/packages/apps/UnifiedEmail/src/org/apache/commons/io/output/ |
CountingOutputStream.java | 99 long result = getByteCount(); local 100 if (result > Integer.MAX_VALUE) { 101 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int"); 103 return (int) result; 117 long result = resetByteCount(); local 118 if (result > Integer.MAX_VALUE) { 119 throw new ArithmeticException("The byte count " + result + " is too large to be converted to an int"); 121 return (int) result; 129 * result in incorrect count for files over 2GB. 143 * result in incorrect count for files over 2GB [all...] |
/packages/apps/UnifiedEmail/tests/src/com/android/mail/ui/ |
HierarchicalFolderTruncationTests.java | 57 final SpannableStringBuilder result = mAdapter.truncateHierarchy(hierarchy); local 58 return result == null ? null : result.toString();
|
MailAsyncTaskLoaderTest.java | 22 volatile Object result; field in class:MailAsyncTaskLoaderTest.LoaderTestActivity 25 result = new Object(); 32 protected void onDiscardResult(Object result) { 33 MailAsyncTaskLoaderTest.assertNotNull(result); 39 return result; 46 MailAsyncTaskLoaderTest.assertEquals(data, result);
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/compat/ |
UserManagerCompatUtils.java | 73 final Boolean result = local 75 if (result == null) { 78 return result ? LOCK_STATE_UNLOCKED : LOCK_STATE_LOCKED;
|
/packages/services/Telecomm/src/com/android/server/telecom/callfiltering/ |
CallFilteringResult.java | 64 int result = (shouldAllowCall ? 1 : 0); local 65 result = 31 * result + (shouldReject ? 1 : 0); 66 result = 31 * result + (shouldAddToCallLog ? 1 : 0); 67 result = 31 * result + (shouldShowNotification ? 1 : 0); 68 return result;
|
/platform_testing/tests/perf/PowerPerfTest/src/com/android/powerperf/tests/ |
PowerPerfTest.java | 35 * redirects the output to result file 40 private static final String RESULT_FILE = "result"; 49 String result = getUiDevice().executeShellCommand(mScriptFilePath); local 50 Log.i(TAG, result);
|
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/gdiplus/ |
gdiplusmetafile.h | 218 Metafile *result = new Metafile(cloneImage, lastStatus); local 219 if (!result) { 223 return result; 269 UINT result = 0; local 271 (GpMetafile*) nativeImage, &result)); 272 return result; 276 HENHMETAFILE result = NULL; local 278 (GpMetafile*) nativeImage, &result)); 279 return result;
|