Home
last modified time | relevance | path

Searched refs:before (Results 1 – 25 of 94) sorted by relevance

1234

/packages/apps/Email/tests/src/com/android/emailcommon/provider/
DAccountTest.java81 final Account before = new Account(); in testSerializeAndDeserializeWithJSON() local
82 before.setDisplayName("David Hasselhoff"); in testSerializeAndDeserializeWithJSON()
83 before.setEmailAddress("dhoff@example.com"); in testSerializeAndDeserializeWithJSON()
84 before.mSyncKey = "syncKey"; in testSerializeAndDeserializeWithJSON()
85 before.setSyncLookback(42); in testSerializeAndDeserializeWithJSON()
86 before.setSyncInterval(99); in testSerializeAndDeserializeWithJSON()
87 before.setFlags(1 << 5); in testSerializeAndDeserializeWithJSON()
88 before.setSenderName("Friend of Kitt"); in testSerializeAndDeserializeWithJSON()
89 before.mProtocolVersion = "protocol version 3.14"; in testSerializeAndDeserializeWithJSON()
90 before.mSecuritySyncKey = "securitySyncKey"; in testSerializeAndDeserializeWithJSON()
[all …]
DHostAuthTests.java254 final HostAuth before = new HostAuth(); in testSerializeAndDeserializeWithJSON() local
255 before.mProtocol = "IMAP"; in testSerializeAndDeserializeWithJSON()
256 before.mAddress = "dhoff@example.com"; in testSerializeAndDeserializeWithJSON()
257 before.mPort = 1337; in testSerializeAndDeserializeWithJSON()
258 before.mFlags = 293847; in testSerializeAndDeserializeWithJSON()
259 before.setLogin("dhoff", "daknightrida"); in testSerializeAndDeserializeWithJSON()
260 before.mDomain = "example.com"; in testSerializeAndDeserializeWithJSON()
261 before.mClientCertAlias = "I'm a client cert alias"; in testSerializeAndDeserializeWithJSON()
262 before.mServerCert = new byte[] {(byte) 0xFF, (byte) 0xAA}; in testSerializeAndDeserializeWithJSON()
263 before.mCredentialKey = 9873425; in testSerializeAndDeserializeWithJSON()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/
DRawContactDeltaTests.java80 final RawContact before = new RawContact(contact); in getRawContact() local
81 before.addDataItemValues(phone); in getRawContact()
82 return before; in getRawContact()
92 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesNone() local
93 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone()
94 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone()
102 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesInsert() local
103 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert()
104 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert()
120 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesUpdate() local
[all …]
DRawContactModifierTests.java180 final RawContact before = new RawContact(contact); in getRawContact() local
182 before.addDataItemValues(values); in getRawContact()
184 return RawContactDelta.fromBefore(before); in getRawContact()
447 final ContentValues before = new ContentValues(); in testTrimEmptyUntouched() local
448 before.put(Data._ID, TEST_ID); in testTrimEmptyUntouched()
449 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyUntouched()
450 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched()
470 final ContentValues before = new ContentValues(); in testTrimEmptyAfterUpdate() local
471 before.put(Data._ID, TEST_ID); in testTrimEmptyAfterUpdate()
472 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyAfterUpdate()
[all …]
DRawContactDeltaListTests.java102 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId, in getUpdate() local
104 return RawContactDelta.fromBefore(before); in getUpdate()
128 final RawContact before = new RawContact(contact); in buildBeforeEntity() local
130 before.addDataItemValues(entry); in buildBeforeEntity()
132 return RawContactDelta.fromBefore(before); in buildBeforeEntity()
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/
DAccountTests.java44 final Account before = Account.builder().buildFrom(dest, null); in testSerializeDeserialize() local
46 intent.putExtra(Utils.EXTRA_ACCOUNT, before); in testSerializeDeserialize()
51 assertEquals(before.getEmailAddress(), after.getEmailAddress()); in testSerializeDeserialize()
52 assertEquals(before.getDisplayName(), after.getDisplayName()); in testSerializeDeserialize()
53 assertEquals(before.accountFromAddresses, after.accountFromAddresses); in testSerializeDeserialize()
54 assertEquals(before.capabilities, after.capabilities); in testSerializeDeserialize()
55 assertEquals(before.providerVersion, after.providerVersion); in testSerializeDeserialize()
56 assertEquals(before.uri, after.uri); in testSerializeDeserialize()
57 assertEquals(before.folderListUri, after.folderListUri); in testSerializeDeserialize()
58 assertEquals(before.searchUri, after.searchUri); in testSerializeDeserialize()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/
DSendersFormattingTests.java98 final ConversationInfo before = createConversationInfo(); in testSenderNameBadInput() local
99 before.addParticipant(new ParticipantInfo("****^****", null, 0, false)); in testSenderNameBadInput()
101 final byte[] serialized = before.toBlob(); in testSenderNameBadInput()
105 assertEquals(before.participantInfos.get(0).name, after.participantInfos.get(0).name); in testSenderNameBadInput()
113 final ConversationInfo before = new ConversationInfo(42, 49, first, firstUnread, last); in testConversationSnippetsBadInput() local
114 before.addParticipant(new ParticipantInfo("Foo Bar", "foo@bar.com", 0, false)); in testConversationSnippetsBadInput()
115 assertEquals(first, before.firstSnippet); in testConversationSnippetsBadInput()
116 assertEquals(firstUnread, before.firstUnreadSnippet); in testConversationSnippetsBadInput()
117 assertEquals(last, before.lastSnippet); in testConversationSnippetsBadInput()
119 final byte[] serialized = before.toBlob(); in testConversationSnippetsBadInput()
[all …]
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/
DValuesDeltaTests.java61 final ContentValues before = new ContentValues(); in testValuesDiffNone() local
62 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffNone()
63 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffNone()
65 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone()
73 final ContentValues before = new ContentValues(); in testValuesDiffUpdate() local
74 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffUpdate()
75 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffUpdate()
77 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java45 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); in calcNormalizedScoreNative() argument
46 private static native int editDistanceNative(int[] before, int[] after); in editDistanceNative() argument
109 public static float calcNormalizedScore(final String before, final String after, in calcNormalizedScore() argument
111 return calcNormalizedScoreNative(StringUtils.toCodePointArray(before), in calcNormalizedScore()
115 public static int editDistance(final String before, final String after) { in editDistance() argument
116 if (before == null || after == null) { in editDistance()
119 return editDistanceNative(StringUtils.toCodePointArray(before), in editDistance()
/packages/inputmethods/LatinIME/native/jni/
Dcom_android_inputmethod_latin_BinaryDictionaryUtils.cpp60 jintArray before, jintArray after, jint score) { in latinime_BinaryDictionaryUtils_calcNormalizedScore() argument
61 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionaryUtils_calcNormalizedScore()
65 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); in latinime_BinaryDictionaryUtils_calcNormalizedScore()
71 static jint latinime_BinaryDictionaryUtils_editDistance(JNIEnv *env, jclass clazz, jintArray before, in latinime_BinaryDictionaryUtils_editDistance() argument
73 jsize beforeLength = env->GetArrayLength(before); in latinime_BinaryDictionaryUtils_editDistance()
77 env->GetIntArrayRegion(before, 0, beforeLength, beforeCodePoints); in latinime_BinaryDictionaryUtils_editDistance()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java651 final CharSequence before = mIC.getTextBeforeCursor(Constants.EDITOR_CONTENTS_CACHE_SIZE, in getWordRangeAtCursor() local
655 if (before == null || after == null) { in getWordRangeAtCursor()
660 int startIndexInBefore = before.length(); in getWordRangeAtCursor()
662 final int codePoint = Character.codePointBefore(before, startIndexInBefore); in getWordRangeAtCursor()
685 SpannableStringUtils.hasUrlSpans(before, startIndexInBefore, before.length()) in getWordRangeAtCursor()
691 SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), in getWordRangeAtCursor()
692 startIndexInBefore, before.length() + endIndexInAfter, before.length(), in getWordRangeAtCursor()
DSuggestionSpanPickedNotificationReceiver.java36 final String before = intent.getStringExtra( in onReceive() local
40 Log.d(TAG, "Received notification picked: " + before + "," + after); in onReceive()
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/
DEntityDiff.java46 public static EntityDiff buildDiff(Entity before, Entity after, Uri targetUri, in buildDiff() argument
53 if (before == null) { in buildDiff()
71 for (NamedContentValues child : before.getSubValues()) { in buildDiff()
78 builder.withSelection(getSelectIdClause(before.getEntityValues()), null); in buildDiff()
84 if (!before.getEntityValues().equals(values)) { in buildDiff()
93 final HashMap<String, NamedContentValues> beforeChildren = buildChildrenMap(before); in buildDiff()
DEntityDelta.java84 public static EntityDelta fromBefore(Entity before) { in fromBefore() argument
86 entity.mValues = ValuesDelta.fromBefore(before.getEntityValues()); in fromBefore()
88 for (NamedContentValues namedValues : before.getSubValues()) { in fromBefore()
510 public static ValuesDelta fromBefore(ContentValues before) { in fromBefore() argument
512 entry.mBefore = before; in fromBefore()
/packages/experimental/procstatlog/
Dprocstatlog.c389 struct timeval before, after; in main() local
390 gettimeofday(&before, NULL); in main()
391 printf("T + %ld.%06ld\n", before.tv_sec, before.tv_usec); in main()
400 long elapsed_usec = (long) after.tv_usec - before.tv_usec; in main()
401 elapsed_usec += 1000000l * (after.tv_sec - before.tv_sec); in main()
/packages/apps/Mms/src/com/android/mms/ui/
DConversationListItem.java111 int before = buf.length(); in formatMessage() local
116 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage()
120 int before = buf.length(); in formatMessage() local
124 buf.setSpan(new TextAppearanceSpan(mContext, size, color), before, in formatMessage()
128 before, buf.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE); in formatMessage()
/packages/inputmethods/LatinIME/native/jni/src/utils/
Dautocorrection_threshold_utils.cpp32 /* static */ int AutocorrectionThresholdUtils::editDistance(const int *before, in editDistance() argument
35 before, beforeLength, after, afterLength); in editDistance()
70 /* static */ float AutocorrectionThresholdUtils::calcNormalizedScore(const int *before, in calcNormalizedScore() argument
75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore()
Dautocorrection_threshold_utils.h26 static float calcNormalizedScore(const int *before, const int beforeLength,
28 static int editDistance(const int *before, const int beforeLength, const int *after,
/packages/experimental/RpcPerformance/
Drpcperftest.cpp80 struct timespec before, after; in main() local
81 clock_gettime(CLOCK_MONOTONIC, &before); in main()
91 double seconds = (after.tv_sec - before.tv_sec); in main()
92 seconds += (after.tv_nsec - before.tv_nsec) / 1000000000.0; in main()
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dautocorrection_threshold_utils_test.cpp26 int CalcEditDistance(const std::vector<int> &before, in CalcEditDistance() argument
29 &before[0], before.size(), &after[0], after.size()); in CalcEditDistance()
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadThread.java626 final File before = new File(mInfoDelta.mFileName); in finalizeDestination() local
632 && before.getParentFile().equals(beforeDir)) { in finalizeDestination()
633 final File after = new File(afterDir, before.getName()); in finalizeDestination()
634 if (before.renameTo(after)) { in finalizeDestination()
/packages/apps/Mms/src/com/android/mms/widget/
DMmsWidgetService.java255 int before = from.length(); local
258 android.R.style.TextAppearance_Small, color), before,
262 before, from.length(), Spannable.SPAN_INCLUSIVE_EXCLUSIVE);
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/
DRawContactDelta.java89 public static RawContactDelta fromBefore(RawContact before) { in fromBefore() argument
91 rawContactDelta.mValues = ValuesDelta.fromBefore(before.getValues()); in fromBefore()
93 for (final ContentValues values : before.getContentValues()) { in fromBefore()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java818 int before = mStartRow - d; in continueLoading() local
819 if (after >= mRows && before < 0) { in continueLoading()
823 if (before >= 0 && scanOne(before)) return; in continueLoading()
/packages/apps/DeskClock/src/com/android/deskclock/alarms/
DAlarmStateManager.java147 if (nextAlarm == null || instance.getAlarmTime().before(nextAlarm.getAlarmTime())) { in updateNextAlarm()
544 if (currentTime.before(alarmTime)) { in registerInstance()
576 if (currentTime.before(alarmBuffer)) { in registerInstance()

1234