/aosp14/frameworks/base/test-base/src/junit/framework/ |
H A D | Assert.java | 73 static public void assertEquals(Object expected, Object actual) { in assertEquals() 90 static public void assertEquals(String expected, String actual) { in assertEquals() 126 static public void assertEquals(float expected, float actual, float delta) { in assertEquals() 139 static public void assertEquals(long expected, long actual) { in assertEquals() 152 static public void assertEquals(boolean expected, boolean actual) { in assertEquals() 165 static public void assertEquals(byte expected, byte actual) { in assertEquals() 178 static public void assertEquals(char expected, char actual) { in assertEquals() 191 static public void assertEquals(short expected, short actual) { in assertEquals() 204 static public void assertEquals(int expected, int actual) { in assertEquals() 252 static public void assertSame(Object expected, Object actual) { in assertSame() [all …]
|
/aosp14/system/core/libcutils/ |
H A D | trace-dev_test.cpp | 63 std::string expected = android::base::StringPrintf("B|%d|", getpid()); in TEST_F() local 86 std::string expected = android::base::StringPrintf("B|%d|", getpid()); in TEST_F() local 112 std::string expected = android::base::StringPrintf("S|%d|", getpid()); in TEST_F() local 135 std::string expected = android::base::StringPrintf("S|%d|", getpid()); in TEST_F() local 161 std::string expected = android::base::StringPrintf("F|%d|", getpid()); in TEST_F() local 184 std::string expected = android::base::StringPrintf("F|%d|", getpid()); in TEST_F() local 211 std::string expected = android::base::StringPrintf("G|%d|", getpid()); in TEST_F() local 527 std::string expected = android::base::StringPrintf("C|%d|", getpid()); in TEST_F() local 550 std::string expected = android::base::StringPrintf("C|%d|", getpid()); in TEST_F() local 576 std::string expected = android::base::StringPrintf("C|%d|", getpid()); in TEST_F() local [all …]
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/tare/ |
H A D | AnalystTest.java | 51 Analyst.Report expected = new Analyst.Report(); in testBatteryLevelChange() local 99 Analyst.Report expected = new Analyst.Report(); in testTransaction_PeriodChange() local 145 Analyst.Report expected = lastExpectedReport; in runTestTransactions() local 199 List<Analyst.Report> expected = new ArrayList<>(); in testLoadReports() local 238 private void assertReportsEqual(Analyst.Report expected, Analyst.Report actual) { in assertReportsEqual() 260 private void assertReportListsEqual(List<Analyst.Report> expected, in assertReportListsEqual()
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
H A 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() 441 MeteringRectangle[] expected, MeteringRectangle[] actual, in expectMeteringRegionsAreSimilar() 724 Builder request, CaptureRequest.Key<T> key, T expected) { in expectKeyValueNotEquals() 768 T expected) { in expectKeyValueEquals() 821 expectGreaterOrEqual(key.getName(), expected, value); in expectKeyValueGreaterOrEqual() local 838 expectGreater(key.getName(), expected, value); in expectKeyValueGreaterThan() local 961 public <T> void expectContains(T[] values, T expected) { in expectContains() 997 public void expectContains(int[] values, int expected) { in expectContains() [all …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/view/textclassifier/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/certificate/ |
H A 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
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/ |
H A 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
|
H A D | RebootEscrowDataTest.java | 77 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEncryptedData_failsOnNullData() local 86 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEncryptedData_failsOnNullKey() local 94 RebootEscrowData expected = RebootEscrowData.fromSyntheticPassword(mKey, (byte) 2, testSp, in fromEntries_loopback_success() local
|
/aosp14/frameworks/base/test-runner/src/android/test/ |
H A D | MoreAsserts.java | 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() 194 String message, Object[] expected, Object[] actual) { in assertEquals() 361 Iterable<?> actual, Object... expected) { in assertContentsInOrder() 370 Object... expected) { in assertContentsInAnyOrder() [all …]
|
/aosp14/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
H A D | QuickSelectTest.java | 106 private void test(List<Integer> input, int k, Integer expected) throws Exception { in test() 110 private void test(List<Integer> input, int start, int length, int k, Integer expected) in test() 122 private void test(int[] input, int k, Integer expected) throws Exception { in test() 126 private void test(int[] input, int start, int length, int k, Integer expected) in test() 138 private void test(long[] input, int k, Long expected) throws Exception { in test() 142 private void test(long[] input, int start, int length, int k, Long expected) throws Exception { in test()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/animation/ |
H A D | TextInterpolatorTest.kt | 99 val expected = makeLayout(TEXT, START_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) regex 117 val expected = makeLayout(TEXT, END_PAINT).toBitmap(BMP_WIDTH, BMP_HEIGHT) regex 156 val expected = interp.toBitmap(BMP_WIDTH, BMP_HEIGHT) regex 180 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.LTR) regex 200 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex 222 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex 245 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex 270 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex 295 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex 320 val expected = makeLayout(BIDI_TEXT, START_PAINT, TextDirectionHeuristics.RTL) regex
|
/aosp14/frameworks/base/services/tests/mockingservicestests/src/com/android/server/tare/ |
H A D | TareTestUtils.java | 28 static void assertLedgersEqual(Ledger expected, Ledger actual) { in assertLedgersEqual() 52 static void assertSparseLongArraysEqual(SparseLongArray expected, SparseLongArray actual) { in assertSparseLongArraysEqual() 66 static void assertRewardBucketsEqual(Ledger.RewardBucket expected, Ledger.RewardBucket actual) { in assertRewardBucketsEqual() 76 static void assertTransactionsEqual(Ledger.Transaction expected, Ledger.Transaction actual) { in assertTransactionsEqual()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/notetask/ |
H A D | NoteTaskEventLoggerTest.kt | 62 val expected = NOTE_OPENED_VIA_SHORTCUT regex 72 val expected = NOTE_OPENED_VIA_KEYGUARD_QUICK_AFFORDANCE regex 87 val expected = NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON regex 102 val expected = NOTE_OPENED_VIA_STYLUS_TAIL_BUTTON_LOCKED regex 128 val expected = NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON regex 143 val expected = NOTE_CLOSED_VIA_STYLUS_TAIL_BUTTON_LOCKED regex
|
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
H A 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()
|
/aosp14/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/ |
H A D | ArchiveTest.java | 87 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
|
H A 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 …]
|
/aosp14/frameworks/base/core/tests/coretests/src/android/text/ |
H A 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()
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
H A D | ComplicationUtilsTest.java | 74 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
|
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/ |
H A D | FontListParserTest.java | 63 FontConfig.NamedFamilyList expected = new FontConfig.NamedFamilyList( in named() local 79 FontConfig.FontFamily expected = new FontConfig.FontFamily( in fallback() local 99 FontConfig.FontFamily expected = new FontConfig.FontFamily( in compact() local 116 FontConfig.FontFamily expected = new FontConfig.FontFamily( in elegant() local 135 FontConfig.NamedFamilyList expected = new FontConfig.NamedFamilyList( in styles() local 161 FontConfig.NamedFamilyList expected = new FontConfig.NamedFamilyList( in variable() local 182 FontConfig.NamedFamilyList expected = new FontConfig.NamedFamilyList( in ttc() local 203 FontConfig.NamedFamilyList expected = new FontConfig.NamedFamilyList( in psName() local
|
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/ |
H A 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()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/pip/phone/ |
H A D | PhonePipKeepClearAlgorithmTest.java | 185 final Rect expected = new Rect( in adjust_aboveDisplayBounds_onLeftEdge_appliesBottomLeftGravity() local 205 final Rect expected = new Rect( in adjust_belowDisplayBounds_onLeftEdge_appliesBottomLeftGravity() local 226 final Rect expected = new Rect( in adjust_aboveDisplayBounds_onRightEdge_appliesBottomRightGravity() local 248 final Rect expected = new Rect( in adjust_belowDisplayBounds_onRightEdge_appliesBottomRightGravity() local 269 final Rect expected = new Rect( in adjust_whileStashed_aboveDisplayBounds_alignsToBottomInset() local 289 final Rect expected = new Rect( in adjust_whileStashed_belowDisplayBounds_alignsToBottomInset() local
|
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
H A D | HexDumpTest.java | 55 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()
|
/aosp14/frameworks/base/tools/aapt2/cmd/ |
H A D | Dump_test.cpp | 55 std::string expected; in TEST_F() local 70 std::string expected; in TEST_F() local 86 std::string expected; in TEST_F() local 103 std::string expected; in TEST_F() local 120 std::string expected; in TEST_F() local
|
/aosp14/system/core/init/ |
H A D | ueventd_parser_test.cpp | 28 void TestSubsystems(const Subsystem& expected, const Subsystem& test) { in TestSubsystems() 34 void TestPermissions(const Permissions& expected, const Permissions& test) { in TestPermissions() 43 void TestSysfsPermissions(const SysfsPermissions& expected, const SysfsPermissions& test) { in TestSysfsPermissions() 48 void TestExternalFirmwareHandler(const ExternalFirmwareHandler& expected, in TestExternalFirmwareHandler() 57 void TestVector(const T& expected, const T& test, F function) { in TestVector() 67 void TestUeventdFile(const std::string& content, const UeventdConfiguration& expected) { in TestUeventdFile()
|
/aosp14/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/ |
H A 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
|