/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 …]
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScoringParamsTest.java | 117 String before = mScoringParams.toString(); 119 assertFalse(before.contains(partial)); 123 assertEquals(before.replaceAll("rssi5=[^,]*,", partial + ","), after); 132 String before = mScoringParams.toString(); 148 assertEquals(before, mScoringParams.toString()); 157 String before = mScoringParams.toString(); 160 assertEquals(before, mScoringParams.toString()); 169 String before = mScoringParams.toString(); 175 assertEquals(before, mScoringParams.toString()); 217 String before = mScoringParams.toString(); [all …]
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | BatteryStatsManagerTest.java | 201 private static boolean cellularBatteryStatsIncreased(CellularBatteryStats before, in cellularBatteryStatsIncreased() argument 203 return (after.getNumBytesTx() > before.getNumBytesTx()) in cellularBatteryStatsIncreased() 204 && (after.getNumBytesRx() > before.getNumBytesRx()) in cellularBatteryStatsIncreased() 205 && (after.getNumPacketsTx() > before.getNumPacketsTx()) in cellularBatteryStatsIncreased() 206 && (after.getNumPacketsRx() > before.getNumPacketsRx()); in cellularBatteryStatsIncreased() 209 private static boolean wifiBatteryStatsIncreased(WifiBatteryStats before, in wifiBatteryStatsIncreased() argument 211 return (after.getNumBytesTx() > before.getNumBytesTx()) in wifiBatteryStatsIncreased() 212 && (after.getNumBytesRx() > before.getNumBytesRx()) in wifiBatteryStatsIncreased() 213 && (after.getNumPacketsTx() > before.getNumPacketsTx()) in wifiBatteryStatsIncreased() 214 && (after.getNumPacketsRx() > before.getNumPacketsRx()); in wifiBatteryStatsIncreased()
|
/packages/apps/DocumentsUI/src/com/android/documentsui/roots/ |
D | RootCursorWrapper.java | 70 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/ |
D | TimerModel.kt | 226 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 …]
|
D | StopwatchModel.kt | 94 val before = this.stopwatch in setStopwatch() constant 95 if (before != stopwatch) { in setStopwatch() 111 stopwatchListener.stopwatchUpdated(before, stopwatch) in setStopwatch()
|
/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/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/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/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 222 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData() local 230 final NetworkStats result = after.subtract(before); in testSubtractIdenticalData() 241 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows() local 249 final NetworkStats result = after.subtract(before); in testSubtractIdenticalRows() 260 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractNewRows() local 269 final NetworkStats result = after.subtract(before); in testSubtractNewRows() 282 final NetworkStats before = new NetworkStats(TEST_START, 2) in testSubtractMissingRows() local 289 final NetworkStats result = after.subtract(before); in testSubtractMissingRows() 457 final NetworkStats before = new NetworkStats(TEST_START, 3); in testRemoveUids() local 460 NetworkStats after = before.clone(); in testRemoveUids() [all …]
|
D | NetworkStatsHistoryTest.java | 409 final NetworkStatsHistory before = new NetworkStatsHistory(MINUTE_IN_MILLIS, 40, FIELD_ALL); in testSerialize() local 410 before.recordData(0, 4 * MINUTE_IN_MILLIS, in testSerialize() 412 before.recordData(DAY_IN_MILLIS, DAY_IN_MILLIS + MINUTE_IN_MILLIS, in testSerialize() 416 before.writeToStream(new DataOutputStream(out)); in testSerialize() 423 assertFullValues(before, 5 * MINUTE_IN_MILLIS, 1034L, 30L, 2078L, 60L, 54L); in testSerialize() 536 NetworkStatsHistory stats, int before, int after, long time) { in assertIndexBeforeAfter() argument 537 assertEquals("unexpected before", before, stats.getIndexBefore(time)); in assertIndexBeforeAfter() 541 private static long performVarLong(long before) throws Exception { in performVarLong() argument 543 writeVarLong(new DataOutputStream(out), before); in performVarLong()
|
/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/ |
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/Launcher3/src/com/android/launcher3/folder/ |
D | FolderNameEditText.java | 85 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/ |
D | ExpiredTimersActivity.kt | 275 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()
|
D | TimerFragment.kt | 464 animatorSet.play(fadeOut).before(fadeIn) in animateTimerRemove() 651 override fun timerUpdated(before: Timer, after: Timer) { in timerUpdated() 653 if (before.isReset && !after.isReset) { in timerUpdated() 661 if (!before.isExpired && after.isExpired && index != mViewPager.getCurrentItem()) { in timerUpdated() 665 if (before.state != after.state && in timerUpdated() 666 !(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/src/com/android/server/telecom/callfiltering/ |
D | IncomingCallFilterGraph.java | 170 public static void addEdge(CallFilter before, CallFilter after) { in addEdge() argument 171 before.addFollowings(after); in addEdge() 172 after.addDependency(before); in addEdge()
|
/packages/apps/Car/libs/car-arch-common/src/com/android/car/arch/common/testing/ |
D | TestLifecycleOwner.java | 43 protected void before() throws Throwable { in before() method in TestLifecycleOwner 44 super.before(); in before()
|
/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/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 | 87 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
|