Home
last modified time | relevance | path

Searched refs:before (Results 1 – 25 of 134) 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/DocumentsUI/src/com/android/documentsui/roots/
DRootCursorWrapper.java70 final String[] before = cursor.getColumnNames(); in RootCursorWrapper() local
73 mColumnNames = new String[before.length + 3]; in RootCursorWrapper()
74 System.arraycopy(before, 0, mColumnNames, 0, before.length); in RootCursorWrapper()
75 mAuthorityIndex = before.length; in RootCursorWrapper()
76 mRootIdIndex = before.length + 1; in RootCursorWrapper()
77 mUserIdIndex = before.length + 2; in RootCursorWrapper()
/packages/apps/DeskClock/src/com/android/deskclock/data/
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.java107 final Stopwatch before = getStopwatch(); in setStopwatch() local
108 if (before != stopwatch) { in setStopwatch()
124 stopwatchListener.stopwatchUpdated(before, stopwatch); in setStopwatch()
/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/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/apps/Launcher3/src/com/android/launcher3/folder/
DFolderNameEditText.java85 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
87 if (start == 0 && count == 0 && before > 0) { in onTextChanged()
92 Log.d(TAG, "onTextChanged " + start + "," + before + "," + count in onTextChanged()
/packages/apps/DeskClock/src/com/android/deskclock/timer/
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.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/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/providers/MediaProvider/tests/src/com/android/providers/media/
DDatabaseHelperTest.java186 private void assertDowngrade(Class<? extends DatabaseHelper> before, in assertDowngrade() argument
188 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertDowngrade()
233 private void assertRecompute(Class<? extends DatabaseHelper> before, in assertRecompute() argument
235 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertRecompute()
367 private void assertUpgrade(Class<? extends DatabaseHelper> before, in assertUpgrade() argument
369 try (DatabaseHelper helper = before.getConstructor(Context.class, String.class) in assertUpgrade()
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/testing/
DTestLifecycleOwner.java43 protected void before() throws Throwable { in before() method in TestLifecycleOwner
44 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()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DValidatedEditTextPreferenceDialogFragment.java87 public void onTextChanged(CharSequence s, int start, int before, int count) { in onTextChanged() argument
91 public void beforeTextChanged(CharSequence s, int start, int before, int count) { in beforeTextChanged() argument
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DDatabaseUtils.java79 char before = ' '; in bindSelection() local
109 if (before != ' ' && before != '=') res.append(' '); in bindSelection()
139 before = c; in bindSelection()

123456