/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/ |
D | MoreKeysKeyboardBuilderFixedOrderTests.java | 74 assertEquals("1 key fix 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyFix5M0() 75 assertEquals("1 key fix 5 M0 rows", 1, params.mNumRows); in testLayout1KeyFix5M0() 76 assertEquals("1 key fix 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyFix5M0() 77 assertEquals("1 key fix 5 M0 right", 1, params.mRightKeys); in testLayout1KeyFix5M0() 78 assertEquals("1 key fix 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyFix5M0() 79 assertEquals("1 key fix 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyFix5M0() 80 assertEquals("1 key fix 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyFix5M0() 86 assertEquals("1 key fix 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyFix5L0() 87 assertEquals("1 key fix 5 L0 rows", 1, params.mNumRows); in testLayout1KeyFix5L0() 88 assertEquals("1 key fix 5 L0 left", 0, params.mLeftKeys); in testLayout1KeyFix5L0() [all …]
|
D | MoreKeysKeyboardBuilderMaxOrderTests.java | 74 assertEquals("1 key max 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyMax5M0() 75 assertEquals("1 key max 5 M0 rows", 1, params.mNumRows); in testLayout1KeyMax5M0() 76 assertEquals("1 key max 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyMax5M0() 77 assertEquals("1 key max 5 M0 right", 1, params.mRightKeys); in testLayout1KeyMax5M0() 78 assertEquals("1 key max 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyMax5M0() 79 assertEquals("1 key max 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyMax5M0() 80 assertEquals("1 key max 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyMax5M0() 86 assertEquals("1 key max 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyMax5L0() 87 assertEquals("1 key max 5 L0 rows", 1, params.mNumRows); in testLayout1KeyMax5L0() 88 assertEquals("1 key max 5 L0 left", 0, params.mLeftKeys); in testLayout1KeyMax5L0() [all …]
|
D | MoreKeysKeyboardBuilderAutoOrderTests.java | 74 assertEquals("1 key auto 5 M0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5M0() 75 assertEquals("1 key auto 5 M0 rows", 1, params.mNumRows); in testLayout1KeyAuto5M0() 76 assertEquals("1 key auto 5 M0 left", 0, params.mLeftKeys); in testLayout1KeyAuto5M0() 77 assertEquals("1 key auto 5 M0 right", 1, params.mRightKeys); in testLayout1KeyAuto5M0() 78 assertEquals("1 key auto 5 M0 <1>", 0, params.getColumnPos(0)); in testLayout1KeyAuto5M0() 79 assertEquals("1 key auto 5 M0 adjust", 0, params.mTopRowAdjustment); in testLayout1KeyAuto5M0() 80 assertEquals("1 key auto 5 M0 default", WIDTH * 0, params.getDefaultKeyCoordX()); in testLayout1KeyAuto5M0() 86 assertEquals("1 key auto 5 L0 columns", 1, params.mNumColumns); in testLayout1KeyAuto5L0() 87 assertEquals("1 key auto 5 L0 rows", 1, params.mNumRows); in testLayout1KeyAuto5L0() 88 assertEquals("1 key auto 5 L0 left", 0, params.mLeftKeys); in testLayout1KeyAuto5L0() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/emailcommon/mail/ |
D | AddressUnitTests.java | 87 assertEquals(""+i, prefix, decoded); in testBase64Decode() 117 assertEquals("bare address", "user1@dom1.com", address.getAddress()); in testSetAddress() 120 assertEquals("bracket address", "user2@dom2.com", address.getAddress()); in testSetAddress() 145 assertEquals("simple name", "simple name", address.getPersonal()); in brokentestSetPersonal() 148 assertEquals("quoted name", "big \"G\"", address.getPersonal()); in brokentestSetPersonal() 151 assertEquals("quoted printable name", "big \"G\"", address.getPersonal()); in brokentestSetPersonal() 154 assertEquals("base64 encoded name", "big \"G\"", address.getPersonal()); in brokentestSetPersonal() 162 assertEquals("base64 utf-16 name", "\u5CB8\u672C", address.getPersonal()); in brokentestSetPersonalMultipleEncodings() 165 assertEquals("quoted printable utf-16 name", "\u5CB8\u672C", address.getPersonal()); in brokentestSetPersonalMultipleEncodings() 168 assertEquals("base64 jis encoded name", "\u5CB8\u672C", address.getPersonal()); in brokentestSetPersonalMultipleEncodings() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/utils/ |
D | RecapitalizeStatusTests.java | 34 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 35 assertEquals(30, status.getNewCursorStart()); in testTrim() 36 assertEquals(40, status.getNewCursorEnd()); in testTrim() 40 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() 41 assertEquals(34, status.getNewCursorStart()); in testTrim() 42 assertEquals(44, status.getNewCursorEnd()); in testTrim() 46 assertEquals("abcdefgh", status.getRecapitalizedString()); in testTrim() 47 assertEquals(30, status.getNewCursorStart()); in testTrim() 48 assertEquals(38, status.getNewCursorEnd()); in testTrim() 52 assertEquals("abcdefghij", status.getRecapitalizedString()); in testTrim() [all …]
|
D | SubtypeLocaleUtilsTests.java | 163 assertEquals("en_US", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_US)); in testKeyboardLayoutSetName() 164 assertEquals("en_GB", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(EN_GB)); in testKeyboardLayoutSetName() 165 assertEquals("es_US", "spanish", SubtypeLocaleUtils.getKeyboardLayoutSetName(ES_US)); in testKeyboardLayoutSetName() 166 assertEquals("fr", "azerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR)); in testKeyboardLayoutSetName() 167 assertEquals("fr_CA", "qwerty", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CA)); in testKeyboardLayoutSetName() 168 assertEquals("fr_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(FR_CH)); in testKeyboardLayoutSetName() 169 assertEquals("de", "qwertz", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE)); in testKeyboardLayoutSetName() 170 assertEquals("de_CH", "swiss", SubtypeLocaleUtils.getKeyboardLayoutSetName(DE_CH)); in testKeyboardLayoutSetName() 171 assertEquals("hi", "hindi", SubtypeLocaleUtils.getKeyboardLayoutSetName(HI)); in testKeyboardLayoutSetName() 172 assertEquals("sr", "south_slavic", SubtypeLocaleUtils.getKeyboardLayoutSetName(SR)); in testKeyboardLayoutSetName() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/internal/ |
D | PointerTrackerQueueTests.java | 69 assertEquals(0, mQueue.size()); in testEmpty() 70 assertEquals("[]", mQueue.toString()); in testEmpty() 75 assertEquals(1, mQueue.size()); in testAdd() 76 assertEquals("[1]", mQueue.toString()); in testAdd() 78 assertEquals(2, mQueue.size()); in testAdd() 79 assertEquals("[1 2]", mQueue.toString()); in testAdd() 81 assertEquals(3, mQueue.size()); in testAdd() 82 assertEquals("[1 2 3]", mQueue.toString()); in testAdd() 84 assertEquals(4, mQueue.size()); in testAdd() 85 assertEquals("[1 2 3 4]", mQueue.toString()); in testAdd() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
D | TextUtilitiesTests.java | 36 assertEquals("", TextUtilities.makeSnippetFromPlainText(null)); in testPlainSnippet() 37 assertEquals("", TextUtilities.makeSnippetFromPlainText("")); in testPlainSnippet() 42 assertEquals("", TextUtilities.makeSnippetFromPlainText(" \n\r\t\r\t\n")); in testPlainSnippet() 44 assertEquals("foo", TextUtilities.makeSnippetFromPlainText(c + "\r\n\tfoo \n\t\r" + c)); in testPlainSnippet() 45 assertEquals("foo bar", in testPlainSnippet() 49 assertEquals("Foo-Bar=Bletch", in testPlainSnippet() 53 assertEquals(" >", TextUtilities.makeSnippetFromPlainText(" >")); in testPlainSnippet() 58 assertEquals("", TextUtilities.makeSnippetFromHtmlText(null)); in testHtmlSnippet() 59 assertEquals("", TextUtilities.makeSnippetFromHtmlText("")); in testHtmlSnippet() 64 assertEquals("", TextUtilities.makeSnippetFromHtmlText(" \n\r\t\r\t\n")); in testHtmlSnippet() [all …]
|
/packages/services/Car/tests/carservice_test/src/com/android/car/test/ |
D | CarAudioExtFocusTest.java | 128 assertEquals(expected.length, actual.length); in checkStringArrayContents() 130 assertEquals(expected[i], actual[i]); in checkStringArrayContents() 233 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testMediaNavFocus() 235 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testMediaNavFocus() 236 assertEquals(0x1 << VehicleAudioStream.STREAM0, request[1]); in testMediaNavFocus() 237 assertEquals(0, request[2]); in testMediaNavFocus() 238 assertEquals(VehicleAudioContextFlag.MUSIC_FLAG, request[3]); in testMediaNavFocus() 255 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testMediaNavFocus() 256 assertEquals(0x3, request[1]); in testMediaNavFocus() 257 assertEquals(0, request[2]); in testMediaNavFocus() [all …]
|
D | CarAudioFocusTest.java | 142 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testMediaNavFocus() 144 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testMediaNavFocus() 145 assertEquals(0x1 << VehicleAudioStream.STREAM0, request[1]); in testMediaNavFocus() 146 assertEquals(0, request[2]); in testMediaNavFocus() 147 assertEquals(VehicleAudioContextFlag.MUSIC_FLAG, request[3]); in testMediaNavFocus() 162 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testMediaNavFocus() 163 assertEquals(0x3, request[1]); in testMediaNavFocus() 164 assertEquals(0, request[2]); in testMediaNavFocus() 165 assertEquals(VehicleAudioContextFlag.MUSIC_FLAG | in testMediaNavFocus() 174 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testMediaNavFocus() [all …]
|
D | CarAudioFocusSystemSoundTest.java | 109 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN_TRANSIENT_NO_DUCK, in testSystemSoundPlayStop() 111 assertEquals(0x2, request[1]); in testSystemSoundPlayStop() 112 assertEquals(0, request[2]); in testSystemSoundPlayStop() 113 assertEquals(VehicleAudioContextFlag.SYSTEM_SOUND_FLAG, request[3]); in testSystemSoundPlayStop() 121 assertEquals(VehicleAudioFocusRequest.REQUEST_RELEASE, in testSystemSoundPlayStop() 123 assertEquals(0, request[1]); in testSystemSoundPlayStop() 124 assertEquals(0, request[2]); in testSystemSoundPlayStop() 125 assertEquals(0, request[3]); in testSystemSoundPlayStop() 142 assertEquals(AudioManager.AUDIOFOCUS_REQUEST_GRANTED, res); in testRadioSystemSound() 144 assertEquals(VehicleAudioFocusRequest.REQUEST_GAIN, request[0]); in testRadioSystemSound() [all …]
|
/packages/apps/Email/tests/src/com/android/email/provider/ |
D | ProviderTestUtils.java | 276 assertEquals(caller + " mId", expect.mId, actual.mId); in assertEmailContentEqual() 277 assertEquals(caller + " mBaseUri", expect.mBaseUri, actual.mBaseUri); in assertEmailContentEqual() 291 assertEquals(caller + " mDisplayName", expect.mDisplayName, actual.mDisplayName); in assertAccountEqual() 292 assertEquals(caller + " mEmailAddress", expect.mEmailAddress, actual.mEmailAddress); in assertAccountEqual() 293 assertEquals(caller + " mSyncKey", expect.mSyncKey, actual.mSyncKey); in assertAccountEqual() 295 assertEquals(caller + " mSyncLookback", expect.mSyncLookback, actual.mSyncLookback); in assertAccountEqual() 296 assertEquals(caller + " mSyncInterval", expect.mSyncInterval, actual.mSyncInterval); in assertAccountEqual() 297 assertEquals(caller + " mHostAuthKeyRecv", expect.mHostAuthKeyRecv, in assertAccountEqual() 299 assertEquals(caller + " mHostAuthKeySend", expect.mHostAuthKeySend, in assertAccountEqual() 301 assertEquals(caller + " mFlags", expect.mFlags, actual.mFlags); in assertAccountEqual() [all …]
|
/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | HostAuthTests.java | 42 assertEquals("user", ha.mLogin); in testSetLogin() 43 assertEquals("password", ha.mPassword); in testSetLogin() 47 assertEquals("%20us%20er%20", ha.mLogin); in testSetLogin() 48 assertEquals("password", ha.mPassword); in testSetLogin() 52 assertEquals("user", ha.mLogin); in testSetLogin() 53 assertEquals("%20pass%20word%20", ha.mPassword); in testSetLogin() 56 assertEquals("user", ha.mLogin); in testSetLogin() 57 assertEquals("", ha.mPassword); in testSetLogin() 60 assertEquals("", ha.mLogin); in testSetLogin() 61 assertEquals("password", ha.mPassword); in testSetLogin() [all …]
|
/packages/apps/Email/tests/src/com/android/email/mail/store/ |
D | ImapStoreUnitTests.java | 165 assertEquals("", ImapStore.joinMessageUids(new Message[] {})); in testJoinMessageUids() 166 assertEquals("a", ImapStore.joinMessageUids(new Message[] { in testJoinMessageUids() 169 assertEquals("a,XX", ImapStore.joinMessageUids(new Message[] { in testJoinMessageUids() 254 assertEquals(mTestContext.getPackageName(), map.get("name")); in testImapIdBasic() 255 assertEquals("android", map.get("os")); in testImapIdBasic() 267 assertEquals("packageName", map.get("name")); in testImapIdBasic() 268 assertEquals("android", map.get("os")); in testImapIdBasic() 269 assertEquals("version; id", map.get("os-version")); in testImapIdBasic() 270 assertEquals("vendor", map.get("vendor")); in testImapIdBasic() 271 assertEquals(null, map.get("x-android-device-model")); in testImapIdBasic() [all …]
|
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLocaleUtilsTest.java | 134 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testEnglishContactLocaleUtils() 135 assertEquals("#", getLabel(PHONE_NUMBER_2)); in testEnglishContactLocaleUtils() 136 assertEquals("J", getLabel(LATIN_NAME)); in testEnglishContactLocaleUtils() 137 assertEquals("\u2026", getLabel(CHINESE_NAME)); in testEnglishContactLocaleUtils() 138 assertEquals("D", getLabel(CHINESE_LATIN_MIX_NAME_1)); in testEnglishContactLocaleUtils() 139 assertEquals("B", getLabel("Bob Smith")); in testEnglishContactLocaleUtils() 141 assertEquals("\u0646", getLabel(ARABIC_NAME)); in testEnglishContactLocaleUtils() 142 assertEquals("\u0408", getLabel(SERBIAN_NAME)); in testEnglishContactLocaleUtils() 145 assertEquals("\u0406", getLabel(UKRAINIAN_NAME)); in testEnglishContactLocaleUtils() 153 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testJapaneseContactLocaleUtils() [all …]
|
D | EnterpriseContactsCursorWrapperTest.java | 61 assertEquals(0, rewritten.getCount()); in testWrappedResults() 62 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults() 180 assertEquals(5, rewritten.getCount()); in testWrappedResults() 181 assertEquals(projection.length, rewritten.getColumnCount()); in testWrappedResults() 187 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. in testWrappedResults() 188 assertEquals(1000000001L, rewritten.getLong(column++)); // We offset ID for corp contacts. 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() 192 assertEquals(null, rewritten.getString(column++)); in testWrappedResults() [all …]
|
/packages/providers/CalendarProvider/tests/src/com/android/providers/calendar/ |
D | ICalendarTest.java | 16 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/apps/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 119 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/Email/tests/src/com/android/emailcommon/internet/ |
D | MimeMessageTest.java | 96 assertEquals(1, headers.length); in doTestSetSentDate() 102 assertEquals(expectedTime, result.getTime()); in doTestSetSentDate() 122 assertEquals("set and get Message-ID", testId1, message1.getMessageId()); in testMessageId() 128 assertEquals("set and get Message-ID", testId2, message2.getMessageId()); in testMessageId() 143 assertEquals(cid1, message.getContentId()); in testGetContentId() 147 assertEquals(cid1, message.getContentId()); in testGetContentId() 159 assertEquals("plain subjects", SHORT_PLAIN, message.getSubject()); in testSetSubjectPlain() 163 assertEquals("plain subject not encoded", -1, rawHeader.indexOf("=?")); in testSetSubjectPlain() 169 assertEquals("64 shouldn't fold", 1, split.length); in testSetSubjectPlain() 192 assertEquals("unicode readback", SHORT_UNICODE, message.getSubject()); in testSetSubject() [all …]
|
/packages/apps/LegacyCamera/tests/src/com/android/camera/unittest/ |
D | CameraTest.java | 34 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/ |
D | SearchUtilTest.java | 34 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/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/common/ |
D | StringUtilsTests.java | 33 assertEquals(lowerCase + " in " + locale, expected, in assert_toTitleCaseOfKeyLabel() 115 assertEquals(lowerCase + " in " + locale, expected, in assert_toTitleCaseOfKeyCode() 147 assertEquals(text + " in " + locale, expected, in assert_capitalizeFirstCodePoint() 166 assertEquals(text + " in " + locale, expected, in assert_capitalizeFirstAndDowncaseRest() 218 assertEquals("null", "", StringUtils.removeFromCommaSplittableTextIfExists("key", null)); in testRemoveFromCommaSplittableTextIfExists() 219 assertEquals("empty", "", StringUtils.removeFromCommaSplittableTextIfExists("key", "")); in testRemoveFromCommaSplittableTextIfExists() 221 assertEquals("not in 1 element", "key1", in testRemoveFromCommaSplittableTextIfExists() 223 assertEquals("not in 2 elements", "key1,key2", in testRemoveFromCommaSplittableTextIfExists() 226 assertEquals("in 1 element", "", in testRemoveFromCommaSplittableTextIfExists() 228 assertEquals("in 2 elements at position 1", "key2", in testRemoveFromCommaSplittableTextIfExists() [all …]
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/latin/ |
D | RichInputMethodSubtypeTests.java | 191 assertEquals(subtypeName, SubtypeLocaleUtils.getKeyboardLayoutSetDisplayName( in testAllMiddleDisplayNameForSpacebar() 194 assertEquals(subtypeName, in testAllMiddleDisplayNameForSpacebar() 229 assertEquals("en_US", "English (US)", EN_US.getFullDisplayName()); 230 assertEquals("en_GB", "English (UK)", EN_GB.getFullDisplayName()); 231 assertEquals("es_US", "Español (EE.UU.)", ES_US.getFullDisplayName()); 232 assertEquals("fr", "Français", FR.getFullDisplayName()); 233 assertEquals("fr_CA", "Français (Canada)", FR_CA.getFullDisplayName()); 234 assertEquals("fr_CH", "Français (Suisse)", FR_CH.getFullDisplayName()); 235 assertEquals("de", "Deutsch", DE.getFullDisplayName()); 236 assertEquals("de_CH", "Deutsch (Schweiz)", DE_CH.getFullDisplayName()); [all …]
|
D | NgramContextTests.java | 29 assertEquals(new NgramContext(new WordInfo("a")), new NgramContext(new WordInfo("a"))); in testConstruct() 30 assertEquals(new NgramContext(WordInfo.BEGINNING_OF_SENTENCE_WORD_INFO), in testConstruct() 32 assertEquals(new NgramContext(WordInfo.EMPTY_WORD_INFO), in testConstruct() 34 assertEquals(new NgramContext(WordInfo.EMPTY_WORD_INFO), in testConstruct() 59 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testGetNextNgramContext() 60 assertEquals("a", ngramContext_b_a.getNthPrevWord(2)); in testGetNextNgramContext() 64 assertEquals("b", ngramContext_bos_b.getNthPrevWord(2)); in testGetNextNgramContext() 67 assertEquals("c", ngramContext_c_bos.getNthPrevWord(1)); in testGetNextNgramContext() 73 assertEquals("<S>", ngramContext_bos.extractPrevWordsContext()); in testExtractPrevWordsContextTest() 77 assertEquals("b", ngramContext_b_a.getNthPrevWord(1)); in testExtractPrevWordsContextTest() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/compose/ |
D | ComposeActivityTest.java | 161 assertEquals(3, to.length); in testRecipientsRefReplyAllCustomFromReplyTo() 163 assertEquals(0, cc.length); in testRecipientsRefReplyAllCustomFromReplyTo() 164 assertEquals(0, bcc.length); in testRecipientsRefReplyAllCustomFromReplyTo() 198 assertEquals(1, to.length); in testRecipientsRefReplyAllOnlyAccount() 200 assertEquals(0, cc.length); in testRecipientsRefReplyAllOnlyAccount() 201 assertEquals(0, bcc.length); in testRecipientsRefReplyAllOnlyAccount() 239 assertEquals(1, to.length); in testRecipientsRefReplyAllOnlyCustomFrom() 241 assertEquals(0, cc.length); in testRecipientsRefReplyAllOnlyCustomFrom() 242 assertEquals(0, bcc.length); in testRecipientsRefReplyAllOnlyCustomFrom() 261 assertEquals(refMessageFromAccount, in testReply() [all …]
|