/art/test/566-polymorphic-inlining/src/ |
Main.java | 22 public static void assertEquals(Object expected, Object actual) { 23 if (expected != actual) { 24 throw new Error("Expected " + expected + ", got " + actual); 28 public static void assertEquals(int expected, int actual) { 29 if (expected != actual) { 30 throw new Error("Expected " + expected + ", got " + actual);
|
/external/autotest/client/site_tests/touch_TapSettings/ |
touch_TapSettings.py | 28 @raises: TestFail if actual value does not match expected. 37 raise error.TestFail('Expected clicks=%s, actual=%s.' 45 @raises: TestFail if actual value does not match expected. 51 actual = self._tab.EvaluateJavaScript('movementOccurred') 52 if actual is not expected: 54 % (actual, expected))
|
/external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/ |
UFormat.java | 35 // * for locale <tt>en_US_CALIFORNIA</tt>, the actual data may be 36 // * drawn from <tt>en</tt> (the <i>actual</i> locale), and 41 // * contains a partial preview implementation. The <i>actual</i> 63 // * should be null. The actual locale must be at the same level or 69 // * @param actual the locale containing data used to construct this 75 // final void setLocale(ULocale valid, ULocale actual) {
|
/external/junit/src/org/junit/internal/runners/ |
MethodRoadie.java | 109 Throwable actual= e.getTargetException(); local 110 if (actual instanceof AssumptionViolatedException) 113 addFailure(actual); 114 else if (fTestMethod.isUnexpected(actual)) { 116 + actual.getClass().getName() + ">"; 117 addFailure(new Exception(message, actual));
|
/frameworks/av/media/libnbaio/ |
SourceAudioBufferProvider.cpp | 76 ssize_t actual = mSource->read(mAllocated, buffer->frameCount); local 77 if (actual > 0) { 78 ALOG_ASSERT((size_t) actual <= buffer->frameCount); 80 mRemaining = actual; 82 buffer->frameCount = actual; 83 mGetCount = actual;
|
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/ |
math_agree.rs | 58 static void fail_f1(float v1, float v2, float actual, float expected, char *op_name) { 59 int dist = float_dist(actual, expected); 64 rsDebug("Renderscript result", actual); 68 static void fail_f2(float2 v1, float2 v2, float2 actual, float2 expected, char *op_name) { 70 dist.x = float_dist(actual.x, expected.x); 71 dist.y = float_dist(actual.y, expected.y); 79 rsDebug("Renderscript result .x", actual.x); 80 rsDebug("Renderscript result .y", actual.y); 85 static void fail_f3(float3 v1, float3 v2, float3 actual, float3 expected, char *op_name) { 87 dist.x = float_dist(actual.x, expected.x) [all...] |
/frameworks/rs/java/tests/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
math_agree.rs | 58 static void fail_f1(float v1, float v2, float actual, float expected, char *op_name) { 59 int dist = float_dist(actual, expected); 64 rsDebug("Renderscript result", actual); 68 static void fail_f2(float2 v1, float2 v2, float2 actual, float2 expected, char *op_name) { 70 dist.x = float_dist(actual.x, expected.x); 71 dist.y = float_dist(actual.y, expected.y); 79 rsDebug("Renderscript result .x", actual.x); 80 rsDebug("Renderscript result .y", actual.y); 85 static void fail_f3(float3 v1, float3 v2, float3 actual, float3 expected, char *op_name) { 87 dist.x = float_dist(actual.x, expected.x) [all...] |
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/ |
math_agree.rs | 58 static void fail_f1(float v1, float v2, float actual, float expected, char *op_name) { 59 int dist = float_dist(actual, expected); 64 rsDebug("Renderscript result", actual); 68 static void fail_f2(float2 v1, float2 v2, float2 actual, float2 expected, char *op_name) { 70 dist.x = float_dist(actual.x, expected.x); 71 dist.y = float_dist(actual.y, expected.y); 79 rsDebug("Renderscript result .x", actual.x); 80 rsDebug("Renderscript result .y", actual.y); 85 static void fail_f3(float3 v1, float3 v2, float3 actual, float3 expected, char *op_name) { 87 dist.x = float_dist(actual.x, expected.x) [all...] |
/libcore/dalvik/src/main/java/dalvik/system/profiler/ |
BinaryHprof.java | 118 * Returns null if the actual size meets expectations, or a 121 public String checkSize(int actual) { 122 if (actual < minimumSize) { 124 + " but received " + actual; 129 if (actual > maximumSize) { 131 + " but received " + actual;
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
ImapTestUtils.java | 45 public static final void assertElement(ImapElement expected, ImapElement actual) { 46 assertElement("(no message)", expected, actual); 55 ImapElement actual) { 56 if (expected == null && actual == null) { 59 if (expected != null && expected.equalsForTest(actual)) { 62 Assert.fail(String.format("%s expected=%s\nactual=%s", message, expected, actual));
|
/packages/apps/TV/tests/unit/src/com/android/tv/dvr/ |
ScheduledRecordingTest.java | 62 ScheduledRecording actual = ScheduledRecording.builder(p).setChannelId(c.getId()).build(); local 63 assertEquals("type", ScheduledRecording.TYPE_PROGRAM, actual.getType()); 67 ScheduledRecording actual = createTestRecordingWithIdAndPeriod(1, CHANNEL_ID, 10L, 20L); local 68 assertEquals("type", ScheduledRecording.TYPE_TIMED, actual.getType()); 73 ScheduledRecording actual = ScheduledRecording.buildFrom(expected).build(); local 74 RecordingTestUtils.assertRecordingEquals(expected, actual);
|
/toolchain/binutils/binutils-2.25/gold/testsuite/ |
incremental_test.sh | 30 echo "Actual output differs from expected:" 44 echo "Actual output below:" 50 # Extract actual command line from linker's -v output. 54 cut -d ' ' -f 2- > actual 64 check_cmp actual recorded 66 rm -f actual recorded
|
/art/test/575-checker-string-init-alias/src/ |
Main.java | 27 private static void assertEqual(String expected, String actual) { 28 if (!expected.equals(actual)) { 29 throw new Error("Assertion failed: " + expected + " != " + actual);
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
PermissionGroupInfoTest.java | 55 private void checkInfoSame(PermissionGroupInfo expected, PermissionGroupInfo actual) { 56 assertEquals(expected.descriptionRes, actual.descriptionRes); 57 assertEquals(expected.nonLocalizedDescription, actual.nonLocalizedDescription);
|
ServiceInfoTest.java | 54 private void checkInfoSame(ServiceInfo expected, ServiceInfo actual) { 55 assertEquals(expected.name, actual.name); 56 assertEquals(expected.permission, actual.permission);
|
/development/samples/ApiDemos/tests/src/com/example/android/apis/os/ |
MorseCodeConverterTest.java | 46 private void assertArraysEqual(long[] expected, long[] actual) { 47 assertEquals("Unexpected array length.", expected.length, actual.length); 50 long actualLong = actual[i];
|
/external/chromium-trace/catapult/tracing/tracing/extras/importer/linux_perf/ |
cpufreq_parser_test.html | 26 'cpu=0 load=12 cur=1000000 actual=1000000 targ=200000\n' 43 assert.equal(thread.sliceGroup.slices[1].args['actual'], 1000000); 52 'cpu=1 load=10 cur=700000 actual=1000000 targ=200000\n' 69 assert.equal(thread.sliceGroup.slices[1].args['actual'], 1000000); 76 'cpufreq_interactive_setspeed: cpu=0 targ=200000 actual=700000\n' 87 assert.equal(thread.sliceGroup.slices[0].args['actual'], 700000); 92 '<idle>-0 [000] ..s3 1043.738822: cpufreq_interactive_already: cpu=0 load=18 cur=200000 actual=700000 targ=200000\n' // @suppress longLineCheck 104 assert.equal(thread.sliceGroup.slices[0].args['actual'], 700000); 141 'cpufreq_interactive_up: cpu=1 targ=1400000 actual=800000' 152 assert.equal(thread.sliceGroup.slices[0].args['actual'], 800000) [all...] |
/external/compiler-rt/test/builtins/Unit/ |
truncdfsf2_test.c | 22 float actual = __truncdfsf2(a); local 25 if (actual != expected) { 27 "expected %f\n", a, actual, expected);
|
/external/easymock/src/org/easymock/internal/matchers/ |
Equals.java | 33 public boolean matches(Object actual) {
35 return actual == null;
37 return expected.equals(actual);
|
/external/guice/extensions/multibindings/src/com/google/inject/multibindings/ |
ProvidesIntoOptional.java | 38 * {@literal @}ProvidesIntoOptional(ACTUAL) 58 ACTUAL, 64 /** Specifies if the binding is for the actual or default value. */
|
/external/owasp/sanitizer/src/tests/org/owasp/html/ |
ElementPolicyTest.java | 42 ImmutableList.Builder<String> actual = ImmutableList.builder(); local 45 actual.add(elName); 48 assertEquals(p.toString(), Arrays.asList(expected), actual.build());
|
/external/v8/test/mjsunit/regress/ |
regress-925537.js | 28 function assertClose(expected, actual) { 30 if (Math.abs(expected - actual) > delta) { 31 print('Failure: Expected <' + actual + '> to be close to <' +
|
regress-crbug-425585.js | 38 var actual = foo(i); 39 if (correct_result != actual) { 40 var msg = "Expected \"" + correct_result + "\", found " + actual;
|
/external/valgrind/VEX/useful/ |
smchash.c | 26 UChar* actual; member in struct:__anon25375 53 gb->actual = gb->bytes + (gb->ga & 3); 61 gb->actual[i] = b; 97 sum += (UInt)gb->actual[i]; 104 sum ^= (UInt)gb->actual[i]; 112 UWord addr = (UWord)gb->actual; 151 UWord addr = (UWord)gb->actual; 195 UWord addr = (UWord)gb->actual; 276 invertBit(gb->actual, byteIx, bitIx); 277 //invertBit(gb->actual, byteIx, bitIx ^ 4) [all...] |
/frameworks/base/tools/split-select/ |
TestRules.h | 58 const android::sp<Rule>& actual, const Rule& expected); 60 #define EXPECT_RULES_EQ(actual, expected) \ 61 EXPECT_PRED_FORMAT2(::split::test::RulePredFormat, actual, expected)
|