/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/layout_tests/views/ |
printing_unittest.py | 196 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html', ' passed') 197 self.assertEqual(80, len(actual)) 198 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associa...after-index-assertion-fail1.html passed') 201 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html', ' passed') 202 self.assertEqual(89, len(actual)) 203 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-...ents-after-index-assertion-fail1.html passed') 206 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html', ' passed') 207 self.assertEqual(90, len(actual)) 208 self.assertEqual(actual, '[0/0] fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fail1.html passed') 211 actual = printer._test_status_line('fast/dom/HTMLFormElement/associated-elements-after-index-assertion-fa (…) [all...] |
/external/chromium_org/third_party/WebKit/Tools/Scripts/webkitpy/tool/servers/ |
rebaselineserver_unittest.py | 48 'fast/text-actual.txt', 66 'fast/text-actual.txt', 85 'fast/text-actual.txt', 104 'fast/text-actual.txt', 125 'fast/text-actual.txt', 148 'fast/image-actual.png', 149 'fast/image-actual.checksum', 173 'fast/text-actual.txt', 193 'fast/image-actual.png', 194 'fast/image-actual.checksum' [all...] |
/external/protobuf/gtest/test/ |
gtest_output_test_golden_lin.txt | 5 Actual: false 39 Actual: 2 46 Actual: 2 53 Actual: false 62 Expected: (3) >= (a[i]), actual: 3 vs 9 66 Expected: (3) >= (a[i]), actual: 3 vs 6 87 Actual: 1 93 Actual: 2 102 Actual: 1 108 Actual: [all...] |
/cts/tests/tests/graphics/src/android/graphics/cts/ |
BlurMaskFilterTest.java | 76 private void checkColor(int expected, int actual, int alphaTolerance) { 77 assertEquals(Color.red(expected), Color.red(actual)); 78 assertEquals(Color.green(expected), Color.green(actual)); 79 assertEquals(Color.blue(expected), Color.blue(actual)); 80 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance);
|
ColorMatrixColorFilterTest.java | 91 private void assertColor(int expected, int actual) { 92 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 93 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 94 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); 95 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE);
|
LightingColorFilterTest.java | 83 private void assertColor(int expected, int actual) { 84 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); 85 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); 86 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); 87 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE);
|
BitmapRegionDecoderTest.java | 314 Bitmap actual; local 322 actual = decoder.decodeRegion(rect1, opts); 327 assertSame(opts.inBitmap, actual); 331 // crop 'actual' to the size to be tested (and avoid recycling inBitmap) 332 actual = cropBitmap(actual, actualRect); 334 Rect expectedRect = new Rect(left, top, left + actual.getWidth(), 335 top + actual.getHeight()); 337 compareBitmaps(expected, actual, mseMargin, true); 338 actual.recycle() [all...] |
YuvImageTest.java | 111 int[] actual = null; local 120 actual = image.getStrides(); 122 Arrays.equals(expected, actual)); 259 Bitmap actual = null; local 263 actual = compressDecompress(image, actualRect); 267 compareBitmaps(expected, actual, mMseMargin, sameRect); 276 Bitmap actual = null; local 277 actual = compressDecompress(image, rect); 283 compareBitmaps(expected, actual, mMseMargin, true); 342 // Compare expected to actual to see if their diff is less then mseMargin [all...] |
/external/chromium/chrome/browser/extensions/ |
extension_omnibox_unittest.cc | 28 const ACMatchClassifications& actual) { 29 EXPECT_EQ(expected.size(), actual.size()); 30 for (size_t i = 0; i < expected.size() && i < actual.size(); ++i) { 31 EXPECT_EQ(expected[i].offset, actual[i].offset) << "Index:" << i; 32 EXPECT_EQ(expected[i].style, actual[i].style) << "Index:" << i;
|
/external/chromium_org/chrome/browser/media_galleries/ |
media_galleries_permissions_unittest.cc | 124 std::vector<MediaGalleryPermission> actual = variable 126 EXPECT_EQ(test_data[i].expectation->size(), actual.size()); 129 permission_entry < actual.size(); 132 actual[permission_entry].pref_id); 134 actual[permission_entry].has_permission);
|
/external/chromium_org/third_party/skia/include/pipe/ |
SkGPipe.h | 70 * write into. The actual size of the block is also returned, and must be 71 * actual >= minRequest. If NULL is returned, then actual is ignored and 74 * The returned block must be 4-byte aligned, and actual must be a 78 virtual void* requestBlock(size_t minRequest, size_t* actual) = 0;
|
/external/chromium_org/v8/test/mjsunit/ |
indexed-accessors.js | 66 var actual = {}; 68 expected[i] = actual[i] = i; 72 assertEquals(expected[i], actual[i]); 75 actual[1000000] = -1; 78 actual.__defineGetter__('0', function() { return expected[0]; });
|
/external/easymock/src/org/easymock/internal/ |
ExpectedInvocation.java | 88 public boolean matches(Invocation actual) {
90 actual.getMock())
91 && this.invocation.getMethod().equals(actual.getMethod())
92 && matches(actual.getArguments()) : this.invocation.matches(
93 actual, matcher);
|
/external/junit/src/org/junit/ |
Assume.java | 51 * Call to assume that <code>actual</code> satisfies the condition specified by <code>matcher</code>. 62 * @param actual the computed value being compared 68 public static <T> void assumeThat(T actual, Matcher<T> matcher) { 69 if (!matcher.matches(actual)) 70 throw new AssumptionViolatedException(actual, matcher);
|
/external/skia/include/pipe/ |
SkGPipe.h | 70 * write into. The actual size of the block is also returned, and must be 71 * actual >= minRequest. If NULL is returned, then actual is ignored and 74 * The returned block must be 4-byte aligned, and actual must be a 78 virtual void* requestBlock(size_t minRequest, size_t* actual) = 0;
|
/external/v8/test/mjsunit/ |
indexed-accessors.js | 66 var actual = {}; 68 expected[i] = actual[i] = i; 72 assertEquals(expected[i], actual[i]); 75 actual[1000000] = -1; 78 actual.__defineGetter__('0', function() { return expected[0]; });
|
/external/e2fsprogs/lib/ext2fs/ |
unix_io.c | 164 int actual = 0; local 175 actual = read(data->dev, buf, size); 176 if (actual != size) { 178 if (actual < 0) 179 actual = 0; 196 actual = read(data->dev, data->bounce, channel->block_size); 197 if (actual != channel->block_size) 199 actual = size; 201 actual = channel->block_size; 202 memcpy(buf, data->bounce, actual); 223 int actual = 0; local 774 ssize_t actual; local [all...] |
/external/skia/tools/tests/ |
skimage_self_test.py | 36 def DieIfFilesMismatch(expected, actual): 37 if not filecmp.cmp(expected, actual): 38 print 'Error: file mismatch! expected=%s , actual=%s' % ( 39 expected, actual) 133 expectations_path = os.path.join(file_dir, "skimage", "output-actual", 142 DieIfFilesMismatch(expected=golden_expectations, actual=expectations_path) 174 expectations_path = os.path.join(file_dir, "skimage", "output-actual", 180 DieIfFilesMismatch(expected=golden_expectations, actual=expectations_path) 184 expectations_path = os.path.join(file_dir, "skimage", "output-actual", 190 DieIfFilesMismatch(expected=golden_expectations, actual=expectations_path [all...] |
/external/chromium/sdch/open-vcdiff/src/gtest/ |
gtest.h | 153 // << " Actual: it's " << n; 160 // Actual: it's 5 622 const T2& actual) { 623 if (expected == actual) { 629 FormatForComparisonFailureMessage(expected, actual), 630 FormatForComparisonFailureMessage(actual, expected), 640 BiggestInt actual); 654 const T2& actual) { 656 actual); 668 BiggestInt actual) { [all...] |
/external/chromium_org/chrome/browser/sync/test/integration/ |
sessions_helper.cc | 240 const sessions::SerializedNavigationEntry& actual) { 241 if (expected.virtual_url() != actual.virtual_url()) { 243 << ", actual " << actual.virtual_url(); 246 if (expected.referrer().url != actual.referrer().url) { 249 << ", actual " 250 << actual.referrer().url; 253 if (expected.title() != actual.title()) { 255 << ", actual " << actual.title() [all...] |
/frameworks/base/docs/html-intl/es/training/monitoring-device-state/ |
battery-monitoring.jd | 16 <li><a href="#DetermineChargeState">Cómo determinar el estado de carga actual</a></li> 18 <li><a href="#CurrentLevel">Cómo determinar el nivel de batería actual</a></li> 30 <p>Al modificar la frecuencia de las actualizaciones en segundo plano para reducir el efecto de las mismas en la duración de la batería, te recomendamos que comiences por comprobar el estado de carga y el nivel actual de la batería.</p> 37 <h2 id="DetermineChargeState">Cómo determinar el estado de carga actual</h2> 39 <p>En primer lugar, te recomendamos que determines el estado de carga actual. {@link android.os.BatteryManager} envía los detalles de carga y de la batería en un {@link android.content.Intent} persistente que incluye el estado de carga.</p> 41 <p>Se trata de un intento persistente, por lo que no es necesario registrar un {@link android.content.BroadcastReceiver}. Para ello, solo tienes que ejecutar {@code registerReceiver} transmitiendo {@code null} como el receptor (como se muestra en el siguiente fragmento). A continuación, se devuelve el intento de estado actual de la batería. Puedes transmitir un objeto {@link android.content.BroadcastReceiver} real, pero hablaremos sobre las actualizaciones en otra sección, por lo que no es necesario ahora.</p> 46 <p>Puedes extraer el estado de carga actual y, si el dispositivo está cargando, puedes saber también si se está usando un cargador de corriente alterna o USB:<p> 74 <p>En la implementación de {@link android.content.BroadcastReceiver} asociada, puedes extraer el método y el estado de carga actual como se describe en el paso anterior.</p> 90 <h2 id="CurrentLevel">Cómo determinar el nivel de batería actual</h2> 92 <p>En algunos casos, también es útil determinar el nivel de batería actual. Puedes disminuir la frecuencia de las actualizaciones en segundo plano si el nivel de carga de la (…) [all...] |
/external/chromium_org/tools/imagediff/ |
image_diff.cc | 147 float PercentageDifferent(const Image& baseline, const Image& actual) { 148 int w = std::min(baseline.w(), actual.w()); 149 int h = std::min(baseline.h(), actual.h()); 155 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y)) 161 int max_w = std::max(baseline.w(), actual.w()); 162 int max_h = std::max(baseline.h(), actual.h()); 169 // of the size of the 'actual' bitmap. 170 float total_pixels = static_cast<float>(actual.w()) * 171 static_cast<float>(actual.h()); 181 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) { [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/luni/tests/java/util/ |
UUIDTest.java | 241 String actual = uuid.toString(); local 242 assertEquals("f81d4fae-7dec-11d0-a765-00a0c91e6bf6", actual); 245 actual = uuid.toString(); 246 assertEquals("00000000-0000-1000-8000-000000000000", actual); 308 UUID actual = UUID.fromString("f81d4fae-7dec-11d0-a765-00a0c91e6bf6"); local 310 assertEquals(expected, actual); 312 assertEquals(2, actual.variant()); 313 assertEquals(1, actual.version()); 314 assertEquals(130742845922168750L, actual.timestamp()); 315 assertEquals(10085, actual.clockSequence()) [all...] |
/external/chromium_org/sandbox/win/src/ |
Wow64.cc | 42 SIZE_T actual; local 44 sizeof(local_patch_info), &actual)) 46 if (sizeof(local_patch_info) != actual) 57 &buffer, kServiceEntry64Size, &actual)) 59 if (kServiceEntry64Size != actual) 63 kServiceEntry64Size, &actual)) 65 if (kServiceEntry64Size != actual)
|
/external/chromium_org/sync/notifier/ |
unacked_invalidation_set_test_util.cc | 32 const UnackedInvalidationSet& actual, 59 const UnackedInvalidationSet& actual, 66 return expected_.object_id_ == actual.object_id_ 69 actual.invalidations_.begin(), 103 virtual bool MatchAndExplain(const UnackedInvalidationsMap& actual, 120 const UnackedInvalidationsMap& actual, 125 UnackedInvalidationsMapToObjectIdInvalidationMap(actual);
|