Home
last modified time | relevance | path

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

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/
DUnfoldHapticsPlayerTest.kt55 testFoldProvider.onFoldUpdate(isFolded = true) in testUnfoldingTransitionFinishingEarly_playsHaptics()
56 testFoldProvider.onFoldUpdate(isFolded = false) in testUnfoldingTransitionFinishingEarly_playsHaptics()
70 testFoldProvider.onFoldUpdate(isFolded = true) in testHapticsDisabled_unfoldingTransitionFinishing_doesNotPlayHaptics()
71 testFoldProvider.onFoldUpdate(isFolded = false) in testHapticsDisabled_unfoldingTransitionFinishing_doesNotPlayHaptics()
81 testFoldProvider.onFoldUpdate(isFolded = true) in testUnfoldingTransitionFinishingLate_doesNotPlayHaptics()
82 testFoldProvider.onFoldUpdate(isFolded = false) in testUnfoldingTransitionFinishingLate_doesNotPlayHaptics()
93 testFoldProvider.onFoldUpdate(isFolded = true) in testFoldingAfterUnfolding_doesNotPlayHaptics()
94 testFoldProvider.onFoldUpdate(isFolded = false) in testFoldingAfterUnfolding_doesNotPlayHaptics()
105 testFoldProvider.onFoldUpdate(isFolded = true) in testFoldingAfterUnfolding_doesNotPlayHaptics()
113 testFoldProvider.onFoldUpdate(isFolded = true) in testUnfoldingAfterFoldingAndUnfolding_playsHaptics()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/util/
DUnfoldOnlyProgressProviderTest.kt51 foldProvider.onFoldUpdate(isFolded = true) in unfolded_unfoldAnimationFinished_propagatesEvents()
52 foldProvider.onFoldUpdate(isFolded = false) in unfolded_unfoldAnimationFinished_propagatesEvents()
64 foldProvider.onFoldUpdate(isFolded = true) in unfoldedWithAnimation_foldAnimation_doesNotPropagateEvents()
65 foldProvider.onFoldUpdate(isFolded = false) in unfoldedWithAnimation_foldAnimation_doesNotPropagateEvents()
82 foldProvider.onFoldUpdate(isFolded = true) in unfoldedWithAnimation_foldAnimationSeveralTimes_doesNotPropagateEvents()
83 foldProvider.onFoldUpdate(isFolded = false) in unfoldedWithAnimation_foldAnimationSeveralTimes_doesNotPropagateEvents()
102 foldProvider.onFoldUpdate(isFolded = true) in unfoldedAgainAfterFolding_propagatesEvents()
103 foldProvider.onFoldUpdate(isFolded = false) in unfoldedAgainAfterFolding_propagatesEvents()
114 foldProvider.onFoldUpdate(isFolded = true) in unfoldedAgainAfterFolding_propagatesEvents()
119 foldProvider.onFoldUpdate(isFolded = false) in unfoldedAgainAfterFolding_propagatesEvents()
DTestFoldProvider.kt31 fun onFoldUpdate(isFolded: Boolean) { in onFoldUpdate()
32 listeners.forEach { it.onFoldUpdated(isFolded) } in onFoldUpdate()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/util/
DUnfoldOnlyProgressProvider.kt36 private var isFolded = false in <lambda>() variable
48 if (!isFolded) { in <lambda>()
55 override fun onFoldUpdated(isFolded: Boolean) { in <lambda>()
56 if (isFolded) { in <lambda>()
60 this@UnfoldOnlyProgressProvider.isFolded = isFolded in <lambda>()
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/compat/
DScreenSizeFoldProvider.kt30 private var isFolded: Boolean = false variable
39 callback.onFoldUpdated(isFolded) in registerCallback()
49 if (newIsFolded == isFolded) { in onConfigurationChange()
53 isFolded = newIsFolded in onConfigurationChange()
54 callbacks.forEach { it.onFoldUpdated(isFolded) } in onConfigurationChange()
DSizeScreenStatusProvider.kt29 override fun onFoldUpdated(isFolded: Boolean) { in onFoldUpdated()
30 if (!isFolded) { in onFoldUpdated()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DFoldStateListener.kt50 val isFolded = foldedDeviceStates.contains(state.identifier) in onFoldStateChanged() constant
51 if (wasFolded == isFolded) { in onFoldStateChanged()
54 wasFolded = isFolded in onFoldStateChanged()
56 listener.onFoldStateChanged(isFolded, willGoToSleep) in onFoldStateChanged()
DCentralSurfacesImpl.java1115 private void onFoldedStateChanged(boolean isFolded, boolean willGoToSleep) { in onFoldedStateChanged() argument
1117 onFoldedStateChangedInternal(isFolded, willGoToSleep); in onFoldedStateChanged()
1121 private void onFoldedStateChangedInternal(boolean isFolded, boolean willGoToSleep) { in onFoldedStateChangedInternal() argument
1136 isFolded, willGoToSleep, isShadeOpen, isShadeExpandingOrCollapsing, leaveOpen)); in onFoldedStateChangedInternal()
/frameworks/base/packages/SystemUI/src/com/android/systemui/unfold/
DFoldAodAnimationController.kt64 private var isFolded = false in <lambda>() variable in com.android.systemui.unfold.FoldAodAnimationController
159 isFolded && in <lambda>()
181 if (isFolded) { in <lambda>()
246 Consumer { isFolded -> in <lambda>() method
247 if (!isFolded) { in <lambda>()
251 this.isFolded = isFolded in <lambda>()
252 if (isFolded) { in <lambda>()
DUnfoldLightRevealOverlayAnimation.kt60 private var isFolded: Boolean = false in <lambda>() variable in com.android.systemui.unfold.UnfoldLightRevealOverlayAnimation
99 if (!isFolded && !isUnfoldHandled && contentResolver.areAnimationsEnabled()) { in <lambda>()
181 Consumer { isFolded -> in <lambda>() method
182 if (isFolded) { in <lambda>()
186 this.isFolded = isFolded in <lambda>()
DUnfoldTraceLogger.kt70 deviceStateRepository.isFolded.collect { isFolded -> in <lambda>() method
72 if (isFolded) { in <lambda>()
DUnfoldProgressProvider.kt46 override fun onFoldUpdated(isFolded: Boolean) { in addListener()
47 listener.onFoldStateChanged(isFolded) in addListener()
DUnfoldHapticsPlayer.kt36 foldProvider.registerCallback({ isFolded -> in <lambda>() method
37 if (isFolded) { in <lambda>()
DFoldLightRevealOverlayAnimation.kt106 .flatMapLatest { isFolded -> in <lambda>() method
108 if (!areAnimationEnabled.first() || !isFolded) { in <lambda>()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/system/
DDeviceStateRepository.kt31 val isFolded: Flow<Boolean> in <lambda>() constant
42 override val isFolded: Flow<Boolean> constant in com.android.systemui.unfold.system.DeviceStateRepositoryImpl
45 val callback = FoldCallback { isFolded -> trySend(isFolded) } in <lambda>() method
/frameworks/base/packages/SystemUI/unfold/src/com/android/systemui/unfold/updates/
DDeviceFoldStateProvider.kt73 private var isFolded = false variable
109 !isFolded &&
200 override fun onFoldUpdated(isFolded: Boolean) { in onFoldUpdated()
202 this@DeviceFoldStateProvider.isFolded = isFolded in onFoldUpdated()
205 if (isFolded) { in onFoldUpdated()
264 if (!isFolded && !isUnfoldHandled) { in cancelAnimation()
273 if (!isFolded) { in cancelAnimation()
312 if (isScreenOn && !isFolded) { in updateHingeAngleProviderState()
DFoldProvider.kt24 fun onFoldUpdated(isFolded: Boolean) in registerCallback()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
DDisplayStateInteractorImplTest.kt87 val isFolded by collectLastValue(interactor.isFolded) in isFoldedChanges() constant
91 callback.onFoldUpdated(isFolded = true) in isFoldedChanges()
92 assertThat(isFolded).isTrue() in isFoldedChanges()
94 callback.onFoldUpdated(isFolded = false) in isFoldedChanges()
95 assertThat(isFolded).isFalse() in isFoldedChanges()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DDisplayStateInteractor.kt48 val isFolded: Flow<Boolean> in <lambda>() constant
90 override val isFolded: Flow<Boolean> = constant
102 override fun onFoldUpdated(isFolded: Boolean) { in <lambda>()
103 sendFoldStateUpdate(isFolded) in <lambda>()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/unfold/updates/
DDeviceStateRepositoryTest.kt47 val flowValue = collectLastValue(foldStateRepository.isFolded) in <lambda>()
62 val flowValue = collectLastValue(foldStateRepository.isFolded) in <lambda>()
DDeviceFoldStateProviderTest.kt693 fun notifyFolded(isFolded: Boolean) { in <lambda>()
694 callbacks.forEach { it.onFoldUpdated(isFolded) } in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/ui/viewmodel/
DPromptIconViewModel.kt138 displayStateInteractor.isFolded, in <lambda>()
146 isFolded: Boolean, in <lambda>() method
154 getSfpsIconViewAsset(rotation, isFolded, isInRearDisplayMode) in <lambda>()
184 displayStateInteractor.isFolded, in <lambda>()
193 isFolded: Boolean, in <lambda>() method
202 getSfpsIconViewAsset(rotation, isFolded, isInRearDisplayMode) in <lambda>()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/unfold/
DShellUnfoldProgressProvider.java50 default void onFoldStateChanged(boolean isFolded) {} in onFoldStateChanged() argument
DUnfoldTransitionHandler.java294 public void onFoldStateChanged(boolean isFolded) { in onFoldStateChanged() argument
295 if (isFolded) { in onFoldStateChanged()
/frameworks/base/libs/WindowManager/Shell/tests/unittest/src/com/android/wm/shell/unfold/
DUnfoldTransitionHandlerTest.java390 public void onFoldStateChanged(boolean isFolded) { in onFoldStateChanged() argument
391 mListeners.forEach(unfoldListener -> unfoldListener.onFoldStateChanged(isFolded)); in onFoldStateChanged()