Home
last modified time | relevance | path

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

12

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/quickaffordance/
DFlashlightQuickAffordanceConfigTest.kt73 val lastValue = values.last() in <lambda>() constant
76 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in <lambda>()
79 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in <lambda>()
96 val lastValue = values.last() in flashlightIsOn_triggered_iconIsOffAndInactive() constant
99 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in flashlightIsOn_triggered_iconIsOffAndInactive()
102 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in flashlightIsOn_triggered_iconIsOffAndInactive()
119 val lastValue = values.last() in <lambda>() constant
122 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Visible) in <lambda>()
125 ((lastValue as KeyguardQuickAffordanceConfig.LockScreenState.Visible).icon in <lambda>()
142 val lastValue = values.last() in <lambda>() constant
[all …]
DDoNotDisturbQuickAffordanceConfigTest.kt244 val lastValue = valueSnapshot() in lockScreenState_dndAvailableStartsAsTrue_changeToFalse_StateIsHidden() constant
248 assertTrue(lastValue is KeyguardQuickAffordanceConfig.LockScreenState.Hidden) in lockScreenState_dndAvailableStartsAsTrue_changeToFalse_StateIsHidden()
264 val lastValue = valueSnapshot() in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible() constant
285 lastValue, in lockScreenState_dndModeStartsAsZEN_MODE_OFF_changeToNotOFF_StateVisible()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/tiles/impl/rotation/domain/interactor/
DRotationLockTileDataInteractorTest.kt144 val lastValue by in tileData_cameraRotationMatchesSensorPrivacyRepository() constant
149 assertThat(lastValue!!.isCameraRotationEnabled).isTrue() in tileData_cameraRotationMatchesSensorPrivacyRepository()
153 assertThat(lastValue!!.isCameraRotationEnabled).isFalse() in tileData_cameraRotationMatchesSensorPrivacyRepository()
157 assertThat(lastValue!!.isCameraRotationEnabled).isTrue() in tileData_cameraRotationMatchesSensorPrivacyRepository()
165 val lastValue by in tileData_cameraRotationMatchesAutoRotateRepository() constant
170 assertThat(lastValue!!.isCameraRotationEnabled).isTrue() in tileData_cameraRotationMatchesAutoRotateRepository()
174 assertThat(lastValue!!.isCameraRotationEnabled).isFalse() in tileData_cameraRotationMatchesAutoRotateRepository()
178 assertThat(lastValue!!.isCameraRotationEnabled).isTrue() in tileData_cameraRotationMatchesAutoRotateRepository()
192 val lastValue by in tileData_matchesPackageManagerPermissionDenied() constant
197 assertThat(lastValue!!.isCameraRotationEnabled).isEqualTo(false) in tileData_matchesPackageManagerPermissionDenied()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DLeftRightArrowPressedListenerTest.kt38 var lastValue: Int? = null variable in com.android.systemui.qs.LeftRightArrowPressedListenerTest
41 lastValue = keyCode in accept()
59 assertThat(callback.lastValue).isEqualTo(KEYCODE_DPAD_LEFT) in shouldTriggerCallback_whenArrowUpReceived_afterArrowDownReceived()
66 assertThat(callback.lastValue).isNull() in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownNotReceived()
74 assertThat(callback.lastValue).isNull() in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownWasRepeated()
85 assertThat(callback.lastValue).isNull() in shouldNotTriggerCallback_whenKeyUpReceived_ifKeyDownReceivedBeforeLosingFocus()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/display/domain/interactor/
DConnectedDisplayInteractorTest.kt86 val value by lastValue() in <lambda>()
96 val value by lastValue() in <lambda>()
106 val value by lastValue() in <lambda>()
116 val value by lastValue() in <lambda>()
126 val value by lastValue() in <lambda>()
138 val value by lastValue() in <lambda>()
150 val value by lastValue() in <lambda>()
168 val value by lastValue() in <lambda>()
178 val value by lastValue() in <lambda>()
329 private fun TestScope.lastValue(): FlowValue<State?> = in <lambda>() method in com.android.systemui.display.domain.interactor.ConnectedDisplayInteractorTest
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/ui/
DMobileUiAdapter.kt51 private var lastValue: List<Int>? = null variable in com.android.systemui.statusbar.pipeline.mobile.ui.MobileUiAdapter
61 lastValue = it in start()
75 pw.println("Last values sent to icon controller: $lastValue") in dump()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/statusbar/
DNotificationMediaManagerTest.kt98 listenerCaptor.lastValue.onMediaDataRemoved(KEY, true) in mediaDataRemoved_userInitiated_dismissNotif()
101 assertThat(notifEntryCaptor.lastValue.key).isEqualTo(KEY) in mediaDataRemoved_userInitiated_dismissNotif()
107 listenerCaptor.lastValue.onMediaDataRemoved(KEY, false) in mediaDataRemoved_notUserInitiated_doesNotDismissNotif()
121 listenerCaptor.lastValue.onMediaDataRemoved(KEY, false) in mediaDataRemoved_notUserInitiated_flagOff_dismissNotif()
124 assertThat(notifEntryCaptor.lastValue.key).isEqualTo(KEY) in mediaDataRemoved_notUserInitiated_flagOff_dismissNotif()
/frameworks/native/libs/battery/
DMultiStateCounter.h44 T lastValue; variable
128 lastValue(emptyValue), in MultiStateCounter()
241 if (delta(lastValue, value, &deltaValue)) { in updateValue()
254 << ", which is lower than the previous value " << valueToString(lastValue) in updateValue()
274 lastValue = value; in updateValue()
281 T newValue = lastValue; in incrementValue()
/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/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>()
148 val lastValue = roundnessMap.values.maxOrNull() ?: 0f in <lambda>() constant
159 if (lastValue != newValue) { in <lambda>()
166 val shouldAnimate = wasAnimating && abs(newValue - lastValue) > 0.5f in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/accessibility/fontscaling/
DFontScalingDialogDelegate.kt189 var lastValue = strEntryValues[0].toFloat() in fontSizeValueToIndex() variable
192 if (value < lastValue + (thisValue - lastValue) * .5f) { in fontSizeValueToIndex()
195 lastValue = thisValue in fontSizeValueToIndex()
/frameworks/hardware/interfaces/sensorservice/aidl/vts/
DVtsHalSensorManagerTargetTest.cpp54 typename std::iterator_traits<I>::pointer lastValue = nullptr; in isIncreasing() local
59 lastValue = &(*iter); in isIncreasing()
62 if (getField(*iter) < getField(*lastValue)) { in isIncreasing()
65 << " < " << getField(*lastValue); in isIncreasing()
/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/core/java/android/os/
DBundleMerger.java245 final Object lastValue = last.get(key); in merge() local
247 res.putObject(key, merge(strategy, firstValue, lastValue)); in merge()
250 + lastValue + " using strategy " + strategy, e); in merge()
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/common/material/
DSwipeable.kt246 lastValue = anchors.getOffset(currentValue) ?: offset.value,
360 lastValue = lastAnchor, in performFling()
750 lastValue: Float, in computeTarget()
758 0 -> lastValue in computeTarget()
763 if (lastValue <= offset) { in computeTarget()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/keyguard/data/repository/
DLightRevealScrimRepositoryTest.kt224 val lastValue by collectLastValue(underTest.revealAmount) in <lambda>() constant
230 assertEquals(0.0f, lastValue) in <lambda>()
/frameworks/base/packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/
DAnimateSharedAsState.kt329 var lastValue: T = type.unspecifiedValue in valueReadTooEarlyMessage() variable in com.android.compose.animation.scene.SharedValue
362 sharedValue.lastValue = interruptedValue in value()
420 sharedValue.valueBeforeInterruption = sharedValue.lastValue in transition()
/frameworks/base/services/tests/displayservicetests/src/com/android/server/display/mode/
DSystemRequestObserverTest.kt134 deathRecipientCaptor.lastValue.binderDied(mockToken) in removes all votes from storage when binder dies()
200 deathRecipientCaptor.lastValue.binderDied(mockOtherToken) in recalculates vote if one binder dies()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyguard/data/repository/
DKeyguardTransitionRepositoryTest.kt464 val lastValue = fractions[fractions.size - 1].toFloat() in <lambda>() constant
466 if (lastValue < 1f) { in <lambda>()
472 .isEqualTo(TransitionStep(from, to, lastValue, status, OWNER_NAME)) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/keyboard/data/repository/
DKeyboardRepositoryTest.kt202 val lastValue = collectLastValue(flow) in <lambda>() constant
206 return lastValue in <lambda>()
/frameworks/base/packages/SettingsLib/Spa/spa/src/com/android/settingslib/spa/widget/scaffold/
DCustomizedAppBar.kt588 var lastValue = 0f in settleAppBar() variable
594 val delta = value - lastValue in settleAppBar()
598 lastValue = value in settleAppBar()
/frameworks/av/media/codec2/hal/hidl/1.0/vts/functional/audio/
DVtsHalMediaC2V1_0TargetAudioDecTest.cpp324 uint32_t lastValue; in configureLargeFrameParams() local
326 lastValue = (uint32_t)prim.ref<uint32_t>(); in configureLargeFrameParams()
327 if (lastValue > value) { in configureLargeFrameParams()
328 value = lastValue; in configureLargeFrameParams()
332 if (value > lastValue) { in configureLargeFrameParams()
333 value = lastValue; in configureLargeFrameParams()
/frameworks/base/ravenwood/runtime-helper-src/framework/com/android/platform/test/ravenwood/nativesubstitution/
DParcel_host.java182 public static void nativeRestoreAllowFds(long nativePtr, boolean lastValue) { in nativeRestoreAllowFds() argument
183 getInstance(nativePtr).mAllowFds = lastValue; in nativeRestoreAllowFds()
/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()

12