/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | BatteryStatsManagerTest.java | 202 CellularBatteryStats after) { 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() 210 WifiBatteryStats after) { 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/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkStatsTest.java | 226 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalData() local 230 final NetworkStats result = after.subtract(before); in testSubtractIdenticalData() 245 final NetworkStats after = new NetworkStats(TEST_START, 2) in testSubtractIdenticalRows() local 249 final NetworkStats result = after.subtract(before); in testSubtractIdenticalRows() 264 final NetworkStats after = new NetworkStats(TEST_START, 3) in testSubtractNewRows() local 269 final NetworkStats result = after.subtract(before); in testSubtractNewRows() 286 final NetworkStats after = new NetworkStats(TEST_START, 1) in testSubtractMissingRows() local 289 final NetworkStats result = after.subtract(before); in testSubtractMissingRows() 460 NetworkStats after = before.clone(); in testRemoveUids() local 461 after.removeUids(new int[0]); in testRemoveUids() [all …]
|
/packages/inputmethods/LatinIME/native/jni/src/utils/ |
D | autocorrection_threshold_utils.cpp | 33 const int beforeLength, const int *after, const int afterLength) { in editDistance() argument 35 before, beforeLength, after, afterLength); in editDistance() 71 const int beforeLength, const int *after, const int afterLength, const int score) { in calcNormalizedScore() argument 75 const int distance = editDistance(before, beforeLength, after, afterLength); in calcNormalizedScore() 78 if (after[i] == KEYCODE_SPACE) { in calcNormalizedScore()
|
D | autocorrection_threshold_utils.h | 27 const int *after, const int afterLength, const int score); 28 static int editDistance(const int *before, const int beforeLength, const int *after,
|
/packages/apps/TV/common/tests/robotests/src/com/android/tv/common/actions/ |
D | InputSetupActionUtilsTest.java | 64 Intent after = new Intent("after"); in getExtraActivityAfter_activityAfter() local 65 intent.putExtra("com.android.tv.intent.extra.ACTIVITY_AFTER_COMPLETION", after); in getExtraActivityAfter_activityAfter() 66 assertThat(InputSetupActionUtils.getExtraActivityAfter(intent)).isEqualTo(after); in getExtraActivityAfter_activityAfter() 72 Intent after = new Intent("google_setup"); in getExtraActivityAfter_googleActivityAfter() local 73 intent.putExtra("com.google.android.tv.intent.extra.ACTIVITY_AFTER_COMPLETION", after); in getExtraActivityAfter_googleActivityAfter() 74 assertThat(InputSetupActionUtils.getExtraActivityAfter(intent)).isEqualTo(after); in getExtraActivityAfter_googleActivityAfter()
|
/packages/apps/Contacts/tests/src/com/android/contacts/model/ |
D | RawContactDeltaTests.java | 324 final ContentValues after = new ContentValues(); in testEntityDiffInsert() local 325 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); in testEntityDiffInsert() 326 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in testEntityDiffInsert() 328 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsert() 346 final ContentValues after = new ContentValues(); in testEntityDiffInsertInsert() local 347 after.put(RawContacts.ACCOUNT_NAME, TEST_ACCOUNT_NAME); in testEntityDiffInsertInsert() 348 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in testEntityDiffInsertInsert() 350 final ValuesDelta values = ValuesDelta.fromAfter(after); in testEntityDiffInsertInsert()
|
D | ValuesDeltaTests.java | 44 final ContentValues after = new ContentValues(); in testValuesDiffInsert() local 45 after.put(Phone.NUMBER, TEST_PHONE_NUMBER_2); in testValuesDiffInsert() 47 final ValuesDelta values = ValuesDelta.fromAfter(after); in testValuesDiffInsert()
|
D | RawContactDeltaListTests.java | 106 final ContentValues after = new ContentValues(); in getInsert() local 107 after.put(RawContacts.ACCOUNT_NAME, RawContactDeltaTests.TEST_ACCOUNT_NAME); in getInsert() 108 after.put(RawContacts.SEND_TO_VOICEMAIL, 1); in getInsert() 110 final ValuesDelta values = ValuesDelta.fromAfter(after); in getInsert() 137 final RawContactDelta after = new RawContactDelta(ValuesDelta.fromAfter(contact)); in buildAfterEntity() local 139 after.addEntry(ValuesDelta.fromAfter(entry)); in buildAfterEntity() 141 return after; in buildAfterEntity()
|
/packages/inputmethods/LatinIME/native/jni/tests/utils/ |
D | autocorrection_threshold_utils_test.cpp | 27 const std::vector<int> &after) { in CalcEditDistance() argument 29 &before[0], before.size(), &after[0], after.size()); in CalcEditDistance()
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 713 final CharSequence after = getTextAfterCursorAndDetectLaggyConnection( in getWordRangeAtCursor() local 718 if (before == null || after == null) { in getWordRangeAtCursor() 737 while (++endIndexInAfter < after.length()) { in getWordRangeAtCursor() 738 final int codePoint = Character.codePointAt(after, endIndexInAfter); in getWordRangeAtCursor() 749 || SpannableStringUtils.hasUrlSpans(after, 0, endIndexInAfter); in getWordRangeAtCursor() 754 SpannableStringUtils.concatWithNonParagraphSuggestionSpansOnly(before, after), in getWordRangeAtCursor() 782 final CharSequence after = getTextAfterCursor(1, 0); in isCursorFollowedByWordCharacter() local 783 if (TextUtils.isEmpty(after)) { in isCursorFollowedByWordCharacter() 786 final int codePointAfterCursor = Character.codePointAt(after, 0); in isCursorFollowedByWordCharacter()
|
/packages/inputmethods/LatinIME/native/jni/ |
D | com_android_inputmethod_latin_BinaryDictionaryUtils.cpp | 60 jintArray before, jintArray after, jint score) { in latinime_BinaryDictionaryUtils_calcNormalizedScore() argument 62 jsize afterLength = env->GetArrayLength(after); in latinime_BinaryDictionaryUtils_calcNormalizedScore() 66 env->GetIntArrayRegion(after, 0, afterLength, afterCodePoints); in latinime_BinaryDictionaryUtils_calcNormalizedScore()
|
/packages/apps/Dialer/java/com/android/incallui/answer/impl/hint/ |
D | PawAnswerHint.java | 112 answerGestureHintAnim.play(fadeIn).after(puckUpDelayMillis); in onBounceStart() 113 answerGestureHintAnim.play(swipeUp).after(fadeIn); in onBounceStart() 118 .after(puckUpDelayMillis + puckUpDurationMillis - FADE_OUT_DELAY_ALPHA_MILLIS); in onBounceStart() 225 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator()
|
D | DotAnswerHint.java | 106 answerGestureHintAnim.play(fadeIn).after(puckUpDelayMillis); in onBounceStart() 107 answerGestureHintAnim.play(swipeUp).after(fadeIn); in onBounceStart() 112 .after(puckUpDelayMillis + puckUpDurationMillis - FADE_OUT_DELAY_ALPHA_MILLIS); in onBounceStart() 273 set.play(scaleX).with(scaleY).after(delay); in createUniformScaleAnimator()
|
/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() 277 addTimer(after) in timerUpdated() 278 } else if (before.isExpired && !after.isExpired) { in timerUpdated()
|
D | TimerFragment.kt | 651 override fun timerUpdated(before: Timer, after: Timer) { in timerUpdated() 653 if (before.isReset && !after.isReset) { in timerUpdated() 658 val index: Int = DataModel.dataModel.timers.indexOf(after) 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/apps/Contacts/src/com/android/contacts/activities/ |
D | AttachPhotoActivity.java | 392 final ContentValues after = new ContentValues(); in createNewRawContact() 393 after.put(RawContacts.ACCOUNT_TYPE, account != null ? account.type : null); in createNewRawContact() 394 after.put(RawContacts.ACCOUNT_NAME, account != null ? account.name : null); in createNewRawContact() 395 after.put(RawContacts.DATA_SET, account != null ? account.dataSet : null); in createNewRawContact() 398 = new RawContactDelta(ValuesDelta.fromAfter(after)); in createNewRawContact()
|
/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 112 StringUtils.toCodePointArray(after), score); in calcNormalizedScore()
|
/packages/apps/DeskClock/src/com/android/deskclock/ |
D | DeskClock.kt | 245 .after(hideFabAnimation) in onCreate() 252 .after(leftHideAnimation) in onCreate() 253 .after(rightHideAnimation) in onCreate() 546 after: DataModel.SilentSetting? in onSilentSettingsChange() 553 if (after == null) { in onSilentSettingsChange() 556 mShowSilentSettingSnackbarRunnable = ShowSilentSettingSnackbarRunnable(after) in onSilentSettingsChange()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | ScoringParamsTest.java | 121 String after = mScoringParams.toString(); 122 assertTrue(after + " should contain " + partial, after.contains(partial)); 123 assertEquals(before.replaceAll("rssi5=[^,]*,", partial + ","), after);
|
/packages/modules/NeuralNetworks/tools/api/ |
D | NeuralNetworksTypes.t | 131 * specification. Feature levels after Android API level 31 have no association with 162 * the device log after enabling NNAPI debugging by setting the debug.nn.vlog 221 * deadlines may still be met for the same task after a short delay. 229 * deadlines will likely also not be met for the same task even after a 238 * calls for the same task may still succeed after a short delay. 246 * calls for the same task will likely also fail even after a short 292 // Execution time on hardware, after all dependencies have been signaled. 298 // Execution time in driver, after all dependencies have been signaled. Excludes 337 * the memory after calling {@link ANeuralNetworksMemory_free}. This includes 381 * other uses of the model after calling {@link ANeuralNetworksModel_free}. [all …]
|
/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 | 49 protected void after() { in after() method in TestLifecycleOwner 51 super.after(); in after()
|
/packages/apps/Settings/ |
D | wrap_alpha.py | 13 after = before.replace(".png", "_alpha.png") variable 14 os.rename(os.path.join(root, before), os.path.join(root, after))
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
D | DownloadStorageProvider.java | 774 final File after = new File(before.getParentFile(), displayName); in renameMediaStoreDownload() local 776 if (after.exists()) { in renameMediaStoreDownload() 777 throw new IllegalStateException("Already exists " + after); in renameMediaStoreDownload() 779 if (!before.renameTo(after)) { in renameMediaStoreDownload() 780 throw new IllegalStateException("Failed to rename from " + before + " to " + after); in renameMediaStoreDownload() 788 if (!after.isDirectory() && displayName.toLowerCase(Locale.ROOT).endsWith(noMedia)) { in renameMediaStoreDownload() 790 after.getParentFile()); in renameMediaStoreDownload() 798 final Uri newUri = MediaStore.scanFile(getContext().getContentResolver(), after); in renameMediaStoreDownload() 799 return getDocIdForMediaStoreDownloadUri(newUri, after.isDirectory()); in renameMediaStoreDownload()
|
/packages/apps/DeskClock/src/com/android/deskclock/alarms/ |
D | AlarmStateManager.kt | 736 val hasTimeout = timeoutTime != null && currentTime.after(timeoutTime) in <lambda>() 770 if (currentTime.after(missedTTL)) { in <lambda>() 773 } else if (currentTime.after(alarmTime)) { in <lambda>() 791 } else if (currentTime.after(highNotificationTime)) { in <lambda>() 793 } else if (currentTime.after(lowNotificationTime)) { in <lambda>() 878 if (currentTime.before(priorAlarmTime) || currentTime.after(missedTTLTime)) { in <lambda>()
|