| /cts/tests/tests/graphics/src/android/graphics/cts/ |
| D | ColorMatrixTest.java | 69 assertEquals(mSrc[i], fA1[i]); in testColorMatrix() 78 assertEquals(fA1[i], fA2[i]); in testColorMatrix() 101 assertEquals(20, ret.length); in testReset() 105 assertEquals(1.0f, ret[i]); in testReset() 109 assertEquals(0.0f, ret[i]); in testReset() 139 assertEquals(20, ret.length); in testSet1() 142 assertEquals((float) i, ret[19 - i]); in testSet1() 172 assertEquals(20, ret.length); in testSet2() 175 assertEquals((float) i, ret[19 - i]); in testSet2() 202 assertEquals(-1.0f, ret[6]); in testSetRotate() [all …]
|
| D | RegionIteratorTest.java | 56 assertEquals(1, rect.left); in testNext() 57 assertEquals(1, rect.top); in testNext() 58 assertEquals(10, rect.right); in testNext() 59 assertEquals(10, rect.bottom); in testNext() 62 assertEquals(1, rect.left); in testNext() 63 assertEquals(1, rect.top); in testNext() 64 assertEquals(1, rect.right); in testNext() 65 assertEquals(1, rect.bottom); in testNext() 73 assertEquals(1, rect.left); in testNext() 74 assertEquals(1, rect.top); in testNext() [all …]
|
| D | RectFTest.java | 92 assertEquals(10.0f, mRectF.left); in testSort() 93 assertEquals(10.0f, mRectF.top); in testSort() 94 assertEquals(5.0f, mRectF.right); in testSort() 95 assertEquals(5.0f, mRectF.bottom); in testSort() 98 assertEquals(5.0f, mRectF.left); in testSort() 99 assertEquals(5.0f, mRectF.top); in testSort() 100 assertEquals(10.0f, mRectF.right); in testSort() 101 assertEquals(10.0f, mRectF.bottom); in testSort() 114 assertEquals(1.0f, mRectF.left); in testSet1() 115 assertEquals(2.0f, mRectF.top); in testSet1() [all …]
|
| D | RectTest.java | 80 assertEquals(1, mRect.left); in testSet1() 81 assertEquals(2, mRect.top); in testSet1() 82 assertEquals(3, mRect.right); in testSet1() 83 assertEquals(4, mRect.bottom); in testSet1() 97 assertEquals(1, mRect.left); in testSet2() 98 assertEquals(2, mRect.top); in testSet2() 99 assertEquals(3, mRect.right); in testSet2() 100 assertEquals(4, mRect.bottom); in testSet2() 112 assertEquals(0, mRect.left); in testIntersects1() 113 assertEquals(0, mRect.top); in testIntersects1() [all …]
|
| D | PaintTest.java | 86 assertEquals(1, p.breakText(chars, i, 1, 20.0f, f)); in testBreakText1() 87 assertEquals(width[i], f[0]); in testBreakText1() 92 assertEquals(4, p.breakText(chars, indexH, 4, 30.0f, f)); in testBreakText1() 93 assertEquals(22.0f, f[0]); in testBreakText1() 94 assertEquals(3, p.breakText(chars, indexH, 3, 30.0f, f)); in testBreakText1() 95 assertEquals(15.0f, f[0]); in testBreakText1() 96 assertEquals(2, p.breakText(chars, indexH, 2, 30.0f, f)); in testBreakText1() 97 assertEquals(12.0f, f[0]); in testBreakText1() 98 assertEquals(1, p.breakText(chars, indexH, 1, 30.0f, f)); in testBreakText1() 99 assertEquals(8.0f, f[0]); in testBreakText1() [all …]
|
| D | CameraTest.java | 87 assertEquals(0.22291021f, f[0]); in testTranslate() 88 assertEquals(0.0f, f[1]); in testTranslate() 89 assertEquals(2.2291021f, f[2]); in testTranslate() 90 assertEquals(0.0f, f[3]); in testTranslate() 91 assertEquals(0.22291021f, f[4]); in testTranslate() 92 assertEquals(-6.241486f, f[5]); in testTranslate() 93 assertEquals(0.0f, f[6]); in testTranslate() 94 assertEquals(0.0f, f[7]); in testTranslate() 95 assertEquals(1.0f, f[8]); in testTranslate() 121 assertEquals(1.0f, f[0]); in testRotateX() [all …]
|
| D | ColorTest.java | 41 assertEquals(0xff, Color.alpha(Color.RED)); in testAlpha() 42 assertEquals(0xff, Color.alpha(Color.YELLOW)); in testAlpha() 52 assertEquals(Color.RED, Color.argb(0xff, 0xff, 0x00, 0x00)); in testArgb() 53 assertEquals(Color.YELLOW, Color.argb(0xff, 0xff, 0xff, 0x00)); in testArgb() 62 assertEquals(0x00, Color.blue(Color.RED)); in testBlue() 63 assertEquals(0x00, Color.blue(Color.YELLOW)); in testBlue() 72 assertEquals(0x00, Color.green(Color.RED)); in testGreen() 73 assertEquals(0xff, Color.green(Color.GREEN)); in testGreen() 100 assertEquals(Color.RED, Color.HSVToColor(hsv)); in testHSVToColor1() 127 assertEquals(Color.RED, Color.HSVToColor(0xff, hsv)); in testHSVToColor2() [all …]
|
| D | PorterDuff_ModeTest.java | 35 assertEquals(Mode.CLEAR, Mode.valueOf("CLEAR")); in testValueOf() 36 assertEquals(Mode.SRC, Mode.valueOf("SRC")); in testValueOf() 37 assertEquals(Mode.DST, Mode.valueOf("DST")); in testValueOf() 38 assertEquals(Mode.SRC_OVER, Mode.valueOf("SRC_OVER")); in testValueOf() 39 assertEquals(Mode.DST_OVER, Mode.valueOf("DST_OVER")); in testValueOf() 40 assertEquals(Mode.SRC_IN, Mode.valueOf("SRC_IN")); in testValueOf() 41 assertEquals(Mode.DST_IN, Mode.valueOf("DST_IN")); in testValueOf() 42 assertEquals(Mode.SRC_OUT, Mode.valueOf("SRC_OUT")); in testValueOf() 43 assertEquals(Mode.DST_OUT, Mode.valueOf("DST_OUT")); in testValueOf() 44 assertEquals(Mode.SRC_ATOP, Mode.valueOf("SRC_ATOP")); in testValueOf() [all …]
|
| /cts/tests/tests/view/src/android/view/cts/ |
| D | GravityTest.java | 73 assertEquals(19, mOutRect.left); in testApply() 74 assertEquals(21, mOutRect.right); in testApply() 75 assertEquals(20, mOutRect.top); in testApply() 76 assertEquals(23, mOutRect.bottom); in testApply() 78 assertEquals(24, mOutRect.left); in testApply() 79 assertEquals(26, mOutRect.right); in testApply() 80 assertEquals(25, mOutRect.top); in testApply() 81 assertEquals(28, mOutRect.bottom); in testApply() 84 assertEquals(19, mOutRect.left); in testApply() 85 assertEquals(21, mOutRect.right); in testApply() [all …]
|
| D | MotionEventTest.java | 152 assertEquals(mDownTime, mMotionEvent1.getDownTime()); in testObtain1() 153 assertEquals(mEventTime, mMotionEvent1.getEventTime()); in testObtain1() 154 assertEquals(MotionEvent.ACTION_DOWN, mMotionEvent1.getAction()); in testObtain1() 155 assertEquals(X_3F, mMotionEvent1.getX(), DELTA); in testObtain1() 156 assertEquals(Y_4F, mMotionEvent1.getY(), DELTA); in testObtain1() 157 assertEquals(X_3F, mMotionEvent1.getRawX(), DELTA); in testObtain1() 158 assertEquals(Y_4F, mMotionEvent1.getRawY(), DELTA); in testObtain1() 159 assertEquals(META_STATE, mMotionEvent1.getMetaState()); in testObtain1() 160 assertEquals(0, mMotionEvent1.getDeviceId()); in testObtain1() 161 assertEquals(0, mMotionEvent1.getEdgeFlags()); in testObtain1() [all …]
|
| /cts/tests/tests/database/src/android/database/cts/ |
| D | MatrixCursorTest.java | 85 assertEquals(0, mMatrixCursor.getCount()); in testNewRow() 88 assertEquals(1, mMatrixCursor.getCount()); in testNewRow() 96 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 102 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 104 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 109 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 111 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 113 assertEquals(Integer.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testNewRow() 123 assertEquals(2, mMatrixCursor.getCount()); in testNewRow() 144 assertEquals(0, mMatrixCursor.getCount()); in testAddRow() [all …]
|
| /cts/tests/tests/util/src/android/util/cts/ |
| D | XmlTest.java | 113 assertEquals(STR_SET_DOCUMENT_LOCATOR, dc.mVec.elementAt(0)); in testParseStringContentHandler() 114 assertEquals(STR_START_DOCUMENT, dc.mVec.elementAt(1)); in testParseStringContentHandler() 115 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(2)); in testParseStringContentHandler() 116 assertEquals(TAG_TEST, dc.mVec.elementAt(3)); in testParseStringContentHandler() 117 assertEquals(STR_EMPTY, dc.mVec.elementAt(4)); in testParseStringContentHandler() 118 assertEquals(STR_0_NUMBER, dc.mVec.elementAt(5)); in testParseStringContentHandler() 119 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(6)); in testParseStringContentHandler() 120 assertEquals(TAG_SON, dc.mVec.elementAt(7)); in testParseStringContentHandler() 121 assertEquals(STR_EMPTY, dc.mVec.elementAt(8)); in testParseStringContentHandler() 122 assertEquals(STR_1_NUMBER, dc.mVec.elementAt(9)); in testParseStringContentHandler() [all …]
|
| D | XmlEncodingTest.java | 97 assertEquals(STR_SET_DOCUMENT_LOCATOR, dc.mVec.elementAt(0)); in testValueOf() 98 assertEquals(STR_START_DOCUMENT, dc.mVec.elementAt(1)); in testValueOf() 99 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(2)); in testValueOf() 100 assertEquals(TAG_TEST, dc.mVec.elementAt(3)); in testValueOf() 101 assertEquals(STR_EMPTY, dc.mVec.elementAt(4)); in testValueOf() 102 assertEquals(STR_0_NUMBER, dc.mVec.elementAt(5)); in testValueOf() 103 assertEquals(STR_START_ELEMENT, dc.mVec.elementAt(6)); in testValueOf() 104 assertEquals(TAG_SON, dc.mVec.elementAt(7)); in testValueOf() 105 assertEquals(STR_EMPTY, dc.mVec.elementAt(8)); in testValueOf() 106 assertEquals(STR_1_NUMBER, dc.mVec.elementAt(9)); in testValueOf() [all …]
|
| /cts/tests/tests/net/src/android/net/cts/ |
| D | NetworkInfo_DetailedStateTest.java | 35 assertEquals(DetailedState.AUTHENTICATING, DetailedState.valueOf("AUTHENTICATING")); in testValueOf() 36 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED")); in testValueOf() 37 assertEquals(DetailedState.CONNECTING, DetailedState.valueOf("CONNECTING")); in testValueOf() 38 assertEquals(DetailedState.DISCONNECTED, DetailedState.valueOf("DISCONNECTED")); in testValueOf() 39 assertEquals(DetailedState.DISCONNECTING, DetailedState.valueOf("DISCONNECTING")); in testValueOf() 40 assertEquals(DetailedState.FAILED, DetailedState.valueOf("FAILED")); in testValueOf() 41 assertEquals(DetailedState.IDLE, DetailedState.valueOf("IDLE")); in testValueOf() 42 assertEquals(DetailedState.OBTAINING_IPADDR, DetailedState.valueOf("OBTAINING_IPADDR")); in testValueOf() 43 assertEquals(DetailedState.SCANNING, DetailedState.valueOf("SCANNING")); in testValueOf() 44 assertEquals(DetailedState.SUSPENDED, DetailedState.valueOf("SUSPENDED")); in testValueOf() [all …]
|
| D | NetworkInfo_StateTest.java | 35 assertEquals(State.CONNECTED, State.valueOf("CONNECTED")); in testValueOf() 36 assertEquals(State.CONNECTING, State.valueOf("CONNECTING")); in testValueOf() 37 assertEquals(State.DISCONNECTED, State.valueOf("DISCONNECTED")); in testValueOf() 38 assertEquals(State.DISCONNECTING, State.valueOf("DISCONNECTING")); in testValueOf() 39 assertEquals(State.SUSPENDED, State.valueOf("SUSPENDED")); in testValueOf() 40 assertEquals(State.UNKNOWN, State.valueOf("UNKNOWN")); in testValueOf() 51 assertEquals(6, expected.length); in testValues() 52 assertEquals(State.CONNECTING, expected[0]); in testValues() 53 assertEquals(State.CONNECTED, expected[1]); in testValues() 54 assertEquals(State.SUSPENDED, expected[2]); in testValues() [all …]
|
| /cts/tools/vm-tests/src/dot/junit/opcodes/rsub_int_lit8/ |
| D | Test_rsub_int_lit8.java | 37 assertEquals("Subtest_1 is failed", -4, t.run(8)); in testN1() 38 assertEquals("Subtest_2 is failed",45, t.run1(15)); in testN1() 39 assertEquals("Subtest_3 is failed",0, t.run2(20)); in testN1() 40 assertEquals("Subtest_4 is failed",-35, t.run3(10)); in testN1() 41 assertEquals("Subtest_5 is failed",-20, t.run4(-50)); in testN1() 42 assertEquals("Subtest_6 is failed",20, t.run5(-70)); in testN1() 50 assertEquals("Subtest_1 is failed",123, t.run(0)); in testN2() 51 assertEquals("Subtest_2 is failed",-123, t.run1(0)); in testN2() 52 assertEquals("Subtest_3 is failed",-15, t.run2(15)); in testN2() 53 assertEquals("Subtest_4 is failed",85, t.run2(-85)); in testN2() [all …]
|
| /cts/tools/vm-tests/src/dot/junit/opcodes/rsub_int/ |
| D | Test_rsub_int.java | 37 assertEquals("Subtest_1 is failed", -4, t.run(8)); in testN1() 38 assertEquals("Subtest_2 is failed",45, t.run1(15)); in testN1() 39 assertEquals("Subtest_3 is failed",0, t.run2(20)); in testN1() 40 assertEquals("Subtest_4 is failed",-35, t.run3(10)); in testN1() 41 assertEquals("Subtest_5 is failed",-20, t.run4(-50)); in testN1() 42 assertEquals("Subtest_6 is failed",20, t.run5(-70)); in testN1() 50 assertEquals("Subtest_1 is failed",255, t.run(0)); in testN2() 51 assertEquals("Subtest_2 is failed",-32768, t.run1(0)); in testN2() 52 assertEquals("Subtest_3 is failed",-15, t.run2(15)); in testN2() 53 assertEquals("Subtest_4 is failed",123, t.run2(-123)); in testN2() [all …]
|
| /cts/tests/tests/text/src/android/text/cts/ |
| D | SelectionTest.java | 39 assertEquals(-1, Selection.getSelectionStart(builder)); in testGetSelectionStart() 42 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 45 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 48 assertEquals(5, Selection.getSelectionStart(builder)); in testGetSelectionStart() 50 assertEquals(-1, Selection.getSelectionStart(null)); in testGetSelectionStart() 61 assertEquals(-1, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 64 assertEquals(10, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 67 assertEquals(8, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 70 assertEquals(8, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 72 assertEquals(-1, Selection.getSelectionStart(null)); in testGetSelectionEnd() [all …]
|
| D | TextUtilsTest.java | 100 assertEquals("", in testCommaEllipsize() 103 assertEquals("long, 3 plus", in testCommaEllipsize() 108 assertEquals("long, string, 2 more", in testCommaEllipsize() 113 assertEquals("long, string, to, truncate", in testCommaEllipsize() 117 assertEquals("long, string, to, more 1", TextUtils.commaEllipsize( in testCommaEllipsize() 121 assertEquals("", TextUtils.commaEllipsize(text, p, -1f, "plus 1", "%d plus").toString()); in testCommaEllipsize() 123 assertEquals(text, TextUtils.commaEllipsize( in testCommaEllipsize() 126 assertEquals("long, string, to, null", TextUtils.commaEllipsize( in testCommaEllipsize() 164 assertEquals("", TextUtils.concat().toString()); in testConcat() 166 assertEquals("first", TextUtils.concat("first").toString()); in testConcat() [all …]
|
| /cts/tests/tests/view/src/android/view/animation/cts/ |
| D | CycleInterpolatorTest.java | 85 assertEquals(CYCLE_ALPHA_DURATION, anim.getDuration()); in testCycyleInterpolator() 99 assertEquals(0.0f, alpha1, ALPHA_DELTA); in testCycyleInterpolator() 103 assertEquals(1.0f, alpha2, ALPHA_DELTA); in testCycyleInterpolator() 110 assertEquals(-1.0f, alpha4, ALPHA_DELTA); in testCycyleInterpolator() 114 assertEquals(0.0f, alpha5, ALPHA_DELTA); in testCycyleInterpolator() 121 assertEquals(alpha1, alpha3, ALPHA_DELTA); in testCycyleInterpolator() 122 assertEquals(alpha3, alpha5, ALPHA_DELTA); in testCycyleInterpolator() 123 assertEquals(alpha2, -alpha4, ALPHA_DELTA); in testCycyleInterpolator() 124 assertEquals(delta1, -delta2, ALPHA_DELTA); in testCycyleInterpolator() 125 assertEquals(delta2, delta3, ALPHA_DELTA); in testCycyleInterpolator() [all …]
|
| /cts/tests/tests/provider/src/android/provider/cts/ |
| D | MediaStore_AudioTest.java | 43 assertEquals(mKeyForBeatles, Audio.keyFor("[beatles]")); in testKeyFor() 44 assertEquals(mKeyForBeatles, Audio.keyFor("(beatles)")); in testKeyFor() 45 assertEquals(mKeyForBeatles, Audio.keyFor("beatles!")); in testKeyFor() 46 assertEquals(mKeyForBeatles, Audio.keyFor("beatles?")); in testKeyFor() 47 assertEquals(mKeyForBeatles, Audio.keyFor("'beatles'")); in testKeyFor() 48 assertEquals(mKeyForBeatles, Audio.keyFor("beatles.")); in testKeyFor() 49 assertEquals(mKeyForBeatles, Audio.keyFor("beatles,")); in testKeyFor() 51 assertEquals(mKeyForBeatles, Audio.keyFor(" beatles ")); in testKeyFor() 53 assertEquals(mKeyForBeatles, Audio.keyFor("BEATLES")); in testKeyFor() 55 assertEquals(mKeyForBeatles, Audio.keyFor("the beatles")); in testKeyFor() [all …]
|
| /cts/tools/host/test/com/android/cts/ |
| D | TestSessionBuilderTests.java | 111 assertEquals(1, ts.getNumOfRequiredDevices()); in testBuildSimpleSession() 114 assertEquals(1, tsl.getTestPackages().size()); in testBuildSimpleSession() 117 assertEquals(1, testPackage.getTestSuites().size()); in testBuildSimpleSession() 118 assertEquals(mTestPackageBinaryName, testPackage.getAppBinaryName()); in testBuildSimpleSession() 119 assertEquals(appPackageName, testPackage.getAppPackageName()); in testBuildSimpleSession() 120 assertEquals("1.0", testPackage.getVersion()); in testBuildSimpleSession() 121 assertEquals("Android 1.0", testPackage.getAndroidVersion()); in testBuildSimpleSession() 122 assertEquals(runner, testPackage.getInstrumentationRunner()); in testBuildSimpleSession() 125 assertEquals(1, testSuite.getTestCases().size()); in testBuildSimpleSession() 126 assertEquals(suiteName, testSuite.getFullName()); in testBuildSimpleSession() [all …]
|
| /cts/tests/tests/text/src/android/text/method/cts/ |
| D | DigitsKeyListenerTest.java | 102 assertEquals(destString, dest.toString()); in testFilter1() 105 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 107 assertEquals(destString, dest.toString()); in testFilter1() 110 assertEquals("123", (digitsKeyListener.filter(source, 0, source.length(), in testFilter1() 112 assertEquals(destString, dest.toString()); in testFilter1() 119 assertEquals("123", filtered.toString()); in testFilter1() 120 assertEquals(Spanned.SPAN_POINT_POINT, filtered.getSpanFlags(what)); in testFilter1() 121 assertEquals(0, filtered.getSpanStart(what)); in testFilter1() 122 assertEquals("123".length(), filtered.getSpanEnd(what)); in testFilter1() 125 assertEquals(destString, dest.toString()); in testFilter1() [all …]
|
| /cts/tests/tests/widget/src/android/widget/cts/ |
| D | RadioGroup_LayoutParamsTest.java | 97 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor() 98 assertEquals(Integer.MAX_VALUE, mLayoutParams.height); in testConstructor() 99 assertEquals(0.0f, mLayoutParams.weight); in testConstructor() 102 assertEquals(Integer.MAX_VALUE, mLayoutParams.width); in testConstructor() 103 assertEquals(Integer.MIN_VALUE, mLayoutParams.height); in testConstructor() 104 assertEquals(0.0f, mLayoutParams.weight); in testConstructor() 108 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor() 109 assertEquals(Integer.MAX_VALUE, mLayoutParams.height); in testConstructor() 110 assertEquals(Float.MAX_VALUE, mLayoutParams.weight); in testConstructor() 114 assertEquals(Integer.MIN_VALUE, mLayoutParams.width); in testConstructor() [all …]
|
| /cts/tests/tests/telephony/src/android/telephony/cts/ |
| D | NeighboringCellInfoTest.java | 107 assertEquals(NETWORK_TYPE_EDGE, nc.getNetworkType()); in testNeighboringCellInfo() 108 assertEquals(rssi, nc.getRssi()); in testNeighboringCellInfo() 109 assertEquals(0xfff, nc.getLac()); in testNeighboringCellInfo() 110 assertEquals(0xffff, nc.getCid()); in testNeighboringCellInfo() 111 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getPsc()); in testNeighboringCellInfo() 114 assertEquals(NETWORK_TYPE_UMTS, nc.getNetworkType()); in testNeighboringCellInfo() 115 assertEquals(rssi, nc.getRssi()); in testNeighboringCellInfo() 116 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getCid()); in testNeighboringCellInfo() 117 assertEquals(NeighboringCellInfo.UNKNOWN_CID, nc.getLac()); in testNeighboringCellInfo() 118 assertEquals(0x1ff, nc.getPsc()); in testNeighboringCellInfo() [all …]
|