/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 64 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame() argument 65 assertEquals(expected.packageName, actual.packageName); in checkPkgInfoSame() 66 assertEquals(expected.versionCode, actual.versionCode); in checkPkgInfoSame() 67 assertEquals(expected.versionName, actual.versionName); in checkPkgInfoSame() 68 assertEquals(expected.sharedUserId, actual.sharedUserId); in checkPkgInfoSame() 69 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); in checkPkgInfoSame() 71 assertNotNull(actual.applicationInfo); in checkPkgInfoSame() 72 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 74 assertNull(actual.applicationInfo); in checkPkgInfoSame() 76 assertTrue(Arrays.equals(expected.gids, actual.gids)); in checkPkgInfoSame() [all …]
|
D | ProviderInfoTest.java | 70 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument 71 assertEquals(expected.name, actual.name); in checkInfoSame() 72 assertEquals(expected.authority, actual.authority); in checkInfoSame() 73 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame() 74 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame() 75 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame() 76 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame() 77 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame() 78 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame() 79 assertEquals(expected.isSyncable, actual.isSyncable); in checkInfoSame()
|
D | InstrumentationInfoTest.java | 55 private void checkInfoSame(InstrumentationInfo expected, InstrumentationInfo actual) { in checkInfoSame() argument 56 assertEquals(expected.name, actual.name); in checkInfoSame() 57 assertEquals(expected.dataDir, actual.dataDir); in checkInfoSame() 58 assertEquals(expected.handleProfiling, actual.handleProfiling); in checkInfoSame() 59 assertEquals(expected.functionalTest, actual.functionalTest); in checkInfoSame() 60 assertEquals(expected.targetPackage, actual.targetPackage); in checkInfoSame() 61 assertEquals(expected.sourceDir, actual.sourceDir); in checkInfoSame() 62 assertEquals(expected.publicSourceDir, actual.publicSourceDir); in checkInfoSame()
|
D | PermissionInfoTest.java | 54 private void checkInfoSame(PermissionInfo expected, PermissionInfo actual) { in checkInfoSame() argument 55 assertEquals(expected.name, actual.name); in checkInfoSame() 56 assertEquals(expected.group, actual.group); in checkInfoSame() 57 assertEquals(expected.descriptionRes, actual.descriptionRes); in checkInfoSame() 58 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame() 59 assertEquals(expected.nonLocalizedDescription, actual.nonLocalizedDescription); in checkInfoSame()
|
D | PackageItemInfoTest.java | 84 private void checkInfoSame(PackageItemInfo expected, PackageItemInfo actual) { in checkInfoSame() argument 85 assertEquals(expected.name, actual.name); in checkInfoSame() 86 assertEquals(expected.packageName, actual.packageName); in checkInfoSame() 87 assertEquals(expected.labelRes, actual.labelRes); in checkInfoSame() 88 assertEquals(expected.nonLocalizedLabel, actual.nonLocalizedLabel); in checkInfoSame() 89 assertEquals(expected.icon, actual.icon); in checkInfoSame() 90 assertEquals(expected.metaData.size(), actual.metaData.size()); in checkInfoSame() 91 assertEquals(R.xml.pm_test, actual.metaData.getInt(METADATA_NAME)); in checkInfoSame()
|
D | PackageStatsTest.java | 56 private void checkInfoSame(PackageStats expected, PackageStats actual) { in checkInfoSame() argument 57 assertEquals(expected.packageName, actual.packageName); in checkInfoSame() 58 assertEquals(expected.cacheSize, actual.cacheSize); in checkInfoSame() 59 assertEquals(expected.dataSize, actual.dataSize); in checkInfoSame() 60 assertEquals(expected.codeSize, actual.codeSize); in checkInfoSame()
|
D | ConfigurationInfoTest.java | 54 private void checkInfoSame(ConfigurationInfo expected, ConfigurationInfo actual) { in checkInfoSame() argument 55 assertEquals(expected.reqKeyboardType, actual.reqKeyboardType); in checkInfoSame() 56 assertEquals(expected.reqTouchScreen, actual.reqTouchScreen); in checkInfoSame() 57 assertEquals(expected.reqInputFeatures, actual.reqInputFeatures); in checkInfoSame() 58 assertEquals(expected.reqNavigation, actual.reqNavigation); in checkInfoSame()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 21 static public void assertEquals(int expected, int actual) { in assertEquals() argument 22 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 25 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument 26 …expected != actual) throw new RuntimeException("AssertionFailedError: not equals: " + message + " … in assertEquals() 30 static public void assertEquals(long expected, long actual) { in assertEquals() argument 31 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 34 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument 35 …if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not wi… in assertEquals() 38 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 39 if (expected == null && actual == null) in assertEquals() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 30 String actual; in testGet() local 44 actual = AutoText.get(src, 0, src.length(), view); in testGet() 45 assertNull(actual); in testGet() 50 actual = AutoText.get(src, 0, src.length(), view); in testGet() 51 assertNotNull(actual); in testGet() 52 assertEquals("can", actual); in testGet() 59 actual = AutoText.get(src, 0, src.length() + 1, view); in testGet() 60 assertNull(actual); in testGet() 67 actual = AutoText.get(src, 0, src.length() - 1, view); in testGet() 68 assertNull(actual); in testGet() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Paint_CapTest.java | 34 Cap[] actual = Cap.values(); in testValues() local 36 assertEquals(3, actual.length); in testValues() 37 assertEquals(Cap.BUTT, actual[0]); in testValues() 38 assertEquals(Cap.ROUND, actual[1]); in testValues() 39 assertEquals(Cap.SQUARE, actual[2]); in testValues() 44 p.setStrokeCap(actual[0]); in testValues() 46 p.setStrokeCap(actual[1]); in testValues() 48 p.setStrokeCap(actual[2]); in testValues()
|
D | Paint_StyleTest.java | 33 Style[] actual = Style.values(); in testValues() local 35 assertEquals(3, actual.length); in testValues() 36 assertEquals(Style.FILL, actual[0]); in testValues() 37 assertEquals(Style.STROKE, actual[1]); in testValues() 38 assertEquals(Style.FILL_AND_STROKE, actual[2]); in testValues() 43 p.setStyle(actual[0]); in testValues() 45 p.setStyle(actual[1]); in testValues() 47 p.setStyle(actual[2]); in testValues()
|
D | Paint_JoinTest.java | 33 Join[] actual = Join.values(); in testValues() local 35 assertEquals(3, actual.length); in testValues() 36 assertEquals(Join.MITER, actual[0]); in testValues() 37 assertEquals(Join.ROUND, actual[1]); in testValues() 38 assertEquals(Join.BEVEL, actual[2]); in testValues() 43 p.setStrokeJoin(actual[0]); in testValues() 45 p.setStrokeJoin(actual[1]); in testValues() 47 p.setStrokeJoin(actual[2]); in testValues()
|
D | Paint_AlignTest.java | 33 Align[] actual = Align.values(); in testValues() local 35 assertEquals(3, actual.length); in testValues() 36 assertEquals(Align.LEFT, actual[0]); in testValues() 37 assertEquals(Align.CENTER, actual[1]); in testValues() 38 assertEquals(Align.RIGHT, actual[2]); in testValues() 43 p.setTextAlign(actual[0]); in testValues() 45 p.setTextAlign(actual[1]); in testValues() 47 p.setTextAlign(actual[2]); in testValues()
|
D | Region_OpTest.java | 46 Op[] actual = Op.values(); in testValues() local 47 assertEquals(expected.length, actual.length); in testValues() 48 assertEquals(expected[0], actual[0]); in testValues() 49 assertEquals(expected[1], actual[1]); in testValues() 50 assertEquals(expected[2], actual[2]); in testValues() 51 assertEquals(expected[3], actual[3]); in testValues() 52 assertEquals(expected[4], actual[4]); in testValues() 53 assertEquals(expected[5], actual[5]); in testValues()
|
D | Path_DirectionTest.java | 36 Direction[] actual = Direction.values(); in testValues() local 37 assertEquals(expected.length, actual.length); in testValues() 38 for (int i = 0; i < actual.length; i ++) { in testValues() 39 assertEquals(expected[i], actual[i]); in testValues()
|
D | PathDashPathEffect_StyleTest.java | 39 Style[] actual = Style.values(); in testValues() local 40 assertEquals(expected.length, actual.length); in testValues() 41 for (int i = 0; i < actual.length; i ++) { in testValues() 42 assertEquals(expected[i], actual[i]); in testValues()
|
D | Path_FillTypeTest.java | 40 FillType[] actual = FillType.values(); in testValues() local 41 assertEquals(expected.length, actual.length); in testValues() 42 for (int i = 0; i < actual.length; i ++) { in testValues() 43 assertEquals(expected[i], actual[i]); in testValues()
|
D | YuvImageTest.java | 111 int[] actual = null; in testYuvImage() local 120 actual = image.getStrides(); in testYuvImage() 122 Arrays.equals(expected, actual)); in testYuvImage() 259 Bitmap actual = null; in compressRects() local 263 actual = compressDecompress(image, actualRect); in compressRects() 267 compareBitmaps(expected, actual, mMseMargin, sameRect); in compressRects() 276 Bitmap actual = null; in compressOddRect() local 277 actual = compressDecompress(image, rect); in compressOddRect() 283 compareBitmaps(expected, actual, mMseMargin, true); in compressOddRect() 345 private void compareBitmaps(Bitmap expected, Bitmap actual, in compareBitmaps() argument [all …]
|
D | BlurMaskFilterTest.java | 76 private void checkColor(int expected, int actual, int alphaTolerance) { in checkColor() argument 77 assertEquals(Color.red(expected), Color.red(actual)); in checkColor() 78 assertEquals(Color.green(expected), Color.green(actual)); in checkColor() 79 assertEquals(Color.blue(expected), Color.blue(actual)); in checkColor() 80 assertEquals(Color.alpha(expected), Color.alpha(actual), alphaTolerance); in checkColor()
|
D | ColorMatrixColorFilterTest.java | 91 private void assertColor(int expected, int actual) { in assertColor() argument 92 assertEquals(Color.red(expected), Color.red(actual), TOLERANCE); in assertColor() 93 assertEquals(Color.green(expected), Color.green(actual), TOLERANCE); in assertColor() 94 assertEquals(Color.blue(expected), Color.blue(actual), TOLERANCE); in assertColor() 95 assertEquals(Color.alpha(expected), Color.alpha(actual), TOLERANCE); in assertColor()
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ComponentNameTest.java | 94 String actual = getComponentName().getShortClassName(); in testGetShortClassName() local 95 assertEquals("android.content.cts.ComponentNameTest", actual); in testGetShortClassName() 103 actual = componentName.getShortClassName(); in testGetShortClassName() 105 assertEquals(".View", actual); in testGetShortClassName() 113 ComponentName actual = ComponentName.readFromParcel(parcel1); in testReadFromParcel() local 114 assertEquals(expected, actual); in testReadFromParcel() 123 final String actual = getComponentName().getPackageName(); in testGetPackageName() local 124 assertEquals("com.android.cts.stub", actual); in testGetPackageName() 131 ComponentName actual = ComponentName.unflattenFromString(flattenString); in testUnflattenFromString() local 132 assertEquals(componentName, actual); in testUnflattenFromString() [all …]
|
/cts/tests/src/android/text/method/cts/ |
D | TextMethodUtils.java | 30 public static void assertEquals(char[] expected, char[] actual) { in assertEquals() argument 31 if (expected != actual) { in assertEquals() 32 if (expected == null || actual == null) { in assertEquals() 36 Assert.assertEquals(String.valueOf(expected), String.valueOf(actual)); in assertEquals()
|
/cts/tests/tests/view/src/android/view/animation/cts/ |
D | TransformationTest.java | 72 private void assertTransformationNotSame(Transformation expected, Transformation actual) { in assertTransformationNotSame() argument 73 assertNotSame(expected.getAlpha(), actual.getAlpha()); in assertTransformationNotSame() 74 assertFalse(expected.getMatrix().equals(actual.getMatrix())); in assertTransformationNotSame() 75 assertNotSame(expected.getTransformationType(), actual.getTransformationType()); in assertTransformationNotSame() 78 private void assertTransformationEquals(Transformation expected, Transformation actual) { in assertTransformationEquals() argument 79 assertEquals(expected.getAlpha(), actual.getAlpha()); in assertTransformationEquals() 80 assertEquals(expected.getMatrix(), actual.getMatrix()); in assertTransformationEquals() 81 assertEquals(expected.getTransformationType(), actual.getTransformationType()); in assertTransformationEquals()
|
/cts/tests/tests/nativeopengl/standalone/jni/tests/ |
D | GLTest_test.cpp | 155 bool checkPixel(GLubyte * actual, GLubyte * expected, int tolerance) { in checkPixel() argument 157 if (abs(actual[i] - expected[i]) > tolerance) { in checkPixel() 165 const char* e_expr, const char* t_expr, GLubyte * actual, in AssertPixel() argument 168 if (checkPixel(actual, expected, tolerance)) { in AssertPixel() 174 << "Actual: r=" << (int)actual[0] << " g=" << (int)actual[1] in AssertPixel() 175 << " b=" << (int)actual[2] << " a=" << (int)actual[3] << "\n" in AssertPixel()
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceTest.java | 192 int actual = mCustomPreference.getPersistedInt(0); in testPersistInt() local 193 assertEquals(expected, actual); in testPersistInt() 210 boolean actual = mCustomPreference.getPersistedBoolean(false); in testPersistBoolean() 211 assertEquals(expected, actual); in testPersistBoolean() 228 String actual = mCustomPreference.getPersistedString("b"); in testPersistString() local 229 assertEquals(expected, actual); in testPersistString() 246 float actual = mCustomPreference.getPersistedFloat(0.000f); in testPersistFloat() local 247 assertEquals(expected, actual); in testPersistFloat() 264 long actual = mCustomPreference.getPersistedLong(10000000l); in testPersistLong() local 265 assertEquals(expected, actual); in testPersistLong()
|