/frameworks/base/services/tests/servicestests/src/com/android/server/ |
MountServiceTests.java | 55 private static void assertStartsWith(String message, String prefix, String actual) { 56 if (!actual.startsWith(prefix)) { 57 throw new ComparisonFailure(message, prefix, actual); 155 assertEquals("Actual file and resolved file should be the same", 179 assertEquals("Actual file and resolved file should be the same", file.getPath(),
|
/frameworks/compile/slang/tests/ |
test.py | 29 def CompareFiles(actual, expect): 30 """Compares actual and expect for equality.""" 31 if not os.path.isfile(actual): 33 print 'Could not find %s' % actual 40 return filecmp.cmp(actual, expect, False)
|
/frameworks/volley/src/com/android/volley/toolbox/ |
ImageRequest.java | 93 * @param actualPrimary Actual size of the primary dimension 94 * @param actualSecondary Actual size of the secondary dimension 98 // If no dominant value at all, just return the actual. 193 * @param actualWidth Actual width of the bitmap 194 * @param actualHeight Actual height of the bitmap
|
/packages/apps/Calendar/tests/src/com/android/calendar/alerts/ |
AlertServiceTest.java | 298 NotificationWrapper actual = mActualNotifications[id]; local 300 assertNull("Received unexpected notificationId " + id + debugStr, actual); 305 + debugStr, actual); 309 expected.mPriority, actual.mNotification.priority); 313 a.mEventId, actual.mEventId); 315 a.mBegin, actual.mBegin); 317 a.mEnd, actual.mEnd); 321 actual.mNw); 323 + debugStr, expected.mAlertIdsInDigest.length, actual.mNw.size()); 324 for (int i = 0; i < actual.mNw.size(); i++) 346 NotificationWrapper actual = mActualNotifications[i]; local [all...] |
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/account/ |
ExternalAccountTypeTest.java | 211 String actual = actualKinds.size() > i ? actualKinds.get(i).toString() : "(n/a)"; local 216 if (!Objects.equal(actual, expected)) { 217 final int commonPrefixEnd = findCommonPrefixEnd(actual, expected); 219 + "\n[Actual]\n" + insertMarkerAt(actual, commonPrefixEnd)
|
/packages/apps/KeyChain/src/com/android/keychain/ |
KeyChainService.java | 189 String actual = checkCaller("com.android.certinstaller"); 190 if (actual == null) { 196 String actual = checkCaller("android.uid.system:1000"); 197 if (actual != null) { 198 throw new IllegalStateException(actual);
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
KeySpecParserTests.java | 342 private static void assertArrayEquals(String message, Object[] expected, Object[] actual) { 343 if (expected == actual) { 346 if (expected == null || actual == null) { 347 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); 350 if (expected.length != actual.length) { 351 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); 356 Arrays.toString(expected), Arrays.toString(actual)); 362 final String[] actual = local 364 assertArrayEquals(message, expected, actual); 589 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length) local 627 final String[] actual = Arrays.copyOf(moreKeys, moreKeys.length); local [all...] |
KeySpecParserSplitTests.java | 71 final T[] actual) { 72 if (expected == actual) { 75 if (expected == null || actual == null) { 76 assertEquals(message, Arrays.toString(expected), Arrays.toString(actual)); 79 if (expected.length != actual.length) { 80 assertEquals(message + " [length]", Arrays.toString(expected), Arrays.toString(actual)); 85 final T a = actual[i]; 96 final String[] actual = KeySpecParser.splitKeySpecs(resolvedActual); local 98 assertArrayEquals(message, expected, actual);
|
/libcore/luni/src/test/java/libcore/java/security/ |
KeyStoreTest.java | 343 public static void assertPrivateKey(Key actual) 345 assertEquals(getPrivateKey().getPrivateKey(), actual); local 347 public static void assertPrivateKey2(Key actual) 349 assertEquals(getPrivateKey2().getPrivateKey(), actual); local 351 public static void assertPrivateKey(Entry actual) 353 assertNotNull(actual); 354 assertSame(PrivateKeyEntry.class, actual.getClass()); 355 PrivateKeyEntry privateKey = (PrivateKeyEntry) actual; 362 public static void assertSecretKey(Key actual) 364 assertEquals(getSecretKey(), actual); local 368 assertEquals(getSecretKey2(), actual); local 378 assertEquals(getPrivateKey().getCertificate(), actual); local 382 assertEquals(getPrivateKey2().getCertificate(), actual); local 1612 String actual = keyStore.getCertificateAlias(getPrivateKey().getCertificate()); local [all...] |
/cts/tests/tests/content/src/android/content/cts/ |
IntentFilterTest.java | 125 String actual = null; local 128 actual = iter.next(); 129 assertEquals(CATEGORY + i, actual); 231 String actual = null; local 234 actual = iter.next(); 235 assertEquals(DATA_SCHEME + i, actual); 438 AuthorityEntry actual = null; local 441 actual = iter.next(); 442 assertEquals(HOST + i, actual.getHost()); 443 assertEquals(PORT + i, actual.getPort()) 500 String actual = null; local 549 String actual = null; local 675 PatternMatcher actual = null; local [all...] |
/libcore/luni/src/test/java/libcore/java/security/cert/ |
X509CertificateTest.java | 312 PublicKey actual = c.getPublicKey(); local 313 assertEquals(expected, actual); 315 Arrays.toString(actual.getEncoded())); 453 BigInteger actual = getRsaCertificateSerial(); local 455 assertEquals(actual, c.getSerialNumber()); 713 boolean[] actual = c.getKeyUsage(); 714 assertEquals(9, actual.length); 715 assertEquals(Arrays.toString(expected), Arrays.toString(actual)); 732 boolean[] actual = c.getKeyUsage(); 733 assertEquals(9, actual.length) 763 List<String> actual = c.getExtendedKeyUsage(); local 770 List<String> actual = c.getExtendedKeyUsage(); local [all...] |
/external/chromium/testing/gtest/include/gtest/ |
gtest.h | 212 // Actual: false (5 is odd) 218 // Actual: false 238 // Actual: true (8 is even) 257 // << "Expected: " << expr << " is even\n Actual: it's " << n; 263 // Actual: it's 5 [all...] |
/external/chromium_org/testing/gtest/include/gtest/ |
gtest.h | 213 // Actual: false (5 is odd) 219 // Actual: false 239 // Actual: true (8 is even) 258 // << "Expected: " << expr << " is even\n Actual: it's " << n; 264 // Actual: it's 5 [all...] |
/external/chromium_org/third_party/mesa/src/src/gtest/include/gtest/ |
gtest.h | 212 // Actual: false (5 is odd) 218 // Actual: false 238 // Actual: true (8 is even) 257 // << "Expected: " << expr << " is even\n Actual: it's " << n; 263 // Actual: it's 5 [all...] |
/external/gtest/include/gtest/ |
gtest.h | 212 // Actual: false (5 is odd) 218 // Actual: false 238 // Actual: true (8 is even) 257 // << "Expected: " << expr << " is even\n Actual: it's " << n; 263 // Actual: it's 5 [all...] |
/external/llvm/utils/unittest/googletest/include/gtest/ |
gtest.h | 212 // Actual: false (5 is odd) 218 // Actual: false 238 // Actual: true (8 is even) 257 // << "Expected: " << expr << " is even\n Actual: it's " << n; 263 // Actual: it's 5 [all...] |
/external/mesa3d/src/gtest/include/gtest/ |
gtest.h | 212 // Actual: false (5 is odd) 218 // Actual: false 238 // Actual: true (8 is even) 257 // << "Expected: " << expr << " is even\n Actual: it's " << n; 263 // Actual: it's 5 [all...] |
/external/open-vcdiff/gtest/include/gtest/ |
gtest.h | 204 // Actual: false (5 is odd) 210 // Actual: false 230 // Actual: true (8 is even) 249 // << "Expected: " << expr << " is even\n Actual: it's " << n; 255 // Actual: it's 5 [all...] |
/ndk/sources/third_party/googletest/googletest/include/gtest/ |
gtest.h | 203 // Actual: false (5 is odd) 209 // Actual: false 229 // Actual: true (8 is even) 248 // << "Expected: " << expr << " is even\n Actual: it's " << n; 254 // Actual: it's 5 [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nls/ |
NotificationListenerVerifierActivity.java | 339 boolean checkEquals(long expected, long actual, String message) { 340 if (expected == actual) { 343 logWithStack(String.format(message, expected, actual)); 347 boolean checkEquals(String expected, String actual, String message) { 348 if (expected.equals(actual)) { 351 logWithStack(String.format(message, expected, actual)); 355 boolean checkFlagSet(int expected, int actual, String message) { 356 if ((expected & actual) != 0) { 359 logWithStack(String.format(message, expected, actual));
|
/external/chromium/net/websockets/ |
websocket_handshake_unittest.cc | 36 const std::string& actual) { 40 Tokenize(actual, "\r\n", &actual_lines); 64 << "\nactual:" << actual; local 71 const std::string& actual) { 73 ExpectHeaderEquals(expected, actual); 77 EXPECT_GT(actual.size(), 12U); 78 if (actual.size() <= 12U) 80 const char* actual_key3 = actual.data() + actual.size() - 12;
|
/external/chromium_org/tools/imagediff/ |
image_diff.cc | 142 float PercentageDifferent(const Image& baseline, const Image& actual) { 143 int w = std::min(baseline.w(), actual.w()); 144 int h = std::min(baseline.h(), actual.h()); 150 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y)) 156 int max_w = std::max(baseline.w(), actual.w()); 157 int max_h = std::max(baseline.h(), actual.h()); 166 // of the size of the 'actual' bitmap. 167 float total_pixels = static_cast<float>(actual.w()) * 168 static_cast<float>(actual.h());
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
CameraMetadataTest.java | 218 private static <T> void assertArrayEquals(T expected, T actual) { 219 assertEquals(Array.getLength(expected), Array.getLength(actual)); 223 assertEquals(Array.get(expected, i), Array.get(actual, i)); 236 T actual = mMetadata.get(key); local 237 assertEquals(value, actual); 501 String actual = mMetadata.get(gpsProcessingMethodKey); local 502 assertEquals(helloWorld, actual); 528 <T> void compareGeneric(T expected, T actual) { 529 assertEquals(expected, actual);
|
/external/ceres-solver/internal/ceres/ |
covariance_test.cc | 338 Matrix actual(row_end - row_begin, col_end - col_begin); 341 actual.data())); 347 col_end - col_begin) - actual).norm(); 358 << "\n\n actual: \n " << actual 747 Matrix actual(parameter_block_size_, parameter_block_size_); 755 covariance.GetCovarianceBlock(block_i, block_i, actual.data()); 756 EXPECT_NEAR((expected - actual).norm(), 0.0, kTolerance) 759 << "actual: \n" << actual; local 768 << "actual: \\n" << actual; local [all...] |
/external/chromium_org/content/browser/renderer_host/ |
compositing_iosurface_transformer_mac_unittest.cc | 77 LOG(ERROR) << "num_pixel_formats <= 0; actual value is " 210 // |actual|. 211 int ImageDifference(const SkBitmap& expected, const SkBitmap& actual) { 213 SkAutoLockPixels lock_actual(actual); 216 DCHECK_EQ(expected.width(), actual.width()); 217 DCHECK_EQ(expected.height(), actual.height()); 219 DCHECK_EQ(SkBitmap::kARGB_8888_Config, actual.config()); 225 const uint32_t* q = actual.getAddr32(0, y); 242 // |actual|. It is understood that |actual| contains 4-byte quads, and so w [all...] |