/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 66 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame() argument 67 assertEquals(expected.packageName, actual.packageName); in checkPkgInfoSame() 68 assertEquals(expected.getLongVersionCode(), actual.getLongVersionCode()); in checkPkgInfoSame() 69 assertEquals(expected.versionName, actual.versionName); in checkPkgInfoSame() 70 assertEquals(expected.sharedUserId, actual.sharedUserId); in checkPkgInfoSame() 71 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); in checkPkgInfoSame() 73 assertNotNull(actual.applicationInfo); in checkPkgInfoSame() 74 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 76 assertNull(actual.applicationInfo); in checkPkgInfoSame() 78 assertTrue(Arrays.equals(expected.gids, actual.gids)); in checkPkgInfoSame() [all …]
|
D | ProviderInfoTest.java | 88 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument 89 assertEquals(expected.name, actual.name); in checkInfoSame() 90 assertEquals(expected.authority, actual.authority); in checkInfoSame() 91 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame() 92 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame() 93 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame() 94 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame() 95 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame() 96 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame() 97 assertEquals(expected.isSyncable, actual.isSyncable); in checkInfoSame()
|
D | InstrumentationInfoTest.java | 57 private void checkInfoSame(InstrumentationInfo expected, InstrumentationInfo actual) { in checkInfoSame() argument 58 assertEquals(expected.name, actual.name); in checkInfoSame() 59 assertEquals(expected.dataDir, actual.dataDir); in checkInfoSame() 60 assertEquals(expected.handleProfiling, actual.handleProfiling); in checkInfoSame() 61 assertEquals(expected.functionalTest, actual.functionalTest); in checkInfoSame() 62 assertEquals(expected.targetPackage, actual.targetPackage); in checkInfoSame() 63 assertEquals(expected.sourceDir, actual.sourceDir); in checkInfoSame() 64 assertEquals(expected.publicSourceDir, actual.publicSourceDir); in checkInfoSame()
|
D | PermissionInfoTest.java | 56 private void checkInfoSame(PermissionInfo expected, PermissionInfo actual) { in checkInfoSame() argument 57 assertEquals(expected.name, actual.name); in checkInfoSame() 58 assertEquals(expected.group, actual.group); in checkInfoSame() 59 assertEquals(expected.descriptionRes, actual.descriptionRes); in checkInfoSame() 60 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame() 61 assertEquals(expected.nonLocalizedDescription, actual.nonLocalizedDescription); in checkInfoSame()
|
D | PackageItemInfoTest.java | 86 private void checkInfoSame(PackageItemInfo expected, PackageItemInfo actual) { in checkInfoSame() argument 87 assertEquals(expected.name, actual.name); in checkInfoSame() 88 assertEquals(expected.packageName, actual.packageName); in checkInfoSame() 89 assertEquals(expected.labelRes, actual.labelRes); in checkInfoSame() 90 assertEquals(expected.nonLocalizedLabel, actual.nonLocalizedLabel); in checkInfoSame() 91 assertEquals(expected.icon, actual.icon); in checkInfoSame() 92 assertEquals(expected.metaData.size(), actual.metaData.size()); in checkInfoSame() 93 assertEquals(R.xml.pm_test, actual.metaData.getInt(METADATA_NAME)); in checkInfoSame()
|
D | PackageStatsTest.java | 58 private void checkInfoSame(PackageStats expected, PackageStats actual) { in checkInfoSame() argument 59 assertEquals(expected.packageName, actual.packageName); in checkInfoSame() 60 assertEquals(expected.cacheSize, actual.cacheSize); in checkInfoSame() 61 assertEquals(expected.dataSize, actual.dataSize); in checkInfoSame() 62 assertEquals(expected.codeSize, actual.codeSize); in checkInfoSame()
|
D | ConfigurationInfoTest.java | 56 private void checkInfoSame(ConfigurationInfo expected, ConfigurationInfo actual) { in checkInfoSame() argument 57 assertEquals(expected.reqKeyboardType, actual.reqKeyboardType); in checkInfoSame() 58 assertEquals(expected.reqTouchScreen, actual.reqTouchScreen); in checkInfoSame() 59 assertEquals(expected.reqInputFeatures, actual.reqInputFeatures); in checkInfoSame() 60 assertEquals(expected.reqNavigation, actual.reqNavigation); in checkInfoSame()
|
/cts/tests/framework/base/windowmanager/src/android/server/wm/ |
D | AspectRatioTests.java | 135 runAspectRatioTest(mMaxAspectRatioActivity, (actual, displayId, size) -> { in testMaxAspectRatio() 136 assertThat(actual, lessThanOrEqualTo(MAX_ASPECT_RATIO)); in testMaxAspectRatio() 143 runAspectRatioTest(mMetaDataMaxAspectRatioActivity, (actual, displayId, size) -> { in testMetaDataMaxAspectRatio() 144 assertThat(actual, lessThanOrEqualTo(MAX_ASPECT_RATIO)); in testMetaDataMaxAspectRatio() 151 runAspectRatioTest(mMaxAspectRatioResizeableActivity, (actual, displayId, size) -> { in testMaxAspectRatioResizeableActivity() 156 assertThat(actual, greaterThanOrEqualToInexact(defaultDisplayAspectRatio)); in testMaxAspectRatioResizeableActivity() 164 runAspectRatioTest(mMaxAspectRatioUnsetActivity, (actual, displayId, size) -> { in testMaxAspectRatioUnsetActivity() 168 assertThat(actual, greaterThanOrEqualToInexact(getDefaultDisplayAspectRatio())); in testMaxAspectRatioUnsetActivity() 175 runAspectRatioTest(mMinAspectRatioActivity, (actual, displayId, size) -> { in testMinAspectRatio() 176 assertThat(actual, greaterThanOrEqualToInexact(MIN_ASPECT_RATIO)); in testMinAspectRatio() [all …]
|
D | WindowInsetsPolicyTest.java | 183 private void assertForAllInsets(String reason, WindowInsets actual, in assertForAllInsets() argument 186 actual.getSystemWindowInsets(), matcher); in assertForAllInsets() 188 actual.getStableInsets(), matcher); in assertForAllInsets() 190 actual.getSystemGestureInsets(), matcher); in assertForAllInsets() 192 actual.getMandatorySystemGestureInsets(), matcher); in assertForAllInsets() 194 actual.getTappableElementInsets(), matcher); in assertForAllInsets() 197 private <T> void assertThat(String reason, T actual, Matcher<? super T> matcher) { in assertThat() argument 198 mErrorCollector.checkThat(reason, actual, matcher); in assertThat() 221 protected boolean matchesSafely(Insets actual) { in insetsLessThanOrEqualTo() 222 return actual.left <= max.left && actual.top <= max.top in insetsLessThanOrEqualTo() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | AutoTextTest.java | 63 String actual; in testGet() local 69 actual = AutoText.get(src, 0, src.length(), view); in testGet() 70 assertNull(actual); in testGet() 75 actual = AutoText.get(src, 0, src.length(), view); in testGet() 76 assertNotNull(actual); in testGet() 77 assertEquals("can", actual); in testGet() 84 actual = AutoText.get(src, 0, src.length() + 1, view); in testGet() 85 assertNull(actual); in testGet() 92 actual = AutoText.get(src, 0, src.length() - 1, view); in testGet() 93 assertNull(actual); in testGet() [all …]
|
/cts/tests/tests/rcs/src/android/telephony/ims/cts/ |
D | RcsEventTest.java | 174 private boolean matches(RcsGroupThreadParticipantJoinedEvent expected, RcsEvent actual) { in matches() argument 175 if (!(actual instanceof RcsGroupThreadParticipantJoinedEvent)) { in matches() 179 (RcsGroupThreadParticipantJoinedEvent) actual; in matches() 187 private boolean matches(RcsGroupThreadNameChangedEvent expected, RcsEvent actual) { in matches() argument 188 if (!(actual instanceof RcsGroupThreadNameChangedEvent)) { in matches() 192 (RcsGroupThreadNameChangedEvent) actual; in matches() 198 private boolean matches(RcsGroupThreadParticipantLeftEvent expected, RcsEvent actual) { in matches() argument 199 if (!(actual instanceof RcsGroupThreadParticipantLeftEvent)) { in matches() 203 (RcsGroupThreadParticipantLeftEvent) actual; in matches() 211 private boolean matches(RcsGroupThreadIconChangedEvent expected, RcsEvent actual) { in matches() argument [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/windowmanager/src/android/server/wm/intent/ |
D | StateComparisonException.java | 31 Persistence.StateDump actual, String stage) { in StateComparisonException() argument 33 mActual = actual; in StateComparisonException() 64 Persistence.StateDump actual) { in assertEndStatesEqual() argument 65 compareAndThrow(expected, actual, "Different endSates"); in assertEndStatesEqual() 69 Persistence.StateDump actual) { in assertInitialStateEqual() argument 70 compareAndThrow(expected, actual, "Different initial states"); in assertInitialStateEqual() 74 Persistence.StateDump actual, String stage) { in compareAndThrow() argument 75 if (!expected.equals(actual)) { in compareAndThrow() 76 throw new StateComparisonException(expected, actual, stage); in compareAndThrow()
|
/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/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/graphics/src/android/graphics/cts/ |
D | Paint_AlignTest.java | 43 Align[] actual = Align.values(); in testValues() local 45 assertEquals(3, actual.length); in testValues() 46 assertEquals(Align.LEFT, actual[0]); in testValues() 47 assertEquals(Align.CENTER, actual[1]); in testValues() 48 assertEquals(Align.RIGHT, actual[2]); in testValues() 53 p.setTextAlign(actual[0]); in testValues() 55 p.setTextAlign(actual[1]); in testValues() 57 p.setTextAlign(actual[2]); in testValues()
|
D | Paint_JoinTest.java | 43 Join[] actual = Join.values(); in testValues() local 45 assertEquals(3, actual.length); in testValues() 46 assertEquals(Join.MITER, actual[0]); in testValues() 47 assertEquals(Join.ROUND, actual[1]); in testValues() 48 assertEquals(Join.BEVEL, actual[2]); in testValues() 53 p.setStrokeJoin(actual[0]); in testValues() 55 p.setStrokeJoin(actual[1]); in testValues() 57 p.setStrokeJoin(actual[2]); in testValues()
|
D | Paint_CapTest.java | 43 Cap[] actual = Cap.values(); in testValues() local 45 assertEquals(3, actual.length); in testValues() 46 assertEquals(Cap.BUTT, actual[0]); in testValues() 47 assertEquals(Cap.ROUND, actual[1]); in testValues() 48 assertEquals(Cap.SQUARE, actual[2]); in testValues() 53 p.setStrokeCap(actual[0]); in testValues() 55 p.setStrokeCap(actual[1]); in testValues() 57 p.setStrokeCap(actual[2]); in testValues()
|
D | Paint_StyleTest.java | 43 Style[] actual = Style.values(); in testValues() local 45 assertEquals(3, actual.length); in testValues() 46 assertEquals(Style.FILL, actual[0]); in testValues() 47 assertEquals(Style.STROKE, actual[1]); in testValues() 48 assertEquals(Style.FILL_AND_STROKE, actual[2]); in testValues() 53 p.setStyle(actual[0]); in testValues() 55 p.setStyle(actual[1]); in testValues() 57 p.setStyle(actual[2]); in testValues()
|
D | Region_OpTest.java | 55 Op[] actual = Op.values(); in testValues() local 56 assertEquals(expected.length, actual.length); in testValues() 57 assertEquals(expected[0], actual[0]); in testValues() 58 assertEquals(expected[1], actual[1]); in testValues() 59 assertEquals(expected[2], actual[2]); in testValues() 60 assertEquals(expected[3], actual[3]); in testValues() 61 assertEquals(expected[4], actual[4]); in testValues() 62 assertEquals(expected[5], actual[5]); in testValues()
|
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/ |
D | BaseShortcutManagerHostTest.java | 197 String expectedRegex, String actual) { in assertContainsRegex() argument 198 return assertContainsRegex(null, expectedRegex, actual); in assertContainsRegex() 209 String message, String expectedRegex, String actual) { in assertContainsRegex() argument 210 if (actual == null) { in assertContainsRegex() 211 failNotContains(message, expectedRegex, actual); in assertContainsRegex() 213 Matcher matcher = getMatcher(expectedRegex, actual); in assertContainsRegex() 215 failNotContains(message, expectedRegex, actual); in assertContainsRegex() 227 String message, String expectedRegex, String actual) { in assertNotMatchesRegex() argument 228 Matcher matcher = getMatcher(expectedRegex, actual); in assertNotMatchesRegex() 230 failMatch(message, expectedRegex, actual); in assertNotMatchesRegex() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | BaseTelecomTestWithMockServices.java | 656 public Object actual() { in verifyPhoneStateListenerCallbacksForCall() 815 public Object actual() { in assertNumCalls() 831 public Object actual() { in assertNumConferenceCalls() 848 public Object actual() { in assertCSConnections() 866 public Object actual() { in assertNumConnections() 884 public Object actual() { in assertMuteState() 903 public Object actual() { in assertMuteState() 922 public Object actual() { in assertAudioRoute() 941 public Object actual() { in assertNotAudioRoute() 960 public Object actual() { in assertAudioRoute() [all …]
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/ |
D | SamplePointWideGamutVerifier.java | 49 Color actual = bitmap.getColor(p.x, p.y).convert(expected.getColorSpace()); in verify() local 52 if (!floatCompare(expected.red(), actual.red(), mEps)) localSuccess = false; in verify() 53 if (!floatCompare(expected.green(), actual.green(), mEps)) localSuccess = false; in verify() 54 if (!floatCompare(expected.blue(), actual.blue(), mEps)) localSuccess = false; in verify() 55 if (!floatCompare(expected.alpha(), actual.alpha(), mEps)) localSuccess = false; in verify() 59 Log.w(TAG, "Expected " + expected + " at " + p + ", got " + actual); in verify()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/ |
D | InteractiveVerifierActivity.java | 398 protected boolean checkEquals(long[] expected, long[] actual, String message) { in checkEquals() argument 399 if (Arrays.equals(expected, actual)) { in checkEquals() 402 logWithStack(String.format(message, expected, actual)); in checkEquals() 406 protected boolean checkEquals(Object[] expected, Object[] actual, String message) { in checkEquals() argument 407 if (Arrays.equals(expected, actual)) { in checkEquals() 410 logWithStack(String.format(message, expected, actual)); in checkEquals() 414 protected boolean checkEquals(Parcelable expected, Parcelable actual, String message) { in checkEquals() argument 415 if (Objects.equals(expected, actual)) { in checkEquals() 418 logWithStack(String.format(message, expected, actual)); in checkEquals() 422 protected boolean checkEquals(boolean expected, boolean actual, String message) { in checkEquals() argument [all …]
|