Searched refs:before (Results 1 - 25 of 72) sorted by relevance

123

/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
H A DValuesDeltaTests.java61 final ContentValues before = new ContentValues();
62 before.put(Data._ID, TEST_PHONE_ID);
63 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1);
65 final ValuesDelta values = ValuesDelta.fromBefore(before);
73 final ContentValues before = new ContentValues();
74 before.put(Data._ID, TEST_PHONE_ID);
75 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1);
77 final ValuesDelta values = ValuesDelta.fromBefore(before);
/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRawContactDeltaTests.java80 final RawContact before = new RawContact(contact);
81 before.addDataItemValues(phone);
82 return before;
89 * "before" {@link RawContact}.
92 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
93 final RawContactDelta source = RawContactDelta.fromBefore(before);
94 final RawContactDelta dest = RawContactDelta.fromBefore(before);
102 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID);
103 final RawContactDelta source = RawContactDelta.fromBefore(before);
104 final RawContactDelta dest = RawContactDelta.fromBefore(before);
[all...]
H A DRawContactModifierTests.java180 final RawContact before = new RawContact(contact);
182 before.addDataItemValues(values);
184 return RawContactDelta.fromBefore(before);
445 // Build "before" that has empty row
447 final ContentValues before = new ContentValues();
448 before.put(Data._ID, TEST_ID);
449 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
450 state.addEntry(ValuesDelta.fromBefore(before));
469 // Build "before" that has row with some phone number
470 final ContentValues before
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggestionSpanPickedNotificationReceiver.java34 final String before = intent.getStringExtra(
38 Log.d(TAG, "Received notification picked: " + before + "," + after);
H A DLatinImeLogger.java48 String before, String after, int position, SuggestedWords suggestedWords) {
52 String before, String after, int separatorCode) {
55 public static void logOnAutoCorrectionForGeometric(String before, String after, argument
47 logOnManualSuggestion( String before, String after, int position, SuggestedWords suggestedWords) argument
51 logOnAutoCorrectionForTyping( String before, String after, int separatorCode) argument
H A DBinaryDictionary.java99 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); argument
100 private static native int editDistanceNative(int[] before, int[] after); argument
177 public static float calcNormalizedScore(final String before, final String after, argument
179 return calcNormalizedScoreNative(StringUtils.toCodePointArray(before),
183 public static int editDistance(final String before, final String after) { argument
184 if (before == null || after == null) {
187 return editDistanceNative(StringUtils.toCodePointArray(before),
H A DRichInputConnection.java212 // If we have some composing text and a space before, then we should have
444 /** Characters before selection start */
470 // Get the nth word before cursor. n = 1 retrieves the word immediately before the cursor,
471 // n = 2 retrieves the word before that, and so on. This splits on whitespace only.
472 // Also, it won't return words that end in a separator (if the nth word before the cursor
520 * @param additionalPrecedingWordsCount the number of words before the current word that should
529 final CharSequence before = mIC.getTextBeforeCursor(1000,
533 if (before == null || after == null) {
540 int startIndexInBefore = before
[all...]
/packages/experimental/RpcPerformance/
H A Drpcperftest.cpp80 struct timespec before, after; local
81 clock_gettime(CLOCK_MONOTONIC, &before);
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
53 if (before == null) {
70 // After doesn't exist, so delete "before" values
71 for (NamedContentValues child : before.getSubValues()) {
78 builder.withSelection(getSelectIdClause(before.getEntityValues()), null);
84 if (!before.getEntityValues().equals(values)) {
93 final HashMap<String, NamedContentValues> beforeChildren = buildChildrenMap(before);
96 // Walk through "before" children looking for deletes and updates
102 // After child doesn't exist, so delete "before" chil
[all...]
H A DEntitySet.java73 final Entity before = iterator.next();
74 final EntityDelta entity = EntityDelta.fromBefore(before);
100 // No local entry before, so insert
110 * the "before" {@link Entity} states into the modified state which all
H A DEntityDelta.java82 * starting point; the "before" snapshot.
84 public static EntityDelta fromBefore(Entity before) { argument
86 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues());
88 for (NamedContentValues namedValues : before.getSubValues()) {
96 * "before" state represented by this {@link EntityDelta}, discarding any
129 // No local entry before, so insert
247 // Requesting an "insert" entry, which has no "before"
345 * "before" state hasn't changed. This is maintained separately so that all
346 * asserts can take place before any updates occur.
366 * current "before" {
510 fromBefore(ContentValues before) argument
[all...]
/packages/inputmethods/LatinIME/native/jni/src/
H A Dwords_priority_queue.cpp21 int WordsPriorityQueue::outputSuggestions(const int *before, const int beforeLength, argument
46 const float tempNs = getNormalizedScore(tempSw, before, beforeLength, 0, 0, 0);
H A Dwords_priority_queue.h119 AK_FORCE_INLINE float getHighestNormalizedScore(const int *before, const int beforeLength, argument
124 return getNormalizedScore(mHighestSuggestedWord, before, beforeLength, outWord, outScore,
128 int outputSuggestions(const int *before, const int beforeLength, int *frequencies,
149 static float getNormalizedScore(SuggestedWord *sw, const int *before, const int beforeLength, argument
163 return Correction::RankingAlgorithm::calcNormalizedScore(before, beforeLength, word,
/packages/apps/Mms/src/com/android/mms/ui/
H A DConversationListItem.java112 int before = buf.length();
117 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
121 int before = buf.length();
125 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before,
129 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
H A DBasicSlideEditorView.java72 public void onTextChanged(CharSequence s, int start, int before,
/packages/inputmethods/LatinIME/native/jni/
H A Dcom_android_inputmethod_latin_BinaryDictionary.cpp231 jintArray before, jintArray after, jint score) {
232 jsize beforeLength = env->GetArrayLength(before);
236 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints);
242 static jint latinime_BinaryDictionary_editDistance(JNIEnv *env, jclass clazz, jintArray before, argument
244 jsize beforeLength = env->GetArrayLength(before);
248 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints);
230 latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jclass clazz, jintArray before, jintArray after, jint score) argument
/packages/apps/Calculator/src/com/android/calculator2/
H A DColorButton.java62 protected void onTextChanged(CharSequence text, int start, int before, int after) { argument
/packages/experimental/procstatlog/
H A Dprocstatlog.c389 struct timeval before, after; local
390 gettimeofday(&before, NULL);
391 printf("T + %ld.%06ld\n", before.tv_sec, before.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/Launcher2/src/com/android/launcher2/
H A DStrokedTextView.java74 protected void onTextChanged(CharSequence text, int start, int before, int after) { argument
75 super.onTextChanged(text, start, before, after);
/packages/apps/Contacts/src/com/android/contacts/interactions/
H A DGroupNameDialogFragment.java74 public void onTextChanged(CharSequence s, int start, int before, int count) {
/packages/apps/Bluetooth/src/com/android/bluetooth/pbap/
H A DBluetoothPbapActivity.java275 public void beforeTextChanged(CharSequence s, int start, int before, int after) { argument
278 public void onTextChanged(CharSequence s, int start, int before, int count) { argument
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/
H A DUserDictionaryToolsEdit.java147 /* save the word's information before this edit */
187 public void onTextChanged(CharSequence s, int start, int before, int count) {
203 public void onTextChanged(CharSequence s, int start, int before, int count) {
/packages/apps/Contacts/src/com/android/contacts/model/
H A DRawContactDelta.java87 * starting point; the "before" snapshot.
89 public static RawContactDelta fromBefore(RawContact before) { argument
91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues());
93 for (final ContentValues values : before.getContentValues()) {
101 * "before" state represented by this {@link RawContactDelta}, discarding any
134 // No local entry before, so insert
299 // Requesting an "insert" entry, which has no "before"
400 * "before" state hasn't changed. This is maintained separately so that all
401 * asserts can take place before any updates occur.
421 * current "before" {
[all...]
/packages/apps/Mms/src/com/android/mms/widget/
H A DMmsWidgetService.java256 int before = from.length();
259 android.R.style.TextAppearance_Small, color), before,
263 before, from.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
/packages/apps/Email/src/com/android/email/activity/setup/
H A DEditQuickResponseDialog.java119 public void onTextChanged(CharSequence s, int start, int before, int count) {} argument

Completed in 503 milliseconds

123