/external/easymock/src/org/easymock/internal/ |
UnorderedBehavior.java | 47 public Result addActual(Invocation actual) {
50 if (!entry.getExpectedInvocation().matches(actual)) {
55 // actual and expected matched, validate the capture
56 actual.validateCaptures();
63 actual.clearCaptures();
|
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/core/ |
IsEqual.java | 31 private static boolean areEqual(Object actual, Object expected) { 32 if (actual == null) { 36 if (expected != null && isArray(actual)) { 37 return isArray(expected) && areArraysEqual(actual, expected); 40 return actual.equals(expected);
|
/external/icu/icu4j/main/classes/localespi/src/com/ibm/icu/impl/javaspi/text/ |
NumberFormatProviderICU.java | 54 ULocale actual = ICULocaleServiceProvider.toULocaleNoSpecialVariant(locale); local 57 icuNfmt = com.ibm.icu.text.NumberFormat.getNumberInstance(actual); 60 icuNfmt = com.ibm.icu.text.NumberFormat.getIntegerInstance(actual); 63 icuNfmt = com.ibm.icu.text.NumberFormat.getCurrencyInstance(actual); 66 icuNfmt = com.ibm.icu.text.NumberFormat.getPercentInstance(actual);
|
/external/v8/tools/clang/blink_gc_plugin/tests/ |
test.py | 24 def ProcessOneResult(self, test_name, actual): 26 # use the processed results as the actual results of the test. 29 actual = subprocess.check_output( 37 actual = e.output 42 return super(BlinkGcPluginTest, self).ProcessOneResult(test_name, actual)
|
/libcore/luni/src/test/java/org/apache/harmony/crypto/tests/javax/crypto/spec/ |
GCMParameterSpecTest.java | 79 byte[] actual = spec.getIV(); 80 assertEquals(Arrays.toString(TEST_IV), Arrays.toString(actual)); 83 for (int i = 0; i < actual.length; i++) { 84 actual[i] ^= 0xFF; 88 Arrays.equals(spec.getIV(), actual));
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
ComparisonTask.java | 50 public ComparisonTask(String name, File expected, File actual) { 53 mActual = actual; 59 final BufferedImage actual = ImageIO.read(mActual); local 60 if (!compare(expected, actual, IMAGE_THRESHOLD)) { 62 createDiff(expected, actual, diff); 96 * @param generated actual image 163 private static void createDiff(BufferedImage expected, BufferedImage actual, File out) 167 final int w2 = actual.getWidth(); 168 final int h2 = actual.getHeight(); 185 colorActual = actual.getRGB(i, j) [all...] |
/frameworks/av/media/libaaudio/examples/input_monitor/src/ |
input_monitor.cpp | 88 printf("SharingMode: requested = %s, actual = %s\n", 106 printf("DataFormat: requested = %d, actual = %d\n", requestedDataFormat, actualDataFormat); 110 printf("PerformanceMode: requested = %d, actual = %d\n", requestedPerformanceMode, 138 int actual = AAudioStream_read(aaudioStream, data, minFrames, timeoutNanos); local 139 if (actual < 0) { 140 fprintf(stderr, "ERROR - AAudioStream_read() returned %d\n", actual); 141 result = actual; 143 } else if (actual == 0) { 144 fprintf(stderr, "WARNING - AAudioStream_read() returned %d\n", actual); 147 framesLeft -= actual; [all...] |
/libcore/luni/src/test/java/org/apache/harmony/security/tests/java/security/ |
ProviderTest.java | 432 Set<Service> actual = myProvider.getServices(); local 434 assertTrue(actual.contains(s[0])); 435 assertTrue(actual.contains(s[1])); 436 assertTrue(!actual.contains(s[2])); 439 actual = myProvider.getServices(); 442 assertTrue(actual.contains(s[0])); 443 assertTrue(!actual.contains(s[1])); 444 assertTrue(!actual.contains(s[2])); 447 actual = myProvider.getServices(); 449 assertTrue(actual.contains(s[0])) 469 Set<Service> actual = myProvider.getServices(); local 535 Set<Service> actual = myProvider.getServices(); local [all...] |
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
CtsMouseUtil.java | 74 public boolean matchesObject(Object actual) { 75 return (actual instanceof MotionEvent) && ((MotionEvent) actual).getAction() == mAction; 95 public boolean matchesObject(Object actual) { 96 return super.matchesObject(actual) 97 && ((int) ((MotionEvent) actual).getX()) == mX 98 && ((int) ((MotionEvent) actual).getY()) == mY;
|
/external/google-breakpad/src/testing/gtest/test/ |
gtest-filepath_test.cc | 259 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 261 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); 265 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 267 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); 271 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 273 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); 277 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 279 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); 283 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 285 EXPECT_STREQ("bar.xml", actual.c_str()) 289 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 295 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 301 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 307 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 313 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 319 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 325 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 332 FilePath actual = FilePath::ConcatPaths( local 340 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/external/googletest/googletest/test/ |
gtest-filepath_test.cc | 251 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 253 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 257 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 259 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 263 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 265 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 269 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 271 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 275 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 277 EXPECT_EQ("bar.xml", actual.string()) 281 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 287 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 293 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 305 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local 310 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 316 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 323 FilePath actual = FilePath::ConcatPaths( local 331 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/external/ltp/testcases/kernel/syscalls/sysconf/ |
sysconf01.c | 151 int retval, actual; local 154 actual = errno; 159 INVAL_FLAG, retval, actual, strerror(actual)); 160 } else if (actual != EINVAL) { 163 "errno (%i) != actual (%i)", EINVAL, actual);
|
/external/pdfium/testing/resources/javascript/ |
globals.in | 112 var actual = global[prop.name]; 113 app.alert(" " + prop.name + " = " + actual); 114 if (actual != null && typeof actual == "object") { 115 app.alert(" " + actual.colors[0]); 116 app.alert(" " + actual.colors[1]); 117 app.alert(" " + actual.colors[2]);
|
/external/protobuf/gtest/test/ |
gtest-filepath_test.cc | 255 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 257 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); 261 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 263 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); 267 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 269 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.c_str()); 273 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 275 EXPECT_STREQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.c_str()); 279 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 281 EXPECT_STREQ("bar.xml", actual.c_str()) 285 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 291 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 297 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 303 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 309 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 315 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 321 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 328 FilePath actual = FilePath::ConcatPaths( local 336 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/external/skia/tests/ |
ColorMatrixTest.cpp | 19 SkColor expected, SkColor actual, int tolerance) { 20 REPORTER_ASSERT(reporter, abs((int)(SkColorGetA(expected) - SkColorGetA(actual))) <= tolerance); 21 REPORTER_ASSERT(reporter, abs((int)(SkColorGetR(expected) - SkColorGetR(actual))) <= tolerance); 22 REPORTER_ASSERT(reporter, abs((int)(SkColorGetG(expected) - SkColorGetG(actual))) <= tolerance); 23 REPORTER_ASSERT(reporter, abs((int)(SkColorGetB(expected) - SkColorGetB(actual))) <= tolerance); 26 static inline void assert_color(skiatest::Reporter* reporter, SkColor expected, SkColor actual) { 28 assert_color(reporter, expected, actual, TOLERANCE);
|
/external/v8/testing/gtest/test/ |
gtest-filepath_test.cc | 251 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 253 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 257 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 259 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 263 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 265 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 269 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 271 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 275 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 277 EXPECT_EQ("bar.xml", actual.string()) 281 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 287 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 293 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 305 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local 310 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 316 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 323 FilePath actual = FilePath::ConcatPaths( local 331 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/external/vulkan-validation-layers/tests/gtest-1.7.0/test/ |
gtest-filepath_test.cc | 251 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 253 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 257 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 259 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 263 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 265 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 269 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 271 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 275 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 277 EXPECT_EQ("bar.xml", actual.string()) 281 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 287 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 293 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 305 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local 310 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 316 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 323 FilePath actual = FilePath::ConcatPaths( local 331 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/packages/apps/Settings/tests/robotests/src/com/android/settings/ |
SettingsLicenseActivityTest.java | 69 void assertEqualIntents(Intent actual, Intent expected) { 70 assertThat(actual.getAction()).isEqualTo(expected.getAction()); 71 assertThat(actual.getDataString()).isEqualTo(expected.getDataString()); 72 assertThat(actual.getType()).isEqualTo(expected.getType()); 73 assertThat(actual.getCategories()).isEqualTo(expected.getCategories()); 74 assertThat(actual.getPackage()).isEqualTo(expected.getPackage()); 75 assertThat(actual.getFlags()).isEqualTo(expected.getFlags());
|
/packages/apps/TV/tests/unit/src/com/android/tv/data/ |
ChannelNumberTest.java | 87 private void assertChannelEquals(ChannelNumber actual, String expectedMajor, 89 assertEquals(actual + " major", actual.majorNumber, expectedMajor); 90 assertEquals(actual + " hasDelimiter", actual.hasDelimiter, expectedHasDelimiter); 91 assertEquals(actual + " minor", actual.minorNumber, expectedMinor);
|
/prebuilts/ndk/r11/sources/third_party/googletest/googletest/test/ |
gtest-filepath_test.cc | 251 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 253 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 257 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 259 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 263 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 265 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 269 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 271 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 275 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 277 EXPECT_EQ("bar.xml", actual.string()) 281 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 287 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 293 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 305 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local 310 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 316 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 323 FilePath actual = FilePath::ConcatPaths( local 331 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/prebuilts/ndk/r13/sources/third_party/googletest/googletest/test/ |
gtest-filepath_test.cc | 251 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 253 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 257 FilePath actual = FilePath::MakeFileName(FilePath("foo"), FilePath("bar"), local 259 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 263 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 265 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar.xml", actual.string()); 269 FilePath actual = FilePath::MakeFileName(FilePath("foo" GTEST_PATH_SEP_), local 271 EXPECT_EQ("foo" GTEST_PATH_SEP_ "bar_12.xml", actual.string()); 275 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 277 EXPECT_EQ("bar.xml", actual.string()) 281 FilePath actual = FilePath::MakeFileName(FilePath(""), FilePath("bar"), local 287 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local 293 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_), local 299 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 305 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), FilePath("")); local 310 FilePath actual = FilePath::ConcatPaths(FilePath(""), local 316 FilePath actual = FilePath::ConcatPaths(FilePath("foo" GTEST_PATH_SEP_ "bar"), local 323 FilePath actual = FilePath::ConcatPaths( local 331 FilePath actual = FilePath::ConcatPaths(FilePath("foo"), local [all...] |
/cts/tests/tests/telecom/src/android/telecom/cts/ |
BaseTelecomTestWithMockServices.java | 527 public Object actual() { 543 public Object actual() { 560 public Object actual() { 578 public Object actual() { 596 public Object actual() { 615 public Object actual() { 634 public Object actual() { 653 public Object actual() { 672 public Object actual() { 691 public Object actual() { 1043 Object actual(); method in interface:BaseTelecomTestWithMockServices.Condition [all...] |
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/ |
TestFmwk.java | 501 boolean actual) { 502 return handleAssert(expected == actual, message, String 503 .valueOf(expected), String.valueOf(actual)); 506 protected static boolean assertEquals(String message, long expected, long actual) { 507 return handleAssert(expected == actual, message, String 508 .valueOf(expected), String.valueOf(actual)); 514 float actual, double error) { 516 ? expected == actual 517 : !(Math.abs(expected - actual) > error); // handles NaN 520 .valueOf(actual)); [all...] |
/external/icu/icu4j/main/tests/framework/src/com/ibm/icu/dev/test/ |
TestFmwk.java | 500 boolean actual) { 501 return handleAssert(expected == actual, message, String 502 .valueOf(expected), String.valueOf(actual)); 505 protected static boolean assertEquals(String message, long expected, long actual) { 506 return handleAssert(expected == actual, message, String 507 .valueOf(expected), String.valueOf(actual)); 513 float actual, double error) { 515 ? expected == actual 516 : !(Math.abs(expected - actual) > error); // handles NaN 519 .valueOf(actual)); [all...] |
/external/webrtc/webrtc/modules/video_coding/codecs/vp9/ |
screenshare_layers_unittest.cc | 47 void EqualRefsForLayer(const Settings& actual, uint8_t layer_id) { 49 actual.layer[layer_id].upd_buf); 51 actual.layer[layer_id].ref_buf1); 53 actual.layer[layer_id].ref_buf2); 55 actual.layer[layer_id].ref_buf3); 58 void EqualRefs(const Settings& actual) { 61 EqualRefsForLayer(actual, layer_id); 65 void EqualStartStopKeyframe(const Settings& actual) { 66 EXPECT_EQ(expected_.start_layer, actual.start_layer); 67 EXPECT_EQ(expected_.stop_layer, actual.stop_layer) 76 Settings actual = local [all...] |