/frameworks/base/core/tests/utiltests/src/com/android/internal/util/ |
D | ArrayUtilsTest.java | 19 import android.test.MoreAsserts; 95 MoreAsserts.assertEquals(new int[] { 1 }, in testAppendInt() 97 MoreAsserts.assertEquals(new int[] { 1 }, in testAppendInt() 99 MoreAsserts.assertEquals(new int[] { 1, 2 }, in testAppendInt() 101 MoreAsserts.assertEquals(new int[] { 1, 2 }, in testAppendInt() 107 MoreAsserts.assertEquals(new int[] { }, in testRemoveInt() 109 MoreAsserts.assertEquals(new int[] { 1, 2, 3, }, in testRemoveInt() 111 MoreAsserts.assertEquals(new int[] { 2, 3, }, in testRemoveInt() 113 MoreAsserts.assertEquals(new int[] { 1, 3, }, in testRemoveInt() 115 MoreAsserts.assertEquals(new int[] { 1, 2, }, in testRemoveInt() [all …]
|
/frameworks/base/core/tests/coretests/src/android/text/ |
D | SpannableTest.java | 21 import android.test.MoreAsserts; 46 MoreAsserts.assertEquals(new Object[]{emptySpan}, spans); in testGetSpans() 48 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); in testGetSpans() 50 MoreAsserts.assertEquals(new Object[]{emptySpan, unemptySpan}, spans); in testGetSpans() 52 MoreAsserts.assertEquals(new Object[]{unemptySpan}, spans); in testGetSpans()
|
D | TextUtilsTest.java | 31 import android.test.MoreAsserts; 234 MoreAsserts.assertEquals(expectedStrings, strings.toArray(new String[]{})); in stringSplitterTestHelper()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/backup/ |
D | BackupUtilsTest.java | 23 import android.test.MoreAsserts; 96 MoreAsserts.assertEquals(hash1a, hash1b); in testHashSignature() 99 MoreAsserts.assertEquals(hash2a, hash2b); in testHashSignature() 112 MoreAsserts.assertEquals(hash1a, listA.get(0)); in testHashSignature() 113 MoreAsserts.assertEquals(hash1a, listB.get(0)); in testHashSignature() 115 MoreAsserts.assertEquals(hash2a, listA.get(1)); in testHashSignature() 116 MoreAsserts.assertEquals(hash2a, listB.get(1)); in testHashSignature()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/search/ |
D | SearchablesTest.java | 35 import android.test.MoreAsserts; 129 MoreAsserts.assertEmpty(searchablesList); in testSearchablesListEmpty() 131 MoreAsserts.assertEmpty(global); in testSearchablesListEmpty() 212 MoreAsserts.assertNotEqual(s, ""); in assertNotEmpty() 220 MoreAsserts.assertNotEqual(s, ""); in assertNullOrNotEmpty() 377 MoreAsserts.assertNotEqual(packageName, ""); in getXml() 378 MoreAsserts.assertNotEqual(resid, 0); in getXml() 400 MoreAsserts.assertNotEqual(name, ""); in resolveContentProvider() 423 MoreAsserts.assertNotEqual(name, ""); in getActivityInfo()
|
/frameworks/support/core-utils/tests/java/android/support/v4/content/ |
D | MimeTypeFilterTest.java | 26 import android.test.MoreAsserts; 102 MoreAsserts.assertEquals(new String[] {"image/jpeg", "image/png"}, in matchesManyMimeTypes() 104 MoreAsserts.assertEquals(new String[] {"image/png"}, in matchesManyMimeTypes() 106 MoreAsserts.assertEquals(new String[] {}, in matchesManyMimeTypes() 109 MoreAsserts.assertEquals(new String[] {}, in matchesManyMimeTypes() 111 MoreAsserts.assertEquals(new String[] {}, in matchesManyMimeTypes()
|
D | FileProviderTest.java | 34 import android.test.MoreAsserts; 361 MoreAsserts.assertEquals(expected, readFully(in)); in assertContentsEquals()
|
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/ |
D | XmlConfigTests.java | 21 import android.test.MoreAsserts; 205 MoreAsserts.assertNotEqual(config, other); in testMultipleDomainConfigs() 273 MoreAsserts.assertNotEqual(parent, child); in testNestedDomainConfigs() 274 MoreAsserts.assertEmpty(parent.getPins().pins); in testNestedDomainConfigs() 275 MoreAsserts.assertNotEmpty(child.getPins().pins); in testNestedDomainConfigs() 278 MoreAsserts.assertNotEmpty(child.getTrustAnchors()); in testNestedDomainConfigs() 291 MoreAsserts.assertNotEqual(parent, child); in testNestedDomainConfigsOverride() 301 MoreAsserts.assertEmpty(anchors); in testDebugOverridesDisabled() 312 MoreAsserts.assertNotEmpty(anchors); in testBasicDebugOverrides() 366 MoreAsserts.assertAssignableFrom(XmlConfigSource.ParserException.class, in testBadConfig() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/pm/ |
D | ShortcutManagerTest2.java | 44 import android.test.MoreAsserts; 1565 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1568 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1571 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1574 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1577 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1580 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1589 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1592 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() 1595 MoreAsserts.assertNotEqual(3, mManager.getRemainingCallCount()); in testThrottling_foreground() [all …]
|
D | ShortcutManagerTest8.java | 43 import android.test.MoreAsserts; 1162 MoreAsserts.assertContainsRegex("^string-", si.getShortLabel().toString()); in testRequestPinShortcut_manifestExists_titleWontChange()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/testutis/ |
D | TestUtils.java | 18 import android.test.MoreAsserts; 40 MoreAsserts.assertContainsRegex(expectedExceptionMessageRegex, e.getMessage()); in assertExpectException()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseLocaleTest.java | 24 import android.test.MoreAsserts; 84 MoreAsserts.assertEquals(STRINGS, results); in testLocaleInsertOrder() 98 MoreAsserts.assertEquals(results, new String[] { in testLocaleenUS()
|
D | MatrixCursorTest.java | 19 import android.test.MoreAsserts; 156 MoreAsserts.assertEquals(new byte[] {(byte) 0xaa, (byte) 0x55}, cursor.getBlob(6)); in testRowBuilderOffer() 207 MoreAsserts.assertEquals(new byte[] {(byte) 0xaa, (byte) 0x55}, cursor.getBlob(6)); in checkValues()
|
/frameworks/base/core/tests/coretests/src/android/net/ |
D | LocalSocketTest.java | 23 import android.test.MoreAsserts; 54 MoreAsserts.assertNotEqual(0, c.getPid()); in testBasic()
|
D | NetworkTest.java | 19 import static android.test.MoreAsserts.assertNotEqual;
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | FileBridgeTest.java | 21 import android.test.MoreAsserts; 74 MoreAsserts.assertEquals(expected, Streams.readFully(new FileInputStream(file))); in assertContents()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsCollectionTest.java | 43 import android.test.MoreAsserts; 225 MoreAsserts.assertEquals(new int[] { myUid }, in testAccessLevels() 227 MoreAsserts.assertEquals(new int[] { Process.SYSTEM_UID, myUid, otherUidInSameUser }, in testAccessLevels() 229 MoreAsserts.assertEquals( in testAccessLevels()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/ |
D | DevicePolicyManagerTest.java | 76 import android.test.MoreAsserts; 1284 MoreAsserts.assertContentsInAnyOrder(policy.mDelegationMap.get(CERT_DELEGATE), in testDelegation() 1286 MoreAsserts.assertContentsInAnyOrder(dpm.getDelegatedScopes(admin1, CERT_DELEGATE), in testDelegation() 1289 MoreAsserts.assertContentsInAnyOrder(policy.mDelegationMap.get(RESTRICTIONS_DELEGATE), in testDelegation() 1291 MoreAsserts.assertContentsInAnyOrder(dpm.getDelegatedScopes(admin1, RESTRICTIONS_DELEGATE), in testDelegation() 2051 MoreAsserts.assertContentsInAnyOrder(dpm.getAffiliationIds(admin2), "red", "green", "blue"); in testUserAffiliation() 2062 MoreAsserts.assertContentsInAnyOrder( in testUserAffiliation() 2071 MoreAsserts.assertContentsInAnyOrder( in testUserAffiliation() 3212 MoreAsserts.assertEmpty(targetUsers); in testGetBindDeviceAdminTargetUsers() 3226 MoreAsserts.assertEmpty(targetUsers); in testGetBindDeviceAdminTargetUsers() [all …]
|
/frameworks/support/room/integration-tests/testapp/src/androidTest/java/android/arch/persistence/room/integration/testapp/paging/ |
D | LimitOffsetDataSourceTest.java | 19 import static android.test.MoreAsserts.assertEmpty;
|
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/ |
D | ShortcutManagerTestUtils.java | 51 import android.test.MoreAsserts; 432 MoreAsserts.assertContainsRegex(expectedExceptionMessageRegex, e.getMessage()); in assertExpectException() 1032 MoreAsserts.assertEquals((int[]) v1, (int[]) v2); in assertBundlesEqual() 1035 MoreAsserts.assertEquals((double[]) v1, (double[]) v2); in assertBundlesEqual() 1038 MoreAsserts.assertEquals((String[]) v1, (String[]) v2); in assertBundlesEqual()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/power/ |
D | PowerNotificationWarningsTest.java | 19 import static android.test.MoreAsserts.assertNotEqual;
|
/frameworks/base/test-runner/src/android/test/ |
D | MoreAsserts.java | 37 public final class MoreAsserts { class 39 private MoreAsserts() { } in MoreAsserts() method in MoreAsserts
|
/frameworks/base/core/tests/coretests/src/android/view/textservice/ |
D | SpellCheckerSubtypeTest.java | 26 import static android.test.MoreAsserts.assertNotEqual;
|
/frameworks/base/core/tests/coretests/src/android/animation/ |
D | ValueAnimatorTests.java | 29 import static android.test.MoreAsserts.assertNotEqual;
|
/frameworks/base/packages/Shell/tests/src/com/android/shell/ |
D | BugreportReceiverTest.java | 19 import static android.test.MoreAsserts.assertContainsRegex;
|