Home
last modified time | relevance | path

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

1234567891011

/cts/tests/tests/content/src/android/content/pm/cts/
DPackageInfoTest.java86 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame() argument
87 assertEquals(expected.packageName, actual.packageName); in checkPkgInfoSame()
88 assertEquals(expected.getLongVersionCode(), actual.getLongVersionCode()); in checkPkgInfoSame()
89 assertEquals(expected.versionName, actual.versionName); in checkPkgInfoSame()
90 assertEquals(expected.sharedUserId, actual.sharedUserId); in checkPkgInfoSame()
91 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); in checkPkgInfoSame()
93 assertNotNull(actual.applicationInfo); in checkPkgInfoSame()
94 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame()
96 assertNull(actual.applicationInfo); in checkPkgInfoSame()
98 assertTrue(Arrays.equals(expected.gids, actual.gids)); in checkPkgInfoSame()
[all …]
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()
DProviderInfoTest.java90 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument
91 assertEquals(expected.name, actual.name); in checkInfoSame()
92 assertEquals(expected.authority, actual.authority); in checkInfoSame()
93 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame()
94 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame()
95 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame()
96 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame()
97 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame()
98 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame()
99 assertEquals(expected.isSyncable, actual.isSyncable); 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()
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvTrackInfoSubject.java40 private final TvTrackInfo actual; field in TvTrackInfoSubject
42 private TvTrackInfoSubject(FailureMetadata metadata, @Nullable TvTrackInfo actual) { in TvTrackInfoSubject() argument
43 super(metadata, actual); in TvTrackInfoSubject()
44 this.actual = actual; in TvTrackInfoSubject()
47 public static TvTrackInfoSubject assertThat(@Nullable TvTrackInfo actual) { in assertThat() argument
48 return assertAbout(tvTrackInfos()).that(actual); in assertThat()
56 check("getAudioChannelCount()").that(actual.getAudioChannelCount()).isEqualTo(id); in hasAudioChannelCount()
60 check("getAudioSampleRate()").that(actual.getAudioSampleRate()).isEqualTo(rate); in hasAudioSampleRate()
64 check("describeContents()").that(actual.describeContents()).isEqualTo(content); in hasContentDescription()
69 check("getEncoding()").that(actual.getEncoding()).isEqualTo(encoding); in hasEncoding()
[all …]
/cts/tests/framework/base/windowmanager/src/android/server/wm/
DAspectRatioTests.java57 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatio()
58 assertThat(actual, lessThanOrEqualTo(MAX_ASPECT_RATIO)); in testMaxAspectRatio()
66 (actual, displayId, activitySize, displaySize) -> { in testMetaDataMaxAspectRatio()
67 assertThat(actual, lessThanOrEqualTo(MAX_ASPECT_RATIO)); in testMetaDataMaxAspectRatio()
75 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioResizeableActivity()
81 assertThat(actual, greaterThanOrEqualToInexact(defaultDisplayAspectRatio)); in testMaxAspectRatioResizeableActivity()
90 (actual, displayId, activitySize, displaySize) -> { in testMaxAspectRatioUnsetActivity()
94 assertThat(actual, greaterThanOrEqualToInexact( in testMaxAspectRatioUnsetActivity()
103 (actual, displayId, activitySize, displaySize) -> { in testMinAspectRatio()
104 assertThat(actual, greaterThanOrEqualToInexact(MIN_ASPECT_RATIO)); in testMinAspectRatio()
[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/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/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/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_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_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_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()
/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/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/hostsidetests/scopedstorage/libs/ScopedStorageTestLib/src/android/scopedstorage/cts/lib/
DRedactionTestHelper.java81 @NonNull HashMap<String, String> actual, @NonNull HashMap<String, String> expected) { in assertExifMetadataMatch() argument
83 assertMetadataEntryMatch(tag, actual.get(tag), expected.get(tag)); in assertExifMetadataMatch()
91 @NonNull HashMap<String, String> actual, @NonNull HashMap<String, String> expected) { in assertExifMetadataMismatch() argument
93 assertMetadataEntryMismatch(tag, actual.get(tag), expected.get(tag)); in assertExifMetadataMismatch()
97 private static void assertMetadataEntryMatch(String tag, String actual, String expected) { in assertMetadataEntryMatch() argument
98 if (!Objects.equals(actual, expected)) { in assertMetadataEntryMatch()
101 + "but was: " + actual); in assertMetadataEntryMatch()
105 private static void assertMetadataEntryMismatch(String tag, String actual, String expected) { in assertMetadataEntryMismatch() argument
106 if (Objects.equals(actual, expected)) { in assertMetadataEntryMismatch()
/cts/tests/tests/companion/core/src/android/companion/cts/core/
DRetrieveAssociationsTest.kt55 actual = cdm.myAssociations, in <lambda>()
70 actual = cdm.myAssociations, in <lambda>()
77 actual = cdm.myAssociations, in <lambda>()
85 actual = cdm.myAssociations, in <lambda>()
94 actual = cdm.myAssociations, in <lambda>()
102 actual = cdm.myAssociations, in <lambda>()
118 actual = cdm.myAssociations, in test_getMyAssociations_otherPackages_NotIncluded()
123 actual = cdm.myAssociations, in test_getMyAssociations_otherPackages_NotIncluded()
154 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
167 actual = withShellPermissionIdentity { cdm.allAssociations }, in <lambda>()
[all …]
/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/resourcesloader/src/android/content/res/loader/cts/
DResourcesLoaderFallthroughTest.kt35 val actual = query(mapOf( in <lambda>() constant
51 "openAssetFd" to "FileNotFoundException")), actual(resources)) in <lambda>()
56 "openAssetFd" to "One")), actual(resources)) in <lambda>()
61 "openAssetFd" to "One")), actual(resources)) in <lambda>()
66 "openAssetFd" to "Three")), actual(resources)) in <lambda>()
71 "openAssetFd" to "Three")), actual(resources)) in <lambda>()
93 val actual = query(mapOf( in <lambda>() constant
108 "openAssetFd" to "Two")), actual(resources)) in <lambda>()
117 "openAssetFd" to "AssetsTwo")), actual(resources)) in <lambda>()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiBackupRestoreTest.java387 List<WifiConfiguration> expected, List<WifiConfiguration> actual) {
388 assertThat(actual.size() >= expected.size()).isTrue();
392 for (WifiConfiguration actualConfiguration : actual) {
409 WifiConfiguration expected, WifiConfiguration actual) {
410 assertThat(actual).isNotNull();
412 assertWithMessage("Network: " + actual.toString())
413 .that(actual.SSID).isEqualTo(expected.SSID);
414 assertWithMessage("Network: " + actual.toString())
415 .that(actual.preSharedKey).isEqualTo(expected.preSharedKey);
416 assertWithMessage("Network: " + actual.toString())
[all …]
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/notifications/
DNotificationListenerQuerySubject.java36 @Nullable NotificationListenerQuery actual) { in NotificationListenerQuerySubject() argument
37 super(metadata, actual); in NotificationListenerQuerySubject()
38 this.mActual = actual; in NotificationListenerQuerySubject()
52 @Nullable NotificationListenerQuery actual) { in assertThat()
53 return assertAbout(notificationListenerQuery()).that(actual); in assertThat()
/cts/common/device-side/bedstead/metricsrecorder/src/main/java/com/android/bedstead/metricsrecorder/truth/
DMetricQueryBuilderSubject.java43 public static MetricQueryBuilderSubject assertThat(@Nullable MetricQueryBuilder actual) { in assertThat() argument
44 return assertAbout(MetricQueryBuilder()).that(actual); in assertThat()
49 … private MetricQueryBuilderSubject(FailureMetadata metadata, @Nullable MetricQueryBuilder actual) { in MetricQueryBuilderSubject() argument
50 super(metadata, actual); in MetricQueryBuilderSubject()
51 this.mActual = actual; in MetricQueryBuilderSubject()
/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()

1234567891011