/frameworks/base/test-junit/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 …]
|
/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/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | TilesSettingConverterTest.kt | 28 val expected = in toTilesList_correctContentAndOrdering() constant 49 val expected = in toTilesList_removesInvalid() constant 68 val expected = in toTilesSet_correctContent() constant 89 val expected = in toTilesSet_removesInvalid() constant
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
D | NoteTaskEventLoggerTest.kt | 62 val expected = NOTE_OPENED_VIA_SHORTCUT in logNoteTaskOpened_entryPointWidgetPickerShortcut_noteOpenedViaShortcut() constant 72 val expected = NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE in onNoteTaskBubbleExpanded_entryPointQuickAffordance_noteOpenedViaQuickAffordance() constant 87 val expected = NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON in onNoteTaskBubbleExpanded_entryPointTailButtonAndIsKeyguardUnlocked_noteOpenedViaTailButtonUnlocked() constant 102 val expected = NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON_LOCKED in onNoteTaskBubbleExpanded_entryPointTailButtonAndIsKeyguardLocked_noteOpenedViaTailButtonLocked() constant 128 val expected = NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON in logNoteTaskClosed_entryPointTailButton_noteClosedViaTailButtonUnlocked() constant 143 val expected = NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON_LOCKED in logNoteTaskClosed_entryPointTailButtonAndKeyguardLocked_noteClosedViaTailButtonLocked() constant
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
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() 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/core/tests/coretests/src/android/view/textclassifier/ |
D | TextClassifierEventTest.java | 49 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/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() 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/ |
D | TextInterpolatorTest.kt | 99 val expected = makeLayout(TEXT, START_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testStartState() constant 117 val expected = makeLayout(TEXT, END_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) in testEndState() constant 156 val expected = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) in testRebase() constant 180 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.LTR) in testBidi_LTR() constant 200 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testBidi_RTL() constant 222 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Empty() constant 245 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Xcoordinate() constant 270 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Ycoordinate() constant 295 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_TextSize() constant 320 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) in testGlyphCallback_Color() constant
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/custom/domain/interactor/ |
D | CustomTileMapperTest.kt | 72 val expected = in stateHasPendingBinding() constant 91 val expected = in stateActive() constant 109 val expected = in stateInactive() constant 127 val expected = in stateUnavailable() constant 146 val expected = in tileWithChevron() constant 165 val expected = in defaultIconFallback() constant 187 val expected = in failedToLoadIconTileIsInactive() constant
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
D | SigXmlTest.java | 67 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/core/tests/utiltests/src/com/android/internal/util/ |
D | NotificationBigTextNormalizerTest.java | 62 String expected = "Line 1\nLine 2"; in testNewlinesWithSpacesAndTabs() local 69 String expected = "Line 1\nLine 2\nLine 3\nLine 4\nLine 5\nLine 6"; in testMixedNewlineCharacters() local 100 String expected = "Teststring"; in testZeroWidthCharRemoval() local 129 String expected = "Test string"; in testInvisibleFormattingCharacterRemoval() local 144 String expected = "Test string"; in testNonBreakSpaceReplacement() local
|
D | QuickSelectTest.java | 113 private void test(List<Integer> input, int k, Integer expected) throws Exception { in test() 117 private void test(List<Integer> input, int start, int length, int k, Integer expected) in test() 129 private void test(int[] input, int k, Integer expected) throws Exception { in test() 133 private void test(int[] input, int start, int length, int k, Integer expected) in test() 145 private void test(long[] input, int k, Long expected) throws Exception { in test() 149 private void test(long[] input, int start, int length, int k, Long expected) throws Exception { in test()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
D | PasswordSlotManagerTests.java | 60 Set<Integer> expected = new HashSet<Integer>(); in testBasicSlotUse() local 91 Set<Integer> expected = new HashSet<Integer>(); in testMergeSlots() local 109 final HashMap<Integer, String> expected = new HashMap<Integer, String>(); in testSerialization() local 129 Set<Integer> expected = new HashSet<Integer>(); in testSaving() local
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ArchiveTest.java | 92 List<String> expected = new ArrayList<>(); in testRecordAndRead() local 125 List<String> expected = new ArrayList<>(); in testRecordAndRead_overLimit() local 145 List<String> expected = new ArrayList<>(); in testDoesNotRecordIfHistoryDisabled() local 165 List<String> expected = new ArrayList<>(); in testRemovesEntriesWhenHistoryDisabled() local 185 List<String> expected = new ArrayList<>(); in testRemoveChannelNotifications() local 210 List<String> expected = new ArrayList<>(); in testRemoveChannelNotifications_concurrently() local 260 List<String> expected = new ArrayList<>(); in testRemoveNotificationsByPackage() local
|
D | ValidateNotificationPeopleTest.java | 82 String[] expected = { "foobar" }; in testSingleString() local 91 String[] expected = { "foobar" }; in testSingleCharArray() local 100 String[] expected = { "foobar" }; in testSingleCharSequence() local 110 String[] expected = { "foobar" }; in testStringArraySingle() local 119 String[] expected = { "foo", "bar", "baz" }; in testStringArrayMultiple() local 128 String[] expected = { "foo", null, "baz" }; in testStringArrayNulls() local 137 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayMultiple() local 150 String[] expected = { "foo", "bar", "baz" }; in testMixedCharSequenceArrayList() local 167 String[] expected = { "foo", null, "baz" }; in testStringArrayList() local 180 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayList() local [all …]
|
/frameworks/native/services/surfaceflinger/tests/ |
D | LayerCallback_test.cpp | 179 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/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | MockUtils.java | 110 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/core/tests/coretests/src/android/text/ |
D | StaticLayoutDirectionsTest.java | 84 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/base/services/tests/vibrator/src/com/android/server/vibrator/ |
D | DeviceAdapterTest.java | 138 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withPwleCapability_convertsStepsToRamps() local 160 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withEmptyFreqMapping_returnsAmplitudesWithResonantFreq() local 188 VibrationEffect.Composed expected = new VibrationEffect.Composed(Arrays.asList( in testStepAndRampSegments_withValidFreqMapping_returnsClippedValuesOnlyInRamps() local 213 CombinedVibration expected = CombinedVibration.createParallel(effect); in testMonoCombinedVibration_returnsSameVibrationWhenEffectsUnchanged() local 227 CombinedVibration expected = CombinedVibration.startParallel() in testMonoCombinedVibration_mapsEffectsToAllVibrators() local 263 CombinedVibration expected = CombinedVibration.startParallel() in testStereoCombinedVibration_adaptMappedEffectsAndLeaveUnmappedOnesUnchanged() local
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | GrowingArrayUtilsTest.java | 125 private <T> void assertArrayEqualsPrefix(T[] expected, T[] actual) { in assertArrayEqualsPrefix() 129 private void assertArrayEqualsPrefix(int[] expected, int[] actual) { in assertArrayEqualsPrefix() 133 private void assertArrayEqualsPrefix(long[] expected, long[] actual) { in assertArrayEqualsPrefix() 137 private void assertArrayEqualsPrefix(boolean[] expected, boolean[] actual) { in assertArrayEqualsPrefix()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | ComplicationUtilsTest.java | 73 final int expected = Complication.COMPLICATION_TYPE_NONE; in testConvertComplicationTypesEmpty() local 82 final int expected = Complication.COMPLICATION_TYPE_WEATHER; in testConvertComplicationTypesSingleValue() local 95 final int expected = in testConvertComplicationTypesSingleValueMultipleValues() local
|
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/ |
D | GlifPatternDrawableTest.java | 88 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/ |
D | NotificationTargetsHelperTest.kt | 48 val expected = in notificationTargetsHelper() constant 70 val expected = in targetsForMiddleNotificationInGroup() constant 92 val expected = in targetsForLastNotificationInGroup() constant
|
/frameworks/base/api/coverage/tools/ |
D | ExtractFlaggedApisTest.kt | 72 val expected = FlagApiMap.newBuilder() in extractFlaggedApis_onlyMethodFlag_useMethodFlag() constant 103 val expected = FlagApiMap.newBuilder() in extractFlaggedApis_onlyClassFlag_useClassFlag() constant 134 val expected = FlagApiMap.newBuilder() in extractFlaggedApis_flaggedConstructorsAreFlaggedApis() constant 167 val expected = FlagApiMap.newBuilder() in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag() constant 206 val expected = FlagApiMap.newBuilder() in extractFlaggedApis_unflaggedNestedClassShouldUseOuterClassFlag_deeplyNested() constant
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RationalTest.java | 392 private static void assertValueEquals(Rational object, float expected) { in assertValueEquals() 397 private static void assertValueEquals(Rational object, double expected) { in assertValueEquals() 402 private static void assertValueEquals(Rational object, long expected) { in assertValueEquals() 407 private static void assertValueEquals(Rational object, int expected) { in assertValueEquals() 412 private static void assertValueEquals(Rational object, short expected) { in assertValueEquals() 417 private static void assertFinite(Rational object, boolean expected) { in assertFinite() 421 private static void assertInfinite(Rational object, boolean expected) { in assertInfinite() 425 private static void assertNaN(Rational object, boolean expected) { in assertNaN() 429 private static void assertZero(Rational object, boolean expected) { in assertZero() 433 private static <T> void assertAction(String action, T object, boolean expected, in assertAction()
|