Home
last modified time | relevance | path

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

123456

/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaTests.java74 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 …]
DValuesDeltaTests.java63 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()
DRawContactModifierTests.java173 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 …]
DRawContactDeltaListTests.java96 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/DeskClock/src/com/android/deskclock/data/
DTimerModel.kt226 val before = doUpdateTimer(timer) in updateTimer() constant
232 if (before.state != timer.state) { in updateTimer()
233 if (before.isExpired || timer.isExpired) { in updateTimer()
479 val before = timers[index] in doUpdateTimer() constant
482 if (timer === before) { in doUpdateTimer()
493 if (before.isExpired || timer.isExpired) { in doUpdateTimer()
497 if (before.isMissed || timer.isMissed) { in doUpdateTimer()
505 updateRinger(before, timer) in doUpdateTimer()
509 timerListener.timerUpdated(before, timer) in doUpdateTimer()
656 private fun updateRinger(before: Timer?, after: Timer?) { in updateRinger()
[all …]
DTimerModel.java260 final Timer before = doUpdateTimer(timer); in updateTimer() local
266 if (before.getState() != timer.getState()) { in updateTimer()
267 if (before.isExpired() || timer.isExpired()) { in updateTimer()
524 final Timer before = timers.get(index); in doUpdateTimer() local
527 if (timer == before) { in doUpdateTimer()
538 if (before.isExpired() || timer.isExpired()) { in doUpdateTimer()
542 if (before.isMissed() || timer.isMissed()) { in doUpdateTimer()
550 updateRinger(before, timer); in doUpdateTimer()
554 timerListener.timerUpdated(before, timer); in doUpdateTimer()
701 private void updateRinger(Timer before, Timer after) { in updateRinger() argument
[all …]
DStopwatchModel.kt94 val before = this.stopwatch in setStopwatch() constant
95 if (before != stopwatch) { in setStopwatch()
111 stopwatchListener.stopwatchUpdated(before, stopwatch) in setStopwatch()
DStopwatchModel.java107 final Stopwatch before = getStopwatch(); in setStopwatch() local
108 if (before != stopwatch) { in setStopwatch()
124 stopwatchListener.stopwatchUpdated(before, stopwatch); in setStopwatch()
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/
DRootCursorWrapper.java61 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/services/Car/tests/CarDeveloperOptions/
Dwrap_alpha.py9 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/apps/Settings/
Dwrap_alpha.py9 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/
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/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java708 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/
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/apps/DeskClock/src/com/android/deskclock/timer/
DExpiredTimersActivity.kt275 override fun timerUpdated(before: Timer, after: Timer) { in timerUpdated()
276 if (!before.isExpired && after.isExpired) { in timerUpdated()
278 } else if (before.isExpired && !after.isExpired) { in timerUpdated()
279 removeTimer(before) in timerUpdated()
DExpiredTimersActivity.java294 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()
DTimerFragment.kt465 animatorSet.play(fadeOut).before(fadeIn) in animateTimerRemove()
652 override fun timerUpdated(before: Timer, after: Timer) { in timerUpdated()
654 if (before.isReset && !after.isReset) { in timerUpdated()
662 if (!before.isExpired && after.isExpired && index != mViewPager.getCurrentItem()) { in timerUpdated()
666 if (before.state != after.state && in timerUpdated()
667 !(before.isPaused && after.isReset)) { in timerUpdated()
DTimerFragment.java568 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/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()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/
DBinaryDictionaryUtils.java46 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/src/com/android/server/telecom/callfiltering/
DIncomingCallFilterGraph.java166 public static void addEdge(CallFilter before, CallFilter after) { in addEdge() argument
167 before.addFollowings(after); in addEdge()
168 after.addDependency(before); in addEdge()
/packages/services/Telecomm/testapps/src/com/android/server/telecom/testapps/
DTestRttActivity.java194 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/
DTestLifecycleOwner.java44 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/
DEchoingTextWatcher.java68 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()

123456