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

1234

/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/DeskClock/src/com/android/deskclock/data/
H A DTimerListener.java31 * @param after the timer state after the update
33 void timerUpdated(Timer before, Timer after); 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/apps/Settings/
H A Dwrap_alpha.py13 after = before.replace(".png", "_alpha.png") variable
14 os.rename(os.path.join(root, before), os.path.join(root, after))
/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/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.java45 final ContentValues after = new ContentValues();
46 after.put(Phone.NUMBER, TEST_PHONE_NUMBER_2);
48 final ValuesDelta values = ValuesDelta.fromAfter(after);
/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);
59 latinime_BinaryDictionaryUtils_calcNormalizedScore(JNIEnv *env, jclass clazz, jintArray before, jintArray after, jint score) argument
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
H A DBinaryDictionaryUtils.java46 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); argument
109 public static float calcNormalizedScore(final String before, final String after, argument
112 StringUtils.toCodePointArray(after), score);
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
H A DSendersFormattingTests.java103 final ConversationInfo after = ConversationInfo.fromBlob(serialized);
104 assertEquals(1, after.participantInfos.size());
105 assertEquals(before.participantInfos.get(0).name, after.participantInfos.get(0).name);
121 final ConversationInfo after = ConversationInfo.fromBlob(serialized);
122 assertEquals(before.firstSnippet, after.firstSnippet);
123 assertEquals(before.firstUnreadSnippet, after.firstUnreadSnippet);
124 assertEquals(before.lastSnippet, after.lastSnippet);
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
H A DRawContactDeltaTests.java328 final ContentValues after = new ContentValues();
329 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
330 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
332 final ValuesDelta values = ValuesDelta.fromAfter(after);
350 final ContentValues after = new ContentValues();
351 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME);
352 after.put(RawContacts.SEND_TO_VOICEMAIL, 1);
354 final ValuesDelta values = ValuesDelta.fromAfter(after);
/packages/apps/DeskClock/src/com/android/deskclock/timer/
H A DExpiredTimersActivity.java261 public void timerUpdated(Timer before, Timer after) { argument
262 if (!before.isExpired() && after.isExpired()) {
263 addTimer(after);
264 } else if (before.isExpired() && !after.isExpired()) {
H A DTimerPagerAdapter.java152 public void timerUpdated(Timer before, Timer after) { argument
153 final TimerItemFragment timerItemFragment = mFragments.get(after.getId());
/packages/apps/Contacts/src/com/android/contacts/activities/
H A DAttachPhotoActivity.java364 // since this function can be called after the activity stops and resumes.
369 final ContentValues after = new ContentValues();
370 after.put(RawContacts.ACCOUNT_TYPE, account != null ? account.type : null);
371 after.put(RawContacts.ACCOUNT_NAME, account != null ? account.name : null);
372 after.put(RawContacts.DATA_SET, account != null ? account.dataSet : null);
375 = new RawContactDelta(ValuesDelta.fromAfter(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.java286 // Schedule the next repeating instance after the current time
683 boolean hasTimeout = timeoutTime != null && currentTime.after(timeoutTime);
717 if (currentTime.after(missedTTL)) {
720 } else if (currentTime.after(alarmTime)) {
738 } else if (currentTime.after(highNotificationTime)) {
740 } else if (currentTime.after(lowNotificationTime)) {
798 // Register all instances after major time changes or when phone restarts
811 if (currentTime.before(priorAlarmTime) || currentTime.after(missedTTLTime)) {
/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) {}
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DRichInputConnection.java94 * after observing a slow InputConnection event.
100 * cursor or selection start may end up after all the keyboard-triggered updates have passed. We
286 // TODO: this is not correct! The cursor is not necessarily after the composing text.
348 * Gets the caps modes we should be in after this specific string.
351 * This method also supports faking an additional space after the string passed in argument,
359 * @param hasSpaceBefore if we should consider there should be a space after the string.
378 // information but not enough to determine the caps mode accurately. This may happen after
475 // TODO: the following is incorrect if the cursor is not immediately after the composition.
713 final CharSequence after = getTextAfterCursorAndDetectLaggyConnection(
718 if (before == null || after
[all...]
/packages/apps/Messaging/
H A DForceProguard.mk15 # Check to see if we need to force proguard to re-run, typically after using tapas to

Completed in 764 milliseconds

1234