Home
last modified time | relevance | path

Searched refs:previousValue (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/libs/systemui/tracinglib/core/common/src/
DTraceStateLogger.kt44 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/
DLongArrayMultiStateCounter.cpp25 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()
DMultiStateCounterTest.cpp27 bool DoubleMultiStateCounter::delta(const double& previousValue, const double& newValue, in delta() argument
29 *outValue = newValue - previousValue; in delta()
DMultiStateCounter.h107 bool delta(const T& previousValue, const T& newValue, T* outValue) const;
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DStateKeeperRule.java51 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/
DFlow.kt47 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/
DDexmakerShareClassLoaderRule.java78 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/
DOneFingerPanningSettingsProviderTest.java112 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/
DMediaProjectionSessionIdGeneratorTest.java80 int previousValue = mGenerator.getCurrentSessionId(); in createAndGetNewSessionId_returnsIncrementedId() local
84 assertThat(newValue).isEqualTo(previousValue + 1); in createAndGetNewSessionId_returnsIncrementedId()
/frameworks/av/media/libaaudio/tests/
Dtest_resampler.cpp122 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/
Dcom_android_internal_os_LongMultiStateCounter.cpp34 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/
DSettingsHelperTest.java708 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/
DQSSettingsRestoredBroadcastRepositoryTest.kt292 previousValue: String, in createRestoreIntent()
302 .putExtra(Intent.EXTRA_SETTING_PREVIOUS_VALUE, previousValue) in createRestoreIntent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DDisplaySwitchLatencyTracker.kt95 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/
DHideNotificationsInteractor.kt107 get() = newValue.area > previousValue.area in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DAutoAddTrackerTest.java291 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/
DBackPanelController.kt1142 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/
DWindowManagerLockscreenVisibilityInteractor.kt209 val startedFromStep = startedWithPrev?.previousValue in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/deviceentry/domain/interactor/
DSystemUIDeviceEntryFaceAuthInteractor.kt358 .filter { pair -> !pair.previousValue && pair.newValue } in whenItFlipsToTrue()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
DPinStorage.java934 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/
DCurrentTilesInteractor.kt211 usersAndTiles.previousValue, in startTileCollection()
/frameworks/base/packages/SystemUI/src/com/android/systemui/user/domain/interactor/
DUserSwitcherInteractor.kt346 Pair(intent, selectedUserChange.previousValue) in <lambda>()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
DAccessibilityManagerServiceTest.java1809 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/
DAccessibilityManagerService.java907 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/
DSession.java1163 final AutofillValue previousValue = previousSession in findValueLocked() local
1165 if (previousValue != null) { in findValueLocked()
1167 autofillId, previousValue); in findValueLocked()

12