/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.getLongVersionCode(), actual.getLongVersionCode()); 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 | 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 | 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 | 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 | 62 String actual; in testGet() local 68 actual = AutoText.get(src, 0, src.length(), view); in testGet() 69 assertNull(actual); in testGet() 74 actual = AutoText.get(src, 0, src.length(), view); in testGet() 75 assertNotNull(actual); in testGet() 76 assertEquals("can", actual); in testGet() 83 actual = AutoText.get(src, 0, src.length() + 1, view); in testGet() 84 assertNull(actual); in testGet() 91 actual = AutoText.get(src, 0, src.length() - 1, view); in testGet() 92 assertNull(actual); in testGet() [all …]
|
/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) in assertEquals() 114 "not equals. Expected " + expected + " actual " + actual); in assertEquals() 117 static public void assertEquals(String message, int expected, int actual) { in assertEquals() argument 118 if (expected != actual) in assertEquals() 120 "not equals: " + message + " Expected " + expected + " actual " + actual); in assertEquals() 123 static public void assertEquals(long expected, long actual) { in assertEquals() argument 124 if (expected != actual) in assertEquals() 126 "not equals. Expected " + expected + " actual " + actual); in assertEquals() 129 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() argument [all …]
|
/cts/tests/framework/base/activitymanager/src/android/server/am/ |
D | AspectRatioTests.java | 117 runAspectRatioTest(mMaxAspectRatioActivity, actual -> { in testMaxAspectRatio() 118 if (MAX_ASPECT_RATIO >= actual) return; in testMaxAspectRatio() 119 fail("actual=" + actual + " is greater than expected=" + MAX_ASPECT_RATIO); in testMaxAspectRatio() 125 runAspectRatioTest(mMetaDataMaxAspectRatioActivity, actual -> { in testMetaDataMaxAspectRatio() 126 if (MAX_ASPECT_RATIO >= actual) return; in testMetaDataMaxAspectRatio() 127 fail("actual=" + actual + " is greater than expected=" + MAX_ASPECT_RATIO); in testMetaDataMaxAspectRatio() 147 runTest(testActivity, actual -> { in testMaxAspectRatioResizeableActivity() 148 if (aspectRatioEqual(expected, actual) || expected < actual) return; in testMaxAspectRatioResizeableActivity() 149 fail("actual=" + actual + " is less than expected=" + expected); in testMaxAspectRatioResizeableActivity() 160 runAspectRatioTest(mMaxAspectRatioUnsetActivity, actual -> { in testMaxAspectRatioUnsetActivity() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | Paint_StyleTest.java | 42 Style[] actual = Style.values(); in testValues() local 44 assertEquals(3, actual.length); in testValues() 45 assertEquals(Style.FILL, actual[0]); in testValues() 46 assertEquals(Style.STROKE, actual[1]); in testValues() 47 assertEquals(Style.FILL_AND_STROKE, actual[2]); in testValues() 52 p.setStyle(actual[0]); in testValues() 54 p.setStyle(actual[1]); in testValues() 56 p.setStyle(actual[2]); in testValues()
|
D | Paint_JoinTest.java | 42 Join[] actual = Join.values(); in testValues() local 44 assertEquals(3, actual.length); in testValues() 45 assertEquals(Join.MITER, actual[0]); in testValues() 46 assertEquals(Join.ROUND, actual[1]); in testValues() 47 assertEquals(Join.BEVEL, actual[2]); in testValues() 52 p.setStrokeJoin(actual[0]); in testValues() 54 p.setStrokeJoin(actual[1]); in testValues() 56 p.setStrokeJoin(actual[2]); in testValues()
|
D | Paint_CapTest.java | 42 Cap[] actual = Cap.values(); in testValues() local 44 assertEquals(3, actual.length); in testValues() 45 assertEquals(Cap.BUTT, actual[0]); in testValues() 46 assertEquals(Cap.ROUND, actual[1]); in testValues() 47 assertEquals(Cap.SQUARE, actual[2]); in testValues() 52 p.setStrokeCap(actual[0]); in testValues() 54 p.setStrokeCap(actual[1]); in testValues() 56 p.setStrokeCap(actual[2]); in testValues()
|
D | Paint_AlignTest.java | 42 Align[] actual = Align.values(); in testValues() local 44 assertEquals(3, actual.length); in testValues() 45 assertEquals(Align.LEFT, actual[0]); in testValues() 46 assertEquals(Align.CENTER, actual[1]); in testValues() 47 assertEquals(Align.RIGHT, actual[2]); in testValues() 52 p.setTextAlign(actual[0]); in testValues() 54 p.setTextAlign(actual[1]); in testValues() 56 p.setTextAlign(actual[2]); in testValues()
|
D | Region_OpTest.java | 54 Op[] actual = Op.values(); in testValues() local 55 assertEquals(expected.length, actual.length); in testValues() 56 assertEquals(expected[0], actual[0]); in testValues() 57 assertEquals(expected[1], actual[1]); in testValues() 58 assertEquals(expected[2], actual[2]); in testValues() 59 assertEquals(expected[3], actual[3]); in testValues() 60 assertEquals(expected[4], actual[4]); in testValues() 61 assertEquals(expected[5], actual[5]); in testValues()
|
D | Path_DirectionTest.java | 44 Direction[] actual = Direction.values(); in testValues() local 45 assertEquals(expected.length, actual.length); in testValues() 46 for (int i = 0; i < actual.length; i ++) { in testValues() 47 assertEquals(expected[i], actual[i]); in testValues()
|
D | PathDashPathEffect_StyleTest.java | 46 Style[] actual = Style.values(); in testValues() local 47 assertEquals(expected.length, actual.length); in testValues() 48 for (int i = 0; i < actual.length; i ++) { in testValues() 49 assertEquals(expected[i], actual[i]); in testValues()
|
D | Path_FillTypeTest.java | 48 FillType[] actual = FillType.values(); in testValues() local 49 assertEquals(expected.length, actual.length); in testValues() 50 for (int i = 0; i < actual.length; i ++) { in testValues() 51 assertEquals(expected[i], actual[i]); in testValues()
|
/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/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 141 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument 146 if (!Objects.equals(expected, actual)) { in expectEquals() 148 actual)); in expectEquals() 163 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument 164 if (Objects.equals(expected, actual)) { in expectNotEquals() 166 actual)); in expectNotEquals() 183 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument 188 if (!Arrays.deepEquals(expected, actual)) { in expectEquals() 190 Arrays.deepToString(expected), Arrays.deepToString(actual))); in expectEquals() 208 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/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 222 String expectedRegex, String actual) { in assertContainsRegex() argument 223 return assertContainsRegex(null, expectedRegex, actual); in assertContainsRegex() 234 String message, String expectedRegex, String actual) { in assertContainsRegex() argument 235 if (actual == null) { in assertContainsRegex() 236 failNotContains(message, expectedRegex, actual); in assertContainsRegex() 238 Matcher matcher = getMatcher(expectedRegex, actual); in assertContainsRegex() 240 failNotContains(message, expectedRegex, actual); in assertContainsRegex() 252 String message, String expectedRegex, String actual) { in assertNotMatchesRegex() argument 253 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotMatchesRegex() 255 failMatch(message, expectedRegex, actual); in assertNotMatchesRegex() [all …]
|
/cts/hostsidetests/theme/src/android/theme/cts/ |
D | ComparisonTask.java | 50 public ComparisonTask(String name, File expected, File actual) { in ComparisonTask() argument 53 mActual = actual; in ComparisonTask() 59 final BufferedImage actual = ImageIO.read(mActual); in call() local 60 if (!compare(expected, actual, IMAGE_THRESHOLD)) { in call() 62 createDiff(expected, actual, diff); in call() 139 private static void createDiff(BufferedImage expected, BufferedImage actual, File out) in createDiff() argument 143 final int w2 = actual.getWidth(); in createDiff() 144 final int h2 = actual.getHeight(); in createDiff() 161 colorActual = actual.getRGB(i, j); in createDiff() 167 colorActual = actual.getRGB(i, j); in createDiff()
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BaseTelecomTestWithMockServices.java | 598 public Object actual() { in verifyPhoneStateListenerCallbacksForCall() 676 public Object actual() { in assertNumCalls() 692 public Object actual() { in assertNumConferenceCalls() 709 public Object actual() { in assertCSConnections() 727 public Object actual() { in assertNumConnections() 745 public Object actual() { in assertMuteState() 764 public Object actual() { in assertMuteState() 783 public Object actual() { in assertAudioRoute() 802 public Object actual() { in assertNotAudioRoute() 821 public Object actual() { in assertAudioRoute() [all …]
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | CallLogTest.java | 44 public Object actual() { in testGetLastOutgoingCall() 69 public Object actual() { in testGetLastOutgoingCall() 81 while (!condition.expected().equals(condition.actual()) in waitUntilConditionIsTrueOrTimeout() 85 assertEquals(description, condition.expected(), condition.actual()); in waitUntilConditionIsTrueOrTimeout() 90 Object actual(); in actual() method
|