Home
last modified time | relevance | path

Searched refs:MoreAsserts (Results 1 – 25 of 30) sorted by relevance

12

/frameworks/base/core/tests/utiltests/src/com/android/internal/util/
DArrayUtilsTest.java19 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/
DSpannableTest.java21 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()
DTextUtilsTest.java31 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/
DBackupUtilsTest.java23 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/
DSearchablesTest.java35 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/
DMimeTypeFilterTest.java26 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()
DFileProviderTest.java34 import android.test.MoreAsserts;
361 MoreAsserts.assertEquals(expected, readFully(in)); in assertContentsEquals()
/frameworks/base/tests/NetworkSecurityConfigTest/src/android/security/net/config/
DXmlConfigTests.java21 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/
DShortcutManagerTest2.java44 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 …]
DShortcutManagerTest8.java43 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/
DTestUtils.java18 import android.test.MoreAsserts;
40 MoreAsserts.assertContainsRegex(expectedExceptionMessageRegex, e.getMessage()); in assertExpectException()
/frameworks/base/core/tests/coretests/src/android/database/
DDatabaseLocaleTest.java24 import android.test.MoreAsserts;
84 MoreAsserts.assertEquals(STRINGS, results); in testLocaleInsertOrder()
98 MoreAsserts.assertEquals(results, new String[] { in testLocaleenUS()
DMatrixCursorTest.java19 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/
DLocalSocketTest.java23 import android.test.MoreAsserts;
54 MoreAsserts.assertNotEqual(0, c.getPid()); in testBasic()
DNetworkTest.java19 import static android.test.MoreAsserts.assertNotEqual;
/frameworks/base/core/tests/coretests/src/android/os/
DFileBridgeTest.java21 import android.test.MoreAsserts;
74 MoreAsserts.assertEquals(expected, Streams.readFully(new FileInputStream(file))); in assertContents()
/frameworks/base/tests/net/java/com/android/server/net/
DNetworkStatsCollectionTest.java43 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/
DDevicePolicyManagerTest.java76 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/
DLimitOffsetDataSourceTest.java19 import static android.test.MoreAsserts.assertEmpty;
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
DShortcutManagerTestUtils.java51 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/
DPowerNotificationWarningsTest.java19 import static android.test.MoreAsserts.assertNotEqual;
/frameworks/base/test-runner/src/android/test/
DMoreAsserts.java37 public final class MoreAsserts { class
39 private MoreAsserts() { } in MoreAsserts() method in MoreAsserts
/frameworks/base/core/tests/coretests/src/android/view/textservice/
DSpellCheckerSubtypeTest.java26 import static android.test.MoreAsserts.assertNotEqual;
/frameworks/base/core/tests/coretests/src/android/animation/
DValueAnimatorTests.java29 import static android.test.MoreAsserts.assertNotEqual;
/frameworks/base/packages/Shell/tests/src/com/android/shell/
DBugreportReceiverTest.java19 import static android.test.MoreAsserts.assertContainsRegex;

12