/external/v8/test/mjsunit/ |
value-wrapper.js | 36 assertEquals('object', 'xxx'.TypeOfThis()); 37 assertEquals('object', true.TypeOfThis(2,3)); 38 assertEquals('object', false.TypeOfThis()); 39 assertEquals('object', (42).TypeOfThis()); 40 assertEquals('object', (3.14).TypeOfThis()); 44 assertEquals('object', 'xxx'['TypeOfThis']()); 45 assertEquals('object', true['TypeOfThis']()); 46 assertEquals('object', false['TypeOfThis']()); 47 assertEquals('object', (42)['TypeOfThis']()); 48 assertEquals('object', (3.14)['TypeOfThis']()) [all...] |
/frameworks/base/core/tests/coretests/src/android/widget/listview/arrowscroll/ |
ListOfItemsShorterThanScreenTest.java | 45 assertEquals(0, mListView.getSelectedItemPosition()); 47 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); 55 assertEquals("second item should be positioned item height pixels from top.", 60 assertEquals(1, mListView.getSelectedItemPosition()); 62 assertEquals("next selected item shouldn't have moved", 72 assertEquals(0, mListView.getSelectedItemPosition()); 81 assertEquals(mListView.getListPaddingTop(), mListView.getSelectedView().getTop()); 87 assertEquals(lastOnScreenItemIndex, mListView.getSelectedItemPosition()); 88 assertEquals( 95 assertEquals(mListView.getSelectedView(), mListView.getChildAt(mListView.getChildCount() - 2)) [all...] |
ListOfItemsTallerThanScreenTest.java | 47 assertEquals("should only be one visible child", 1, mListView.getChildCount()); 58 assertEquals(mListView.getListPaddingTop(), 68 assertEquals("after " + i + " down scrolls across tall item", 76 assertEquals("child count", 2, mListView.getChildCount()); 77 assertEquals("selected position", 0, mListView.getSelectedItemPosition()); 80 assertEquals(view.getBottom(), peekingView.getTop()); 86 assertEquals(1, mListView.getChildCount()); 102 assertEquals(2, mListView.getChildCount()); 105 assertEquals(topOfPeekingNext - (mListView.getMaxScrollAmount()), next.getTop()); 118 assertEquals("should be at next item" [all...] |
ListOfShortTallShortTest.java | 50 assertEquals("selection should have moved to tall item below", 52 assertEquals("should not have scrolled; top should be the same.", 63 assertEquals("couldn't get to 3rd item", 67 assertEquals("should only be two items on screen", 69 assertEquals("selected item should be last item on screen", 74 assertEquals("should have moved selection to tall item above", 76 assertEquals("should not have scrolled, top should be the same",
|
/cts/tests/tests/content/src/android/content/res/cts/ |
ResourceNameTest.java | 32 assertEquals("com.android.cts.stub:configVarying/simple", fullName); 35 assertEquals("com.android.cts.stub", packageName); 38 assertEquals("configVarying", typeName); 41 assertEquals("simple", entryName); 50 assertEquals(R.configVarying.simple, resid); 54 assertEquals(R.configVarying.simple, resid); 58 assertEquals(R.configVarying.simple, resid);
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
ColorTest.java | 41 assertEquals(0xff, Color.alpha(Color.RED)); 42 assertEquals(0xff, Color.alpha(Color.YELLOW)); 52 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); 53 assertEquals(Color.YELLOW, Color.argb(0xff, 0xff, 0xff, 0x00)); 62 assertEquals(0x00, Color.blue(Color.RED)); 63 assertEquals(0x00, Color.blue(Color.YELLOW)); 72 assertEquals(0x00, Color.green(Color.RED)); 73 assertEquals(0xff, Color.green(Color.GREEN)); 100 assertEquals(Color.RED, Color.HSVToColor(hsv)); 127 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)) [all...] |
/cts/tests/tests/util/src/android/util/cts/ |
XmlTest.java | 113 assertEquals(STR_SET_DOCUMENT_LOCATOR, dc.mVec.elementAt(0)); 114 assertEquals(STR_START_DOCUMENT, dc.mVec.elementAt(1)); 115 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(2)); 116 assertEquals(TAG_TEST, dc.mVec.elementAt(3)); 118 assertEquals(STR_0_NUMBER, dc.mVec.elementAt(5)); 119 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(6)); 120 assertEquals(TAG_SON, dc.mVec.elementAt(7)); 122 assertEquals(STR_1_NUMBER, dc.mVec.elementAt(9)); 123 assertEquals(ATT_NAME, dc.mVec.elementAt(10)); 124 assertEquals(STR_ABC, dc.mVec.elementAt(11)) [all...] |
/cts/tools/dx-tests/src/dxc/junit/opcodes/i2f/ |
Test_i2f.java | 30 assertEquals(123456f, t.run(123456), 0f); 38 assertEquals(1f, t.run(1), 0f); 46 assertEquals(-1f, t.run(-1), 0f); 54 assertEquals(3.356444E7f, t.run(33564439), 0f); 62 assertEquals(0f, t.run(0), 0f); 70 assertEquals(2147483650f, t.run(Integer.MAX_VALUE), 0f); 78 assertEquals(-2147483650f, t.run(Integer.MIN_VALUE), 0f);
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/l2i/ |
Test_l2i.java | 30 assertEquals(0xFFEEDDCC, t.run(0xAAAAFFEEDDCCl)); 38 assertEquals(-123456789, t.run(-123456789l)); 46 assertEquals(1, t.run(1l)); 54 assertEquals(-1, t.run(-1l)); 62 assertEquals(-1, t.run(Long.MAX_VALUE)); 70 assertEquals(0, t.run(Long.MIN_VALUE)); 78 assertEquals(0, t.run(0l));
|
/cts/tools/vm-tests/src/dot/junit/opcodes/long_to_int/ |
Test_long_to_int.java | 30 assertEquals(0xFFEEDDCC, t.run(0xAAAAFFEEDDCCl)); 38 assertEquals(-123456789, t.run(-123456789l)); 46 assertEquals(1, t.run(1l)); 54 assertEquals(-1, t.run(-1l)); 74 assertEquals(-1, t.run(Long.MAX_VALUE)); 82 assertEquals(0, t.run(Long.MIN_VALUE)); 90 assertEquals(0, t.run(0l));
|
/dalvik/libcore/luni/src/test/java/tests/api/java/io/ |
LineNumberReaderTest.java | 48 assertEquals("Failed to create reader", 0, lnr.getLineNumber()); 63 assertEquals("Failed to create reader", 0, lnr.getLineNumber()); 78 assertEquals("Returned incorrect line number--expected 0, got ", 0, lnr 131 assertEquals("Test 1: Read returned incorrect character;", 134 assertEquals("Test 2: Read failed to increase the line number;", 160 assertEquals("Test 2: Read failed to inc lineNumber", 216 assertEquals("Returned incorrect line number", 0, lnr.getLineNumber()); 220 assertEquals("Test 1: Returned incorrect string;", "1", line); 243 assertEquals("Test 1: Returned incorrect line number;", 250 assertEquals("Test 2: Failed to reset reader", "0", line) [all...] |
/frameworks/base/core/tests/coretests/src/android/view/ |
ViewGroupAttributesTest.java | 51 assertEquals("expected ViewGroup.FOCUS_BEFORE_DESCENDANTS to be default", 60 assertEquals(ViewGroup.FOCUS_AFTER_DESCENDANTS, mViewGroup.getDescendantFocusability()); 63 assertEquals(ViewGroup.FOCUS_BLOCK_DESCENDANTS, mViewGroup.getDescendantFocusability()); 66 assertEquals(ViewGroup.FOCUS_BEFORE_DESCENDANTS, mViewGroup.getDescendantFocusability()); 70 assertEquals(msg, isAnimationCachEnabled, mViewGroup.isAnimationCacheEnabled()); 71 assertEquals(msg, isAlwaysDrawnWithCacheEnabled, mViewGroup.isAlwaysDrawnWithCacheEnabled()); 72 assertEquals(msg, isChildrenDrawnWithCacheEnabled, mViewGroup.isChildrenDrawnWithCacheEnabled());
|
/frameworks/base/core/tests/coretests/src/android/view/accessibility/ |
RecycleAccessibilityEventTest.java | 66 assertEquals(0, first.getText().size()); 69 assertEquals(0, first.getItemCount()); 70 assertEquals(AccessibilityEvent.INVALID_POSITION, first.getCurrentItemIndex()); 73 assertEquals(0, first.getFromIndex()); 74 assertEquals(0, first.getAddedCount()); 75 assertEquals(0, first.getRemovedCount()); 79 assertEquals(first, second);
|
/frameworks/base/core/tests/coretests/src/android/widget/gridview/touch/ |
GridTouchStackFromBottomManyTest.java | 50 assertEquals(mGridView.getAdapter().getCount() - 1, mGridView.getSelectedItemPosition()); 59 assertEquals("Selection still available after touch", -1, 64 assertEquals("Item zero not the first child in the grid", 0, firstChild.getId()); 66 assertEquals("Item zero not at the top of the grid", 75 assertEquals("Selection still available after touch", -1, 80 assertEquals("Grid is not scrolled to the bottom", mGridView.getAdapter().getCount() - 1, 83 assertEquals("Last item is not touching the bottom edge",
|
/frameworks/base/core/tests/coretests/src/android/widget/listview/touch/ |
ListTouchBottomGravityTest.java | 53 assertEquals(mListView.getAdapter().getCount() - 1, mListView.getSelectedItemPosition()); 65 assertEquals("Selection still available after touch", -1, 68 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, 71 assertEquals("Last item is not touching the bottom edge", 84 assertEquals("Selection still available after touch", -1, 87 assertEquals("List is not scrolled to the bottom", mListView.getAdapter().getCount() - 1, 90 assertEquals("Last item is not touching the bottom edge",
|
ListTouchTest.java | 52 assertEquals(0, mListView.getSelectedItemPosition()); 62 assertEquals("Selection still available after touch", -1, 67 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); 69 assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop(), 80 assertEquals("Selection still available after touch", -1, 85 assertEquals("Item zero not the first child in the list", 0, firstChild.getId()); 87 assertEquals("Item zero not at the top of the list", mListView.getListPaddingTop(),
|
/frameworks/base/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
TelephonyUtilsTest.java | 33 assertEquals(0, rm.getRetryCount()); 36 assertEquals(0, rm.getRetryCount()); 37 assertEquals(0, rm.getRetryTimer()); 42 assertEquals(0, rm.getRetryCount()); 43 assertEquals(0, rm.getRetryTimer()); 48 assertEquals(0, rm.getRetryCount()); 49 assertEquals(0, rm.getRetryTimer()); 54 assertEquals(0, rm.getRetryCount()); 55 assertEquals(0, rm.getRetryTimer()); 60 assertEquals(0, rm.getRetryCount()) [all...] |
/sdk/eclipse/plugins/com.android.ide.eclipse.tests/unittests/com/android/ide/eclipse/adt/internal/editors/resources/configurations/ |
RegionQualifierTest.java | 45 assertEquals(true, rq.checkAndSet("rUS", config));//$NON-NLS-1$ 47 assertEquals("US", config.getRegionQualifier().getValue()); //$NON-NLS-1$ 48 assertEquals("rUS", config.getRegionQualifier().toString()); //$NON-NLS-1$ 52 assertEquals(false, rq.checkAndSet("", config));//$NON-NLS-1$ 53 assertEquals(false, rq.checkAndSet("rus", config));//$NON-NLS-1$ 54 assertEquals(false, rq.checkAndSet("rUSA", config));//$NON-NLS-1$ 55 assertEquals(false, rq.checkAndSet("abc", config));//$NON-NLS-1$
|
/cts/tests/tests/database/src/android/database/cts/ |
MatrixCursor_RowBuilderTest.java | 44 assertEquals(0, cursor.getCount()); 47 assertEquals(1, cursor.getCount()); 55 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); 61 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); 63 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); 68 assertEquals(Integer.MIN_VALUE, cursor.getInt(COLUMN0_INDEX)); 70 assertEquals(0, cursor.getInt(COLUMN1_INDEX)); 72 assertEquals(Integer.MAX_VALUE, cursor.getInt(COLUMN2_INDEX)); 82 assertEquals(2, cursor.getCount());
|
/cts/tests/tests/provider/src/android/provider/cts/ |
MediaStore_Audio_MediaTest.java | 103 assertEquals(1, c.getCount()); 107 assertEquals(expected, c.getString(c.getColumnIndex(Media.DATA))); 109 assertEquals(Audio1.DATE_MODIFIED, c.getLong(c.getColumnIndex(Media.DATE_MODIFIED))); 110 assertEquals(Audio1.FILE_NAME, c.getString(c.getColumnIndex(Media.DISPLAY_NAME))); 111 assertEquals(Audio1.MIME_TYPE, c.getString(c.getColumnIndex(Media.MIME_TYPE))); 112 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); 113 assertEquals(Audio1.TITLE, c.getString(c.getColumnIndex(Media.TITLE))); 114 assertEquals(Audio1.ALBUM, c.getString(c.getColumnIndex(Media.ALBUM))); 119 assertEquals(Audio1.ARTIST, c.getString(c.getColumnIndex(Media.ARTIST))); 124 assertEquals(Audio1.COMPOSER, c.getString(c.getColumnIndex(Media.COMPOSER))) [all...] |
/cts/tools/dx-tests/src/dxc/junit/opcodes/d2i/ |
Test_d2i.java | 30 assertEquals(2, t.run(2.9999999d)); 38 assertEquals(1, t.run(1d)); 46 assertEquals(-1, t.run(-1d)); 54 assertEquals(0, t.run(-0d)); 62 assertEquals(Integer.MAX_VALUE, t.run(Double.MAX_VALUE)); 70 assertEquals(0, t.run(Double.MIN_VALUE)); 78 assertEquals(0, t.run(Double.NaN)); 86 assertEquals(Integer.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); 94 assertEquals(Integer.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY));
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/d2l/ |
Test_d2l.java | 30 assertEquals(2l, t.run(2.9999999d)); 38 assertEquals(1l, t.run(1d)); 46 assertEquals(-1l, t.run(-1d)); 54 assertEquals(Long.MAX_VALUE, t.run(Double.MAX_VALUE)); 62 assertEquals(0, t.run(Double.MIN_VALUE)); 70 assertEquals(0l, t.run(-0)); 78 assertEquals(0l, t.run(Double.NaN)); 86 assertEquals(Long.MAX_VALUE, t.run(Double.POSITIVE_INFINITY)); 94 assertEquals(Long.MIN_VALUE, t.run(Double.NEGATIVE_INFINITY));
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/dneg/ |
Test_dneg.java | 30 assertEquals(-1d, t.run(1d)); 38 assertEquals(1d, t.run(-1d)); 46 assertEquals(-0d, t.run(+0d)); 54 assertEquals(2.7d, t.run(-2.7d)); 63 assertEquals(Double.NaN, t.run(Double.NaN)); 71 assertEquals(Double.POSITIVE_INFINITY, t.run(Double.NEGATIVE_INFINITY)); 79 assertEquals(Double.NEGATIVE_INFINITY, t.run(Double.POSITIVE_INFINITY)); 87 assertEquals(-1.7976931348623157E308d, t.run(Double.MAX_VALUE)); 95 assertEquals(-4.9E-324d, t.run(Double.MIN_VALUE));
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/f2i/ |
Test_f2i.java | 30 assertEquals(2, t.run(2.999999f)); 38 assertEquals(1, t.run(1f)); 46 assertEquals(-1, t.run(-1f)); 54 assertEquals(0, t.run(-0f)); 62 assertEquals(Integer.MAX_VALUE, t.run(Float.MAX_VALUE)); 70 assertEquals(0, t.run(Float.MIN_VALUE)); 78 assertEquals(0, t.run(Float.NaN)); 86 assertEquals(Integer.MAX_VALUE, t.run(Float.POSITIVE_INFINITY)); 94 assertEquals(Integer.MIN_VALUE, t.run(Float.NEGATIVE_INFINITY));
|
/cts/tools/dx-tests/src/dxc/junit/opcodes/f2l/ |
Test_f2l.java | 30 assertEquals(2l, t.run(2.999999f)); 38 assertEquals(1l, t.run(1)); 46 assertEquals(-1l, t.run(-1)); 54 assertEquals(Long.MAX_VALUE, t.run(Float.MAX_VALUE)); 62 assertEquals(0, t.run(Float.MIN_VALUE)); 70 assertEquals(0l, t.run(0)); 78 assertEquals(0l, t.run(Float.NaN)); 86 assertEquals(Long.MAX_VALUE, t.run(Float.POSITIVE_INFINITY)); 94 assertEquals(Long.MIN_VALUE, t.run(Float.NEGATIVE_INFINITY));
|