/cts/hostsidetests/webkit/app/src/com/android/cts/webkit/ |
D | WebViewDeviceSideURLUtilTest.java | 19 import static org.junit.Assert.assertEquals; 64 assertEquals( in guessFileName_legacyBehavior() 70 assertEquals( in guessFileName_legacyBehavior() 76 assertEquals( in guessFileName_legacyBehavior() 82 assertEquals( in guessFileName_legacyBehavior() 87 assertEquals( in guessFileName_legacyBehavior() 92 assertEquals( in guessFileName_legacyBehavior() 98 assertEquals( in guessFileName_legacyBehavior() 104 assertEquals( in guessFileName_legacyBehavior() 110 assertEquals( in guessFileName_legacyBehavior() [all …]
|
/cts/hostsidetests/webkit/compatchangeapp/src/com/android/cts/webkit/compatchange/ |
D | WebViewDeviceSideURLUtilTest.java | 19 import static org.junit.Assert.assertEquals; 66 assertEquals( in guessFileName_legacyBehavior() 72 assertEquals( in guessFileName_legacyBehavior() 78 assertEquals( in guessFileName_legacyBehavior() 84 assertEquals( in guessFileName_legacyBehavior() 89 assertEquals( in guessFileName_legacyBehavior() 94 assertEquals( in guessFileName_legacyBehavior() 100 assertEquals( in guessFileName_legacyBehavior() 106 assertEquals( in guessFileName_legacyBehavior() 112 assertEquals( in guessFileName_legacyBehavior() [all …]
|
/cts/tests/tests/view/src/android/view/cts/ |
D | GravityTest.java | 19 import static org.junit.Assert.assertEquals; 65 assertEquals(19, mOutRect.left); in testApply() 66 assertEquals(21, mOutRect.right); in testApply() 67 assertEquals(20, mOutRect.top); in testApply() 68 assertEquals(23, mOutRect.bottom); in testApply() 70 assertEquals(24, mOutRect.left); in testApply() 71 assertEquals(26, mOutRect.right); in testApply() 72 assertEquals(25, mOutRect.top); in testApply() 73 assertEquals(28, mOutRect.bottom); in testApply() 75 assertEquals(19, mOutRect.left); in testApply() [all …]
|
D | MotionEventUtils.java | 19 import static org.junit.Assert.assertEquals; 58 assertEquals("Pointer ID should be the same", in verifyMatches() 60 assertEquals("Tool type should be the same", in verifyMatches() 65 assertEquals("Pointer ID should be the same", that.id, this.id); in verifyMatchesPointerProperties() 66 assertEquals("Tool type should be the same", that.toolType, this.toolType); in verifyMatchesPointerProperties() 137 assertEquals("X coordinates should be the same", that.getX(), this.x, DELTA); in verifyMatches() 138 assertEquals("X coordinates should be the same", in verifyMatches() 141 assertEquals("Y coordinates should be the same", that.getY(), this.y, DELTA); in verifyMatches() 142 assertEquals("Y coordinates should be the same", in verifyMatches() 145 assertEquals("Pressure should be the same", that.getPressure(), this.pressure, DELTA); in verifyMatches() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | RectFTest.java | 19 import static org.junit.Assert.assertEquals; 54 assertEquals(10.0f, mRectF.left, 0.0f); in testSort() 55 assertEquals(10.0f, mRectF.top, 0.0f); in testSort() 56 assertEquals(5.0f, mRectF.right, 0.0f); in testSort() 57 assertEquals(5.0f, mRectF.bottom, 0.0f); in testSort() 60 assertEquals(5.0f, mRectF.left, 0.0f); in testSort() 61 assertEquals(5.0f, mRectF.top, 0.0f); in testSort() 62 assertEquals(10.0f, mRectF.right, 0.0f); in testSort() 63 assertEquals(10.0f, mRectF.bottom, 0.0f); in testSort() 70 assertEquals(1.0f, mRectF.left, 0.0f); in testSet1() [all …]
|
D | RectTest.java | 19 import static org.junit.Assert.assertEquals; 53 assertEquals(1, mRect.left); in testSet1() 54 assertEquals(2, mRect.top); in testSet1() 55 assertEquals(3, mRect.right); in testSet1() 56 assertEquals(4, mRect.bottom); in testSet1() 64 assertEquals(1, mRect.left); in testSet2() 65 assertEquals(2, mRect.top); in testSet2() 66 assertEquals(3, mRect.right); in testSet2() 67 assertEquals(4, mRect.bottom); in testSet2() 74 assertEquals(0, mRect.left); in testIntersects1() [all …]
|
D | RegionIteratorTest.java | 19 import static org.junit.Assert.assertEquals; 55 assertEquals(1, rect.left); in testNext() 56 assertEquals(1, rect.top); in testNext() 57 assertEquals(10, rect.right); in testNext() 58 assertEquals(10, rect.bottom); in testNext() 61 assertEquals(1, rect.left); in testNext() 62 assertEquals(1, rect.top); in testNext() 63 assertEquals(1, rect.right); in testNext() 64 assertEquals(1, rect.bottom); in testNext() 72 assertEquals(1, rect.left); in testNext() [all …]
|
D | Color_ColorLongTest.java | 29 import static org.junit.Assert.assertEquals; 53 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f)), 0.01f); in testRed() 54 assertEquals(0.5f, red(pack(0.5f, 0.0f, 1.0f, 1.0f, p3)), 0.01f); in testRed() 61 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testGreen() 62 assertEquals(0.7f, green(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testGreen() 69 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f)), 0.01f); in testBlue() 70 assertEquals(1.0f, blue(pack(0.5f, 0.7f, 1.0f, 1.0f, p3)), 0.01f); in testBlue() 77 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f)), 0.01f); in testAlpha() 78 assertEquals(0.25f, alpha(pack(0.5f, 0.7f, 1.0f, 0.25f, p3)), 0.01f); in testAlpha() 86 assertEquals(srgb, colorSpace(pack(0.5f, 0.7f, 1.0f))); in testColorSpace() [all …]
|
D | PathIteratorTest.java | 27 import static org.junit.Assert.assertEquals; 72 assertEquals("Empty path should have no verbs", in testEmptyPath() 78 assertEquals("Empty path should have no verbs", in testEmptyPath() 91 assertEquals(PathIterator.VERB_MOVE, iterator.next(mPoints, 0)); in testMove() 92 assertEquals(PathIterator.VERB_DONE, iterator.next(mPoints, 0)); in testMove() 96 assertEquals(PathIterator.VERB_MOVE, iterator.next().getVerb()); in testMove() 97 assertEquals(PathIterator.VERB_DONE, iterator.next().getVerb()); in testMove() 112 assertEquals(PathIterator.VERB_MOVE, verb); in testDoneDone() 115 assertEquals(PathIterator.VERB_LINE, verb); in testDoneDone() 124 assertEquals(PathIterator.VERB_MOVE, iterator.next(mPoints, 0)); in testDoneDone() [all …]
|
D | FontVariationAxisTest.java | 19 import static org.junit.Assert.assertEquals; 50 assertEquals("wght", axis.getTag()); in testGetterTest() 51 assertEquals(1.0f, axis.getStyleValue(), FLOT_EQUALITY_PREC); in testGetterTest() 54 assertEquals("PRIV", axis.getTag()); in testGetterTest() 55 assertEquals(-1.0f, axis.getStyleValue(), FLOT_EQUALITY_PREC); in testGetterTest() 79 assertEquals(1, axes.length); in testFromFontVariationSetting_Single() 80 assertEquals("wdth", axes[0].getTag()); in testFromFontVariationSetting_Single() 81 assertEquals(1.0f, axes[0].getStyleValue(), FLOT_EQUALITY_PREC); in testFromFontVariationSetting_Single() 84 assertEquals(1, axes.length); in testFromFontVariationSetting_Single() 85 assertEquals("wdth", axes[0].getTag()); in testFromFontVariationSetting_Single() [all …]
|
/cts/tests/tests/graphics/src/android/graphics/text/cts/ |
D | LineBreakerTest.java | 35 import static org.junit.Assert.assertEquals; 89 assertEquals(BREAK_STRATEGY_SIMPLE, new LineBreaker.Builder().build().getBreakStrategy()); in testSetGet_BreakStrategy() 90 assertEquals(BREAK_STRATEGY_BALANCED, in testSetGet_BreakStrategy() 93 assertEquals(BREAK_STRATEGY_SIMPLE, in testSetGet_BreakStrategy() 96 assertEquals(BREAK_STRATEGY_HIGH_QUALITY, in testSetGet_BreakStrategy() 104 assertEquals(HYPHENATION_FREQUENCY_NONE, in testSetGet_HyphenationFrequency() 106 assertEquals(HYPHENATION_FREQUENCY_FULL, in testSetGet_HyphenationFrequency() 111 assertEquals(HYPHENATION_FREQUENCY_NORMAL, in testSetGet_HyphenationFrequency() 116 assertEquals(HYPHENATION_FREQUENCY_NONE, in testSetGet_HyphenationFrequency() 126 assertEquals(JUSTIFICATION_MODE_NONE, in testSetGet_JustificationMode() [all …]
|
D | HyphenationTest.java | 22 import static org.junit.Assert.assertEquals; 72 assertEquals(3, r.getLineCount()); in testAfrikaansPattern() 73 assertEquals(Paint.START_HYPHEN_EDIT_NO_EDIT, r.getStartLineHyphenEdit(0)); in testAfrikaansPattern() 74 assertEquals(Paint.END_HYPHEN_EDIT_INSERT_HYPHEN, r.getEndLineHyphenEdit(0)); in testAfrikaansPattern() 75 assertEquals(Paint.START_HYPHEN_EDIT_NO_EDIT, r.getStartLineHyphenEdit(1)); in testAfrikaansPattern() 76 assertEquals(Paint.END_HYPHEN_EDIT_INSERT_HYPHEN, r.getEndLineHyphenEdit(1)); in testAfrikaansPattern() 77 assertEquals(Paint.START_HYPHEN_EDIT_NO_EDIT, r.getStartLineHyphenEdit(2)); in testAfrikaansPattern() 78 assertEquals(Paint.END_HYPHEN_EDIT_NO_EDIT, r.getEndLineHyphenEdit(2)); in testAfrikaansPattern() 96 assertEquals(4, r.getLineCount()); in testAlbanianPattern() 97 assertEquals(Paint.START_HYPHEN_EDIT_NO_EDIT, r.getStartLineHyphenEdit(0)); in testAlbanianPattern() [all …]
|
/cts/tests/tests/os/src/android/os/cts/ |
D | IpcDataCacheTest.java | 19 import static org.junit.Assert.assertEquals; 67 assertEquals(x, mCount); in verify() 115 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 117 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 120 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 122 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 124 assertEquals(tester.value(5), testCache.query(5)); in testBasicCache() 126 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 131 assertEquals(tester.value(3), testCache.query(3)); in testBasicCache() 135 assertEquals(tester.value(12), testCache.query(12)); in testBasicCache() [all …]
|
/cts/tests/tests/text/src/android/text/style/cts/ |
D | TtsSpanTest.java | 19 import static org.junit.Assert.assertEquals; 50 assertEquals(4, args.size()); in testGetArgs() 51 assertEquals("value.one", args.getString("argument.one")); in testGetArgs() 52 assertEquals("value.two", args.getString("argument.two")); in testGetArgs() 53 assertEquals(3, args.getLong("argument.three")); in testGetArgs() 54 assertEquals(4, args.getLong("argument.four")); in testGetArgs() 60 assertEquals("test.type.two", t.getType()); in testGetType() 85 assertEquals("test.type.five", t.getType()); in testWriteAndReadParcel() 87 assertEquals(4, args.size()); in testWriteAndReadParcel() 88 assertEquals("value.one", args.getString("argument.one")); in testWriteAndReadParcel() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | SelectionTest.java | 19 import static org.junit.Assert.assertEquals; 47 assertEquals(-1, Selection.getSelectionStart(builder)); in testGetSelectionStart() 50 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 53 assertEquals(3, Selection.getSelectionStart(builder)); in testGetSelectionStart() 56 assertEquals(5, Selection.getSelectionStart(builder)); in testGetSelectionStart() 58 assertEquals(-1, Selection.getSelectionStart(null)); in testGetSelectionStart() 65 assertEquals(-1, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 68 assertEquals(10, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 71 assertEquals(8, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() 74 assertEquals(8, Selection.getSelectionEnd(builder)); in testGetSelectionEnd() [all …]
|
/cts/tests/tests/libcorelegacy22/src/android/util/cts/ |
D | FloatMathTest.java | 24 assertEquals(5.0f, FloatMath.sqrt(25)); in testSqrt() 25 assertEquals(7, FloatMath.sqrt(49), 0); in testSqrt() 26 assertEquals(10, FloatMath.sqrt(100), 0); in testSqrt() 27 assertEquals(0, FloatMath.sqrt(0), 0); in testSqrt() 28 assertEquals(1, FloatMath.sqrt(1), 0); in testSqrt() 32 assertEquals(78, FloatMath.floor(78.89f), 0); in testFloor() 33 assertEquals(-79, FloatMath.floor(-78.89f), 0); in testFloor() 34 assertEquals(7.0f, FloatMath.floor(7.2f)); in testFloor() 35 assertEquals(-7.0f, FloatMath.floor(-6.3f)); in testFloor() 39 assertEquals(79, FloatMath.ceil(78.89f), 0); in testCeil() [all …]
|
/cts/tests/tests/database/src/android/database/cts/ |
D | MatrixCursorTest.java | 19 import static org.junit.Assert.assertEquals; 67 assertEquals(0, mMatrixCursor.getCount()); in testNewRow() 70 assertEquals(1, mMatrixCursor.getCount()); in testNewRow() 78 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 84 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 86 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 91 assertEquals(Integer.MIN_VALUE, mMatrixCursor.getInt(COLUMN0_INDEX)); in testNewRow() 93 assertEquals(0, mMatrixCursor.getInt(COLUMN1_INDEX)); in testNewRow() 95 assertEquals(Integer.MAX_VALUE, mMatrixCursor.getInt(COLUMN2_INDEX)); in testNewRow() 105 assertEquals(2, mMatrixCursor.getCount()); in testNewRow() [all …]
|
/cts/tests/tests/proto/src/android/util/proto/cts/ |
D | EncodedBufferTest.java | 35 public void assertEquals(byte[] expected, EncodedBuffer actual) { in assertEquals() method in EncodedBufferTest 39 assertEquals("actual.getWritePos() == expected.length", expected.length, in assertEquals() 54 assertEquals(100, buffer.getChunkCount()); in testWriteRawByteWrapsChunks() 55 assertEquals(99, buffer.getWriteBufIndex()); in testWriteRawByteWrapsChunks() 56 assertEquals(1, buffer.getWriteIndex()); in testWriteRawByteWrapsChunks() 62 assertEquals(2, buffer.getChunkCount()); in testWriteRawByteWrapsChunks() 63 assertEquals(1, buffer.getWriteBufIndex()); in testWriteRawByteWrapsChunks() 64 assertEquals(50, buffer.getWriteIndex()); in testWriteRawByteWrapsChunks() 70 assertEquals(3, buffer.getChunkCount()); in testWriteRawByteWrapsChunks() 71 assertEquals(2, buffer.getWriteBufIndex()); in testWriteRawByteWrapsChunks() [all …]
|
/cts/tests/tests/util/src/android/util/cts/ |
D | SparseLongArrayTest.java | 19 import static org.junit.Assert.assertEquals; 45 assertEquals(0, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 51 assertEquals(i + 1, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 55 assertEquals(i, sparseArray.get(KEYS[i])); in testSparseArrayWithDefaultCapacity() 59 assertEquals(sparseArray.indexOfValue(VALUES[i]), sparseArray.indexOfKey(KEYS[i])); in testSparseArrayWithDefaultCapacity() 66 assertEquals(oldValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() 67 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 69 assertEquals(newValue, sparseArray.get(existKey)); in testSparseArrayWithDefaultCapacity() 70 assertEquals(LENGTH, sparseArray.size()); in testSparseArrayWithDefaultCapacity() 72 assertEquals(VALUE_FOR_NON_EXISTED_KEY, in testSparseArrayWithDefaultCapacity() [all …]
|
D | SparseIntArrayTest.java | 19 import static org.junit.Assert.assertEquals; 41 assertEquals(0, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 46 assertEquals(i + 1, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 49 assertEquals(VALUES[i], sparseIntArray.get(KEYS[i])); in testSparseIntArrayWithDefaultCapacity() 52 assertEquals(sparseIntArray.indexOfValue(VALUES[i]), in testSparseIntArrayWithDefaultCapacity() 60 assertEquals(oldValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithDefaultCapacity() 61 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 63 assertEquals(newValue, sparseIntArray.get(existKey)); in testSparseIntArrayWithDefaultCapacity() 64 assertEquals(13, sparseIntArray.size()); in testSparseIntArrayWithDefaultCapacity() 66 assertEquals(VALUE_FOR_NON_EXISTED_KEY, in testSparseIntArrayWithDefaultCapacity() [all …]
|
D | SparseBooleanArrayTest.java | 19 import static org.junit.Assert.assertEquals; 42 assertEquals(0, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity() 47 assertEquals(i + 1, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity() 50 assertEquals(VALUES[i], sparseBooleanArray.get(KEYS[i])); in testSparseBooleanArrayWithDefaultCapacity() 58 assertEquals(VALUES[i], sparseBooleanArray.valueAt(keyIndex)); in testSparseBooleanArrayWithDefaultCapacity() 60 assertEquals(expectPos, sparseBooleanArray.indexOfValue(VALUES[i])); in testSparseBooleanArrayWithDefaultCapacity() 67 assertEquals(oldValue, sparseBooleanArray.get(existKey)); in testSparseBooleanArrayWithDefaultCapacity() 68 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity() 70 assertEquals(newValue, sparseBooleanArray.get(existKey)); in testSparseBooleanArrayWithDefaultCapacity() 71 assertEquals(13, sparseBooleanArray.size()); in testSparseBooleanArrayWithDefaultCapacity() [all …]
|
/cts/tests/tests/text/src/android/text/format/cts/ |
D | FormatterTest.java | 19 import static org.junit.Assert.assertEquals; 43 assertEquals("", Formatter.formatFileSize(null, 0)); in testFormatFileSize() 53 assertEquals("0 B", Formatter.formatFileSize(context, 0)); in testFormatFileSize() 54 assertEquals("1 B", Formatter.formatFileSize(context, 1)); in testFormatFileSize() 55 assertEquals("9 B", Formatter.formatFileSize(context, 9)); in testFormatFileSize() 56 assertEquals("10 B", Formatter.formatFileSize(context, 10)); in testFormatFileSize() 57 assertEquals("99 B", Formatter.formatFileSize(context, 99)); in testFormatFileSize() 58 assertEquals("100 B", Formatter.formatFileSize(context, 100)); in testFormatFileSize() 59 assertEquals("900 B", Formatter.formatFileSize(context, 900)); in testFormatFileSize() 60 assertEquals("0.90 kB", Formatter.formatFileSize(context, 901)); in testFormatFileSize() [all …]
|
/cts/tests/tests/print/src/android/print/cts/ |
D | ClassParametersTest.java | 21 import static org.junit.Assert.assertEquals; 107 assertEquals("testId", testResolution.getId()); in legalPrintAttributesResolution() 108 assertEquals("testLabel", testResolution.getLabel()); in legalPrintAttributesResolution() 109 assertEquals(1, testResolution.getHorizontalDpi()); in legalPrintAttributesResolution() 110 assertEquals(2, testResolution.getVerticalDpi()); in legalPrintAttributesResolution() 114 assertEquals("testId2", testResolution2.getId()); in legalPrintAttributesResolution() 115 assertEquals("testLabel2", testResolution2.getLabel()); in legalPrintAttributesResolution() 116 assertEquals(1, testResolution2.getHorizontalDpi()); in legalPrintAttributesResolution() 117 assertEquals(1, testResolution2.getVerticalDpi()); in legalPrintAttributesResolution() 122 assertEquals("testId3", testResolution3.getId()); in legalPrintAttributesResolution() [all …]
|
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | IdentityApiTest.java | 39 import static org.junit.Assert.assertEquals; 47 assertEquals("Message", e.getMessage()); in testConstructorsAlreadyPersonalizedException() 48 assertEquals(null, e.getCause()); in testConstructorsAlreadyPersonalizedException() 51 assertEquals("Message 2", e.getMessage()); in testConstructorsAlreadyPersonalizedException() 52 assertEquals(t, e.getCause()); in testConstructorsAlreadyPersonalizedException() 58 assertEquals("Message", e.getMessage()); in testConstructorsCipherSuiteNotSupportedException() 59 assertEquals(null, e.getCause()); in testConstructorsCipherSuiteNotSupportedException() 62 assertEquals("Message 2", e.getMessage()); in testConstructorsCipherSuiteNotSupportedException() 63 assertEquals(t, e.getCause()); in testConstructorsCipherSuiteNotSupportedException() 69 assertEquals("Message", e.getMessage()); in testConstructorsDocTypeNotSupportedException() [all …]
|
/cts/tests/tests/telecom/src/android/telecom/cts/ |
D | DataObjectUnitTests.java | 77 assertEquals(accountHandle, account.getAccountHandle()); in testPhoneAccount() 78 assertEquals(tel, account.getAddress()); in testPhoneAccount() 79 assertEquals(tel, account.getSubscriptionAddress()); in testPhoneAccount() 80 assertEquals(PhoneAccount.CAPABILITY_CALL_PROVIDER, account.getCapabilities()); in testPhoneAccount() 81 assertEquals(Color.RED, account.getHighlightColor()); in testPhoneAccount() 82 assertEquals(ACCOUNT_LABEL, account.getShortDescription()); in testPhoneAccount() 83 assertEquals(ACCOUNT_LABEL, account.getLabel()); in testPhoneAccount() 84 assertEquals(Arrays.asList("tel"), account.getSupportedUriSchemes()); in testPhoneAccount() 85 assertEquals(phoneIcon.toString(), account.getIcon().toString()); in testPhoneAccount() 86 assertEquals(0, account.describeContents()); in testPhoneAccount() [all …]
|