Home
last modified time | relevance | path

Searched refs:actual (Results 1 – 25 of 207) sorted by relevance

123456789

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java66 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 …]
DProviderInfoTest.java88 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()
DInstrumentationInfoTest.java57 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()
DPermissionInfoTest.java56 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()
DPackageItemInfoTest.java86 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()
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTests.java135 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 …]
DWindowInsetsPolicyTest.java183 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/
DAutoTextTest.java63 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/camera/utils/src/android/hardware/camera2/cts/helpers/
DCameraErrorCollector.java141 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 …]
DAssertHelpers.java131 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/tools/vm-tests-tf/src/dot/junit/
DDxAbstractMain.java111 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/tests/content/src/android/content/cts/
DComponentNameTest.java94 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/framework/base/windowmanager/src/android/server/wm/intent/
DStateComparisonException.java31 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/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java197 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/graphics/src/android/graphics/cts/
DPaint_StyleTest.java43 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()
DPaint_JoinTest.java43 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()
DPaint_CapTest.java43 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()
DPaint_AlignTest.java43 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()
DRegion_OpTest.java55 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()
DYuvImageTest.java113 int[] actual = null; in testYuvImage() local
122 actual = image.getStrides(); in testYuvImage()
124 Arrays.equals(expected, actual)); in testYuvImage()
253 Bitmap actual = null; in compressRects() local
257 actual = compressDecompress(image, actualRect); in compressRects()
262 compareBitmaps(expected, actual, MSE_MARGIN, sameRect); in compressRects()
271 Bitmap actual = null; in compressOddRect() local
272 actual = compressDecompress(image, rect); in compressOddRect()
278 compareBitmaps(expected, actual, MSE_MARGIN, true); in compressOddRect()
340 private void compareBitmaps(Bitmap expected, Bitmap actual, in compareBitmaps() argument
[all …]
/cts/tests/tests/telecom/src/android/telecom/cts/
DBaseTelecomTestWithMockServices.java832 public Object actual() { in verifyPhoneStateListenerCallbacksForCall()
872 public Object actual() { in verifyPhoneStateListenerCallbacksForEmergencyCall()
1034 public Object actual() { in assertNumCalls()
1050 public Object actual() { in assertNumConferenceCalls()
1067 public Object actual() { in assertCSConnections()
1085 public Object actual() { in assertNumConnections()
1103 public Object actual() { in assertMuteState()
1122 public Object actual() { in assertMuteState()
1141 public Object actual() { in assertAudioRoute()
1160 public Object actual() { in assertNotAudioRoute()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DInteractiveVerifierActivity.java398 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 …]
/cts/tests/tests/mimemap/src/android/content/type/cts/
DMimeMapTest.java223 TreeMap<String, String> actual = new TreeMap<>(); in containsAllStockAndroidMappings_mimeToExt() local
226 actual.put(mimeType, mimeMap.guessExtensionFromMimeType(mimeType)); in containsAllStockAndroidMappings_mimeToExt()
228 assertEquals(expected, actual); in containsAllStockAndroidMappings_mimeToExt()
235 TreeMap<String, String> actual = new TreeMap<>(); in containsAllExpectedMappings_extToMime() local
238 actual.put(extension, mimeMap.guessMimeTypeFromExtension(extension)); in containsAllExpectedMappings_extToMime()
240 assertEquals(expected, actual); in containsAllExpectedMappings_extToMime()
279 final String actual = mimeMap.guessMimeTypeFromExtension(extension); in assertMimeTypeFromExtension() local
280 if (!Objects.equals(mimeType, actual)) { in assertMimeTypeFromExtension()
281 fail("Expected " + mimeType + " but was " + actual + " for extension " + extension); in assertMimeTypeFromExtension()
286 final String actual = mimeMap.guessExtensionFromMimeType(mimeType); in assertExtensionFromMimeType() local
[all …]
/cts/tests/tests/preference/src/android/preference/cts/
DPreferenceTest.java195 int actual = mCustomPreference.getPersistedInt(0); in testPersistInt() local
196 assertEquals(expected, actual); in testPersistInt()
213 boolean actual = mCustomPreference.getPersistedBoolean(false); in testPersistBoolean()
214 assertEquals(expected, actual); in testPersistBoolean()
231 String actual = mCustomPreference.getPersistedString("b"); in testPersistString() local
232 assertEquals(expected, actual); in testPersistString()
249 Set<String> actual = mCustomPreference.getPersistedStringSet(new HashSet<>()); in testPersistStringSet() local
250 assertEquals(expected, actual); in testPersistStringSet()
267 float actual = mCustomPreference.getPersistedFloat(0.000f); in testPersistFloat() local
268 assertEquals(expected, actual); in testPersistFloat()
[all …]
/cts/tests/tests/uirendering/src/android/uirendering/cts/bitmapverifiers/
DSamplePointWideGamutVerifier.java49 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()

123456789