Searched refs:after (Results 1 - 25 of 74) sorted by relevance

123

/packages/inputmethods/LatinIME/native/jni/tests/utils/
H A Dautocorrection_threshold_utils_test.cpp27 const std::vector<int> &after) {
29 &before[0], before.size(), &after[0], after.size());
26 CalcEditDistance(const std::vector<int> &before, const std::vector<int> &after) argument
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/
H A DAccountTests.java48 final Account after = intent.getParcelableExtra(Utils.EXTRA_ACCOUNT);
49 assertNotNull(after);
51 assertEquals(before.getEmailAddress(), after.getEmailAddress());
52 assertEquals(before.getDisplayName(), after.getDisplayName());
53 assertEquals(before.accountFromAddresses, after.accountFromAddresses);
54 assertEquals(before.capabilities, after.capabilities);
55 assertEquals(before.providerVersion, after.providerVersion);
56 assertEquals(before.uri, after.uri);
57 assertEquals(before.folderListUri, after.folderListUri);
58 assertEquals(before.searchUri, after
[all...]
/packages/inputmethods/LatinIME/native/jni/src/utils/
H A Dautocorrection_threshold_utils.h27 const int *after, const int afterLength, const int score);
28 static int editDistance(const int *before, const int beforeLength, const int *after,
H A Dautocorrection_threshold_utils.cpp33 const int beforeLength, const int *after, const int afterLength) {
35 before, beforeLength, after, afterLength);
58 // (full match up to min(before.length(), after.length())
62 // - If before.length() == after.length()
64 // So, maximum original score is powf(2, min(before.length(), after.length())) * 255 * 2 * 1.2
71 const int beforeLength, const int *after, const int afterLength, const int score) {
75 const int distance = editDistance(before, beforeLength, after, afterLength);
78 if (after[i] == KEYCODE_SPACE) {
32 editDistance(const int *before, const int beforeLength, const int *after, const int afterLength) argument
70 calcNormalizedScore(const int *before, const int beforeLength, const int *after, const int afterLength, const int score) argument
/packages/apps/Email/tests/src/com/android/emailcommon/provider/
H A DAccountTest.java100 final Account after = Account.fromJson(before.toJson());
102 assertEquals(before.getDisplayName(), after.getDisplayName());
103 assertEquals(before.getEmailAddress(), after.getEmailAddress());
104 assertEquals(before.getSyncLookback(), after.getSyncLookback());
105 assertEquals(before.getSyncInterval(), after.getSyncInterval());
106 assertEquals(before.mHostAuthSend, after.mHostAuthSend);
107 assertEquals(before.mHostAuthKeySend, after.mHostAuthKeySend);
108 assertEquals(before.mHostAuthKeyRecv, after.mHostAuthKeyRecv);
109 assertEquals(before.getFlags(), after.getFlags());
110 assertEquals(before.getSenderName(), after
[all...]
H A DHostAuthTests.java270 final HostAuth after = HostAuth.fromJson(before.toJson());
272 assertEquals(before.mProtocol, after.mProtocol);
273 assertEquals(before.mAddress, after.mAddress);
274 assertEquals(before.mPort, after.mPort);
275 assertEquals(before.mFlags, after.mFlags);
276 assertTrue(Arrays.equals(before.getLogin(), after.getLogin()));
277 assertEquals(before.mDomain, after.mDomain);
278 assertEquals(before.mClientCertAlias, after.mClientCertAlias);
279 assertEquals(before.mCredential, after.mCredential);
281 assertNull(after
[all...]
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp60 jintArray before, jintArray after, jint score) {
62 jsize afterLength = env->GetArrayLength(after);
66 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints);
72 jintArray after) {
74 jsize afterLength = env->GetArrayLength(after);
78 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints);
59 latinime_BinaryDictionaryUtils_calcNormalizedScore(JNIEnv *env, jclass clazz, jintArray before, jintArray after, jint score) argument
71 latinime_BinaryDictionaryUtils_editDistance(JNIEnv *env, jclass clazz, jintArray before, jintArray after) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggestionSpanPickedNotificationReceiver.java38 final String after = intent.getStringExtra(
40 Log.d(TAG, "Received notification picked: " + before + "," + after);
H A DRichInputConnection.java68 * cursor or selection start may end up after all the keyboard-triggered updates have passed. We
235 // TODO: this is not correct! The cursor is not necessarily after the composing text.
329 * Gets the caps modes we should be in after this specific string.
332 * This method also supports faking an additional space after the string passed in argument,
340 * @param hasSpaceBefore if we should consider there should be a space after the string.
358 // information but not enough to determine the caps mode accurately. This may happen after
415 // TODO: the following is incorrect if the cursor is not immediately after the composition.
653 final CharSequence after = mIC.getTextAfterCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE,
655 if (before == null || after == null) {
672 // Find last word separator after th
[all...]
/packages/experimental/RpcPerformance/
H A Drpcperftest.cpp80 struct timespec before, after; local
89 clock_gettime(CLOCK_MONOTONIC, &after);
91 double seconds = (after.tv_sec - before.tv_sec);
92 seconds += (after.tv_nsec - before.tv_nsec) / 1000000000.0;
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DSendersFormattingTests.java92 final ConversationInfo after = ConversationInfo.fromBlob(serialized);
93 assertEquals(1, after.participantInfos.size());
94 assertEquals(before.participantInfos.get(0).name, after.participantInfos.get(0).name);
110 final ConversationInfo after = ConversationInfo.fromBlob(serialized);
111 assertEquals(before.firstSnippet, after.firstSnippet);
112 assertEquals(before.firstUnreadSnippet, after.firstUnreadSnippet);
113 assertEquals(before.lastSnippet, after.lastSnippet);
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DBinaryDictionaryUtils.java45 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); argument
46 private static native int editDistanceNative(int[] before, int[] after); argument
109 public static float calcNormalizedScore(final String before, final String after, argument
112 StringUtils.toCodePointArray(after), score);
115 public static int editDistance(final String before, final String after) { argument
116 if (before == null || after == null) {
120 StringUtils.toCodePointArray(after));
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
H A DEntityDiff.java42 * from "before" to "after". Tries its best to keep operations to
46 public static EntityDiff buildDiff(Entity before, Entity after, Uri targetUri, argument
54 // Before doesn't exist, so insert "after" values
56 builder.withValues(after.getEntityValues());
59 for (NamedContentValues child : after.getSubValues()) {
69 } else if (after == null) {
83 values = after.getEntityValues();
94 final HashMap<String, NamedContentValues> afterChildren = buildChildrenMap(after);
115 // Remove the now-handled "after" child
119 // Walk through remaining "after" childre
[all...]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
H A DValuesDeltaTests.java44 final ContentValues after = new ContentValues();
45 after.put(Phone.NUMBER, TEST_PHONE_NUMBER_2);
47 final ValuesDelta values = ValuesDelta.fromAfter(after);
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
H A DRawContactDeltaTests.java317 final ContentValues after = new ContentValues();
318 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
319 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
321 final ValuesDelta values = ValuesDelta.fromAfter(after);
338 final ContentValues after = new ContentValues();
339 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
340 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
342 final ValuesDelta values = ValuesDelta.fromAfter(after);
H A DRawContactDeltaListTests.java108 final ContentValues after = new ContentValues();
109 after.put(RawContacts.ACCOUNT_NAME, RawContactDeltaTests.TEST_ACCOUNT_NAME);
110 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
112 final ValuesDelta values = ValuesDelta.fromAfter(after);
139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact));
141 after.addEntry(ValuesDelta.fromAfter(entry));
143 return after;
/packages/experimental/procstatlog/
H A Dprocstatlog.c100 // terminator: if non-NULL, processing stops after this string
389 struct timeval before, after; local
397 gettimeofday(&after, NULL);
398 printf("T - %ld.%06ld\n", after.tv_sec, after.tv_usec);
400 long elapsed_usec = (long) after.tv_usec - before.tv_usec;
401 elapsed_usec += 1000000l * (after.tv_sec - before.tv_sec);
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/
H A DEditTextFragment.java129 public void beforeTextChanged(CharSequence s, int start, int count, int after) { argument
131 mTextWatcher.beforeTextChanged(s, start, count, after);
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
H A DAlarmStateManager.java178 if (currentTime.after(alarmTime)) {
535 boolean hasTimeout = timeoutTime != null && currentTime.after(timeoutTime);
563 if (currentTime.after(missedTTL)) {
566 } else if (currentTime.after(alarmTime)) {
584 } else if (currentTime.after(highNotificationTime)) {
586 } else if (currentTime.after(lowNotificationTime)) {
627 // Register all instances after major time changes or when phone restarts
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupNameDialogFragment.java78 public void beforeTextChanged(CharSequence s, int start, int count, int after) {
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSetupBasicsFragment.java58 public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
H A DEditQuickResponseDialog.java95 public void beforeTextChanged(CharSequence s, int start, int count, int after) {}
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DUserDictionaryToolsEdit.java185 public void beforeTextChanged(CharSequence s, int start, int count, int after) {
201 public void beforeTextChanged(CharSequence s, int start, int count, int after) {
/packages/apps/DeskClock/src/com/android/deskclock/
H A DUtils.java176 * Uses {@link Utils#calculateRadiusOffset(float, float, float)} after fetching the values
328 s.play(grow.setDuration(SLIDE_TIME/2)).after(shrink);
340 s.play(xMove.setDuration(0)).after(FADE_TIME);
341 s.play(yMove.setDuration(0)).after(FADE_TIME);
342 s.play(fadein).after(FADE_TIME);
343 s.play(grow).after(FADE_TIME);
/packages/apps/Mms/src/com/android/mms/ui/
H A DRecipientsEditor.java85 setThreshold(1); // pop-up the list after a single char is typed
101 int count, int after) {
108 int before, int after) {
109 if (before == 0 && after == 1) { // inserting a character

Completed in 562 milliseconds

123