HomeSort by relevance Sort by last modified time
    Searched full:actual (Results 451 - 475 of 9217) sorted by null

<<11121314151617181920>>

  /frameworks/av/media/libstagefright/tests/
DummyRecorder.h 40 // actual entry point for the thread
43 // static function to wrap the actual thread entry point
  /frameworks/support/v4/tests/java/android/support/v4/graphics/
ColorUtilsTest.java 75 private static void assertClose(String message, float expected, float actual,
78 sb.append(". Expected: ").append(expected).append(". Actual: ").append(actual);
80 assertTrue(sb.toString(), Math.abs(expected - actual) <= allowedOffset);
83 private static void assertClose(String message, int expected, int actual,
86 sb.append(". Expected: ").append(expected).append(". Actual: ").append(actual);
88 assertTrue(sb.toString(), Math.abs(expected - actual) <= allowedOffset);
  /libcore/luni/src/test/etc/loading-test-jar/
TestMethods.java 46 public static void assertSame(Object expected, Object actual) {
47 if (expected != actual) {
49 "EXPECTED: " + expected + "; ACTUAL: " + actual);
56 public static void assertSame(int expected, int actual) {
57 if (expected != actual) {
59 "EXPECTED: " + expected + "; ACTUAL: " + actual);
  /art/compiler/
elf_writer_test.cc 119 std::vector<uint8_t> actual = initial_data; local
122 actual.data(), actual.data() + actual.size());
124 EXPECT_EQ(expected, actual);
  /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);
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/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/smali/util/src/test/java/org/jf/util/
StringWrapperTest.java 105 public static void validateResult(String[] expected, String[] actual) {
106 Assert.assertTrue(actual.length >= expected.length);
109 for (i=0; i<actual.length; i++) {
110 if (actual[i] == null) {
115 Assert.assertEquals(expected[i], actual[i]);
  /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]; });
  /packages/apps/Dialer/tests/src/com/android/dialer/list/
PhoneFavoritesTileAdapterTest.java 100 ArrayList<ContactEntry> actual) {
101 assertEquals(expected.size(), actual.size());
102 for (int i = 0; i < actual.size(); i++) {
103 assertEquals(expected.get(i).id, actual.get(i).id);
104 assertEquals(expected.get(i).isFavorite, actual.get(i).isFavorite);
  /external/e2fsprogs/lib/ext2fs/
unix_io.c 168 int actual = 0; local
181 actual = read(data->dev, buf, size);
182 if (actual != size) {
184 if (actual < 0)
185 actual = 0;
202 actual = read(data->dev, data->bounce, channel->block_size);
203 if (actual != channel->block_size)
205 actual = size;
207 actual = channel->block_size;
208 memcpy(buf, data->bounce, actual);
229 int actual = 0; local
841 ssize_t actual; local
    [all...]
  /frameworks/base/core/tests/overlaytests/OverlayTest/src/com/android/overlaytest/
OverlayBaseTest.java 104 boolean actual = mResources.getBoolean(resId);
105 assertEquals(expected, actual);
110 int actual = mResources.getInteger(resId); local
111 assertEquals(expected, actual);
116 String actual = mResources.getString(resId); local
117 assertEquals(expected, actual);
122 int[] actual = mResources.getIntArray(resId); local
123 assertEquals("length:", expected.length, actual.length);
124 for (int i = 0; i < actual.length; ++i) {
125 assertEquals("index " + i + ":", actual[i], expected[i])
175 int actual = calculateRawResourceChecksum(resId); local
203 int actual = -1; local
222 String actual = ""; local
246 assertEquals(getExpected(no, so, mo), actual); local
    [all...]
  /cts/tests/tests/media/src/android/media/cts/
AudioTrack_ListenerTest.java 182 // verify actual playback head positions returned.
191 final int actual = markerList.get(i); local
192 // Log.d(TAG, "Marker: expected(" + expected + ") actual(" + actual
193 // + ") diff(" + (actual - expected) + ")");
194 assertEquals(expected, actual, tolerance80MsInFrames);
195 markerStat.add((double)(actual - expected) * 1000 / TEST_SR);
201 final int actual = periodicList.get(i); local
202 // Log.d(TAG, "Update: expected(" + expected + ") actual(" + actual
    [all...]
  /external/guava/guava-tests/test/com/google/common/reflect/
TypesTest.java 268 WildcardType expected, WildcardType actual) {
269 assertEquals(expected.toString(), actual.toString());
270 assertEquals(actual.toString(), expected.hashCode(), actual.hashCode());
271 ASSERT.that(actual.getLowerBounds())
273 ASSERT.that(actual.getUpperBounds())
361 TypeVariable<?> expected, TypeVariable<?> actual) {
362 assertEquals(expected.toString(), actual.toString());
363 assertEquals(expected.getName(), actual.getName());
365 expected.getGenericDeclaration(), actual.getGenericDeclaration())
    [all...]
  /frameworks/base/docs/html-intl/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/guava/guava-tests/test/com/google/common/io/
ByteStreamsTest.java 160 byte[] actual = new byte[bytes.length];
161 in.readFully(actual);
162 assertEquals(bytes, actual);
167 byte[] actual = new byte[bytes.length * 2];
169 in.readFully(actual);
178 byte[] actual = new byte[4];
179 in.readFully(actual, 2, 2);
180 assertEquals(0, actual[0]);
181 assertEquals(0, actual[1]);
182 assertEquals(bytes[0], actual[2])
    [all...]
  /external/pdfium/samples/
image_diff.cc 117 float PercentageDifferent(const Image& baseline, const Image& actual) {
118 int w = std::min(baseline.w(), actual.w());
119 int h = std::min(baseline.h(), actual.h());
125 if (baseline.pixel_at(x, y) != actual.pixel_at(x, y))
131 int max_w = std::max(baseline.w(), actual.w());
132 int max_h = std::max(baseline.h(), actual.h());
139 // of the size of the 'actual' bitmap.
140 float total_pixels = static_cast<float>(actual.w()) *
141 static_cast<float>(actual.h());
152 float HistogramPercentageDifferent(const Image& baseline, const Image& actual) {
    [all...]
  /libcore/harmony-tests/src/test/java/org/apache/harmony/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-trace/trace-viewer/tracing/third_party/vinn/third_party/parse5/test/
test_utils.js 37 exports.getStringDiffMsg = function (actual, expected) {
39 if (actual[i] !== expected[i]) {
47 var actualStr = 'Actual: ' + addSlashes(actual.substring(i - 100, i + 1)),
50 diffMsg += actualStr + addSlashes(actual.substring(i + 1, i + 20)) + '\n' + actualDiffMarker;
232 exports.prettyPrintParserAssertionArgs = function (actual, expected) {
238 msg += actual + '\n';
  /external/mesa3d/src/glsl/
ir_function.cpp 37 * \param list_b Actual parameters passed to the function.
62 const ir_rvalue *const actual = (ir_rvalue *) node_b; local
64 if (param->type == actual->type)
67 /* Try to find an implicit conversion from actual to param. */
82 if (!actual->type->can_implicitly_convert_to(param->type))
87 if (!param->type->can_implicitly_convert_to(actual->type))
139 * multiple ways to apply these conversions to the actual arguments of a
  /libcore/luni/src/test/java/libcore/java/lang/reflect/
ClassLoaderReflectionTest.java 173 private void assertParameterizedType(Type actual, Type raw, Type... args) {
174 assertTrue(actual.toString(), actual instanceof ParameterizedType);
175 ParameterizedType parameterizedType = (ParameterizedType) actual;
181 private void assertTypeVariable(TypeVariable actual, String name, Type... bounds) {
182 assertEquals(name, actual.getName());
183 assertEquals(Arrays.<Type>asList(bounds), Arrays.asList(actual.getBounds()));

Completed in 278 milliseconds

<<11121314151617181920>>