/frameworks/base/test-runner/src/android/test/ |
D | MoreAsserts.java | 46 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom() 55 public static void assertAssignableFrom(Class<?> expected, Class<?> actual) { in assertAssignableFrom() 67 String message, Object unexpected, Object actual) { in assertNotEqual() 77 public static void assertNotEqual(Object unexpected, Object actual) { in assertNotEqual() 87 String message, byte[] expected, byte[] actual) { in assertEquals() 103 public static void assertEquals(byte[] expected, byte[] actual) { in assertEquals() 113 String message, int[] expected, int[] actual) { in assertEquals() 129 public static void assertEquals(int[] expected, int[] actual) { in assertEquals() 139 String message, long[] expected, long[] actual) { in assertEquals() 155 public static void assertEquals(long[] expected, long[] actual) { in assertEquals() [all …]
|
/frameworks/base/test-base/src/junit/framework/ |
D | Assert.java | 62 static public void assertEquals(String message, Object expected, Object actual) { in assertEquals() 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() 79 static public void assertEquals(String message, String expected, String actual) { in assertEquals() 90 static public void assertEquals(String expected, String actual) { in assertEquals() 98 static public void assertEquals(String message, double expected, double actual, double delta) { in assertEquals() 108 static public void assertEquals(double expected, double actual, double delta) { in assertEquals() 116 static public void assertEquals(String message, float expected, float actual, float delta) { in assertEquals() 126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() 133 static public void assertEquals(String message, long expected, long actual) { in assertEquals() 139 static public void assertEquals(long expected, long actual) { in assertEquals() [all …]
|
D | ComparisonCompactor.java | 19 public ComparisonCompactor(int contextLength, String expected, String actual) { in ComparisonCompactor() 34 String actual= compactString(fActual); in compact() local 81 private static String format(String message, Object expected, Object actual) { in format()
|
/frameworks/minikin/tests/unittest/ |
D | GreedyLineBreakerTest.cpp | 138 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 149 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 163 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 179 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 195 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 212 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 229 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 248 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 269 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local 292 const auto actual = doLineBreak(textBuf, NO_HYPHEN, LINE_WIDTH); in TEST_F() local [all …]
|
D | OptimalLineBreakerTest.cpp | 102 auto actual = doLineBreak(textBuffer, strategy, frequency, lang, lineWidth, in expectBreak() local 113 auto actual = doLineBreak(textBuffer, strategy, frequency, lang, lineWidth, in expectBreak() local 764 const auto actual = in TEST_F() local 783 const auto actual = in TEST_F() local 814 const auto actual = in TEST_F() local 832 const auto actual = in TEST_F() local 916 auto actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NO_HYPHENATION, LINE_WIDTH); in TEST_F() local 958 auto actual = doLineBreak(textBuf, *measured, HIGH_QUALITY, NO_HYPHENATION, LINE_WIDTH); in TEST_F() local 1122 const auto actual = doLineBreak(LINE_WIDTH); in TEST_F() local 1139 const auto actual = doLineBreak(LINE_WIDTH); in TEST_F() local [all …]
|
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/ |
D | test_macros.h | 16 const A& expected, const B& actual, const T& tolerance) { in CmpArrayLikeFloatEq() 34 const A& expected, const B& actual, const T& tolerance) { in CmpMatrixLikeFloatEq() 54 const A& expected, const B& actual, const T& tolerance) { in CmpArrayLikeFloatNe() 72 const A& expected, const B& actual, const T& tolerance) { in CmpMatrixLikeFloatNe() 92 #define EXPECT_VEC3_NEAR(expected, actual, tol) \ argument 96 #define EXPECT_VEC3_NOT_NEAR(expected, actual, tol) \ argument 100 #define EXPECT_QUAT_NEAR(expected, actual, tol) \ argument 104 #define EXPECT_QUAT_NOT_NEAR(expected, actual, tol) \ argument 108 #define EXPECT_MAT4_NEAR(expected, actual, tol) \ argument 112 #define EXPECT_MAT4_NOT_NEAR(expected, actual, tol) \ argument [all …]
|
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/bubbles/storage/ |
D | BubbleXmlHelperTest.kt | 78 val actual = it.toString() in testWriteXml() constant 101 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXml() constant 116 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeFromV0DropsPreviousData() constant 143 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testReadXMLWithoutTaskId() constant 167 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testXMLWithoutLocusToLocus() constant 190 val actual = readXml(ByteArrayInputStream(src.toByteArray(Charsets.UTF_8))) in testUpgradeToV2SavesPreviousData() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
D | TextInterpolatorTest.kt | 91 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testStartState() constant 109 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testEndState() constant 130 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testMiddleState() constant 154 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testRebase() constant 172 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testBidi_LTR() constant 192 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testBidi_RTL() constant 214 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testGlyphCallback_Empty() constant 237 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testGlyphCallback_Xcoordinate() constant 262 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testGlyphCallback_Ycoordinate() constant 287 val actual = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testGlyphCallback_TextSize() constant [all …]
|
/frameworks/base/tools/aapt2/java/ |
D | ProguardRules_test.cpp | 61 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 95 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 111 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 129 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 149 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 165 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 184 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 215 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 237 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local 279 std::string actual = GetKeepSetString(set, /** minimal_rules */ false); local [all …]
|
D | ManifestClassGenerator_test.cpp | 42 std::string actual; local 95 std::string actual; local 146 std::string actual; local 189 std::string actual; local 204 std::string actual; local
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ArchiveTest.java | 95 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRecordAndRead() local 109 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testCrossUser() local 129 List<StatusBarNotification> actual = Arrays.asList( in testRecordAndRead_overLimit() local 150 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testDoesNotRecordIfHistoryDisabled() local 171 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRemovesEntriesWhenHistoryDisabled() local 196 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRemoveChannelNotifications() local 246 List<StatusBarNotification> actual = Arrays.asList(mArchive.getArray(mUm, SIZE, true)); in testRemoveChannelNotifications_concurrently() local
|
D | GlobalSortKeyComparatorTest.java | 76 List<NotificationRecord> actual = new ArrayList<>(); in testComparator() local 106 List<NotificationRecord> actual = new ArrayList<>(); in testNoCrash_leftNull() local 136 List<NotificationRecord> actual = new ArrayList<>(); in testNoCrash_rightNull() local
|
D | ScheduleCalendarTest.java | 85 GregorianCalendar actual = new GregorianCalendar(); in testGetNextChangeTime_startToday() local 112 GregorianCalendar actual = new GregorianCalendar(); in testGetNextChangeTime_endToday() local 140 GregorianCalendar actual = new GregorianCalendar(); in testGetNextChangeTime_startTomorrow() local 168 GregorianCalendar actual = new GregorianCalendar(); in testGetNextChangeTime_endTomorrow() local 205 GregorianCalendar actual = new GregorianCalendar(TimeZone.getTimeZone("America/New_York")); in testGetNextChangeTime_startTomorrowInDaylight() local 243 GregorianCalendar actual = new GregorianCalendar(TimeZone.getTimeZone("America/New_York")); in testGetNextChangeTime_startTomorrowWhenTodayIsDaylight() local 281 GregorianCalendar actual = new GregorianCalendar(TimeZone.getTimeZone("America/New_York")); in testGetNextChangeTime_startTomorrowWhenTodayIsDaylightBackward() local
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskInfoResolverTest.kt | 71 val actual = underTest.resolveInfo() in resolveInfo_shouldReturnInfo() constant 92 val actual = underTest.resolveInfo() in resolveInfo_packageManagerThrowsException_shouldReturnInfoWithZeroUid() constant 104 val actual = underTest.resolveInfo() in resolveInfo_noRoleHolderIsSet_shouldReturnNull() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/ |
D | NotificationTargetsHelperTest.kt | 47 val actual = in targetsForFirstNotificationInGroup() constant 69 val actual = in targetsForMiddleNotificationInGroup() constant 91 val actual = in targetsForLastNotificationInGroup() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/common/coroutine/ |
D | CoroutineResultTest.kt | 36 val actual = suspendRunCatching { "Placeholder" } in <lambda>() constant 43 val actual = suspendRunCatching { throw Exception() } in <lambda>() constant
|
/frameworks/base/libs/androidfw/tests/ |
D | CursorWindow_test.cpp | 166 auto actual = w->getFieldSlotValueString(field, &size); in TEST() local 172 auto actual = w->getFieldSlotValueString(field, &size); in TEST() local 235 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local 250 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local 322 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local 332 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local 376 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local 385 auto actual = w->getFieldSlotValueBlob(field, &actualSize); in TEST() local
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/ |
D | ClockRegistryTest.kt | 276 val actual = ClockSettings.deserialize("""{ in jsonDeserialization_gotExpectedObject() constant 288 val actual = ClockSettings.deserialize("{\"clockId\":\"ID\"}") in jsonDeserialization_noTimestamp_gotExpectedObject() constant 295 val actual = ClockSettings.deserialize("""{ in jsonDeserialization_nullTimestamp_gotExpectedObject() constant 307 val actual = ClockSettings.deserialize("{\"metadata\":{\"appliedTimestamp\":500}}") in jsonDeserialization_noId_deserializedEmpty() constant 314 val actual = ClockSettings.serialize(ClockSettings("ID", null).apply { in jsonSerialization_gotExpectedString() constant 323 val actual = ClockSettings.serialize(ClockSettings("ID", null)) in jsonSerialization_noTimestamp_gotExpectedString() constant
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | AssertHelpers.java | 137 public static <T> void assertArrayContains(String message, T[] actual, T checkVals) { in assertArrayContains() 149 public static void assertArrayContains(String message, int[] actual, int checkVals) { in assertArrayContains() 161 public static <T> T assertArrayContainsAnyOf(String message, T[] actual, T[] checkVals) { in assertArrayContainsAnyOf() 173 public static int assertArrayContainsAnyOf(String message, int[] actual, int[] checkVals) { in assertArrayContainsAnyOf() 185 public static <T> T assertCollectionContainsAnyOf(String message, Collection<T> actual, in assertCollectionContainsAnyOf()
|
D | CameraErrorCollector.java | 147 public <T> boolean expectEquals(String msg, T expected, T actual) { in expectEquals() 169 public <T> boolean expectNotEquals(String msg, T expected, T actual) { in expectNotEquals() 189 public <T> boolean expectEquals(String msg, T[] expected, T[] actual) { in expectEquals() 214 public <T> boolean expectNotEquals(String msg, T[] expected, T[] actual) { in expectNotEquals() 237 T actual) { in expectGreater() 251 T actual) { in expectGreaterOrEqual() 265 T actual) { in expectLess() 279 T actual) { in expectLessOrEqual() 293 public <T> boolean expectEquals(String msg, float expected, float actual, float tolerance) { in expectEquals() 316 public <T> boolean expectEquals(String msg, double expected, double actual, double tolerance) { in expectEquals() [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils_test.cpp | 45 ResourceNameRef actual; in TEST() local 63 ResourceNameRef actual; in TEST() local 73 ResourceNameRef actual; in TEST() local 83 ResourceNameRef actual; in TEST() local 93 ResourceNameRef actual; in TEST() local 103 ResourceNameRef actual; in TEST() local 129 ResourceNameRef actual; in TEST() local
|
D | Diagnostics.h | 76 DiagMessageActual actual = message.Build(); in Error() local 81 DiagMessageActual actual = message.Build(); in Warn() local 86 DiagMessageActual actual = message.Build(); in Note() local
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/quickaffordance/ |
D | NoteTaskQuickAffordanceConfigTest.kt | 69 val actual = collectLastValue(underTest.lockScreenState) in createUnderTest() constant 79 val actual = collectLastValue(underTest.lockScreenState) in <lambda>() constant
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | HexDumpTest.java | 93 String actual = toHexString(bytes, offset, len); in testToHexString_offsetLength() local 95 assertEquals(toHexString(subBytes), actual); in testToHexString_offsetLength() local 154 private static void assertBytesEqual(byte[] expected, byte[] actual) { in assertBytesEqual()
|
/frameworks/base/services/tests/PackageManagerServiceTests/server/src/com/android/server/ |
D | PackageInstallerSessionTest.java | 272 PackageInstaller.SessionParams actual) { in assertSessionParamsEquivalent() 292 List<PackageInstallerSession> actual) { in assertSessionsEquivalent() 309 PackageInstallerSession actual) { in assertSessionsEquivalent() 336 private void assertInstallSourcesEquivalent(InstallSource expected, InstallSource actual) { in assertInstallSourcesEquivalent()
|