Home
last modified time | relevance | path

Searched refs:lastValue (Results 1 – 20 of 20) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfigTest.kt72 val lastValue = values.last() in <lambda>() constant
75 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in <lambda>()
78 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in <lambda>()
95 val lastValue = values.last() in <lambda>() constant
98 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in <lambda>()
101 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in <lambda>()
118 val lastValue = values.last() in <lambda>() constant
121 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in <lambda>()
124 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in <lambda>()
141 val lastValue = values.last() in <lambda>() constant
[all …]
DDoNotDisturbQuickAffordanceConfigTest.kt244 val lastValue = valueSnapshot() in lockScreenState - dndAvailable starts as true - change to false - State is Hidden() constant
248 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Hidden) in lockScreenState - dndAvailable starts as true - change to false - State is Hidden()
264 val lastValue = valueSnapshot() in lockScreenState - dndMode starts as ZEN_MODE_OFF - change to not OFF - State Visible() constant
285 lastValue, in lockScreenState - dndMode starts as ZEN_MODE_OFF - change to not OFF - State Visible()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/coroutines/
DFlow.kt46 var lastValue: T? = null in collectLastValue() variable
47 backgroundScope.launch(context, start) { flow.collect { lastValue = it } } in collectLastValue()
50 lastValue in collectLastValue()
/frameworks/base/packages/SystemUI/compose/core/src/com/android/compose/pager/
DSnappingFlingBehavior.kt129 var lastValue = 0f in performDecayFling() variable
135 val delta = value - lastValue in performDecayFling()
137 lastValue = value in performDecayFling()
185 var lastValue = 0f in performSpringFling() variable
201 val delta = coercedValue - lastValue in performSpringFling()
203 lastValue = coercedValue in performSpringFling()
/frameworks/native/libs/battery/
DMultiStateCounter.h42 T lastValue; variable
120 lastValue(emptyValue), in MultiStateCounter()
213 if (delta(lastValue, value, &deltaValue)) { in updateValue()
226 << ", which is lower than the previous value " << valueToString(lastValue) in updateValue()
244 lastValue = value; in updateValue()
251 T newValue = lastValue; in incrementValue()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/fontscaling/
DFontScalingDialog.kt83 var lastValue = strEntryValues[0].toFloat() in fontSizeValueToIndex() variable
86 if (value < lastValue + (thisValue - lastValue) * .5f) { in fontSizeValueToIndex()
89 lastValue = thisValue in fontSizeValueToIndex()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/
DRoundable.kt81 val lastValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant
92 if (lastValue != newValue) { in <lambda>()
99 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>()
150 val lastValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant
161 if (lastValue != newValue) { in <lambda>()
168 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/coroutines/
DFlowTest.kt21 val lastValue by collectLastValue(flow) in <lambda>() constant
22 assertThat(lastValue).isEqualTo(2) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/
DMobileUiAdapter.kt83 private var lastValue: List<Int>? = null in <lambda>() variable
95 lastValue = it in <lambda>()
104 pw.println("Last values sent to icon controller: $lastValue") in <lambda>()
/frameworks/hardware/interfaces/sensorservice/1.0/vts/functional/
DVtsHalSensorManagerV1_0TargetTest.cpp80 typename std::iterator_traits<I>::pointer lastValue = nullptr; in isIncreasing() local
85 lastValue = &(*iter); in isIncreasing()
88 if (getField(*iter) < getField(*lastValue)) { in isIncreasing()
90 << pos << ", " << getField(*iter) << " < " << getField(*lastValue); in isIncreasing()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DALSProbeTest.java324 final float lastValue = 5.5f; in testDestroyAllowsAwaitLuxExactlyOnce() local
333 new SensorEvent(mLightSensor, 1, 1, new float[]{lastValue})); in testDestroyAllowsAwaitLuxExactlyOnce()
335 assertThat(lux.get()).isEqualTo(Math.round(lastValue)); in testDestroyAllowsAwaitLuxExactlyOnce()
343 assertThat(lux.get()).isEqualTo(Math.round(lastValue)); in testDestroyAllowsAwaitLuxExactlyOnce()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DKeyguardTransitionRepositoryTest.kt239 val lastValue = fractions[fractions.size - 1].toFloat() in <lambda>() constant
241 if (lastValue < 1f) { in <lambda>()
247 .isEqualTo(TransitionStep(from, to, lastValue, status, OWNER_NAME)) in <lambda>()
/frameworks/av/media/codec2/vndk/util/
DC2InterfaceUtils.cpp119 double lastValue = _mMin; in contains() local
123 if (T(lastValue + MIN_STEP / 2) == value) { in contains()
126 double nextValue = fma(lastValue, base, _mStep); in contains()
127 if (nextValue <= lastValue || nextValue > _mMax) { in contains()
130 lastValue = nextValue; in contains()
/frameworks/base/core/jni/
Dandroid_os_Parcel.cpp174 static void android_os_Parcel_restoreAllowFds(jlong nativePtr, jboolean lastValue) in android_os_Parcel_restoreAllowFds() argument
178 parcel->restoreAllowFds((bool)lastValue); in android_os_Parcel_restoreAllowFds()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/user/domain/interactor/
DUserInteractorTest.kt189 val lastValue = collectLastValue(underTest.dialogDismissRequests) in <lambda>() constant
190 assertNotNull(lastValue) in <lambda>()
/frameworks/base/core/java/android/os/
DParcel.java378 private static native void nativeRestoreAllowFds(long nativePtr, boolean lastValue); in nativeRestoreAllowFds() argument
731 public final void restoreAllowFds(boolean lastValue) { in restoreAllowFds() argument
732 nativeRestoreAllowFds(mNativePtr, lastValue); in restoreAllowFds()
/frameworks/native/libs/binder/
DParcel.cpp559 void Parcel::restoreAllowFds(bool lastValue) in restoreAllowFds() argument
561 mAllowFds = lastValue; in restoreAllowFds()
/frameworks/native/include/binder/
DParcel.h93 void restoreAllowFds(bool lastValue);
/frameworks/native/libs/binder/include/binder/
DParcel.h93 void restoreAllowFds(bool lastValue);
/frameworks/base/services/core/java/com/android/server/net/
DNetworkPolicyManagerService.java1328 final boolean lastValue = lastValues.get(network.getNetId(), false); in updateCapabilityChange()
1329 final boolean changed = (lastValue != newValue) in updateCapabilityChange()