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

123

/packages/apps/Contacts/tests/src/com/android/contacts/
H A DRawContactDeltaTests.java80 final RawContact before = new RawContact(context, 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.java183 final RawContact before = new RawContact(mContext, contact);
185 before.addDataItemValues(values);
187 return RawContactDelta.fromBefore(before);
448 // Build "before" that has empty row
450 final ContentValues before = new ContentValues();
451 before.put(Data._ID, TEST_ID);
452 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE);
453 state.addEntry(ValuesDelta.fromBefore(before));
472 // Build "before" that has row with some phone number
473 final ContentValues before
[all...]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
H A DSuggestionSpanPickedNotificationReceiver.java35 final String before = intent.getStringExtra(
39 Log.d(TAG, "Received notification picked: " + before + "," + after);
H A DLatinImeLogger.java44 String before, String after, int position, SuggestedWords suggestedWords) {
48 String before, String after, int separatorCode) {
51 public static void logOnAutoCorrectionForGeometric(String before, String after, argument
43 logOnManualSuggestion( String before, String after, int position, SuggestedWords suggestedWords) argument
47 logOnAutoCorrectionForTyping( String before, String after, int separatorCode) argument
H A DBinaryDictionary.java119 private static native float calcNormalizedScoreNative(char[] before, char[] after, int score); argument
120 private static native int editDistanceNative(char[] before, char[] after); argument
185 public static float calcNormalizedScore(String before, String after, int score) { argument
186 return calcNormalizedScoreNative(before.toCharArray(), after.toCharArray(), score);
189 public static int editDistance(String before, String after) { argument
190 if (before == null || after == null) {
193 return editDistanceNative(before.toCharArray(), after.toCharArray());
H A DRichInputConnection.java216 // If we have some composing text and a space before, then we should have
446 /** Characters before selection start */
472 // Get the nth word before cursor. n = 1 retrieves the word immediately before the cursor,
473 // n = 2 retrieves the word before that, and so on. This splits on whitespace only.
474 // Also, it won't return words that end in a separator (if the nth word before the cursor
529 * @param additionalPrecedingWordsCount the number of words before the current word that should
538 CharSequence before = mIC.getTextBeforeCursor(1000, 0);
540 if (before == null || after == null) {
546 int start = 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.h97 int outputSuggestions(const unsigned short *before, const int beforeLength, argument
123 const float tempNs = getNormalizedScore(tempSw, before, beforeLength, 0, 0, 0);
178 float getHighestNormalizedScore(const unsigned short *before, const int beforeLength, argument
184 mHighestSuggestedWord, before, beforeLength, outWord, outScore, outLength);
206 static float getNormalizedScore(SuggestedWord *sw, const unsigned short *before, argument
221 before, beforeLength, word, wordLength, score);
H A Dcorrection.h114 static float calcNormalizedScore(const unsigned short *before, const int beforeLength,
116 static int editDistance(const unsigned short *before,
H A Dcorrection.cpp298 // Needs to set mTerminalInputIndex and mTerminalOutputIndex before returning any CorrectionType
1044 int *editDistanceTable, const unsigned short *before,
1059 const uint32_t ci = toBaseLowerCase(before[i]);
1065 && co == toBaseLowerCase(before[i - 1])) {
1083 int Correction::RankingAlgorithm::editDistance(const unsigned short *before, argument
1086 return editDistanceInternal(table, before, beforeLength, after, afterLength);
1099 // (full match up to min(before.length(), after.length())
1103 // - If before.length() == after.length()
1105 // So, maximum original score is powf(2, min(before.length(), after.length())) * 255 * 2 * 1.2
1112 float Correction::RankingAlgorithm::calcNormalizedScore(const unsigned short *before, argument
1043 editDistanceInternal( int *editDistanceTable, const unsigned short *before, const int beforeLength, const unsigned short *after, const int afterLength) argument
[all...]
/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.cpp225 jcharArray before, jcharArray after, jint score) {
226 jsize beforeLength = env->GetArrayLength(before);
230 env->GetCharArrayRegion(before, 0, beforeLength, beforeChars);
238 jcharArray before, jcharArray after) {
239 jsize beforeLength = env->GetArrayLength(before);
243 env->GetCharArrayRegion(before, 0, beforeLength, beforeChars);
224 latinime_BinaryDictionary_calcNormalizedScore(JNIEnv *env, jobject object, jcharArray before, jcharArray after, jint score) argument
237 latinime_BinaryDictionary_editDistance(JNIEnv *env, jobject object, jcharArray before, jcharArray after) 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.java276 public void beforeTextChanged(CharSequence s, int start, int before, int after) { argument
279 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/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
/packages/apps/VideoEditor/src/com/android/videoeditor/
H A DAlertDialogs.java142 public void onTextChanged(CharSequence s, int start, int before, int count) {

Completed in 544 milliseconds

123