Home
last modified time | relevance | path

Searched refs:foldState (Results 1 – 17 of 17) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/biometrics/domain/interactor/
DLogContextInteractorImplTest.kt185 val foldState by collectLastValue(interactor.foldState) in foldStateChanges() constant
188 assertThat(foldState).isEqualTo(FoldState.HALF_OPENED) in foldStateChanges()
191 assertThat(foldState).isEqualTo(FoldState.FULLY_OPENED) in foldStateChanges()
194 assertThat(foldState).isEqualTo(FoldState.FULLY_OPENED) in foldStateChanges()
197 assertThat(foldState).isEqualTo(FoldState.FULLY_CLOSED) in foldStateChanges()
200 assertThat(foldState).isEqualTo(FoldState.FULLY_OPENED) in foldStateChanges()
203 assertThat(foldState).isEqualTo(FoldState.UNKNOWN) in foldStateChanges()
218 override fun onFoldChanged(foldState: Int) { in contextSubscriberChanges()
219 folded = foldState in contextSubscriberChanges()
/frameworks/base/services/core/java/com/android/server/audio/
DRotationHelper.java152 static void updateFoldState(boolean foldState) { in updateFoldState() argument
154 if (sFoldState == null || sFoldState != foldState) { in updateFoldState()
155 sFoldState = foldState; in updateFoldState()
156 sFoldStateCallback.accept(foldState); in updateFoldState()
DAudioService.java1555 foldState -> onFoldStateUpdate(foldState)); in initExternalEventReceivers()
1718 void onFoldStateUpdate(Boolean foldState) { in onFoldStateUpdate() argument
1719 mSpatializerHelper.setFoldState(foldState); in onFoldStateUpdate()
1721 final String foldStateParameter = "device_folded=" + (foldState ? "on" : "off"); in onFoldStateUpdate()
/frameworks/base/packages/EasterEgg/src/com/android/egg/landroid/
DDreamUniverse.kt34 private var foldState = mutableStateOf<FoldingFeature?>(null) // unused variable
95 Spaaaace(modifier = Modifier.fillMaxSize(), u = universe, foldState = foldState) in onAttachedToWindow()
DMainActivity.kt293 private var foldState = mutableStateOf<FoldingFeature?>(null) variable in com.android.egg.landroid.MainActivity
320 Spaaaace(modifier = Modifier.fillMaxSize(), u = universe, foldState = foldState) in onCreate()
362 foldState.value = in onWindowLayoutInfoChange()
364 Log.v("Landroid", "fold updated: $foldState") in onWindowLayoutInfoChange()
462 foldState: MutableState<FoldingFeature?> = mutableStateOf(null) in Spaaaace()
486 val halfFolded = foldState.value?.let { it.state == FoldingFeature.State.HALF_OPENED } ?: false in Spaaaace()
488 foldState.value?.let { it.orientation == FoldingFeature.Orientation.HORIZONTAL } ?: false in Spaaaace()
/frameworks/base/packages/SystemUI/src/com/android/systemui/biometrics/domain/interactor/
DLogContextInteractor.kt54 val foldState: Flow<Int> in <lambda>() constant
114 override val foldState: Flow<Int> = constant
134 foldState in addBiometricContextListener()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DServiceStateStats.java141 newState.foldState = mDeviceStateHelper.getFoldState(); in onServiceStateChanged()
159 public void onFoldStateChanged(int foldState) { in onFoldStateChanged() argument
162 if (lastServiceState == null || lastServiceState.foldState == foldState) { in onFoldStateChanged()
171 newServiceState.foldState = foldState; in onFoldStateChanged()
318 copy.foldState = state.foldState; in copyOf()
DMetricsCollector.java1085 state.foldState, in buildStatsEvent()
1141 session.foldState, in buildStatsEvent()
DPersistAtomsStorage.java1976 && state.foldState == key.foldState in find()
DVoiceCallSessionStats.java572 proto.foldState = mDeviceStateHelper.getFoldState(); in finishCall()
/frameworks/base/services/core/java/com/android/server/biometrics/log/
DBiometricContextProvider.java118 public void onFoldChanged(int foldState) { in subscribeBiometricContextListener()
119 if (mFoldState != foldState) { in subscribeBiometricContextListener()
120 mFoldState = foldState; in subscribeBiometricContextListener()
DOperationContextExt.java292 mAidlContext.foldState = toAidlFoldState(biometricContext.getFoldState()); in update()
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/log/
DOperationContextExtTest.java132 final int foldState = IBiometricContextListener.FoldState.HALF_OPENED; in updatesFromSource() local
137 when(mBiometricContext.getFoldState()).thenReturn(foldState); in updatesFromSource()
158 assertThat(context.getFoldState()).isEqualTo(foldState); in updatesFromSource()
DBiometricContextProviderTest.java209 assertThat(mProvider.getFoldState()).isEqualTo(ctx.foldState); in testSubscribesToFoldState()
210 actual.add(ctx.foldState); in testSubscribesToFoldState()
/frameworks/base/packages/SystemUI/customization/src/com/android/systemui/shared/clocks/
DDefaultClockController.kt285 private val foldState = AnimationState(foldFraction) constant
288 if (foldState.isActive) {
304 val (hasChanged, hasJumped) = foldState.update(fraction) in fold()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/unfold/system/
DSystemUnfoldSharedModule.kt55 abstract fun foldState(provider: DeviceStateManagerFoldProvider): FoldProvider in activityTypeProvider() method
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/
DServiceStateStatsTest.java1195 assertEquals(CELLULAR_SERVICE_STATE__FOLD_STATE__STATE_UNKNOWN, state.foldState); in onFoldStateChanged_LTEMode()
1197 assertEquals(CELLULAR_SERVICE_STATE__FOLD_STATE__STATE_CLOSED, state.foldState); in onFoldStateChanged_LTEMode()