/frameworks/base/core/tests/coretests/src/android/os/storage/ |
AsecTests.java | 30 import junit.framework.Assert; 84 Assert.assertTrue(isMediaMounted()); 92 Assert.assertTrue(isMediaMounted()); 100 Assert.assertTrue(isMediaMounted()); 109 Assert.assertTrue(isMediaMounted()); 117 Assert.assertTrue(isMediaMounted()); 125 Assert.assertTrue(isMediaMounted()); 155 Assert.assertEquals(StorageResultCode.OperationSucceeded, 157 Assert.assertEquals(true, containerExists("testCreateContainer")); 165 Assert.assertEquals(StorageResultCode.OperationSucceeded [all...] |
/frameworks/base/core/tests/coretests/src/android/database/ |
DatabaseGeneralTest.java | 35 import junit.framework.Assert; 488 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, 490 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, 492 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, 494 Assert.assertEquals(0, DatabaseUtils.longForQuery(mDatabase, 497 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, 499 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase, 502 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, 504 Assert.assertEquals(3, DatabaseUtils.longForQuery(mDatabase, 509 Assert.assertEquals(2, DatabaseUtils.longForQuery(mDatabase, [all...] |
/cts/tests/tests/graphics2/src/android/graphics2/cts/ |
TextureViewCameraActivity.java | 33 import junit.framework.Assert; 50 Assert.assertTrue(mTextureView.getLayerType() == View.LAYER_TYPE_HARDWARE); 51 Assert.assertTrue(mTextureView.isAvailable()); 52 Assert.assertNotNull(mTextureView.getSurfaceTexture()); 53 Assert.assertTrue(mTextureView.getSurfaceTextureListener() == this); 54 Assert.assertTrue(mTextureView.isOpaque()); 64 Assert.fail(); 86 Assert.assertEquals(mHeight, bitmap.getHeight()); 87 Assert.assertEquals(mWidth, bitmap.getWidth());
|
/development/tools/mkstubs/tests/com/android/mkstubs/sourcer/ |
FieldSourcerTest.java | 21 import org.junit.Assert; 57 Assert.assertEquals("public java.lang.String mArg;\n", s); 72 Assert.assertEquals("private final java.util.ArrayList<java.lang.String> mList;\n", s);
|
/external/gtest/test/ |
gtest_uninitialized_test.py | 58 def Assert(condition): 75 Assert(p.exited) 77 Assert('InitGoogleTest' in p.output)
|
/packages/apps/Contacts/tests/src/com/android/contacts/calllog/ |
CallLogQueryTestUtils.java | 19 import static junit.framework.Assert.assertEquals; 23 import junit.framework.Assert; 43 Assert.assertEquals(CallLogQuery.EXTENDED_PROJECTION.length, values.length);
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
EvenMoreAsserts.java | 19 import junit.framework.Assert; 36 // Cannot invoke Assert.fail() here because it will be caught by the try/catch below 41 Assert.fail(appendUserMessage("Exception " + exception + " expected but " + 46 Assert.fail(appendUserMessage(
|
/cts/tests/tests/mediastress/src/android/mediastress/cts/ |
VideoPlayerCapability.java | 22 import junit.framework.Assert; 33 Assert.assertNotNull(profile);
|
/cts/tests/tests/widget/src/android/widget/cts/ |
ExpandableListTester.java | 28 import junit.framework.Assert; 53 Assert.assertFalse("Group is already expanded", mExpandableListView 59 Assert.assertTrue("Group did not expand " + groupIndex, 80 Assert.assertNull(menuListener.getErrorMessage(), menuListener.getErrorMessage()); 98 Assert.assertNull(menuListener.getErrorMessage(), menuListener.getErrorMessage()); 110 Assert.assertNull(menuListener.getErrorMessage(), menuListener.getErrorMessage()); 125 Assert.assertNull(menuListener.getErrorMessage(), menuListener.getErrorMessage()); 136 Assert.assertTrue("Not enough groups", groupIndex < mAdapter.getGroupCount()); 146 Assert.assertEquals("Non NULL position for header item", 156 Assert.assertEquals("Group not found at flat position " + expectedFlatPosition [all...] |
/external/junit/src/junit/extensions/ |
TestDecorator.java | 3 import junit.framework.Assert; 14 public class TestDecorator extends Assert implements Test {
|
/external/apache-harmony/support/src/test/java/tests/support/ |
Support_HttpTests.java | 24 import junit.framework.Assert; 84 Assert.assertEquals("Error receiving chunked transfer coded data", 88 Assert.fail("Exception during test a: " + e); 105 Assert.assertTrue("Error receiving content coded data: " + result, 109 Assert.fail("Exception during test b: " + e); 126 Assert.assertTrue("Too many headers at: " + i, found <= 2); 128 Assert.assertTrue("Invalid header value: " + found + ": " 134 Assert.assertTrue("Invalid headers: " + found, found == 3); 138 Assert.fail("Exception during test c: " + e); 161 Assert.assertTrue("Error sending data 1: " + result, toWrit [all...] |
/frameworks/base/core/tests/coretests/src/android/util/ |
TouchModeFlexibleAsserts.java | 19 import junit.framework.Assert; 43 Assert.assertTrue("even after " + MAX_ATTEMPTS + " clicks, did not enter " 45 //Assert.assertEquals("number of touches to enter touch mode", 1, numAttemptsAtTouchMode); 55 Assert.assertTrue("even after " + MAX_ATTEMPTS + " taps, did not enter " 57 //Assert.assertEquals("number of touches to enter touch mode", 1, numAttemptsAtTouchMode); 72 Assert.assertFalse("even after waiting " + MAX_DELAY_MILLIS + " millis after "
|
/cts/tests/src/android/widget/cts/ |
WidgetTestUtils.java | 29 import junit.framework.Assert; 36 * Assert that two bitmaps are equal. 47 Assert.fail("the bitmaps are not equal"); 53 Assert.fail("the bitmaps are not equal"); 67 Assert.fail("the bitmaps are not equal"); 82 Assert.assertNotNull(parser); 83 Assert.assertNotNull(firstElementName); 103 Assert.assertEquals(expected * context.getResources().getDisplayMetrics().density,
|
/cts/tools/tradefed-host/src/com/android/cts/tradefed/testtype/ |
InstrumentationApkTest.java | 30 import junit.framework.Assert; 71 Assert.assertNotNull("missing device", getDevice()); 72 Assert.assertNotNull("missing build", mCtsBuild); 80 Assert.assertNull(String.format("Failed to install %s on %s. Reason: %s", 84 Assert.fail(String.format("Could not find file %s", apkFileName));
|
/libcore/luni/src/test/java/libcore/java/io/ |
OldAndroidByteArrayInputStreamTest.java | 22 import junit.framework.Assert; 38 Assert.assertEquals(str, read(a)); 39 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 40 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 41 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
OldAndroidCharArrayReaderTest.java | 22 import junit.framework.Assert; 37 Assert.assertEquals(str, read(a)); 38 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 39 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 40 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
OldAndroidStringReaderTest.java | 22 import junit.framework.Assert; 35 Assert.assertEquals(str, read(a)); 36 Assert.assertEquals("AbCdEfGhIj", read(b, 10)); 37 Assert.assertEquals("bdfhjlnprtvxz", skipRead(c)); 38 Assert.assertEquals("AbCdEfGdEfGhIjKlMnOpQrStUvWxYz", markRead(d, 3, 4));
|
/external/apache-harmony/support/src/test/java/org/apache/harmony/testframework/serialization/ |
SerializationTest.java | 43 import junit.framework.Assert; 238 Assert.assertEquals(initial, deserialized); 249 Assert.assertSame(initial, deserialized); 263 Assert.assertEquals(initThr.getClass(), dserThr.getClass()); 266 Assert.assertEquals(initThr.getMessage(), dserThr.getMessage()); 270 Assert.assertNull(dserThr.getCause()); 272 Assert.assertNotNull(dserThr.getCause()); 290 Assert.assertEquals(initPC.getClass(), dserPC.getClass()); 293 Assert.assertEquals(initPC.isReadOnly(), dserPC.isReadOnly()); 301 Assert.assertEquals(refCollection.size(), tstCollection.size()) [all...] |
/cts/tests/tests/openglperf/src/android/openglperf/cts/ |
RenderingWatchDog.java | 23 import junit.framework.Assert; 77 Assert.assertTrue("Watchdog timed-out",
|
/cts/tools/signature-tools/test/signature/comparator/ |
AnnotationCompareTest.java | 19 import static org.junit.Assert.assertNotNull; 20 import static org.junit.Assert.assertNull;
|
/development/tools/mkstubs/tests/com/android/mkstubs/ |
SourceGeneratorTest.java | 23 import org.junit.Assert; 55 Assert.assertNotNull(s);
|
/external/replicaisland/src/com/replica/replicaisland/ |
RenderingWatchDog.java | 23 import junit.framework.Assert; 83 Assert.assertTrue("Watchdog timed-out",
|
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/mock/ |
TestLogger.java | 21 import junit.framework.Assert; 34 Assert.fail(message);
|
/cts/tests/tests/textureview/src/android/textureview/cts/ |
TextureViewTestActivity.java | 26 import junit.framework.Assert; 39 Assert.assertTrue(mFrames > 0); 40 Assert.assertTrue(mDelayMs > 0); 59 Assert.fail();
|
/dalvik/dx/src/junit/extensions/ |
TestDecorator.java | 12 public class TestDecorator extends Assert implements Test {
|