/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | AccountTest.java | 100 final Account after = Account.fromJson(before.toJson()); in testSerializeAndDeserializeWithJSON() local 102 assertEquals(before.getDisplayName(), after.getDisplayName()); in testSerializeAndDeserializeWithJSON() 103 assertEquals(before.getEmailAddress(), after.getEmailAddress()); in testSerializeAndDeserializeWithJSON() 104 assertEquals(before.getSyncLookback(), after.getSyncLookback()); in testSerializeAndDeserializeWithJSON() 105 assertEquals(before.getSyncInterval(), after.getSyncInterval()); in testSerializeAndDeserializeWithJSON() 106 assertEquals(before.mHostAuthSend, after.mHostAuthSend); in testSerializeAndDeserializeWithJSON() 107 assertEquals(before.mHostAuthKeySend, after.mHostAuthKeySend); in testSerializeAndDeserializeWithJSON() 108 assertEquals(before.mHostAuthKeyRecv, after.mHostAuthKeyRecv); in testSerializeAndDeserializeWithJSON() 109 assertEquals(before.getFlags(), after.getFlags()); in testSerializeAndDeserializeWithJSON() 110 assertEquals(before.getSenderName(), after.getSenderName()); in testSerializeAndDeserializeWithJSON() [all …]
|
D | HostAuthTests.java | 270 final HostAuth after = HostAuth.fromJson(before.toJson()); in testSerializeAndDeserializeWithJSON() local 272 assertEquals(before.mProtocol, after.mProtocol); in testSerializeAndDeserializeWithJSON() 273 assertEquals(before.mAddress, after.mAddress); in testSerializeAndDeserializeWithJSON() 274 assertEquals(before.mPort, after.mPort); in testSerializeAndDeserializeWithJSON() 275 assertEquals(before.mFlags, after.mFlags); in testSerializeAndDeserializeWithJSON() 276 assertTrue(Arrays.equals(before.getLogin(), after.getLogin())); in testSerializeAndDeserializeWithJSON() 277 assertEquals(before.mDomain, after.mDomain); in testSerializeAndDeserializeWithJSON() 278 assertEquals(before.mClientCertAlias, after.mClientCertAlias); in testSerializeAndDeserializeWithJSON() 279 assertEquals(before.mCredential, after.mCredential); in testSerializeAndDeserializeWithJSON() 281 assertNull(after.mServerCert); // server cert is not serialized; field defaults to null in testSerializeAndDeserializeWithJSON() [all …]
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/ |
D | AccountTests.java | 48 final Account after = intent.getParcelableExtra(Utils.EXTRA_ACCOUNT); in testSerializeDeserialize() local 49 assertNotNull(after); 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/ContactsCommon/tests/src/com/android/contacts/common/ |
D | RawContactDeltaTests.java | 317 final ContentValues after = new ContentValues(); in testEntityDiffInsert() local 318 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); in testEntityDiffInsert() 319 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in testEntityDiffInsert() 321 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsert() 338 final ContentValues after = new ContentValues(); in testEntityDiffInsertInsert() local 339 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); in testEntityDiffInsertInsert() 340 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in testEntityDiffInsertInsert() 342 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsertInsert()
|
D | RawContactDeltaListTests.java | 108 final ContentValues after = new ContentValues(); in getInsert() local 109 after.put(RawContacts.ACCOUNT_NAME, RawContactDeltaTests.TEST_ACCOUNT_NAME); in getInsert() 110 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in getInsert() 112 final ValuesDelta values = ValuesDelta.fromAfter(after); in getInsert() 139 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity() local 141 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity() 143 return after; in buildAfterEntity()
|
/packages/experimental/LoaderApp/src/com/android/loaderapp/model/ |
D | EntityDiff.java | 46 public static EntityDiff buildDiff(Entity before, Entity after, Uri targetUri, in buildDiff() argument 56 builder.withValues(after.getEntityValues()); in buildDiff() 59 for (NamedContentValues child : after.getSubValues()) { in buildDiff() 69 } else if (after == null) { in buildDiff() 83 values = after.getEntityValues(); in buildDiff() 94 final HashMap<String, NamedContentValues> afterChildren = buildChildrenMap(after); in buildDiff()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/browse/ |
D | SendersFormattingTests.java | 103 final ConversationInfo after = ConversationInfo.fromBlob(serialized); in testSenderNameBadInput() local 104 assertEquals(1, after.participantInfos.size()); in testSenderNameBadInput() 105 assertEquals(before.participantInfos.get(0).name, after.participantInfos.get(0).name); in testSenderNameBadInput() 121 final ConversationInfo after = ConversationInfo.fromBlob(serialized); in testConversationSnippetsBadInput() local 122 assertEquals(before.firstSnippet, after.firstSnippet); in testConversationSnippetsBadInput() 123 assertEquals(before.firstUnreadSnippet, after.firstUnreadSnippet); in testConversationSnippetsBadInput() 124 assertEquals(before.lastSnippet, after.lastSnippet); in testConversationSnippetsBadInput()
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | autocorrection_threshold_utils.cpp | 33 const int beforeLength, const int *after, const int afterLength) { in editDistance() argument 35 before, beforeLength, after, afterLength); in editDistance() 71 const int beforeLength, const int *after, const int afterLength, const int score) { in calcNormalizedScore() argument 75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore() 78 if (after[i] == KEYCODE_SPACE) { in calcNormalizedScore()
|
D | autocorrection_threshold_utils.h | 27 const int *after, const int afterLength, const int score); 28 static int editDistance(const int *before, const int beforeLength, const int *after,
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 713 final CharSequence after = getTextAfterCursorAndDetectLaggyConnection( in getWordRangeAtCursor() local 718 if (before == null || after == null) { in getWordRangeAtCursor() 737 while (++endIndexInAfter < after.length()) { in getWordRangeAtCursor() 738 final int codePoint = Character.codePointAt(after, endIndexInAfter); in getWordRangeAtCursor() 749 || SpannableStringUtils.hasUrlSpans(after, 0, endIndexInAfter); in getWordRangeAtCursor() 754 SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), in getWordRangeAtCursor() 782 final CharSequence after = getTextAfterCursor(1, 0); in isCursorFollowedByWordCharacter() local 783 if (TextUtils.isEmpty(after)) { in isCursorFollowedByWordCharacter() 786 final int codePointAfterCursor = Character.codePointAt(after, 0); in isCursorFollowedByWordCharacter()
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 389 struct timeval before, after; in main() local 397 gettimeofday(&after, NULL); in main() 398 printf("T - %ld.%06ld\n", after.tv_sec, after.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/experimental/RpcPerformance/ |
D | rpcperftest.cpp | 80 struct timespec before, after; in main() local 89 clock_gettime(CLOCK_MONOTONIC, &after); 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/apps/Contacts/src/com/android/contacts/activities/ |
D | AttachPhotoActivity.java | 369 final ContentValues after = new ContentValues(); in createNewRawContact() 370 after.put(RawContacts.ACCOUNT_TYPE, account != null ? account.type : null); in createNewRawContact() 371 after.put(RawContacts.ACCOUNT_NAME, account != null ? account.name : null); in createNewRawContact() 372 after.put(RawContacts.DATA_SET, account != null ? account.dataSet : null); in createNewRawContact() 375 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
D | autocorrection_threshold_utils_test.cpp | 27 const std::vector<int> &after) { in CalcEditDistance() argument 29 &before[0], before.size(), &after[0], after.size()); in CalcEditDistance()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 664 boolean hasTimeout = timeoutTime != null && currentTime.after(timeoutTime); in registerInstance() 697 if (currentTime.after(missedTTL)) { in registerInstance() 700 } else if (currentTime.after(alarmTime)) { in registerInstance() 718 } else if (currentTime.after(highNotificationTime)) { in registerInstance() 720 } else if (currentTime.after(lowNotificationTime)) { in registerInstance() 768 if (currentTime.before(priorAlarmTime) || currentTime.after(missedTTLTime)) { in fixAlarmInstances()
|
/packages/apps/ContactsCommon/tests/src/com/android/contacts/common/model/ |
D | ValuesDeltaTests.java | 44 final ContentValues after = new ContentValues(); in testValuesDiffInsert() local 45 after.put(Phone.NUMBER, TEST_PHONE_NUMBER_2); in testValuesDiffInsert() 47 final ValuesDelta values = ValuesDelta.fromAfter(after); in testValuesDiffInsert()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 60 jintArray before, jintArray after, jint score) { in latinime_BinaryDictionaryUtils_calcNormalizedScore() argument 62 jsize afterLength = env->GetArrayLength(after); in latinime_BinaryDictionaryUtils_calcNormalizedScore() 66 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); in latinime_BinaryDictionaryUtils_calcNormalizedScore()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
D | BinaryDictionaryUtils.java | 46 private static native float calcNormalizedScoreNative(int[] before, int[] after, int score); in calcNormalizedScoreNative() argument 109 public static float calcNormalizedScore(final String before, final String after, in calcNormalizedScore() argument 112 StringUtils.toCodePointArray(after), score); in calcNormalizedScore()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | Utils.java | 384 s.play(grow.setDuration(SLIDE_TIME/2)).after(shrink); in run() 396 s.play(xMove.setDuration(0)).after(FADE_TIME); in run() 397 s.play(yMove.setDuration(0)).after(FADE_TIME); in run() 398 s.play(fadein).after(FADE_TIME); in run() 399 s.play(grow).after(FADE_TIME); in run()
|
/packages/apps/Settings/ |
D | wrap_alpha.py | 13 after = before.replace(".png", "_alpha.png") variable 14 os.rename(os.path.join(root, before), os.path.join(root, after))
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 817 int after = mEndRow - 1 + d; in continueLoading() local 819 if (after >= mRows && before < 0) { in continueLoading() 822 if (after < mRows && scanOne(after)) return; in continueLoading()
|
/packages/apps/ContactsCommon/src/com/android/contacts/common/model/ |
D | RawContactModifier.java | 368 final ContentValues after = new ContentValues(); in insertChild() 371 after.put(Data.MIMETYPE, kind.mimeType); in insertChild() 375 after.putAll(kind.defaultValues); in insertChild() 380 after.put(kind.typeColumn, type.rawValue); in insertChild() 383 final ValuesDelta child = ValuesDelta.fromAfter(after); in insertChild()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/dialog/old/ |
D | EditTextFragment.java | 129 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in beforeTextChanged() argument 131 mTextWatcher.beforeTextChanged(s, start, count, after); in beforeTextChanged()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 643 final File after = new File(afterDir, before.getName()); in finalizeDestination() local 644 if (before.renameTo(after)) { in finalizeDestination() 645 mInfoDelta.mFileName = after.getAbsolutePath(); in finalizeDestination()
|
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/ |
D | UserDictionaryToolsEdit.java | 185 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in setAddButtonControl() 201 public void beforeTextChanged(CharSequence s, int start, int count, int after) { in setAddButtonControl()
|