Home
last modified time | relevance | path

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

12345678910>>...30

/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/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/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/services/Car/tests/carservice_unit_test/src/com/android/car/storagemonitoring/
DCarStorageMonitoringTest.java84 assertEquals(40, wearInformation.lifetimeEstimateA); in testEMmcWearInformationProvider()
85 assertEquals(WearInformation.UNKNOWN_LIFETIME_ESTIMATE, in testEMmcWearInformationProvider()
88 assertEquals(WearInformation.PRE_EOL_INFO_NORMAL, wearInformation.preEolInfo); in testEMmcWearInformationProvider()
108 assertEquals(90, wearInformation.lifetimeEstimateB); in testUfsWearInformationProvider()
109 assertEquals(WearInformation.PRE_EOL_INFO_WARNING, wearInformation.preEolInfo); in testUfsWearInformationProvider()
110 assertEquals(WearInformation.UNKNOWN_LIFETIME_ESTIMATE, in testUfsWearInformationProvider()
136 assertEquals(storageInfo.lifetimeA, wearInformation.lifetimeEstimateA); in testHealthServiceWearInformationProvider()
137 assertEquals(storageInfo.lifetimeB, wearInformation.lifetimeEstimateB); in testHealthServiceWearInformationProvider()
138 assertEquals(storageInfo.eol, wearInformation.preEolInfo); in testHealthServiceWearInformationProvider()
145 assertEquals(wearEstimate1, wearEstimate1); in testWearEstimateEquality()
[all …]
/packages/apps/DeskClock/tests/src/com/android/deskclock/uidata/
DPeriodicCallbackModelTest.java32 import static org.junit.Assert.assertEquals;
39 assertEquals(1, PeriodicCallbackModel.getDelay(56999, MINUTE, -3000)); in getMinuteDelay()
40 assertEquals(60000, PeriodicCallbackModel.getDelay(57000, MINUTE, -3000)); in getMinuteDelay()
41 assertEquals(59999, PeriodicCallbackModel.getDelay(57001, MINUTE, -3000)); in getMinuteDelay()
43 assertEquals(1, PeriodicCallbackModel.getDelay(59999, MINUTE, 0)); in getMinuteDelay()
44 assertEquals(60000, PeriodicCallbackModel.getDelay(60000, MINUTE, 0)); in getMinuteDelay()
45 assertEquals(59999, PeriodicCallbackModel.getDelay(60001, MINUTE, 0)); in getMinuteDelay()
47 assertEquals(3001, PeriodicCallbackModel.getDelay(59999, MINUTE, 3000)); in getMinuteDelay()
48 assertEquals(3000, PeriodicCallbackModel.getDelay(60000, MINUTE, 3000)); in getMinuteDelay()
49 assertEquals(1, PeriodicCallbackModel.getDelay(62999, MINUTE, 3000)); in getMinuteDelay()
[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 …]
DCdmaSmsMessageTest.java440 assertEquals(SmsCbMessage.MESSAGE_FORMAT_3GPP2, cbMessage.getMessageFormat()); in verifyCbValues()
441 assertEquals(SmsCbMessage.GEOGRAPHICAL_SCOPE_PLMN_WIDE, cbMessage.getGeographicalScope()); in verifyCbValues()
442 assertEquals(false, cbMessage.isEtwsMessage()); // ETWS on CDMA not currently supported in verifyCbValues()
455 assertEquals(123, cbMessage.getServiceCategory()); in doTestNonEmergencyBroadcast()
456 assertEquals(456, cbMessage.getSerialNumber()); in doTestNonEmergencyBroadcast()
457 assertEquals(SmsCbMessage.MESSAGE_PRIORITY_NORMAL, cbMessage.getMessagePriority()); in doTestNonEmergencyBroadcast()
458 assertEquals("en", cbMessage.getLanguageCode()); in doTestNonEmergencyBroadcast()
459 assertEquals(TEST_TEXT, cbMessage.getMessageBody()); in doTestNonEmergencyBroadcast()
460 assertEquals(false, cbMessage.isEmergencyMessage()); in doTestNonEmergencyBroadcast()
461 assertEquals(false, cbMessage.isCmasMessage()); in doTestNonEmergencyBroadcast()
[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/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/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/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/apps/DeskClock/tests/src/com/android/deskclock/ringtone/
DRingtonePickerActivityTest.java46 import static org.junit.Assert.assertEquals;
81 assertEquals(R.string.your_sounds, filesHeaderHolder.getTextResId()); in validateDefaultState_TimerRingtonePicker()
82 assertEquals(HeaderViewHolder.VIEW_TYPE_ITEM_HEADER, filesHeaderHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
85 assertEquals(AddCustomRingtoneViewHolder.VIEW_TYPE_ADD_NEW, addNewHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
88 assertEquals(R.string.device_sounds, systemHeaderHolder.getTextResId()); in validateDefaultState_TimerRingtonePicker()
89 assertEquals(HeaderViewHolder.VIEW_TYPE_ITEM_HEADER, systemHeaderHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
92 assertEquals(Utils.RINGTONE_SILENT, silentHolder.getUri()); in validateDefaultState_TimerRingtonePicker()
93 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, silentHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
96 assertEquals(RingtoneViewHolder.VIEW_TYPE_SYSTEM_SOUND, defaultHolder.getItemViewType()); in validateDefaultState_TimerRingtonePicker()
99 assertEquals("Silent", silentHolder.getName()); in validateDefaultState_TimerRingtonePicker()
[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>>...30