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

1 23 4 5 6 7 8 91011>>

  /cts/common/device-side/util/src/com/android/compatibility/common/util/
PollingCheck.java 21 import junit.framework.Assert;
47 Assert.fail("unexpected InterruptedException");
57 Assert.fail("unexpected timeout");
71 Assert.fail(message.toString());
  /packages/apps/Calendar/tests/src/com/android/calendar/alerts/
MockAlarmManager.java 23 import junit.framework.Assert;
42 Assert.assertNotNull(operation);
45 Assert.assertEquals("Alarm type not expected.", expectedAlarmType, actualAlarmType);
46 Assert.assertEquals("Alarm time not expected. Expected:" + DateUtils.formatDateTime(
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
SynchronousContactsProvider2.java 24 import junit.framework.Assert;
268 Assert.assertTrue("begin", mOnBeginTransactionInternalCalledInProfileMode);
269 Assert.assertTrue("commit", mOnCommitTransactionInternalCalledInProfileMode);
270 Assert.assertFalse("rollback", mOnRollbackTransactionInternalCalledInProfileMode);
274 Assert.assertTrue("begin", mOnBeginTransactionInternalCalledInProfileMode);
275 Assert.assertFalse("commit", mOnCommitTransactionInternalCalledInProfileMode);
276 Assert.assertTrue("rollback", mOnRollbackTransactionInternalCalledInProfileMode);
280 Assert.assertFalse("begin", mOnBeginTransactionInternalCalledInProfileMode);
281 Assert.assertFalse("commit", mOnCommitTransactionInternalCalledInProfileMode);
282 Assert.assertFalse("rollback", mOnRollbackTransactionInternalCalledInProfileMode)
    [all...]
  /cts/tests/tests/content/src/android/content/res/cts/
PluralResourcesTest.java 21 import junit.framework.Assert;
58 Assert.assertEquals(cs.toString(), "Some dogs");
64 Assert.assertEquals(cs.toString(), "A dog");
67 Assert.assertEquals(cs.toString(), "Some dogs");
70 Assert.assertEquals(cs.toString(), "Some dogs");
73 Assert.assertEquals(cs.toString(), "Some dogs");
85 Assert.assertEquals(cs.toString(), "Some Czech dogs");
91 Assert.assertEquals(cs.toString(), "A Czech dog");
97 Assert.assertEquals(cs.toString(), "Few Czech dogs");
100 Assert.assertEquals(cs.toString(), "Some Czech dogs")
    [all...]
  /external/chromium_org/content/public/android/javatests/src/org/chromium/content/browser/
JavaBridgeTestBase.java 7 import junit.framework.Assert;
28 Assert.fail("Wait timed out");
  /external/guava/guava-tests/test/com/google/common/eventbus/
StringCatcher.java 21 import junit.framework.Assert;
40 Assert.fail("Event bus must not call methods without @Subscribe!");
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/
RobolectricTestRunnerClassLoaderSetup.java 3 import org.junit.Assert;
16 Assert.assertEquals(classLoader.getClass().getName(), RobolectricClassLoader.class.getName());
  /external/robolectric/src/test/java/com/xtremelabs/robolectric/tester/android/view/
TestWindowTest.java 4 import org.junit.Assert;
14 Assert.assertNotNull(window.getWindowManager());
TestMenuTest.java 3 import static org.junit.Assert.assertNotNull;
4 import junit.framework.Assert;
29 Assert.assertEquals(10, testMenuItem.getItemId());
34 Assert.assertNull(testMenuItem);
46 Assert.assertNull(testMenuItem.getIntent());
52 Assert.assertNotNull(testMenuItem);
  /external/smali/util/src/test/java/org/jf/util/
IndentingWriterTest.java 34 import junit.framework.Assert;
49 Assert.assertEquals("4294967295", stringWriter.toString());
StringWrapperTest.java 34 import org.junit.Assert;
106 Assert.assertTrue(actual.length >= expected.length);
111 Assert.assertTrue(i == expected.length);
114 Assert.assertTrue(i < expected.length);
115 Assert.assertEquals(expected[i], actual[i]);
  /frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
CameraUtilsUncheckedThrowTest.java 23 import junit.framework.Assert;
35 Assert.fail("unreachable");
CameraUtilsBinderDecoratorTest.java 31 import junit.framework.Assert;
89 Assert.fail("Unreachable");
105 Assert.fail("Should've thrown SecurityException");
113 Assert.fail("Should've thrown IllegalArgumentException");
119 Assert.fail("Should've thrown CameraRuntimeException");
126 Assert.fail("Should've thrown CameraRuntimeException");
133 Assert.fail("Should've thrown CameraRuntimeException");
140 Assert.fail("Should've thrown CameraRuntimeException");
147 Assert.fail("Should've thrown UnsupportedOperationException");
155 Assert.fail("Should've thrown CameraRuntimeException")
    [all...]
  /frameworks/testing/support/tests/src/android/support/test/internal/runner/
ClassPathScannerTest.java 28 import junit.framework.Assert;
64 Assert.assertEquals(1, result.size());
65 Assert.assertTrue(result.contains("com.example.MyName"));
74 Assert.assertEquals(1, result.size());
75 Assert.assertTrue(result.contains("com.example.MyName"));
84 Assert.assertEquals(2, result.size());
85 Assert.assertTrue(result.contains("com.example.MyName"));
86 Assert.assertTrue(result.contains("com.exclude2.Excluded"));
  /libcore/support/src/test/java/tests/security/
CipherHelper.java 26 import junit.framework.Assert;
47 Assert.fail(e.getMessage());
49 Assert.fail(e.getMessage());
54 Assert.fail(e.getMessage());
62 Assert.fail(e.getMessage());
69 Assert.assertEquals("transformed data does not match", plainData,
77 Assert.fail(e.getMessage());
79 Assert.fail(e.getMessage());
KeyAgreementHelper.java 25 import junit.framework.Assert;
45 Assert.fail(e.getMessage());
51 Assert.fail(e.getMessage());
56 Assert.fail(e.getMessage());
58 Assert.fail(e.getMessage());
60 Assert.assertNotNull("generated secret is null", keyAgreement
  /packages/apps/QuickSearchBox/tests/src/com/android/quicksearchbox/util/
MockNamedTaskExecutor.java 19 import junit.framework.Assert;
48 Assert.assertEquals("Wrong number of pending tasks",
  /cts/tests/tests/textureview/src/android/textureview/cts/
TextureViewSnapshotTestActivity.java 27 import junit.framework.Assert;
44 Assert.assertTrue(mMaxWaitDelayMs > 0);
55 Assert.fail();
81 Assert.assertNotNull(bitmap);
82 Assert.assertEquals(mTexView.getWidth(), bitmap.getWidth());
83 Assert.assertEquals(mTexView.getHeight(), bitmap.getHeight());
84 Assert.assertEquals(Color.RED, bitmap.getPixel(0, 0));
  /frameworks/base/core/tests/coretests/src/android/database/
DatabaseGeneralTest.java 35 import junit.framework.Assert;
454 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase,
456 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase,
458 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase,
460 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase,
463 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase,
465 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase,
468 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase,
470 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase,
475 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase,
    [all...]
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/builder/
FixGotoTest.java 4 import junit.framework.Assert;
34 Assert.assertEquals(502, instructions.size());
36 Assert.assertEquals(Opcode.GOTO_16, instructions.get(0).getOpcode());
37 Assert.assertEquals(502, ((OffsetInstruction)instructions.get(0)).getCodeOffset());
57 Assert.assertEquals(70002, instructions.size());
59 Assert.assertEquals(Opcode.GOTO_32, instructions.get(0).getOpcode());
60 Assert.assertEquals(70003, ((OffsetInstruction)instructions.get(0)).getCodeOffset());
80 Assert.assertEquals(70002, instructions.size());
82 Assert.assertEquals(Opcode.GOTO_32, instructions.get(0).getOpcode());
83 Assert.assertEquals(70003, ((OffsetInstruction)instructions.get(0)).getCodeOffset())
    [all...]
  /cts/tests/tests/graphics2/src/android/graphics2/cts/
TextureViewCameraActivity.java 34 import junit.framework.Assert;
51 Assert.assertTrue(mTextureView.getLayerType() == View.LAYER_TYPE_HARDWARE);
52 Assert.assertTrue(mTextureView.isAvailable());
53 Assert.assertNotNull(mTextureView.getSurfaceTexture());
54 Assert.assertTrue(mTextureView.getSurfaceTextureListener() == this);
55 Assert.assertTrue(mTextureView.isOpaque());
77 Assert.fail();
96 Assert.assertEquals(mHeight, bitmap.getHeight());
97 Assert.assertEquals(mWidth, bitmap.getWidth());
  /external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime.Tests/
ITreeNodeStreamFixture.cs 64 Assert.AreEqual(expected, actual);
68 Assert.AreEqual(expected, actual);
85 Assert.AreEqual(expected, actual);
89 Assert.AreEqual(expected, actual);
110 Assert.AreEqual(expected, actual);
114 Assert.AreEqual(expected, actual);
129 Assert.AreEqual(expected, actual);
133 Assert.AreEqual(expected, actual);
146 Assert.AreEqual(expected, actual);
150 Assert.AreEqual(expected, actual)
    [all...]
  /external/chromium_org/chrome/test/android/javatests/src/org/chromium/chrome/test/util/
TestHttpServerClient.java 7 import junit.framework.Assert;
64 Assert.assertNotSame("Failed to access test HTTP Server at URL: " + serverUrl,
66 Assert.assertEquals("Failed to access test HTTP Server at URL: " + serverUrl,
69 Assert.fail(
72 Assert.fail(
  /packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/testutil/
DatabaseAsserts.java 24 import junit.framework.Assert;
34 Assert.fail("delete operation should have failed with UnsupportedOperationException on"
45 Assert.fail("insert operation should have failed with UnsupportedOperationException on"
53 * Create a contact and assert that the record exists.
75 Assert.assertFalse(ContactUtil.recordExistsForContactId(resolver, contactId));
80 Assert.assertTrue(deletedTimestamp > start);
  /external/smali/dexlib2/src/test/java/org/jf/dexlib2/writer/
JumboStringConversionTest.java 55 import org.junit.Assert;
98 Assert.assertNotNull(classDef);
101 Assert.assertNotNull(method);
104 Assert.assertNotNull(impl);
107 Assert.assertEquals(66001, instructions.size());
110 Assert.assertEquals(Opcode.CONST_STRING, instructions.get(i).getOpcode());
111 Assert.assertEquals(String.format("%08d", i),
115 Assert.assertEquals(Opcode.CONST_STRING_JUMBO, instructions.get(i).getOpcode());
116 Assert.assertEquals(String.format("%08d", i),
119 Assert.assertEquals(Opcode.RETURN_VOID, instructions.get(66000).getOpcode())
    [all...]

Completed in 736 milliseconds

1 23 4 5 6 7 8 91011>>