/packages/apps/Email/tests/src/com/android/emailcommon/provider/ |
D | AccountTest.java | 81 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 …]
|
D | HostAuthTests.java | 254 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/ |
D | RawContactDeltaTests.java | 78 final RawContact before = new RawContact(contact); in getRawContact() local 79 before.addDataItemValues(phone); in getRawContact() 80 return before; in getRawContact() 90 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesNone() local 91 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone() 92 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone() 100 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesInsert() local 101 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 102 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 118 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesUpdate() local [all …]
|
D | RawContactModifierTests.java | 181 final RawContact before = new RawContact(contact); in getRawContact() local 183 before.addDataItemValues(values); in getRawContact() 185 return RawContactDelta.fromBefore(before); in getRawContact() 489 final ContentValues before = new ContentValues(); in testTrimEmptyUntouched() local 490 before.put(Data._ID, TEST_ID); in testTrimEmptyUntouched() 491 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyUntouched() 492 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched() 512 final ContentValues before = new ContentValues(); in testTrimEmptyAfterUpdate() local 513 before.put(Data._ID, TEST_ID); in testTrimEmptyAfterUpdate() 514 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyAfterUpdate() [all …]
|
D | RawContactDeltaListTests.java | 105 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId, in getUpdate() local 107 return RawContactDelta.fromBefore(before); in getUpdate() 131 final RawContact before = new RawContact(contact); in buildBeforeEntity() local 133 before.addDataItemValues(entry); in buildBeforeEntity() 135 return RawContactDelta.fromBefore(before); in buildBeforeEntity()
|
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/ |
D | AccountTests.java | 44 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/ |
D | SendersFormattingTests.java | 98 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/ |
D | ValuesDeltaTests.java | 64 final ContentValues before = new ContentValues(); in testValuesDiffNone() local 65 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffNone() 66 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffNone() 68 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone() 76 final ContentValues before = new ContentValues(); in testValuesDiffUpdate() local 77 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffUpdate() 78 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffUpdate() 80 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
|
/packages/apps/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 240 final Timer before = doUpdateTimer(timer); in updateTimer() local 246 if (before.getState() != timer.getState()) { in updateTimer() 247 if (before.isExpired() || timer.isExpired()) { in updateTimer() 423 final Timer before = timers.get(index); in doUpdateTimer() local 426 if (timer == before) { in doUpdateTimer() 437 if (before.isExpired() || timer.isExpired()) { in doUpdateTimer() 445 updateRinger(before, timer); in doUpdateTimer() 449 timerListener.timerUpdated(before, timer); in doUpdateTimer() 561 private void updateRinger(Timer before, Timer after) { in updateRinger() argument 563 final Timer.State beforeState = before == null ? null : before.getState(); in updateRinger() [all …]
|
/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 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()
|
D | EntityDelta.java | 84 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/apps/Settings/ |
D | wrap_alpha.py | 9 for before in files: 10 if "_alpha.png" in before: continue 11 if not before.startswith("ic_settings_"): continue 13 after = before.replace(".png", "_alpha.png") 14 os.rename(os.path.join(root, before), os.path.join(root, after))
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 708 final CharSequence before = getTextBeforeCursorAndDetectLaggyConnection( in getWordRangeAtCursor() local 718 if (before == null || after == null) { in getWordRangeAtCursor() 723 int startIndexInBefore = before.length(); in getWordRangeAtCursor() 725 final int codePoint = Character.codePointBefore(before, startIndexInBefore); in getWordRangeAtCursor() 748 SpannableStringUtils.hasUrlSpans(before, startIndexInBefore, before.length()) in getWordRangeAtCursor() 754 SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), in getWordRangeAtCursor() 755 startIndexInBefore, before.length() + endIndexInAfter, before.length(), in getWordRangeAtCursor()
|
/packages/experimental/procstatlog/ |
D | procstatlog.c | 389 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/inputmethods/LatinIME/native/jni/src/utils/ |
D | autocorrection_threshold_utils.cpp | 32 /* 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()
|
D | autocorrection_threshold_utils.h | 26 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/ |
D | rpcperftest.cpp | 80 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/apps/DeskClock/src/com/android/deskclock/timer/ |
D | ExpiredTimersActivity.java | 261 public void timerUpdated(Timer before, Timer after) { in timerUpdated() argument 262 if (!before.isExpired() && after.isExpired()) { in timerUpdated() 264 } else if (before.isExpired() && !after.isExpired()) { in timerUpdated() 265 removeTimer(before); in timerUpdated()
|
D | TimerFragment.java | 471 animatorSet.play(fadeOut).before(fadeIn); in animateTimerRemove() 541 animatorSet.play(rotateFrom).before(rotateTo).with(buttons); in animateToView() 625 public void timerUpdated(Timer before, Timer after) { in timerUpdated() argument 633 if (before.isReset() && !after.isReset()) { in timerUpdated() 641 if (!before.isExpired() && after.isExpired() && index != mViewPager.getCurrentItem()) { in timerUpdated()
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
D | autocorrection_threshold_utils_test.cpp | 26 int CalcEditDistance(const std::vector<int> &before, in CalcEditDistance() argument 29 &before[0], before.size(), &after[0], after.size()); in CalcEditDistance()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 60 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()
|
/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 111 return calcNormalizedScoreNative(StringUtils.toCodePointArray(before), in calcNormalizedScore()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.java | 199 if (nextAlarm == null || instance.getAlarmTime().before(nextAlarm.getAlarmTime())) { in getNextFiringAlarm() 689 if (currentTime.before(alarmTime)) { in registerInstance() 708 if (currentTime.before(alarmTime)) { in registerInstance() 727 if (currentTime.before(alarmBuffer)) { in registerInstance() 811 if (currentTime.before(priorAlarmTime) || currentTime.after(missedTTLTime)) { in fixAlarmInstances()
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadThread.java | 713 final File before = new File(mInfoDelta.mFileName); in finalizeDestination() local 719 && before.getParentFile().equals(beforeDir)) { in finalizeDestination() 720 final File after = new File(afterDir, before.getName()); in finalizeDestination() 721 if (before.renameTo(after)) { in finalizeDestination()
|
/packages/apps/Gallery/src/com/android/camera/ |
D | GridViewSpecial.java | 818 int before = mStartRow - d; in continueLoading() local 819 if (after >= mRows && before < 0) { in continueLoading() 823 if (before >= 0 && scanOne(before)) return; in continueLoading()
|