/cts/tests/tests/content/src/android/content/pm/cts/ |
D | PackageInfoTest.java | 115 private void checkPkgInfoSame(PackageInfo expected, PackageInfo actual) { in checkPkgInfoSame() argument 116 assertEquals(expected.packageName, actual.packageName); in checkPkgInfoSame() 117 assertEquals(expected.getLongVersionCode(), actual.getLongVersionCode()); in checkPkgInfoSame() 118 assertEquals(expected.versionName, actual.versionName); in checkPkgInfoSame() 119 assertEquals(expected.sharedUserId, actual.sharedUserId); in checkPkgInfoSame() 120 assertEquals(expected.sharedUserLabel, actual.sharedUserLabel); in checkPkgInfoSame() 123 actual.getApexPackageName()); in checkPkgInfoSame() 126 assertNotNull(actual.applicationInfo); in checkPkgInfoSame() 127 checkAppInfo(expected.applicationInfo, actual.applicationInfo); in checkPkgInfoSame() 129 assertNull(actual.applicationInfo); in checkPkgInfoSame() [all …]
|
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 | 63 private void checkInfoSame(PermissionInfo expected, PermissionInfo actual) { in checkInfoSame() argument 64 assertEquals(expected.name, actual.name); in checkInfoSame() 65 assertEquals(expected.group, actual.group); in checkInfoSame() 66 assertEquals(expected.descriptionRes, actual.descriptionRes); in checkInfoSame() 67 assertEquals(expected.protectionLevel, actual.protectionLevel); in checkInfoSame() 68 assertEquals(expected.nonLocalizedDescription, actual.nonLocalizedDescription); in checkInfoSame() 69 assertEquals(expected.knownCerts, actual.knownCerts); in checkInfoSame()
|
D | ProviderInfoTest.java | 122 private void checkInfoSame(ProviderInfo expected, ProviderInfo actual) { in checkInfoSame() argument 123 assertEquals(expected.name, actual.name); in checkInfoSame() 124 assertEquals(expected.authority, actual.authority); in checkInfoSame() 125 assertEquals(expected.readPermission, actual.readPermission); in checkInfoSame() 126 assertEquals(expected.writePermission, actual.writePermission); in checkInfoSame() 127 assertEquals(expected.grantUriPermissions, actual.grantUriPermissions); in checkInfoSame() 128 assertEquals(expected.uriPermissionPatterns, actual.uriPermissionPatterns); in checkInfoSame() 129 assertEquals(expected.multiprocess, actual.multiprocess); in checkInfoSame() 130 assertEquals(expected.initOrder, actual.initOrder); in checkInfoSame() 131 assertEquals(expected.isSyncable, actual.isSyncable); in checkInfoSame()
|
/cts/tests/tests/tv/src/android/media/tv/cts/ |
D | TvTrackInfoSubject.java | 40 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/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/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/hostsidetests/car/app/src/android/car/cts/app/watchdog/ |
D | IoOveruseConfigurationSubject.java | 47 protected boolean doEquivalent(PerStateBytes actual, PerStateBytes expected) { 48 return isPerStateBytesEquals(actual, expected); 83 public static boolean isEquals(IoOveruseConfiguration actual, in isEquals() argument 85 if (actual == null || expected == null) { in isEquals() 86 return actual == null && expected == null; in isEquals() 89 return isPerStateBytesEquals(actual.getComponentLevelThresholds(), in isEquals() 91 && Maps.difference(actual.getPackageSpecificThresholds(), in isEquals() 93 && Maps.difference(actual.getAppCategorySpecificThresholds(), in isEquals() 95 && isAlertThresholdEquals(actual.getSystemWideThresholds(), in isEquals() 105 private static boolean isPerStateBytesEquals(PerStateBytes actual, PerStateBytes expected) { in isPerStateBytesEquals() argument [all …]
|
D | ResourceOveruseConfigurationSubject.java | 70 public static boolean isEquals(ResourceOveruseConfiguration actual, in isEquals() argument 72 if (actual == null || expected == null) { in isEquals() 73 return (actual == null) && (expected == null); in isEquals() 75 return actual.getComponentType() == expected.getComponentType() in isEquals() 76 && ImmutableSet.copyOf(actual.getSafeToKillPackages()).equals( in isEquals() 78 && ImmutableSet.copyOf(actual.getVendorPackagePrefixes()).equals( in isEquals() 80 && Maps.difference(actual.getPackagesToAppCategoryTypes(), in isEquals() 82 && IoOveruseConfigurationSubject.isEquals(actual.getIoOveruseConfiguration(), in isEquals()
|
/cts/tests/tests/car/src/android/car/cts/utils/watchdog/ |
D | IoOveruseConfigurationSubject.java | 47 protected boolean doEquivalent(PerStateBytes actual, PerStateBytes expected) { 48 return isPerStateBytesEquals(actual, expected); 83 public static boolean isEquals(IoOveruseConfiguration actual, in isEquals() argument 85 if (actual == null || expected == null) { in isEquals() 86 return actual == null && expected == null; in isEquals() 89 return isPerStateBytesEquals(actual.getComponentLevelThresholds(), in isEquals() 91 && Maps.difference(actual.getPackageSpecificThresholds(), in isEquals() 93 && Maps.difference(actual.getAppCategorySpecificThresholds(), in isEquals() 95 && isAlertThresholdEquals(actual.getSystemWideThresholds(), in isEquals() 105 private static boolean isPerStateBytesEquals(PerStateBytes actual, PerStateBytes expected) { in isPerStateBytesEquals() argument [all …]
|
D | ResourceOveruseConfigurationSubject.java | 63 public static boolean isEquals(ResourceOveruseConfiguration actual, in isEquals() argument 65 if (actual == null || expected == null) { in isEquals() 66 return (actual == null) && (expected == null); in isEquals() 68 return actual.getComponentType() == expected.getComponentType() in isEquals() 69 && ImmutableSet.copyOf(actual.getSafeToKillPackages()).equals( in isEquals() 71 && ImmutableSet.copyOf(actual.getVendorPackagePrefixes()).equals( in isEquals() 73 && Maps.difference(actual.getPackagesToAppCategoryTypes(), in isEquals() 75 && IoOveruseConfigurationSubject.isEquals(actual.getIoOveruseConfiguration(), in isEquals()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
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_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_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 | 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 | 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/tests/tests/os/src/android/os/connectivity/cts/ |
D | WifiActivityEnergyInfoTest.java | 41 WifiActivityEnergyInfo actual = WifiActivityEnergyInfo.CREATOR.createFromParcel(in); in parceling() local 42 assertThat(actual.getTimeSinceBootMillis()).isEqualTo(100); in parceling() 43 assertThat(actual.getStackState()).isEqualTo( in parceling() 45 assertThat(actual.getControllerTxDurationMillis()).isEqualTo(200); in parceling() 46 assertThat(actual.getControllerRxDurationMillis()).isEqualTo(300); in parceling() 47 assertThat(actual.getControllerScanDurationMillis()).isEqualTo(400); in parceling() 48 assertThat(actual.getControllerIdleDurationMillis()).isEqualTo(500); in parceling()
|
/cts/tests/camera/utils/src/android/hardware/camera2/cts/helpers/ |
D | CameraErrorCollector.java | 154 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() argument 155 return expectEquals(msg, expected, actual, /*mpc*/false); in expectEquals() 169 public <T> boolean expectEquals(String msg, T expected, T actual, boolean mpc) { in expectEquals() argument 174 if (!Objects.equals(expected, actual)) { in expectEquals() 179 actual)); in expectEquals() 195 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() argument 196 if (Objects.equals(expected, actual)) { in expectNotEquals() 198 actual)); in expectNotEquals() 215 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() argument 220 if (!Arrays.deepEquals(expected, actual)) { in expectEquals() [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 | 136 String actual = getComponentName().getShortClassName(); in testGetShortClassName() local 137 assertEquals(".ComponentNameTest", actual); in testGetShortClassName() 145 actual = componentName.getShortClassName(); in testGetShortClassName() 147 assertEquals(".View", actual); in testGetShortClassName() 156 ComponentName actual = ComponentName.readFromParcel(parcel1); in testReadFromParcel() local 157 assertEquals(expected, actual); in testReadFromParcel() 167 final String actual = getComponentName().getPackageName(); in testGetPackageName() local 168 assertEquals("android.content.cts", actual); in testGetPackageName() 176 ComponentName actual = ComponentName.unflattenFromString(flattenString); in testUnflattenFromString() local 177 assertEquals(componentName, actual); in testUnflattenFromString() [all …]
|
/cts/tests/tests/companion/core/src/android/companion/cts/core/ |
D | RetrieveAssociationsTest.kt | 55 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/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/ |
D | WaitUntil.java | 49 while (!Objects.equals(condition.expected(), condition.actual()) in waitUntilConditionIsTrueOrTimeout() 55 assertEquals(description, condition.expected(), condition.actual()); in waitUntilConditionIsTrueOrTimeout() 69 while (!Objects.equals(condition.expected(), condition.actual()) in waitUntilConditionIsTrueOrTimeout() 75 assertEquals(condition.expected(), condition.actual()); in waitUntilConditionIsTrueOrTimeout() 85 while (!Objects.equals(condition.expected(), condition.actual()) in waitUntilConditionIsTrueOrReturnFalse() 91 return (condition.expected().equals(condition.actual())); in waitUntilConditionIsTrueOrReturnFalse() 112 public Object actual() { in waitUntilIdIsSet() 144 public Object actual() { in waitUntilCallAudioStateIsSet() 179 public Object actual() { in waitUntilAvailableEndpointsIsSet() 214 public Object actual() { in waitUntilConnectionIsNonNull() [all …]
|
/cts/tests/tests/resourcesloader/src/android/content/res/loader/cts/ |
D | ResourcesLoaderFallthroughTest.kt | 35 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/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 …]
|