/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 …]
|
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
D | ValidateNotificationPeopleTest.java | 50 String[] expected = { "foobar" }; in testSingleString() local 59 String[] expected = { "foobar" }; in testSingleCharArray() local 68 String[] expected = { "foobar" }; in testSingleCharSequence() local 78 String[] expected = { "foobar" }; in testStringArraySingle() local 87 String[] expected = { "foo", "bar", "baz" }; in testStringArrayMultiple() local 96 String[] expected = { "foo", null, "baz" }; in testStringArrayNulls() local 105 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayMultiple() local 118 String[] expected = { "foo", "bar", "baz" }; in testMixedCharSequenceArrayList() local 135 String[] expected = { "foo", null, "baz" }; in testStringArrayList() local 148 String[] expected = { "foo", "bar", "baz" }; in testCharSequenceArrayList() local [all …]
|
D | GlobalSortKeyComparatorTest.java | 71 final List<NotificationRecord> expected = new ArrayList<>(); in testComparator() local 102 final List<NotificationRecord> expected = new ArrayList<>(); in testNoCrash_leftNull() local 132 final List<NotificationRecord> expected = new ArrayList<>(); in testNoCrash_rightNull() local
|
/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/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/ |
D | UT_global.java | 44 int expected = 65536; in testIntTypes() local 51 Int2 expected = new Int2(65536, 65537);; in testIntTypes() local 58 Int4 expected = new Int4(65536, 65537, 65538, 65539); in testIntTypes() local 71 float expected = 3.141593f; in testFloatTypes() local 78 Float2 expected = new Float2(3.141593f, 3.141593f / 2); in testFloatTypes() local 85 Float4 expected = new Float4(3.141593f, 3.141593f / 2, in testFloatTypes() local
|
/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/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/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/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/services/tests/servicestests/src/com/android/server/locksettings/ |
D | PasswordSlotManagerTests.java | 55 Set<Integer> expected = new HashSet<Integer>(); in testBasicSlotUse() local 85 Set<Integer> expected = new HashSet<Integer>(); in testMergeSlots() local 102 final HashMap<Integer, String> expected = new HashMap<Integer, String>(); in testSerialization() local 121 Set<Integer> expected = new HashSet<Integer>(); in testSaving() local
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/ |
D | UtilsTest.java | 34 String expected = "000001, 000002, 0000800000"; in testRoamingConsortiumsToStringLong() local 47 String expected = "000001, 000002, 0000800000"; in testRoamingConsortiumsToStringCollection() local 75 String expected = "ab cd ef"; in testToHexString() local 85 String expected = "abcdef"; in testToHex() local 141 String expected = "12:34:56.789"; in testToHMS() local 154 String expected = "1996/05/14 12:34:56Z"; in testToUTCString() local
|
/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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/anqp/ |
D | ANQPParserTest.java | 277 VenueNameElement expected = new VenueNameElement(nameList); in parseVenueNameElement() local 297 IPAddressTypeAvailabilityElement expected = new IPAddressTypeAvailabilityElement( in parseIPAddressTypeAvailabilityElement() local 315 DomainNameElement expected = new DomainNameElement(Arrays.asList(testNames)); in parseDomainNameElement() local 332 RoamingConsortiumElement expected = new RoamingConsortiumElement(Arrays.asList(ois)); in parseRoamingConsortium() local 349 NAIRealmElement expected = new NAIRealmElement(Arrays.asList(realmDataList)); in parseNAIRealmElement() local 369 ThreeGPPNetworkElement expected = new ThreeGPPNetworkElement(networkList); in parseThreeGPPNetworkElement() local 405 HSFriendlyNameElement expected = new HSFriendlyNameElement(nameList); in parseVendorSpecificElementWithHSFriendlyName() local 430 HSFriendlyNameElement expected = new HSFriendlyNameElement(nameList); in parseHSFrendlyNameElement() local 454 HSWanMetricsElement expected = new HSWanMetricsElement(status, symmetric, capped, in parseHSWANMetricsElement() local 478 HSConnectionCapabilityElement expected = new HSConnectionCapabilityElement(statusList); in parseHSConnectionCapabilityElement() local [all …]
|
D | RawByteElementTest.java | 45 RawByteElement expected = new RawByteElement(TEST_ELEMENT_ID, data); in parseEmptyBuffer() local 59 RawByteElement expected = new RawByteElement(TEST_ELEMENT_ID, data); in parseNonEmptyBuffer() 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/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
D | RationalTest.java | 391 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/native/libs/vr/libpdx/ |
D | serialization_tests.cpp | 117 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/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/ |
D | WifiMetricsTestUtil.java | 42 public static void assertHistogramBucketsEqual(HistogramBucketInt32[] expected, in assertHistogramBucketsEqual() 74 public static void assertKeyCountsEqual(Int32Count[] expected, Int32Count[] actual) { in assertKeyCountsEqual() 103 LinkProbeFailureReasonCount[] expected, LinkProbeFailureReasonCount[] actual) { in assertLinkProbeFailureReasonCountsEqual() 153 DeviceMobilityStatePnoScanStats[] expected, DeviceMobilityStatePnoScanStats[] actual) { in assertDeviceMobilityStatePnoScanStatsEqual() 206 public static void assertLinkProbeStaEventsEqual(StaEvent[] expected, StaEvent[] actual) { in assertLinkProbeStaEventsEqual() 248 ExperimentProbeCounts[] expected, ExperimentProbeCounts[] actual) { in assertExperimentProbeCountsEqual()
|
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/hotspot2/omadm/ |
D | DevDetailMoTest.java | 95 String expected = String.format("<MgmtTree>" in serializeDevDetailMoForHomeNetworkCarrier() local 167 String expected = String.format("<MgmtTree>" in serializeDevDetailMoForOtherCarrier() local 238 String expected = String.format("<MgmtTree>" in serializeDevDetailMoWithoutSim() local
|
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
D | DeviceInfoUtilsTest.java | 49 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
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | PhoneNumberWatcherTest.java | 231 String expected = "+1-650-123-4567"; // Different formatting than ours in testAutoCompleteWithFormattedNumber() local 241 String expected = "Test User <650-123-4567>"; in testAutoCompleteWithFormattedNameAndNumber() local 251 String expected = "2nd Test User <650-123-4567>"; in testAutoCompleteWithNumericNameAndNumber() local 261 String expected = "6501234567"; in testAutoCompleteWithUnformattedNumber() local 275 String expected = "(650) 123-4567"; in testAutoCompleteUnformattedWithUnformattedNumber() local 289 private void testReplacement(String init, String replacement, String expected) { in testReplacement()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | CpuFrequenciesTest.java | 34 private void check(ArrayMap<String, String> expected, String config) { in check() argument 43 final ArrayMap<String, String> expected = new ArrayMap<>(); in test() local
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/compiler/objectivec/ |
D | objectivec_helpers_unittest.cc | 44 string expected; in TEST() local 81 string expected; in TEST() local 163 string expected((const char*)expected_data, sizeof(expected_data)); in TEST() local 199 string expected((const char*)expected_data, sizeof(expected_data)); in TEST() local
|
/frameworks/native/services/surfaceflinger/CompositionEngine/tests/ |
D | OutputLayerTest.cpp | 137 const Rect expected{0, 0, 1920, 1080}; in TEST_F() local 143 const Rect expected{0, 0, 0, 0}; in TEST_F() local 149 const Rect expected{100, 200, 300, 500}; in TEST_F() local 156 const Rect expected{1420, 100, 1720, 300}; in TEST_F() local 162 const Rect expected{0, 0, 1920, 1080}; in TEST_F() local 168 const Rect expected{0, 0, 960, 540}; in TEST_F() local 174 const Rect expected{0, 0, 960, 540}; in TEST_F() local 180 const Rect expected{-1080, 0, 0, 1920}; in TEST_F() local 195 uint32_t expected; in TEST_F() member
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | LoggingPrintStreamTest.java | 134 String expected = builder.toString(); in testMultiByteCharactersSpanningBuffers() local 142 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteOneByteAtATimeMultibyteCharacters() local 151 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteByteArrayAtATimeMultibyteCharacters() local 158 String expected = " \u20AC \u20AC \u20AC \u20AC "; in testWriteWithOffsetsMultibyteCharacters() local
|