HomeSort by relevance Sort by last modified time
    Searched refs:Assert (Results 1 - 25 of 824) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /frameworks/multidex/library/test/src/android/support/multidex/
MultiDexTest.java 19 import org.junit.Assert;
28 Assert.assertFalse(MultiDex.isVMMultidexCapable(null));
29 Assert.assertFalse(MultiDex.isVMMultidexCapable("-1.32.54"));
30 Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32.54"));
31 Assert.assertFalse(MultiDex.isVMMultidexCapable("1.32"));
32 Assert.assertFalse(MultiDex.isVMMultidexCapable("2.0"));
33 Assert.assertFalse(MultiDex.isVMMultidexCapable("2.000.1254"));
34 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1.1254"));
35 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.1"));
36 Assert.assertTrue(MultiDex.isVMMultidexCapable("2.2"))
    [all...]
  /external/smali/util/src/test/java/org/jf/util/
NumberUtilsTest.java 34 import junit.framework.Assert;
40 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.23f)));
41 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1.0f)));
42 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NaN)));
43 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.NEGATIVE_INFINITY)));
44 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(Float.POSITIVE_INFINITY)));
45 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1e-30f)));
46 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1000f)));
47 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(1f)));
48 Assert.assertTrue(NumberUtils.isLikelyFloat(Float.floatToRawIntBits(-1f)))
    [all...]
AbstractForwardSequentialListTest.java 34 import junit.framework.Assert;
78 Assert.assertFalse(iter.hasPrevious());
81 Assert.assertEquals(i, iter.nextIndex());
82 Assert.assertEquals(i-1, iter.previousIndex());
84 Assert.assertTrue(iter.hasNext());
86 Assert.assertEquals(i, iter.next().intValue());
87 Assert.assertTrue(iter.hasPrevious());
90 Assert.assertFalse(iter.hasNext());
91 Assert.assertEquals(iter.nextIndex(), 100);
92 Assert.assertEquals(iter.previousIndex(), 99)
    [all...]
  /art/test/082-inline-execute/src/
Main.java 17 import junit.framework.Assert;
87 Assert.assertNotNull(Thread.currentThread());
95 Assert.assertEquals(str0.length(), 0);
96 Assert.assertEquals(str1.length(), 1);
97 Assert.assertEquals(str80.length(), 80);
102 Assert.fail();
111 Assert.assertTrue(str0.isEmpty());
112 Assert.assertFalse(str1.isEmpty());
117 Assert.fail();
125 Assert.assertEquals('N', testStr.charAt(0))
    [all...]
  /art/test/021-string2/src/
Main.java 17 import junit.framework.Assert;
31 Assert.assertTrue(test.equals(test));
32 Assert.assertTrue(test.equals(test1));
33 Assert.assertFalse(test.equals(test2));
35 Assert.assertEquals(test.compareTo(test1), 0);
36 Assert.assertTrue(test1.compareTo(test2) > 0);
37 Assert.assertTrue(test2.compareTo(test1) < 0);
39 Assert.assertEquals("".compareTo(""), 0);
40 Assert.assertTrue(test.compareTo("") > 0);
41 Assert.assertTrue("".compareTo(test) < 0)
    [all...]
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
MockDataSetObserver.java 21 import junit.framework.Assert;
32 Assert.assertFalse("onChanged() was called", mChangedCount > 0);
36 Assert.assertFalse("onInvalidated() was called", mInvalidatedCount > 0);
40 Assert.assertTrue("onChanged() was not called", mChangedCount > 0);
44 Assert.assertTrue("onInvalidated() was not called", mInvalidatedCount > 0);
  /frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
UT_constant.java 31 private void Assert(boolean b) {
38 Assert(ScriptC_constant.const_floatTest == 1.99f);
39 Assert(ScriptC_constant.const_doubleTest == 2.05);
40 Assert(ScriptC_constant.const_charTest == -8);
41 Assert(ScriptC_constant.const_shortTest == -16);
42 Assert(ScriptC_constant.const_intTest == -32);
43 Assert(ScriptC_constant.const_longTest == 17179869184l);
44 Assert(ScriptC_constant.const_longlongTest == 68719476736l);
46 Assert(ScriptC_constant.const_ucharTest == 8);
47 Assert(ScriptC_constant.const_ushortTest == 16)
    [all...]
  /frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
UT_constant.java 31 private void Assert(boolean b) {
38 Assert(ScriptC_constant.const_floatTest == 1.99f);
39 Assert(ScriptC_constant.const_doubleTest == 2.05);
40 Assert(ScriptC_constant.const_charTest == -8);
41 Assert(ScriptC_constant.const_shortTest == -16);
42 Assert(ScriptC_constant.const_intTest == -32);
43 Assert(ScriptC_constant.const_longTest == 17179869184l);
44 Assert(ScriptC_constant.const_longlongTest == 68719476736l);
46 Assert(ScriptC_constant.const_ucharTest == 8);
47 Assert(ScriptC_constant.const_ushortTest == 16)
    [all...]
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
ANTLRxxxxStreamFixture.cs 79 Assert.AreEqual(0, inputStream.Count);
90 Assert.AreEqual(grammarStr.Length, inputStream.Count);
101 Assert.AreEqual(0, inputStream.Index);
104 Assert.AreEqual(1, inputStream.Index);
107 Assert.AreEqual(2, inputStream.Index);
113 Assert.AreEqual(inputStream.Index, inputStream.Count);
129 Assert.AreEqual(inputStream.Index, inputStream.Count);
140 Assert.AreEqual(0, inputStream.Index);
141 Assert.AreEqual(0, inputStream.CharPositionInLine);
142 Assert.AreEqual(1, inputStream.Line)
    [all...]
RewriteRuleXxxxStreamFixture.cs 100 Assert.IsFalse(tokenTest.HasNext, "tokenTest has to give back false here.");
101 Assert.AreEqual(description.ToString(), tokenTest.Description,
103 Assert.AreEqual(0, tokenTest.Count, "The number of elements should be zero.");
105 Assert.IsTrue(true, "Reset() shouldn't make any problems here.");
106 Assert.AreEqual(0, tokenTest.Count,
119 Assert.IsFalse(subtreeTest.HasNext, "HasNext has to give back false here.");
120 Assert.AreEqual(description.ToString(), subtreeTest.Description,
122 Assert.AreEqual(0, subtreeTest.Count, "The number of elements should be zero.");
124 Assert.IsTrue(true, "Reset() shouldn't make any problems here.");
125 Assert.AreEqual(0, subtreeTest.Count
    [all...]
  /external/smali/smali/src/test/java/
ByteLiteralTest.java 30 import org.junit.Assert;
39 Assert.assertTrue(LiteralTools.parseByte("0x0T") == 0x0);
40 Assert.assertTrue(LiteralTools.parseByte("0x00") == 0x0);
41 Assert.assertTrue(LiteralTools.parseByte("0x1T") == 0x1);
42 Assert.assertTrue(LiteralTools.parseByte("0x12") == 0x12);
43 Assert.assertTrue(LiteralTools.parseByte("0x7fT") == 0x7f);
44 Assert.assertTrue(LiteralTools.parseByte("0x80t") == Byte.MIN_VALUE);
45 Assert.assertTrue(LiteralTools.parseByte("0xFFt") == -1);
47 Assert.assertTrue(LiteralTools.parseByte("-0x00") == 0);
48 Assert.assertTrue(LiteralTools.parseByte("-0x01") == -1)
    [all...]
IntLiteralTest.java 30 import org.junit.Assert;
38 Assert.assertTrue(LiteralTools.parseInt("0x0") == 0x0);
39 Assert.assertTrue(LiteralTools.parseInt("0x00") == 0x0);
40 Assert.assertTrue(LiteralTools.parseInt("0x1") == 0x1);
41 Assert.assertTrue(LiteralTools.parseInt("0x12345678") == 0x12345678);
42 Assert.assertTrue(LiteralTools.parseInt("0x7fffffff") == 0x7fffffff);
43 Assert.assertTrue(LiteralTools.parseInt("0x80000000") == Integer.MIN_VALUE);
44 Assert.assertTrue(LiteralTools.parseInt("0xFFFFFFFF") == -1);
46 Assert.assertTrue(LiteralTools.parseInt("-0x00") == 0);
47 Assert.assertTrue(LiteralTools.parseInt("-0x01") == -1)
    [all...]
LongLiteralTest.java 30 import org.junit.Assert;
37 Assert.assertTrue(LiteralTools.parseLong("0x0L") == 0x0);
38 Assert.assertTrue(LiteralTools.parseLong("0x00L") == 0x0);
39 Assert.assertTrue(LiteralTools.parseLong("0x1L") == 0x1);
40 Assert.assertTrue(LiteralTools.parseLong("0x1234567890123456L") == 0x1234567890123456L);
41 Assert.assertTrue(LiteralTools.parseLong("0x7fffffffffffffffL") == 0x7fffffffffffffffL);
42 Assert.assertTrue(LiteralTools.parseLong("0x8000000000000000L") == Long.MIN_VALUE);
43 Assert.assertTrue(LiteralTools.parseLong("0xFFFFFFFFFFFFFFFFL") == -1);
45 Assert.assertTrue(LiteralTools.parseLong("-0x00L") == 0);
46 Assert.assertTrue(LiteralTools.parseLong("-0x01L") == -1)
    [all...]
ShortLiteralTest.java 30 import org.junit.Assert;
39 Assert.assertTrue(LiteralTools.parseShort("0x0") == 0x0);
40 Assert.assertTrue(LiteralTools.parseShort("0x00") == 0x0);
41 Assert.assertTrue(LiteralTools.parseShort("0x1") == 0x1);
42 Assert.assertTrue(LiteralTools.parseShort("0x1234") == 0x1234);
43 Assert.assertTrue(LiteralTools.parseShort("0x7fff") == 0x7fff);
44 Assert.assertTrue(LiteralTools.parseShort("0x8000") == Short.MIN_VALUE);
45 Assert.assertTrue(LiteralTools.parseShort("0xFFFF") == -1);
47 Assert.assertTrue(LiteralTools.parseShort("-0x00") == 0);
48 Assert.assertTrue(LiteralTools.parseShort("-0x01") == -1)
    [all...]
  /external/junit/src/org/junit/internal/
ExactComparisonCriteria.java 3 import org.junit.Assert;
8 Assert.assertEquals(expected, actual);
InexactComparisonCriteria.java 3 import org.junit.Assert;
15 Assert.assertEquals((Double)expected, (Double)actual, fDelta);
17 Assert.assertEquals((Float)expected, (Float)actual, fDelta);
  /libcore/luni/src/test/java/libcore/java/io/
OldStreamTokenizerTest.java 24 import junit.framework.Assert;
58 Assert.assertTrue(a.lineno() == 1);
59 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
60 Assert.assertTrue(a.toString().equals("Token[Testing], line 1"));
61 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_NUMBER);
62 Assert.assertTrue(a.toString().equals("Token[n=12345.0], line 1"));
63 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
64 Assert.assertTrue(a.toString().equals("Token[alpha], line 2"));
65 Assert.assertTrue(a.nextToken() == StreamTokenizer.TT_WORD);
66 Assert.assertTrue(a.toString().equals("Token[omega], line 3"))
    [all...]
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/util/
NullDatabaseMapTest.java 6 import org.junit.Assert;
23 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getClass().getName()
25 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getConnectionString() == null);
26 Assert.assertTrue(DatabaseConfig.getDatabaseMap()
28 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getDriverClassName() == "com.xtremelabs.robolectric.util.NullDatabaseMap");
33 Assert.assertTrue(DatabaseConfig.getDatabaseMap().getClass().getName()
36 Assert.assertFalse(DatabaseConfig.isMapLoaded());
41 Assert.assertFalse(DatabaseConfig.isMapLoaded());
50 Assert.assertTrue(false);
55 Assert.assertTrue(expectedError)
    [all...]
  /external/chromium_org/third_party/protobuf/java/src/test/java/com/google/protobuf/
TestUtil.java 245 import junit.framework.Assert;
519 * Assert (using {@code junit.framework.Assert}} that all fields of
523 Assert.assertTrue(message.hasOptionalInt32 ());
524 Assert.assertTrue(message.hasOptionalInt64 ());
525 Assert.assertTrue(message.hasOptionalUint32 ());
526 Assert.assertTrue(message.hasOptionalUint64 ());
527 Assert.assertTrue(message.hasOptionalSint32 ());
528 Assert.assertTrue(message.hasOptionalSint64 ());
529 Assert.assertTrue(message.hasOptionalFixed32 ())
    [all...]
  /external/protobuf/java/src/test/java/com/google/protobuf/
TestUtil.java 234 import junit.framework.Assert;
485 * Assert (using {@code junit.framework.Assert}} that all fields of
489 Assert.assertTrue(message.hasOptionalInt32 ());
490 Assert.assertTrue(message.hasOptionalInt64 ());
491 Assert.assertTrue(message.hasOptionalUint32 ());
492 Assert.assertTrue(message.hasOptionalUint64 ());
493 Assert.assertTrue(message.hasOptionalSint32 ());
494 Assert.assertTrue(message.hasOptionalSint64 ());
495 Assert.assertTrue(message.hasOptionalFixed32 ())
    [all...]
  /frameworks/base/core/tests/coretests/src/android/view/
MenuTest.java 21 import junit.framework.Assert;
48 Assert.assertEquals(id, item.getItemId());
49 Assert.assertEquals(item, mMenu.findItem(id));
50 Assert.assertEquals(0, mMenu.findItemIndex(id));
64 Assert.assertEquals(groupId, item.getGroupId());
65 Assert.assertEquals(groupId, item2.getGroupId());
66 Assert.assertEquals(item1Index, mMenu.findGroupIndex(groupId));
67 Assert.assertEquals(item2Index, mMenu.findGroupIndex(groupId, item1Index + 1));
81 Assert.assertEquals(mMenu.findGroupIndex(GROUP_ONE), 0);
82 Assert.assertEquals(mMenu.findGroupIndex(GROUP_TWO), -1)
    [all...]
  /cts/tests/tests/gesture/src/android/gesture/cts/
LineGestureStrokeHelper.java 25 import junit.framework.Assert;
54 * Helper method to assert expected values for a path derived from createLineGesture
60 Assert.assertFalse(linePath.isEmpty());
66 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.bottom);
67 Assert.assertEquals(LINE_START_POINT, bounds.left);
68 Assert.assertEquals(LINE_MIDWAY_POINT, bounds.right);
69 Assert.assertEquals(LINE_START_POINT, bounds.top);
73 * Helper method to assert expected values for a bounds derived from createLineGesture
80 Assert.assertEquals(LINE_END_POINT, bounds.bottom);
81 Assert.assertEquals(LINE_START_POINT, bounds.left)
    [all...]
  /cts/libs/deviceutil/src/android/cts/util/
PollingCheck.java 21 import junit.framework.Assert;
46 Assert.fail("unexpected InterruptedException");
56 Assert.fail("unexpected timeout");
70 Assert.fail(message.toString());
  /libcore/support/src/test/java/tests/security/
SignatureHelper.java 26 import junit.framework.Assert;
48 Assert.fail(e.getMessage());
54 Assert.fail(e.getMessage());
60 Assert.fail(e.getMessage());
67 Assert.fail(e.getMessage());
73 Assert.fail(e.getMessage());
79 Assert.fail(e.getMessage());
83 Assert.assertTrue("signature could not be verified", signature
86 Assert.fail(e.getMessage());
  /packages/apps/ContactsCommon/src/com/android/contacts/common/format/
SpannedTestUtils.java 27 import junit.framework.Assert;
44 Assert.assertEquals("", actualHtmlText);
46 Assert.assertEquals("<p dir=ltr>" + expectedHtmlText + "</p>\n", actualHtmlText);
52 * Assert span exists in the correct location.
59 Assert.assertTrue(seq instanceof Spanned);
63 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, 0, start - 1));
65 Assert.assertEquals(1, getNumForegroundColorSpansBetween(spannable, start, end));
66 Assert.assertEquals(0, getNumForegroundColorSpansBetween(spannable, end + 1,
81 Assert.assertFalse(seq instanceof Spanned);
82 Assert.assertEquals(expected, seq)
    [all...]

Completed in 565 milliseconds

1 2 3 4 5 6 7 8 91011>>