/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 | 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 | ProviderInfoTest.java | 86 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument 87 assertEquals(expected.name, actual.name); in checkInfoSame() 88 assertEquals(expected.authority, actual.authority); in checkInfoSame() 89 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame() 90 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame() 91 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame() 92 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame() 93 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame() 94 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame() 95 assertEquals(expected.isSyncable, actual.isSyncable); 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/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/tools/tradefed-host/tests/src/com/android/cts/tradefed/testtype/ |
D | GeeTestTest.java | 43 String actual = test.getGTestFilters(); in testGetGTestFilters() local 44 assertEquals("--gtest_filter=a:-b", actual); in testGetGTestFilters() 54 String actual = test.getGTestFilters(); in testGetGTestFiltersPositiveOnly() local 55 assertEquals("--gtest_filter=a", actual); in testGetGTestFiltersPositiveOnly() 65 String actual = test.getGTestFilters(); in testGetGTestFiltersNegativeOnly() local 66 assertEquals("--gtest_filter=-b", actual); in testGetGTestFiltersNegativeOnly() 75 String actual = test.getGTestFilters(); in testGetGTestFiltersWithNoFilters() local 76 assertEquals("", actual); in testGetGTestFiltersWithNoFilters()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
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 | 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_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_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 | 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 | ColorMatrixColorFilterTest.java | 94 private void assertColor(int expected, int actual) { in assertColor() argument 95 assertColor(expected, actual, TOLERANCE); in assertColor() 98 private void assertColor(int expected, int actual, int tolerance) { in assertColor() argument 99 assertEquals(Color.red(expected), Color.red(actual), tolerance); in assertColor() 100 assertEquals(Color.green(expected), Color.green(actual), tolerance); in assertColor() 101 assertEquals(Color.blue(expected), Color.blue(actual), tolerance); in assertColor() 102 assertEquals(Color.alpha(expected), Color.alpha(actual), tolerance); in assertColor()
|
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()
|
/cts/tools/vm-tests-tf/src/dot/junit/ |
D | DxAbstractMain.java | 111 static public void assertEquals(int expected, int actual) { in assertEquals() argument 112 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 115 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument 116 …expected != actual) throw new RuntimeException("AssertionFailedError: not equals: " + message + " … in assertEquals() 119 static public void assertEquals(long expected, long actual) { in assertEquals() argument 120 …if (expected != actual) throw new RuntimeException("AssertionFailedError: not equals. Expected " +… in assertEquals() 123 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument 124 …if(!(Math.abs(expected-actual) <= delta)) throw new RuntimeException("AssertionFailedError: not wi… in assertEquals() 127 static public void assertEquals(Object expected, Object actual) { in assertEquals() argument 128 if (expected == null && actual == null) in assertEquals() [all …]
|
/cts/tests/camera/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 143 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument 148 if (!Objects.equals(expected, actual)) { in expectEquals() 150 actual)); in expectEquals() 165 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument 166 if (Objects.equals(expected, actual)) { in expectNotEquals() 168 actual)); in expectNotEquals() 185 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument 190 if (!Arrays.deepEquals(expected, actual)) { in expectEquals() 192 Arrays.deepToString(expected), Arrays.deepToString(actual))); in expectEquals() 210 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals() argument [all …]
|
D | AssertHelpers.java | 131 public static <T> void assertArrayContains(String message, T[] actual, T checkVals) { in assertArrayContains() argument 132 assertCollectionContainsAnyOf(message, buildList(actual), Arrays.asList(checkVals)); in assertArrayContains() 143 public static void assertArrayContains(String message, int[] actual, int checkVals) { in assertArrayContains() argument 144 assertCollectionContainsAnyOf(message, buildList(actual), Arrays.asList(checkVals)); in assertArrayContains() 155 public static <T> T assertArrayContainsAnyOf(String message, T[] actual, T[] checkVals) { in assertArrayContainsAnyOf() argument 156 return assertCollectionContainsAnyOf(message, buildList(actual), buildList(checkVals)); in assertArrayContainsAnyOf() 167 public static int assertArrayContainsAnyOf(String message, int[] actual, int[] checkVals) { in assertArrayContainsAnyOf() argument 168 return assertCollectionContainsAnyOf(message, buildList(actual), buildList(checkVals)); in assertArrayContainsAnyOf() 179 public static <T> T assertCollectionContainsAnyOf(String message, Collection<T> actual, in assertCollectionContainsAnyOf() argument 184 contains = actual.contains(check); in assertCollectionContainsAnyOf() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | ComponentNameTest.java | 94 String actual = getComponentName().getShortClassName(); in testGetShortClassName() local 95 assertEquals(".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("android.content.cts", actual); in testGetPackageName() 131 ComponentName actual = ComponentName.unflattenFromString(flattenString); in testUnflattenFromString() local 132 assertEquals(componentName, actual); in testUnflattenFromString() [all …]
|
/cts/tests/tests/text/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/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 42 public ComparisonTask(File expected, File actual) { in ComparisonTask() argument 44 mActual = actual; in ComparisonTask() 52 final BufferedImage actual = ImageIO.read(mActual); in call() local 53 if (compare(expected, actual, IMAGE_THRESHOLD)) { in call() 57 createDiff(expected, actual, diff); in call() 120 private static void createDiff(BufferedImage expected, BufferedImage actual, File out) in createDiff() argument 124 final int w2 = actual.getWidth(); in createDiff() 125 final int h2 = actual.getHeight(); in createDiff() 142 colorActual = actual.getRGB(i, j); in createDiff() 148 colorActual = actual.getRGB(i, j); in createDiff()
|
/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()
|