/cts/tests/tests/graphics/src/android/graphics/cts/ |
ComposeShaderTest.java | 70 assertEquals(0xFF, Color.alpha(pixel), TOLERANCE); 71 assertEquals(y, Color.red(pixel), TOLERANCE); 72 assertEquals(green, Color.green(pixel), TOLERANCE); 73 assertEquals(x, Color.blue(pixel), TOLERANCE); 107 assertEquals(Color.YELLOW, bitmap.getPixel(0, 0));
|
PixelXorXfermodeTest.java | 53 assertEquals(Color.WHITE, target.getPixel(width / 4, height / 4)); 55 assertEquals(Color.YELLOW, target.getPixel(width / 4, height * 3 / 4)); 57 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); 65 assertEquals(255, Color.alpha(target.getPixel(0, 0)));
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
ColorDrawableTest.java | 90 assertEquals(0, colorDrawable.getAlpha()); 93 assertEquals(0, colorDrawable.getAlpha()); 96 assertEquals(1, colorDrawable.getAlpha()); 99 assertEquals(0, colorDrawable.getAlpha()); 102 assertEquals(1, colorDrawable.getAlpha()); 113 assertEquals(0, colorDrawable.getChangingConfigurations()); 116 assertEquals(1, colorDrawable.getChangingConfigurations()); 119 assertEquals(Integer.MIN_VALUE, colorDrawable.getChangingConfigurations()); 122 assertEquals(Integer.MAX_VALUE, colorDrawable.getChangingConfigurations()); 134 assertEquals(colorDrawable.getChangingConfigurations() [all...] |
PictureDrawableTest.java | 64 assertEquals(100, canvas.getClipBounds().width()); 65 assertEquals(200, canvas.getClipBounds().height()); 69 assertEquals(0xff0f0b0c, destBitmap.getPixel(10, 10)); 72 assertEquals(0xff0a0c0b, destBitmap.getPixel(10, 10)); 90 assertEquals(-1, pictureDrawable.getIntrinsicWidth()); 91 assertEquals(-1, pictureDrawable.getIntrinsicHeight()); 97 assertEquals(99, pictureDrawable.getIntrinsicWidth()); 98 assertEquals(101, pictureDrawable.getIntrinsicHeight()); 108 assertEquals(PixelFormat.TRANSLUCENT, pictureDrawable.getOpacity()); 173 assertEquals(picture, pictureDrawable.getPicture()) [all...] |
/cts/tests/tests/graphics/src/android/graphics/drawable/shapes/cts/ |
ArcShapeTest.java | 72 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 86 assertEquals((double)SQUARE / 2 / Math.sqrt(2), count, TOLERANCE);
|
OvalShapeTest.java | 67 assertEquals(TEST_COLOR_1, bitmap.getPixel(TEST_WIDTH / 2, TEST_HEIGHT / 2)); 80 assertEquals((double)SQUARE / Math.sqrt(2), count, TOLERANCE);
|
/cts/tests/tests/net/src/android/net/cts/ |
ProxyTest.java | 79 assertEquals(-1, defaultPort); 88 assertEquals(host, Proxy.getHost(mContext)); 89 assertEquals(port, Proxy.getPort(mContext));
|
/cts/tests/tests/os/src/android/os/cts/ |
BuildTest.java | 50 assertEquals(message, CpuFeatures.ARMEABI_V7, Build.CPU_ABI); 51 assertEquals(message, CpuFeatures.ARMEABI, Build.CPU_ABI2); 58 assertEquals(message, CpuFeatures.ARMEABI, Build.CPU_ABI); 59 assertEquals(message, Build.UNKNOWN, Build.CPU_ABI2); 75 assertEquals(message + " Value found: " + line , expected, line);
|
PatternMatcherTest.java | 78 assertEquals(PatternMatcher.PATTERN_LITERAL, mPatternMatcher.getType()); 81 assertEquals(PatternMatcher.PATTERN_PREFIX, mPatternMatcher.getType()); 84 assertEquals(PatternMatcher.PATTERN_SIMPLE_GLOB, mPatternMatcher.getType()); 99 assertEquals(expected1, mPatternMatcher.getPath()); 104 assertEquals(expected2, mPatternMatcher.getPath()); 122 assertEquals(expected1, mPatternMatcher.toString()); 125 assertEquals(expected2, mPatternMatcher.toString()); 128 assertEquals(expected3, mPatternMatcher.toString()); 147 assertEquals(expected, p.readString()); 148 assertEquals(PatternMatcher.PATTERN_LITERAL, p.readInt()) [all...] |
ResultReceiverTest.java | 69 assertEquals(resultCode, sender.getResultCode()); 73 assertEquals(0, receiver.describeContents());
|
/cts/tests/tests/provider/src/android/provider/cts/ |
Contacts_SettingsTest.java | 106 assertEquals(value1, Settings.getSetting(mContentResolver, "account", key1)); 107 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key2)); 111 assertEquals(value2, Settings.getSetting(mContentResolver, "account", key1));
|
Settings_NameValueTableTest.java | 54 assertEquals(origCount + 1, c.getCount()); 61 assertEquals(1, c.getCount()); 63 assertEquals("name1", c.getString(c.getColumnIndexOrThrow(NameValueTable.NAME))); 64 assertEquals("value1", c.getString(c.getColumnIndexOrThrow(NameValueTable.VALUE))); 71 assertEquals(origCount, c.getCount()); 89 assertEquals(Uri.withAppendedPath(uri, name), res);
|
/cts/tests/tests/telephony/src/android/telephony/gsm/cts/ |
GsmCellLocationTest.java | 104 assertEquals(LAC_VALUE ^ CID_VALUE, gsmCellLocation.hashCode()); 114 assertEquals(expectedLac, gsmCellLocation.getLac()); 115 assertEquals(expectedCid, gsmCellLocation.getCid());
|
/cts/tests/tests/text/src/android/text/cts/ |
AndroidCharacterTest.java | 60 assertEquals(expected[i], dest[i]); 72 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_NEUTRAL, 76 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_AMBIGUOUS, 80 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_HALF_WIDTH, 84 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_FULL_WIDTH, 88 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_NARROW, 92 assertEquals(AndroidCharacter.EAST_ASIAN_WIDTH_WIDE, 113 assertEquals(expected[i], dest[i]); 142 assertEquals('A', AndroidCharacter.getMirror('A')); 143 assertEquals('B', AndroidCharacter.getMirror('B')) [all...] |
TextPaintTest.java | 59 assertEquals(DEFAULT_PAINT_FLAGS, textPaint.getFlags()); 62 assertEquals((TextPaint.DITHER_FLAG | DEFAULT_PAINT_FLAGS), 83 assertEquals(0, textPaint.bgColor); 84 assertEquals(0, textPaint.baselineShift); 85 assertEquals(0, textPaint.linkColor); 90 assertEquals(textPaintSrc.bgColor, textPaint.bgColor); 91 assertEquals(textPaintSrc.baselineShift, textPaint.baselineShift); 92 assertEquals(textPaintSrc.linkColor, textPaint.linkColor); 94 assertEquals(textPaintSrc.getTypeface(), textPaint.getTypeface()); 95 assertEquals(textPaintSrc.getFlags(), textPaint.getFlags()) [all...] |
/cts/tests/tests/text/src/android/text/method/cts/ |
SingleLineTransformationMethodTest.java | 75 TextMethodUtils.assertEquals(new char[] { ' ', '\uFEFF' }, method.getReplacement()); 76 TextMethodUtils.assertEquals(new char[] { '\n', '\r' }, method.getOriginal()); 87 assertEquals("hello world\uFEFF", result.toString());
|
/cts/tests/tests/text/src/android/text/style/cts/ |
AlignmentSpan_StandardTest.java | 71 assertEquals(Alignment.ALIGN_NORMAL, standard.getAlignment()); 74 assertEquals(Alignment.ALIGN_OPPOSITE, standard.getAlignment()); 77 assertEquals(Alignment.ALIGN_CENTER, standard.getAlignment()); 117 assertEquals(Alignment.ALIGN_NORMAL, standard.getAlignment()); 124 assertEquals(Alignment.ALIGN_OPPOSITE, standard.getAlignment()); 131 assertEquals(Alignment.ALIGN_CENTER, standard.getAlignment());
|
BackgroundColorSpanTest.java | 72 assertEquals(Color.BLACK, tp.bgColor); 76 assertEquals(Color.BLUE, tp.bgColor); 95 assertEquals(Color.CYAN, backgroundColorSpan.getBackgroundColor()); 98 assertEquals(Color.GRAY, backgroundColorSpan.getBackgroundColor()); 138 assertEquals(Color.RED, b.getBackgroundColor()); 146 assertEquals(Color.MAGENTA, b.getBackgroundColor());
|
DrawableMarginSpanTest.java | 100 assertEquals(0, drawable.getBounds().top); 101 assertEquals(0, drawable.getBounds().bottom); 102 assertEquals(0, drawable.getBounds().left); 103 assertEquals(0, drawable.getBounds().right); 116 assertEquals(0, drawable.getBounds().top); 117 assertEquals(0 + drawable.getIntrinsicHeight(), drawable.getBounds().bottom); 118 assertEquals(x, drawable.getBounds().left); 119 assertEquals(x + drawable.getIntrinsicWidth(), drawable.getBounds().right); 156 assertEquals(0, fm.ascent); 157 assertEquals(0, fm.bottom) [all...] |
ForegroundColorSpanTest.java | 68 assertEquals(Color.BLUE, foregroundColorSpan.getForegroundColor()); 71 assertEquals(Color.BLACK, foregroundColorSpan.getForegroundColor()); 86 assertEquals(0, tp.getColor()); 88 assertEquals(Color.CYAN, tp.getColor()); 92 assertEquals(Color.DKGRAY, tp.getColor()); 139 assertEquals(Color.RED, f.getForegroundColor()); 147 assertEquals(Color.MAGENTA, f.getForegroundColor());
|
IconMarginSpanTest.java | 135 assertEquals(0, fm.ascent); 136 assertEquals(0, fm.bottom); 137 assertEquals(0, fm.descent); 138 assertEquals(0, fm.leading); 139 assertEquals(0, fm.top); 143 assertEquals(0, fm.ascent); 144 assertEquals(HEIGHT, fm.bottom); 145 assertEquals(HEIGHT, fm.descent); 146 assertEquals(0, fm.leading); 147 assertEquals(0, fm.top) [all...] |
RelativeSizeSpanTest.java | 63 assertEquals(2.0f, relativeSizeSpan.getSizeChange()); 66 assertEquals(-2.0f, relativeSizeSpan.getSizeChange()); 83 assertEquals(2.0f * proportion, tp.getTextSize()); 89 assertEquals(oldSize * proportion, tp.getTextSize()); 113 assertEquals(oldSize * proportion, tp.getTextSize()); 119 assertEquals(oldSize * proportion, tp.getTextSize()); 161 assertEquals(proportion, newSpan.getSizeChange());
|
ScaleXSpanTest.java | 69 assertEquals(2.0f * proportion, tp.getTextScaleX()); 73 assertEquals(-3.0f * proportion, tp.getTextScaleX()); 96 assertEquals(2.0f * proportion, tp.getTextScaleX()); 100 assertEquals(-3.0f * proportion, tp.getTextScaleX()); 118 assertEquals(5.0f, scaleXSpan.getScaleX()); 121 assertEquals(-5.0f, scaleXSpan.getScaleX()); 156 assertEquals(proportion, newSpan.getScaleX());
|
/cts/tests/tests/util/src/android/util/cts/ |
MonthDisplayHelperTest.java | 102 assertEquals(30, new MonthDisplayHelper(2007, Calendar.SEPTEMBER) 104 assertEquals(28, new MonthDisplayHelper(2007, Calendar.FEBRUARY) 106 assertEquals(29, new MonthDisplayHelper(2008, Calendar.FEBRUARY) 138 assertEquals(Calendar.SEPTEMBER, mHelper.getMonth()); 161 assertEquals(0, mHelper.getRowOf(2)); 162 assertEquals(0, mHelper.getRowOf(4)); 163 assertEquals(2, mHelper.getRowOf(12)); 164 assertEquals(2, mHelper.getRowOf(18)); 165 assertEquals(3, mHelper.getRowOf(19)); 197 assertEquals(1, mHelper.getWeekStartDay()) [all...] |
PrintWriterPrinterTest.java | 92 assertEquals(mMessage, mLine);
|