Home
last modified time | relevance | path

Searched refs:assertEquals (Results 1 – 25 of 756) sorted by relevance

12345678910>>...31

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboardBuilderAutoOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0()
80 assertEquals("1 key auto 5 M0 rows", 1, params.mNumRows); in testLayout1KeyAuto5M0()
81 assertEquals("1 key auto 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyAuto5M0()
82 assertEquals("1 key auto 5 M0 right", 1, params.mRightKeys); in testLayout1KeyAuto5M0()
83 assertEquals("1 key auto 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyAuto5M0()
84 assertEquals("1 key auto 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyAuto5M0()
85 assertEquals("1 key auto 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyAuto5M0()
92 assertEquals("1 key auto 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L0()
93 assertEquals("1 key auto 5 L0 rows", 1, params.mNumRows); in testLayout1KeyAuto5L0()
[all …]
DMoreKeysKeyboardBuilderFixedOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0()
80 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0()
81 assertEquals("1 key fix 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyFix5M0()
82 assertEquals("1 key fix 5 M0 right", 1, params.mRightKeys); in testLayout1KeyFix5M0()
83 assertEquals("1 key fix 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyFix5M0()
84 assertEquals("1 key fix 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyFix5M0()
85 assertEquals("1 key fix 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyFix5M0()
92 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyFix5L0()
93 assertEquals("1 key fix 5 L0 rows", 1, params.mNumRows); in testLayout1KeyFix5L0()
[all …]
DMoreKeysKeyboardBuilderMaxOrderTests.java19 import static org.junit.Assert.assertEquals;
79 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0()
80 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0()
81 assertEquals("1 key max 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyMax5M0()
82 assertEquals("1 key max 5 M0 right", 1, params.mRightKeys); in testLayout1KeyMax5M0()
83 assertEquals("1 key max 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyMax5M0()
84 assertEquals("1 key max 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyMax5M0()
85 assertEquals("1 key max 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyMax5M0()
92 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyMax5L0()
93 assertEquals("1 key max 5 L0 rows", 1, params.mNumRows); in testLayout1KeyMax5L0()
[all …]
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DVehiclePropertyIdsTest.java55 assertEquals(vehiclePropertyNames.size(), in testMatchingVehiclePropertyNamesInVehicleHal()
69 assertEquals(vehicleProperties.size(), in testMatchingVehiclePropertyValuesInVehicleHal()
85 assertEquals("INVALID", VehiclePropertyIds.toString(VehiclePropertyIds.INVALID)); in testToString()
86 assertEquals("INFO_VIN", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_VIN)); in testToString()
87 assertEquals("INFO_MAKE", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MAKE)); in testToString()
88 assertEquals("INFO_MODEL", VehiclePropertyIds.toString(VehiclePropertyIds.INFO_MODEL)); in testToString()
89 assertEquals("INFO_MODEL_YEAR", in testToString()
91 assertEquals("INFO_FUEL_CAPACITY", in testToString()
93 assertEquals("INFO_FUEL_TYPE", in testToString()
95 assertEquals("INFO_EV_BATTERY_CAPACITY", in testToString()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/
DRecapitalizeStatusTests.java19 import static org.junit.Assert.assertEquals;
41 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim()
42 assertEquals(30, status.getNewCursorStart()); in testTrim()
43 assertEquals(40, status.getNewCursorEnd()); in testTrim()
47 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim()
48 assertEquals(34, status.getNewCursorStart()); in testTrim()
49 assertEquals(44, status.getNewCursorEnd()); in testTrim()
53 assertEquals("abcdefgh", status.getRecapitalizedString()); in testTrim()
54 assertEquals(30, status.getNewCursorStart()); in testTrim()
55 assertEquals(38, status.getNewCursorEnd()); in testTrim()
[all …]
DSubtypeLocaleUtilsTests.java19 import static org.junit.Assert.assertEquals;
176 assertEquals("en_US", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_US)); in testKeyboardLayoutSetName()
177 assertEquals("en_GB", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_GB)); in testKeyboardLayoutSetName()
178 assertEquals("es_US", "spanish", SubtypeLocaleUtils.getKeyboardLayoutSetName(ES_US)); in testKeyboardLayoutSetName()
179 assertEquals("fr", "azerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR)); in testKeyboardLayoutSetName()
180 assertEquals("fr_CA", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CA)); in testKeyboardLayoutSetName()
181 assertEquals("fr_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CH)); in testKeyboardLayoutSetName()
182 assertEquals("de", "qwertz", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE)); in testKeyboardLayoutSetName()
183 assertEquals("de_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE_CH)); in testKeyboardLayoutSetName()
184 assertEquals("hi", "hindi", SubtypeLocaleUtils.getKeyboardLayoutSetName(HI)); in testKeyboardLayoutSetName()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/
DPointerTrackerQueueTests.java19 import static org.junit.Assert.assertEquals;
78 assertEquals(0, mQueue.size()); in testEmpty()
79 assertEquals("[]", mQueue.toString()); in testEmpty()
85 assertEquals(1, mQueue.size()); in testAdd()
86 assertEquals("[1]", mQueue.toString()); in testAdd()
88 assertEquals(2, mQueue.size()); in testAdd()
89 assertEquals("[1 2]", mQueue.toString()); in testAdd()
91 assertEquals(3, mQueue.size()); in testAdd()
92 assertEquals("[1 2 3]", mQueue.toString()); in testAdd()
94 assertEquals(4, mQueue.size()); in testAdd()
[all …]
DHermiteInterpolatorTests.java19 import static org.junit.Assert.assertEquals;
60 assertEquals("p0x", mXCoords[p0], mInterpolator.mP1X); in testP0P1()
61 assertEquals("p0y", mYCoords[p0], mInterpolator.mP1Y); in testP0P1()
62 assertEquals("p1x", mXCoords[p1], mInterpolator.mP2X); in testP0P1()
63 assertEquals("p1y", mYCoords[p1], mInterpolator.mP2Y); in testP0P1()
65 assertEquals("slope x p0", -0.25f, mInterpolator.mSlope1X, EPSILON); in testP0P1()
66 assertEquals("slope y p0", -0.75f, mInterpolator.mSlope1Y, EPSILON); in testP0P1()
68 assertEquals("slope x p1", 1.50f, mInterpolator.mSlope2X, EPSILON); in testP0P1()
69 assertEquals("slope y p1", 0.50f, mInterpolator.mSlope2Y, EPSILON); in testP0P1()
72 assertEquals("t=0.0 x", 0.0f, mInterpolator.mInterpolatedX, EPSILON); in testP0P1()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/
DStateMachineTest.java226 Assert.assertEquals(8, smQuitTest.mLogRecs.size()); in testStateMachineQuit()
232 Assert.assertEquals(i, lr.getWhat()); in testStateMachineQuit()
233 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
234 Assert.assertEquals(smQuitTest.mS1, lr.getOriginalState()); in testStateMachineQuit()
237 Assert.assertEquals(EXIT, lr.getInfo()); in testStateMachineQuit()
238 Assert.assertEquals(smQuitTest.mS1, lr.getState()); in testStateMachineQuit()
241 Assert.assertEquals(ON_QUITTING, lr.getInfo()); in testStateMachineQuit()
330 Assert.assertEquals(3, smQuitNowTest.mLogRecs.size()); in testStateMachineQuitNow()
334 Assert.assertEquals(1, lr.getWhat()); in testStateMachineQuitNow()
335 Assert.assertEquals(smQuitNowTest.mS1, lr.getState()); in testStateMachineQuitNow()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/bip/
DBipImageFormatTest.java34 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_requiredOnly()
35 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_requiredOnly()
36 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_requiredOnly()
37 Assert.assertEquals(new BipTransformation(), format.getTransformation()); in testParseNative_requiredOnly()
38 Assert.assertEquals(-1, format.getSize()); in testParseNative_requiredOnly()
39 Assert.assertEquals(-1, format.getMaxSize()); in testParseNative_requiredOnly()
40 Assert.assertEquals(expected, format.toString()); in testParseNative_requiredOnly()
47 Assert.assertEquals(BipImageFormat.FORMAT_NATIVE, format.getType()); in testParseNative_withSize()
48 Assert.assertEquals(new BipEncoding(BipEncoding.JPEG, null), format.getEncoding()); in testParseNative_withSize()
49 Assert.assertEquals(BipPixel.createFixed(1280, 1024), format.getPixel()); in testParseNative_withSize()
[all …]
/packages/services/Mtp/tests/src/com/android/mtp/
DMtpDatabaseTest.java93 assertEquals(1, cursor.getCount()); in testPutSingleStorageDocuments()
96 assertEquals(2, getInt(cursor, COLUMN_DOCUMENT_ID)); in testPutSingleStorageDocuments()
97 assertEquals(0, getInt(cursor, COLUMN_DEVICE_ID)); in testPutSingleStorageDocuments()
98 assertEquals(1, getInt(cursor, COLUMN_STORAGE_ID)); in testPutSingleStorageDocuments()
100 assertEquals( in testPutSingleStorageDocuments()
102 assertEquals("Storage", getString(cursor, COLUMN_DISPLAY_NAME)); in testPutSingleStorageDocuments()
105 assertEquals(R.drawable.ic_root_mtp, getInt(cursor, COLUMN_ICON)); in testPutSingleStorageDocuments()
106 assertEquals(Document.FLAG_DIR_SUPPORTS_CREATE, getInt(cursor, COLUMN_FLAGS)); in testPutSingleStorageDocuments()
107 assertEquals(1000, getInt(cursor, COLUMN_SIZE)); in testPutSingleStorageDocuments()
108 assertEquals( in testPutSingleStorageDocuments()
[all …]
DMtpDocumentsProviderTest.java103 assertEquals(0, mProvider.getOpenedDeviceRecordsCache().length); in testOpenAndCloseErrorDevice()
154 assertEquals(1, cursor.getCount()); in testOpenDeviceOnDemand()
156 assertEquals("Device A", cursor.getString(0)); in testOpenDeviceOnDemand()
157 assertEquals(1, cursor.getLong(1)); in testOpenDeviceOnDemand()
161 assertEquals(0, openedDevice.length); in testOpenDeviceOnDemand()
168 assertEquals(1, openedDevice.length); in testOpenDeviceOnDemand()
169 assertEquals(0, openedDevice[0].deviceId); in testOpenDeviceOnDemand()
212 assertEquals(2, cursor.getCount()); in testQueryRoots()
214 assertEquals("1", cursor.getString(0)); in testQueryRoots()
215 assertEquals( in testQueryRoots()
[all …]
/packages/apps/Bluetooth/tests/unit/src/com/android/bluetooth/avrcpcontroller/
DAvrcpItemTest.java98 Assert.assertEquals(mDevice, item.getDevice()); in buildAvrcpItem()
99 Assert.assertEquals(true, item.isPlayable()); in buildAvrcpItem()
100 Assert.assertEquals(false, item.isBrowsable()); in buildAvrcpItem()
101 Assert.assertEquals(0, item.getUid()); in buildAvrcpItem()
102 Assert.assertEquals(UUID, item.getUuid()); in buildAvrcpItem()
103 Assert.assertEquals(null, item.getDisplayableName()); in buildAvrcpItem()
104 Assert.assertEquals(title, item.getTitle()); in buildAvrcpItem()
105 Assert.assertEquals(artist, item.getArtistName()); in buildAvrcpItem()
106 Assert.assertEquals(album, item.getAlbumName()); in buildAvrcpItem()
107 Assert.assertEquals(trackNumber, item.getTrackNumber()); in buildAvrcpItem()
[all …]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/
DContactLocaleUtilsTest.java131 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testEnglishContactLocaleUtils()
132 assertEquals("#", getLabel(PHONE_NUMBER_2)); in testEnglishContactLocaleUtils()
133 assertEquals("J", getLabel(LATIN_NAME)); in testEnglishContactLocaleUtils()
134 assertEquals("\u2026", getLabel(CHINESE_NAME)); in testEnglishContactLocaleUtils()
135 assertEquals("D", getLabel(CHINESE_LATIN_MIX_NAME_1)); in testEnglishContactLocaleUtils()
136 assertEquals("B", getLabel("Bob Smith")); in testEnglishContactLocaleUtils()
138 assertEquals("\u0646", getLabel(ARABIC_NAME)); in testEnglishContactLocaleUtils()
139 assertEquals("\u0408", getLabel(SERBIAN_NAME)); in testEnglishContactLocaleUtils()
142 assertEquals("\u0406", getLabel(UKRAINIAN_NAME)); in testEnglishContactLocaleUtils()
150 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testJapaneseContactLocaleUtils()
[all …]
DEnterpriseContactsCursorWrapperTest.java60 assertEquals(0, rewritten.getCount()); in testWrappedResults()
61 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
179 assertEquals(5, rewritten.getCount()); in testWrappedResults()
180 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults()
186 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults()
188 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
189 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
190 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
191 assertEquals(null, rewritten.getString(column++)); in testWrappedResults()
[all …]
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/
DICalendarTest.java16 assertEquals(0, prop.getParameterNames().size()); in testAddParameter()
18 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
20 assertEquals(1, prop.getParameterNames().size()); in testAddParameter()
22 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
24 assertEquals(2, prop.getParameterNames().size()); in testAddParameter()
26 assertEquals(3, prop.getParameterNames().size()); in testAddParameter()
27 assertEquals("prop1;param1=foo;param1=bar;param1=quux;" in testAddParameter()
44 assertEquals(text, component.toString()); in testAddProperty()
64 assertEquals(text, parent.toString()); in testAddComponent()
77 assertEquals("DUMMY", component.getName()); in testParseBasicComponent()
[all …]
/packages/modules/CellBroadcastService/tests/src/com/android/cellbroadcastservice/tests/
DGsmSmsCbMessageTest.java81 assertEquals(testMessage1, message); in testGetEtwsPrimaryMessage()
86 assertEquals(testMessage2, message); in testGetEtwsPrimaryMessage()
91 assertEquals(testMessage3, message); in testGetEtwsPrimaryMessage()
96 assertEquals(testMessage4, message); in testGetEtwsPrimaryMessage()
101 assertEquals(testMessage5, message); in testGetEtwsPrimaryMessage()
131 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_CELL_WIDE_IMMEDIATE, in testCreateMessageFromBinary()
133 assertEquals(3946, msg.getSerialNumber()); in testCreateMessageFromBinary()
134 assertEquals(SmsCbConstants.MESSAGE_ID_CMAS_ALERT_EXTREME_IMMEDIATE_OBSERVED, in testCreateMessageFromBinary()
136 assertEquals("en", msg.getLanguageCode()); in testCreateMessageFromBinary()
137 assertEquals("Hello UMTS world, this is IuBC§Write§5.1.5.sl (new) - Page 1/ 1.", in testCreateMessageFromBinary()
[all …]
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/
DCameraTest.java34 assertEquals(0, Util.roundOrientation(0, 0)); in testRoundOrientation()
35 assertEquals(0, Util.roundOrientation(359, 0)); in testRoundOrientation()
36 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation()
37 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation()
38 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation()
39 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation()
41 assertEquals(90, Util.roundOrientation(90, 90)); in testRoundOrientation()
42 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation()
43 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation()
44 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/util/
DSearchUtilTest.java34 assertEquals("With potentially many lines.", matched.line); in testFindMatchingLine()
35 assertEquals(5, matched.startIndex); in testFindMatchingLine()
39 assertEquals("hello", matched.line); in testFindMatchingLine()
40 assertEquals(0, matched.startIndex); in testFindMatchingLine()
44 assertEquals("this is a long test string.", matched.line); in testFindMatchingLine()
45 assertEquals(0, matched.startIndex); in testFindMatchingLine()
49 assertEquals("'leading punc", matched.line); in testFindMatchingLine()
50 assertEquals(9, matched.startIndex); in testFindMatchingLine()
56 assertEquals(0, SearchUtil.contains(actual, "this")); in testContains()
57 assertEquals(10, SearchUtil.contains(actual, "lon")); in testContains()
[all …]
/packages/apps/Contacts/tests/src/com/android/contacts/widget/
DCompositeListAdapterTest.java119 assertEquals(5, adapter.getCount()); in testGetCount()
124 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation()
127 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation()
130 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation()
133 assertEquals(5, adapter.getCount()); in testGetCountWithInvalidation()
142 assertEquals("A", adapter.getItem(0)); in testGetItem()
143 assertEquals("B", adapter.getItem(1)); in testGetItem()
144 assertEquals("C", adapter.getItem(2)); in testGetItem()
145 assertEquals("D", adapter.getItem(3)); in testGetItem()
146 assertEquals("E", adapter.getItem(4)); in testGetItem()
[all …]
/packages/apps/TV/tuner/tests/unittests/javatests/com/android/tv/tuner/layout/tests/
DScaledLayoutTest.java19 import static junit.framework.Assert.assertEquals;
67 assertEquals((int) (400 * 0.1), view1.getWidth()); in testScaledLayout_layoutInXml()
68 assertEquals((int) (300 * 0.2), view1.getHeight()); in testScaledLayout_layoutInXml()
69 assertEquals((int) (400 * 0.8), view1.getLeft()); in testScaledLayout_layoutInXml()
70 assertEquals((int) (300 * 0.1), view1.getTop()); in testScaledLayout_layoutInXml()
71 assertEquals((int) (400 * 0.1), view2.getWidth()); in testScaledLayout_layoutInXml()
72 assertEquals(300, view2.getHeight()); in testScaledLayout_layoutInXml()
73 assertEquals((int) (400 * 0.2), view2.getLeft()); in testScaledLayout_layoutInXml()
74 assertEquals(0, view2.getTop()); in testScaledLayout_layoutInXml()
75 assertEquals((int) (400 * 0.2), view3.getWidth()); in testScaledLayout_layoutInXml()
[all …]
/packages/providers/MediaProvider/tests/src/com/android/providers/media/util/
DDatabaseUtilsTest.java40 import static org.junit.Assert.assertEquals;
79 assertEquals(null, in testBindSelection_none()
81 assertEquals("", in testBindSelection_none()
83 assertEquals("foo=bar", in testBindSelection_none()
89 assertEquals("foo='baz'", in testBindSelection_normal()
91 assertEquals("foo='baz' AND bar=4", in testBindSelection_normal()
93 assertEquals("foo='baz' AND bar=4 AND meow=NULL", in testBindSelection_normal()
99 assertEquals("BETWEEN 5 AND 10", in testBindSelection_whitespace()
101 assertEquals("IN 'foo'", in testBindSelection_whitespace()
107 assertEquals("foo=10 AND bar=11 AND meow=1", in testBindSelection_indexed()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/
DStringUtilsTests.java19 import static org.junit.Assert.assertEquals;
41 assertEquals(lowerCase + " in " + locale, expected, in assert_toTitleCaseOfKeyLabel()
124 assertEquals(lowerCase + " in " + locale, expected, in assert_toTitleCaseOfKeyCode()
157 assertEquals(text + " in " + locale, expected, in assert_capitalizeFirstCodePoint()
177 assertEquals(text + " in " + locale, expected, in assert_capitalizeFirstAndDowncaseRest()
233 assertEquals("null", "", StringUtils.removeFromCommaSplittableTextIfExists("key", null)); in testRemoveFromCommaSplittableTextIfExists()
234 assertEquals("empty", "", StringUtils.removeFromCommaSplittableTextIfExists("key", "")); in testRemoveFromCommaSplittableTextIfExists()
236 assertEquals("not in 1 element", "key1", in testRemoveFromCommaSplittableTextIfExists()
238 assertEquals("not in 2 elements", "key1,key2", in testRemoveFromCommaSplittableTextIfExists()
241 assertEquals("in 1 element", "", in testRemoveFromCommaSplittableTextIfExists()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/
DNgramContextTests.java19 import static org.junit.Assert.assertEquals;
40 assertEquals(new NgramContext(new WordInfo("a")), new NgramContext(new WordInfo("a"))); in testConstruct()
41 assertEquals(new NgramContext(WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO), in testConstruct()
43 assertEquals(new NgramContext(WordInfo.EMPTY_WORD_INFO), in testConstruct()
45 assertEquals(new NgramContext(WordInfo.EMPTY_WORD_INFO), in testConstruct()
72 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testGetNextNgramContext()
73 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testGetNextNgramContext()
77 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testGetNextNgramContext()
80 assertEquals("c", ngramContext_c_bos.getNthPrevWord(1)); in testGetNextNgramContext()
87 assertEquals("<S>", ngramContext_bos.extractPrevWordsContext()); in testExtractPrevWordsContextTest()
[all …]
DRichInputMethodSubtypeTests.java19 import static org.junit.Assert.assertEquals;
204 assertEquals(subtypeName, SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName( in testAllMiddleDisplayNameForSpacebar()
207 assertEquals(subtypeName, in testAllMiddleDisplayNameForSpacebar()
242 assertEquals("en_US", "English (US)", EN_US.getFullDisplayName());
243 assertEquals("en_GB", "English (UK)", EN_GB.getFullDisplayName());
244 assertEquals("es_US", "Español (EE.UU.)", ES_US.getFullDisplayName());
245 assertEquals("fr", "Français", FR.getFullDisplayName());
246 assertEquals("fr_CA", "Français (Canada)", FR_CA.getFullDisplayName());
247 assertEquals("fr_CH", "Français (Suisse)", FR_CH.getFullDisplayName());
248 assertEquals("de", "Deutsch", DE.getFullDisplayName());
[all …]

12345678910>>...31