/frameworks/libs/systemui/tracinglib/core/common/src/ |
D | TraceStateLogger.kt | 44 private var previousValue: String? = null variable in com.android.app.tracing.TraceStateLogger 51 if (logOnlyIfDifferent && previousValue == newValue) return in log() 52 previousValue?.let { asyncTraceForTrackEnd(trackName, it, 0) } in log() 57 previousValue = newValue in log()
|
/frameworks/native/libs/battery/ |
D | LongArrayMultiStateCounter.cpp | 25 bool LongArrayMultiStateCounter::delta(const std::vector<uint64_t>& previousValue, in delta() argument 28 size_t size = previousValue.size(); in delta() 36 if (newValue[i] >= previousValue[i]) { in delta() 37 (*outValue)[i] = newValue[i] - previousValue[i]; in delta()
|
D | MultiStateCounterTest.cpp | 27 bool DoubleMultiStateCounter::delta(const double& previousValue, const double& newValue, in delta() argument 29 *outValue = newValue - previousValue; in delta()
|
D | MultiStateCounter.h | 107 bool delta(const T& previousValue, const T& newValue, T* outValue) const;
|
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
D | StateKeeperRule.java | 51 final T previousValue = mStateManager.get(); in apply() 56 if (!Objects.equals(previousValue, currentValue)) { in apply() 57 mStateManager.set(previousValue); in apply()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/util/kotlin/ |
D | Flow.kt | 47 var previousValue: Any? = noVal in <lambda>() variable 49 if (previousValue != noVal) { in <lambda>() 50 @Suppress("UNCHECKED_CAST") emit(transform(previousValue as T, newVal)) in <lambda>() 52 previousValue = newVal in <lambda>() 64 transform: suspend (previousValue: S, newValue: T) -> R, in pairwiseBy() 78 transform: suspend (previousValue: S, newValue: T) -> R, in pairwiseBy() 80 var previousValue: S = getInitialValue() in pairwiseBy() variable 82 emit(transform(previousValue, newVal)) in pairwiseBy() 83 previousValue = newVal in pairwiseBy() 105 data class WithPrev<out S, out T : S>(val previousValue: S, val newValue: T) in pairwise() constant in com.android.systemui.util.kotlin.WithPrev
|
/frameworks/base/tests/testables/src/android/testing/ |
D | DexmakerShareClassLoaderRule.java | 78 final String previousValue = System.getProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY); in wrapInSetAndClearProperty() 83 if (previousValue != null) { in wrapInSetAndClearProperty() 84 System.setProperty(DEXMAKER_SHARE_CLASSLOADER_PROPERTY, previousValue); in wrapInSetAndClearProperty()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | OneFingerPanningSettingsProviderTest.java | 112 var previousValue = mProvider.isOneFingerPanningEnabled(); in isOneFingerPanningEnabled_flagDisabledSettingsChanges_valueUnchanged() local 114 enableSecureSettings(!previousValue); in isOneFingerPanningEnabled_flagDisabledSettingsChanges_valueUnchanged() 116 assertThat(mProvider.isOneFingerPanningEnabled()).isEqualTo(previousValue); in isOneFingerPanningEnabled_flagDisabledSettingsChanges_valueUnchanged()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/media/projection/ |
D | MediaProjectionSessionIdGeneratorTest.java | 80 int previousValue = mGenerator.getCurrentSessionId(); in createAndGetNewSessionId_returnsIncrementedId() local 84 assertThat(newValue).isEqualTo(previousValue + 1); in createAndGetNewSessionId_returnsIncrementedId()
|
/frameworks/av/media/libaaudio/tests/ |
D | test_resampler.cpp | 122 float previousValue = output[0]; in checkResampler() local 125 float slope = output[i] - previousValue; in checkResampler() 131 previousValue = output[i]; in checkResampler()
|
/frameworks/base/core/jni/ |
D | com_android_internal_os_LongMultiStateCounter.cpp | 34 bool LongMultiStateCounter::delta(const int64_t &previousValue, const int64_t &newValue, in delta() argument 36 *outValue = newValue - previousValue; in delta()
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsHelperTest.java | 708 int previousValue = 0; in restoreValue_autoRotation_deviceStateAutoRotationDisabled_restoresValue() local 710 setAutoRotationSettingValue(previousValue); in restoreValue_autoRotation_deviceStateAutoRotationDisabled_restoresValue() 721 int previousValue = 0; in restoreValue_autoRotation_deviceStateAutoRotationEnabled_doesNotRestoreValue() local 723 setAutoRotationSettingValue(previousValue); in restoreValue_autoRotation_deviceStateAutoRotationEnabled_doesNotRestoreValue() 727 assertThat(getAutoRotationSettingValue()).isEqualTo(previousValue); in restoreValue_autoRotation_deviceStateAutoRotationEnabled_doesNotRestoreValue()
|
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/ |
D | QSSettingsRestoredBroadcastRepositoryTest.kt | 292 previousValue: String, in createRestoreIntent() 302 .putExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE, previousValue) in createRestoreIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/ |
D | DisplaySwitchLatencyTracker.kt | 95 foldableDeviceState.previousValue == DeviceState.FOLDED || in <lambda>() 104 foldableDeviceState.previousValue.toStatsInt() in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/stack/domain/interactor/ |
D | HideNotificationsInteractor.kt | 107 get() = newValue.area > previousValue.area in <lambda>()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | AutoAddTrackerTest.java | 291 String settingName, String previousValue, String restoredValue) { in makeRestoreIntent() argument 294 intent.putExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE, previousValue); in makeRestoreIntent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/navigationbar/gestural/ |
D | BackPanelController.kt | 1142 private lateinit var previousValue: Value<T> variable in Step 1154 previousValue = startValue in reset() 1168 hasCrossedLowerBound -> previousValue.copy(isNewState = false) in get() 1174 }.also { previousValue = it } in get()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/domain/interactor/ |
D | WindowManagerLockscreenVisibilityInteractor.kt | 209 val startedFromStep = startedWithPrev?.previousValue in <lambda>()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/ |
D | SystemUIDeviceEntryFaceAuthInteractor.kt | 358 .filter { pair -> !pair.previousValue && pair.newValue } in whenItFlipsToTrue()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/ |
D | PinStorage.java | 934 int previousValue = sharedPrefs.getInt(SHARED_PREFS_STORED_PINS, 0); in saveNumberOfCachedPins() local 936 return previousValue; in saveNumberOfCachedPins()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/ |
D | CurrentTilesInteractor.kt | 211 usersAndTiles.previousValue, in startTileCollection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/ |
D | UserSwitcherInteractor.kt | 346 Pair(intent, selectedUserChange.previousValue) in <lambda>()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/ |
D | AccessibilityManagerServiceTest.java | 1809 private void broadcastSettingRestored(String setting, String previousValue, String newValue) { in broadcastSettingRestored() argument 1813 .putExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE, previousValue) in broadcastSettingRestored()
|
/frameworks/base/services/accessibility/java/com/android/server/accessibility/ |
D | AccessibilityManagerService.java | 907 final String previousValue = in registerBroadcastReceivers() 917 previousValue, newValue, restoredFromSdk); in registerBroadcastReceivers() 929 previousValue, newValue); in registerBroadcastReceivers() 943 restoreAccessibilityShortcutTargetService(previousValue, newValue); in registerBroadcastReceivers()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | Session.java | 1163 final AutofillValue previousValue = previousSession in findValueLocked() local 1165 if (previousValue != null) { in findValueLocked() 1167 autofillId, previousValue); in findValueLocked()
|