/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/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/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 …]
|
D | ProviderTests.java | 332 assertEquals("eas", Account.getProtocol(mMockContext, account1.mId)); in testGetProtocol() 333 assertEquals("eas", account1.getProtocol(mMockContext)); in testGetProtocol() 445 assertEquals("body text", text2, body2.mTextContent); in testMessageSave() 446 assertEquals("body html", html2, body2.mHtmlContent); in testMessageSave() 447 assertEquals("source key", sourceKey2, body2.mSourceKey); in testMessageSave() 487 assertEquals(3, numAtts); in testMessageWithAttachment() 539 assertEquals(3, numAtts); in testMessageSaveWithJustAttachments() 554 assertEquals(3, size); in testMessageSaveWithJustAttachments() 579 assertEquals( in testMessageSaveAddsSnippet() 594 assertEquals( in testMessageSaveAddsSnippet() [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/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/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/Contacts/tests/src/com/android/contacts/widget/ |
D | CompositeListAdapterTest.java | 117 assertEquals(5, adapter.getCount()); in testGetCount() 122 assertEquals(0, adapter.getCount()); in testGetCountWithInvalidation() 125 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 128 assertEquals(2, adapter.getCount()); in testGetCountWithInvalidation() 131 assertEquals(5, adapter.getCount()); in testGetCountWithInvalidation() 140 assertEquals("A", adapter.getItem(0)); in testGetItem() 141 assertEquals("B", adapter.getItem(1)); in testGetItem() 142 assertEquals("C", adapter.getItem(2)); in testGetItem() 143 assertEquals("D", adapter.getItem(3)); in testGetItem() 144 assertEquals("E", adapter.getItem(4)); in testGetItem() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactModifierTests.java | 293 assertEquals("Unexpected suggestion", typeHome, suggested); in testBestValidType() 298 assertEquals("Unexpected suggestion", typeWork, suggested); in testBestValidType() 303 assertEquals("Unexpected suggestion", typeWork, suggested); in testBestValidType() 308 assertEquals("Unexpected suggestion", typeWork, suggested); in testBestValidType() 313 assertEquals("Unexpected suggestion", typeOther, suggested); in testBestValidType() 356 assertEquals("Unexpected operations", 3, diff.size()); in testTrimEmptySingle() 359 assertEquals("Expected aggregation mode change", TYPE_UPDATE, oper.getType()); in testTrimEmptySingle() 360 assertEquals("Incorrect target", RawContacts.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() 364 assertEquals("Incorrect type", TYPE_INSERT, oper.getType()); in testTrimEmptySingle() 365 assertEquals("Incorrect target", Data.CONTENT_URI, oper.getUri()); in testTrimEmptySingle() [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/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 …]
|
/packages/apps/Camera/tests/src/com/android/camera/unittest/ |
D | CameraUnitTest.java | 30 assertEquals(0, Util.roundOrientation(0, 0)); in testRoundOrientation() 31 assertEquals(0, Util.roundOrientation(359, 0)); in testRoundOrientation() 32 assertEquals(0, Util.roundOrientation(0 + 44 + h, 0)); in testRoundOrientation() 33 assertEquals(90, Util.roundOrientation(0 + 45 + h, 0)); in testRoundOrientation() 34 assertEquals(0, Util.roundOrientation(360 - 44 - h, 0)); in testRoundOrientation() 35 assertEquals(270, Util.roundOrientation(360 - 45 - h, 0)); in testRoundOrientation() 37 assertEquals(90, Util.roundOrientation(90, 90)); in testRoundOrientation() 38 assertEquals(90, Util.roundOrientation(90 + 44 + h, 90)); in testRoundOrientation() 39 assertEquals(180, Util.roundOrientation(90 + 45 + h, 90)); in testRoundOrientation() 40 assertEquals(90, Util.roundOrientation(90 - 44 - h, 90)); in testRoundOrientation() [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/providers/ContactsProvider/tests/src/com/android/providers/contacts/ |
D | ContactLocaleUtilsTest.java | 153 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testEnglishContactLocaleUtils() 154 assertEquals("#", getLabel(PHONE_NUMBER_2)); in testEnglishContactLocaleUtils() 155 assertEquals("J", getLabel(LATIN_NAME)); in testEnglishContactLocaleUtils() 156 assertEquals("", getLabel(CHINESE_NAME)); in testEnglishContactLocaleUtils() 157 assertEquals("D", getLabel(CHINESE_LATIN_MIX_NAME_1)); in testEnglishContactLocaleUtils() 158 assertEquals("B", getLabel("Bob Smith")); in testEnglishContactLocaleUtils() 161 assertEquals("\u0646", getLabel(ARABIC_NAME)); in testEnglishContactLocaleUtils() 164 assertEquals("\u0408", getLabel(SERBIAN_NAME)); in testEnglishContactLocaleUtils() 167 assertEquals("\u0406", getLabel(UKRAINIAN_NAME)); in testEnglishContactLocaleUtils() 181 assertEquals("#", getLabel(PHONE_NUMBER_1)); in testJapaneseContactLocaleUtils() [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/Calendar/tests/src/com/android/calendar/alerts/ |
D | AlertServiceTest.java | 265 assertEquals(0, AlertUtils.EXPIRED_GROUP_NOTIFICATION_ID); in NotificationTestManager() 308 assertEquals("Priority not as expected for notification " + id + debugStr, in validateNotificationsAndReset() 312 assertEquals("Event ID not expected for notification " + id + debugStr, in validateNotificationsAndReset() 314 assertEquals("Begin time not expected for notification " + id + debugStr, in validateNotificationsAndReset() 316 assertEquals("End time not expected for notification " + id + debugStr, in validateNotificationsAndReset() 322 assertEquals("Number of notifications in digest not as expected." in validateNotificationsAndReset() 326 assertEquals("Digest item " + i + ": Event ID not as expected" in validateNotificationsAndReset() 328 assertEquals("Digest item " + i + ": Begin time in digest not expected" in validateNotificationsAndReset() 330 assertEquals("Digest item " + i + ": End time in digest not expected" in validateNotificationsAndReset() 743 assertEquals(0, lowPriority.size()); in testProcessQuery_skipDeclinedDismissed() [all …]
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/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 …]
|