Home
last modified time | relevance | path

Searched defs:expected (Results 1 – 25 of 352) sorted by relevance

12345678910>>...15

/frameworks/base/test-base/src/junit/framework/
DAssert.java62 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 …]
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/test/
Dtest_macros.h16 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/services/tests/servicestests/src/com/android/server/tare/
DAnalystTest.java47 Analyst.Report expected = new Analyst.Report(); in testBatteryLevelChange() local
93 Analyst.Report expected = new Analyst.Report(); in testTransaction_PeriodChange() local
115 Analyst.Report expected = lastExpectedReport; in runTestTransactions() local
169 List<Analyst.Report> expected = new ArrayList<>(); in testLoadReports() local
208 private void assertReportsEqual(Analyst.Report expected, Analyst.Report actual) { in assertReportsEqual()
228 private void assertReportListsEqual(List<Analyst.Report> expected, in assertReportListsEqual()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DTextClassifierEventTest.java49 final SelectionEvent expected = SelectionEvent.createSelectionStartedEvent( in toSelectionEvent_selectionStarted() local
68 final SelectionEvent expected = SelectionEvent.createSelectionModifiedEvent( in toSelectionEvent_smartSelectionMulti() local
97 final SelectionEvent expected = SelectionEvent.createSelectionModifiedEvent( in toSelectionEvent_smartSelectionSingle() local
128 final SelectionEvent expected = SelectionEvent.createSelectionActionEvent( in toSelectionEvent_resetSelection() local
160 final SelectionEvent expected = SelectionEvent.createSelectionModifiedEvent(0, 1); in toSelectionEvent_modifySelection() local
183 final SelectionEvent expected = SelectionEvent.createSelectionActionEvent( in toSelectionEvent_copyAction() local
205 final SelectionEvent expected = SelectionEvent.createSelectionActionEvent( in toSelectionEvent_selectionDismissed() local
221 final SelectionEvent expected = SelectionEvent.createSelectionActionEvent( in toSelectionEvent_link_smartAction() local
261 private static void assertEquals( in assertEquals()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraErrorCollector.java147 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()
236 public <T extends Comparable<? super T>> boolean expectGreater(String msg, T expected, in expectGreater()
250 public <T extends Comparable<? super T>> boolean expectGreaterOrEqual(String msg, T expected, in expectGreaterOrEqual()
264 public <T extends Comparable<? super T>> boolean expectLess(String msg, T expected, in expectLess()
278 public <T extends Comparable<? super T>> boolean expectLessOrEqual(String msg, T expected, 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/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/
DSigXmlTest.java67 CertValidationException expected = in parseAndVerifyFileSignature_throwsIfInvalidSignature() local
96 CertParsingException expected = in parse_throwsIfNoSignerCert() local
108 CertParsingException expected = in parse_throwsIfTwoSignerCerts() local
120 CertParsingException expected = in parse_throwsIfNoSignatureValue() local
132 CertParsingException expected = in parse_throwsIfTwoSignatureValues() local
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java46 public static void assertAssignableFrom(Class<?> expected, Object actual) { in assertAssignableFrom()
55 public static void assertAssignableFrom(Class<?> expected, Class<?> actual) { in assertAssignableFrom()
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()
166 String message, double[] expected, double[] actual) { in assertEquals()
182 public static void assertEquals(double[] expected, double[] actual) { in assertEquals()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/
DTextInterpolatorTest.kt92 val expected = makeLayout(TEXT, START_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testStartState() constant
110 val expected = makeLayout(TEXT, END_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testEndState() constant
149 val expected = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testRebase() constant
173 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.LTR) in testBidi_LTR() constant
193 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testBidi_RTL() constant
215 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Empty() constant
238 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Xcoordinate() constant
263 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Ycoordinate() constant
288 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_TextSize() constant
313 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Color() constant
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/
DPasswordSlotManagerTests.java59 Set<Integer> expected = new HashSet<Integer>(); in testBasicSlotUse() local
90 Set<Integer> expected = new HashSet<Integer>(); in testMergeSlots() local
108 final HashMap<Integer, String> expected = new HashMap<Integer, String>(); in testSerialization() local
128 Set<Integer> expected = new HashSet<Integer>(); in testSaving() local
DRebootEscrowDataTest.java72 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEncryptedData_failsOnNullData() local
81 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEncryptedData_failsOnNullKey() local
89 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEntries_loopback_success() local
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DMockUtils.java110 final Bundle expected = DpmTestUtils.newRestrictions( in checkUserRestrictions() local
115 public static Bundle checkUserRestrictions(Bundle expected) { in checkUserRestrictions()
119 private static Bundle createUserRestrictionsBundleMatcher(Bundle expected) { in createUserRestrictionsBundleMatcher()
138 final RestrictionsSet expected = DpmTestUtils.newRestrictions(userId, in checkUserRestrictions() local
143 public static RestrictionsSet checkUserRestrictions(int userId, RestrictionsSet expected) { in checkUserRestrictions()
148 int userId, RestrictionsSet expected) { in createUserRestrictionsSetMatcher()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DArchiveTest.java87 List<String> expected = new ArrayList<>(); in testRecordAndRead() local
120 List<String> expected = new ArrayList<>(); in testRecordAndRead_overLimit() local
140 List<String> expected = new ArrayList<>(); in testDoesNotRecordIfHistoryDisabled() local
160 List<String> expected = new ArrayList<>(); in testRemovesEntriesWhenHistoryDisabled() local
180 List<String> expected = new ArrayList<>(); in testRemoveChannelNotifications() local
205 List<String> expected = new ArrayList<>(); in testRemoveChannelNotifications_concurrently() local
DValidateNotificationPeopleTest.java77 String[] expected = { "foobar" }; in testSingleString() local
86 String[] expected = { "foobar" }; in testSingleCharArray() local
95 String[] expected = { "foobar" }; in testSingleCharSequence() local
105 String[] expected = { "foobar" }; in testStringArraySingle() local
114 String[] expected = { "foo", "bar", "baz" }; in testStringArrayMultiple() local
123 String[] expected = { "foo", null, "baz" }; in testStringArrayNulls() local
132 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayMultiple() local
145 String[] expected = { "foo", "bar", "baz" }; in testMixedCharSequenceArrayList() local
162 String[] expected = { "foo", null, "baz" }; in testStringArrayList() local
175 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayList() local
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/dreams/complication/
DComplicationUtilsTest.java74 final int expected = Complication.COMPLICATION_TYPE_NONE; in testConvertComplicationTypesEmpty() local
83 final int expected = Complication.COMPLICATION_TYPE_WEATHER; in testConvertComplicationTypesSingleValue() local
96 final int expected = in testConvertComplicationTypesSingleValueMultipleValues() local
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutDirectionsTest.java84 private static Directions[] expected = { field in StaticLayoutDirectionsTest
127 checkDirections(b.build(), i, b.text, expected, f); in testDirections() local
145 Directions expected = dirs(0, LVL1_1, 1, LVL2_1, 2, 3 | (1 << Layout.RUN_LEVEL_SHIFT)); in testTrailingWhitespace() local
160 int[] expected = { 0, 1, 4, 3, 2, 5 }; in testNextToRightOf() local
177 int[] expected = { 0, 1, 4, 3, 2, 5 }; in testNextToLeftOf() local
206 Directions expected = expectedDirs[i]; in checkDirections() local
215 private void expectDirections(String msg, Directions expected, Directions result) { in expectDirections()
/frameworks/native/services/surfaceflinger/tests/
DLayerCallback_test.cpp179 ExpectedResult expected; in TEST_F() local
201 ExpectedResult expected; in TEST_F() local
224 ExpectedResult expected; in TEST_F() local
246 ExpectedResult expected; in TEST_F() local
263 ExpectedResult expected; in TEST_F() local
284 ExpectedResult expected; in TEST_F() local
317 ExpectedResult expected; in TEST_F() local
351 ExpectedResult expected; in TEST_F() local
386 ExpectedResult expected; in TEST_F() local
413 ExpectedResult expected; in TEST_F() local
[all …]
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontListParserTest.java62 FontConfig.FontFamily expected = new FontConfig.FontFamily( in named() local
80 FontConfig.FontFamily expected = new FontConfig.FontFamily( in fallback() local
100 FontConfig.FontFamily expected = new FontConfig.FontFamily( in compact() local
117 FontConfig.FontFamily expected = new FontConfig.FontFamily( in elegant() local
136 FontConfig.FontFamily expected = new FontConfig.FontFamily( in styles() local
165 FontConfig.FontFamily expected = new FontConfig.FontFamily( in variable() local
185 FontConfig.FontFamily expected = new FontConfig.FontFamily( in ttc() local
205 FontConfig.FontFamily expected = new FontConfig.FontFamily( in psName() local
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DGlifPatternDrawableTest.java88 Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasSquare() local
104 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasTall() local
121 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasWide() local
138 final Matrix expected = new Matrix(canvas.getMatrix()); in testScaleToCanvasMaxSize() local
168 private void assertSameColor(String message, int expected, int actual) { in assertSameColor()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/stack/
DNotificationTargetsHelperTest.kt55 val expected = in targetsForFirstNotificationInGroup() constant
77 val expected = in targetsForMiddleNotificationInGroup() constant
99 val expected = in targetsForLastNotificationInGroup() constant
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
DRationalTest.java391 private static void assertValueEquals(Rational object, float expected) { in assertValueEquals()
396 private static void assertValueEquals(Rational object, double expected) { in assertValueEquals()
401 private static void assertValueEquals(Rational object, long expected) { in assertValueEquals()
406 private static void assertValueEquals(Rational object, int expected) { in assertValueEquals()
411 private static void assertValueEquals(Rational object, short expected) { in assertValueEquals()
416 private static void assertFinite(Rational object, boolean expected) { in assertFinite()
420 private static void assertInfinite(Rational object, boolean expected) { in assertInfinite()
424 private static void assertNaN(Rational object, boolean expected) { in assertNaN()
428 private static void assertZero(Rational object, boolean expected) { in assertZero()
432 private static <T> void assertAction(String action, T object, boolean expected, in assertAction()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/controls/controller/
DAuxiliaryPersistenceWrapperTest.kt78 val expected = listOf(structure1, structure2, structure3) in testInitialStructures() constant
92 val expected = listOf(structure1, structure3) in testGetCachedValues_component() constant
100 val expected = listOf(structure2) in testGetCachedValues_componentOther() constant
/frameworks/native/libs/vr/libpdx/
Dserialization_tests.cpp117 Payload expected; in TEST() local
137 Payload expected; in TEST() local
171 Payload expected; in TEST() local
219 Payload expected; in TEST() local
281 Payload expected; in TEST() local
358 Payload expected; in TEST() local
406 Payload expected; in TEST() local
468 Payload expected; in TEST() local
544 Payload expected; in TEST() local
636 Payload expected; in TEST() local
[all …]
/frameworks/base/core/tests/coretests/src/com/android/internal/util/
DHexDumpTest.java55 String expected = sb.toString(); in testBytesToHexString_allByteValues() local
86 String expected = "000102030405060708090A0B0C0D0E0F00102030405060708090A0B0C0D0E0F0"; in testToHexString_offsetLength() local
107 String expected = "000102030405060708090A0B0C0D0E0F00102030405060708090A0B0C0D0E0F0"; in testToHexString_case() local
154 private static void assertBytesEqual(byte[] expected, byte[] actual) { in assertBytesEqual()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/shared/clocks/
DClockRegistryTest.kt273 val expected = ClockSettings("ID", null).apply { in jsonDeserialization_gotExpectedObject() constant
287 val expected = ClockSettings("ID", null) in jsonDeserialization_noTimestamp_gotExpectedObject() constant
294 val expected = ClockSettings("ID", null) in jsonDeserialization_nullTimestamp_gotExpectedObject() constant
304 val expected = ClockSettings(null, null).apply { in jsonDeserialization_noId_deserializedEmpty() constant
313 val expected = "{\"clockId\":\"ID\",\"metadata\":{\"appliedTimestamp\":500}}" in jsonSerialization_gotExpectedString() constant
322 val expected = "{\"clockId\":\"ID\",\"metadata\":{}}" in jsonSerialization_noTimestamp_gotExpectedString() constant
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/
DDeviceInfoUtilsTest.java49 final String expected = release + "\n" + "#1 Tue Dec 31 12:00:00 UTC 2017"; in formatKernelVersion_regularInputVersion_shouldStripOptionalValues() local
63 final String expected = mContext.getString(R.string.status_unavailable); in formatKernelVersion_nonRegularInputVersion_shouldBeUnavailable() local
70 final String expected = mContext.getString(R.string.status_unavailable); in formatKernelVersion_nullInputVersion_shouldBeUnavailable() local

12345678910>>...15