/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/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 74 final RawContact before = new RawContact(contact); in getRawContact() local 75 before.addDataItemValues(phone); in getRawContact() 76 return before; in getRawContact() 86 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesNone() local 87 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesNone() 88 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesNone() 96 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesInsert() local 97 final RawContactDelta source = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 98 final RawContactDelta dest = RawContactDelta.fromBefore(before); in testParcelChangesInsert() 114 final RawContact before = getRawContact(mContext, TEST_CONTACT_ID, TEST_PHONE_ID); in testParcelChangesUpdate() local [all …]
|
D | ValuesDeltaTests.java | 63 final ContentValues before = new ContentValues(); in testValuesDiffNone() local 64 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffNone() 65 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffNone() 67 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffNone() 75 final ContentValues before = new ContentValues(); in testValuesDiffUpdate() local 76 before.put(Data._ID, TEST_PHONE_ID); in testValuesDiffUpdate() 77 before.put(Phone.NUMBER, TEST_PHONE_NUMBER_1); in testValuesDiffUpdate() 79 final ValuesDelta values = ValuesDelta.fromBefore(before); in testValuesDiffUpdate()
|
D | RawContactModifierTests.java | 173 final RawContact before = new RawContact(contact); in getRawContact() local 175 before.addDataItemValues(values); in getRawContact() 177 return RawContactDelta.fromBefore(before); in getRawContact() 481 final ContentValues before = new ContentValues(); in testTrimEmptyUntouched() local 482 before.put(Data._ID, TEST_ID); in testTrimEmptyUntouched() 483 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyUntouched() 484 state.addEntry(ValuesDelta.fromBefore(before)); in testTrimEmptyUntouched() 504 final ContentValues before = new ContentValues(); in testTrimEmptyAfterUpdate() local 505 before.put(Data._ID, TEST_ID); in testTrimEmptyAfterUpdate() 506 before.put(Data.MIMETYPE, Phone.CONTENT_ITEM_TYPE); in testTrimEmptyAfterUpdate() [all …]
|
D | RawContactDeltaListTests.java | 96 final RawContact before = RawContactDeltaTests.getRawContact(context, rawContactId, in getUpdate() local 98 return RawContactDelta.fromBefore(before); in getUpdate() 122 final RawContact before = new RawContact(contact); in buildBeforeEntity() local 124 before.addDataItemValues(entry); in buildBeforeEntity() 126 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/DeskClock/src/com/android/deskclock/data/ |
D | TimerModel.java | 259 final Timer before = doUpdateTimer(timer); in updateTimer() local 265 if (before.getState() != timer.getState()) { in updateTimer() 266 if (before.isExpired() || timer.isExpired()) { in updateTimer() 523 final Timer before = timers.get(index); in doUpdateTimer() local 526 if (timer == before) { in doUpdateTimer() 537 if (before.isExpired() || timer.isExpired()) { in doUpdateTimer() 541 if (before.isMissed() || timer.isMissed()) { in doUpdateTimer() 549 updateRinger(before, timer); in doUpdateTimer() 553 timerListener.timerUpdated(before, timer); in doUpdateTimer() 700 private void updateRinger(Timer before, Timer after) { in updateRinger() argument [all …]
|
D | StopwatchModel.java | 104 final Stopwatch before = getStopwatch(); in setStopwatch() local 105 if (before != stopwatch) { in setStopwatch() 121 stopwatchListener.stopwatchUpdated(before, stopwatch); in setStopwatch()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | RootCursorWrapper.java | 61 final String[] before = cursor.getColumnNames(); in RootCursorWrapper() local 62 mColumnNames = new String[before.length + 2]; in RootCursorWrapper() 63 System.arraycopy(before, 0, mColumnNames, 0, before.length); in RootCursorWrapper() 64 mAuthorityIndex = before.length; in RootCursorWrapper() 65 mRootIdIndex = before.length + 1; in RootCursorWrapper()
|
/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/services/Car/tests/CarDeveloperOptions/ |
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/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/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/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/apps/DeskClock/src/com/android/deskclock/timer/ |
D | ExpiredTimersActivity.java | 294 public void timerUpdated(Timer before, Timer after) { in timerUpdated() argument 295 if (!before.isExpired() && after.isExpired()) { in timerUpdated() 297 } else if (before.isExpired() && !after.isExpired()) { in timerUpdated() 298 removeTimer(before); in timerUpdated()
|
D | TimerFragment.java | 568 animatorSet.play(fadeOut).before(fadeIn); in animateTimerRemove() 757 public void timerUpdated(Timer before, Timer after) { in timerUpdated() argument 759 if (before.isReset() && !after.isReset()) { in timerUpdated() 767 if (!before.isExpired() && after.isExpired() && index != mViewPager.getCurrentItem()) { in timerUpdated() 772 if (before.getState() != after.getState() in timerUpdated() 773 && !(before.isPaused() && after.isReset())) { in timerUpdated()
|
/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/services/Telecomm/testapps/src/com/android/server/telecom/testapps/ |
D | TestRttActivity.java | 194 public void onTextChanged(CharSequence s, int start, int before, int count) { in onCreate() 195 if (count == 0 || count < before) { in onCreate() 200 int numCharsInserted = count - before; in onCreate()
|
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/testing/ |
D | TestLifecycleOwner.java | 44 protected void before() throws Throwable { in before() method in TestLifecycleOwner 45 super.before(); in before()
|
/packages/inputmethods/LatinIME/tools/EditTextVariations/src/com/android/inputmethod/tools/edittextvariations/ |
D | EchoingTextWatcher.java | 68 public void onTextChanged(final CharSequence s, final int start, final int before, in onTextChanged() argument 70 if (count == 0 || before > 0 || TextUtils.equals(s, mExpected)) { in onTextChanged()
|
/packages/apps/Car/Settings/src/com/android/car/settings/common/ |
D | ValidatedEditTextPreferenceDialogFragment.java | 85 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument 89 public void beforeTextChanged(CharSequence s, int start, int before, int count) { in beforeTextChanged() argument
|