Home
last modified time | relevance | path

Searched refs:CredentialSelectorUiState (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/
DFlowEngine.kt32 val uiState: StateFlow<CredentialSelectorUiState>
67 sealed class CredentialSelectorUiState { in back() class
69 data object Idle : CredentialSelectorUiState() in back()
71 sealed class Get : CredentialSelectorUiState() { in back()
95 data object Create : CredentialSelectorUiState() in back()
97 data class Cancel(val appName: String) : CredentialSelectorUiState() in back()
99 data object Close : CredentialSelectorUiState() in back()
DCredentialSelectorViewModel.kt23 import com.android.credentialmanager.CredentialSelectorUiState.Get in <lambda>()
31 import com.android.credentialmanager.CredentialSelectorUiState.Cancel in <lambda>()
32 import com.android.credentialmanager.CredentialSelectorUiState.Close in <lambda>()
33 import com.android.credentialmanager.CredentialSelectorUiState.Create in <lambda>()
34 import com.android.credentialmanager.CredentialSelectorUiState.Idle in <lambda>()
53 override val uiState: StateFlow<CredentialSelectorUiState> = in <lambda>()
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/
DWearApp.kt31 import com.android.credentialmanager.CredentialSelectorUiState
32 import com.android.credentialmanager.CredentialSelectorUiState.Get.MultipleEntryPrimaryScreen
33 import com.android.credentialmanager.CredentialSelectorUiState.Get.SingleEntry
34 import com.android.credentialmanager.CredentialSelectorUiState.Get.MultipleEntry
117 CredentialSelectorUiState.Idle -> { in WearApp()
123 is CredentialSelectorUiState.Get -> { in WearApp()
131 CredentialSelectorUiState.Create -> { in WearApp()
136 is CredentialSelectorUiState.Cancel -> { in WearApp()
140 CredentialSelectorUiState.Close -> { in WearApp()
148 state: CredentialSelectorUiState.Get, in handleGetNavigation()
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/mappers/
DCredentialSelectorUiStateGetMapper.kt21 import com.android.credentialmanager.CredentialSelectorUiState in <lambda>()
22 import com.android.credentialmanager.CredentialSelectorUiState.Get.MultipleEntry.PerUserNameEntries in <lambda>()
27 fun Request.Get.toGet(isPrimary: Boolean): CredentialSelectorUiState.Get { in <lambda>()
36 CredentialSelectorUiState.Get.SingleEntry( in <lambda>()
50 CredentialSelectorUiState.Get.MultipleEntryPrimaryScreen( in <lambda>()
57 CredentialSelectorUiState.Get.MultipleEntry( in <lambda>()
/frameworks/base/packages/CredentialManager/wear/robotests/src/com/android/credentialmanager/
DCredentialSelectorViewModelTest.kt81 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Idle) in Setting state to idle when receiving null request()
90 .isEqualTo(CredentialSelectorUiState.Cancel("appName")) in Setting state to cancel when receiving Cancel request()
98 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Create) in Setting state to create when receiving Create request()
106 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Closing app when receiving Close request()
129 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on a single entry screen closes app()
143 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on a multiple entry screen gets us back to a primary screen()
153 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on create request state closes app()
163 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on close request state closes app()
173 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on cancel request state closes app()
183 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Close) in Back on idle request state closes app()
[all …]
DCredentialSelectorUiStateGetMapperTest.kt33 import com.android.credentialmanager.CredentialSelectorUiState.Get.MultipleEntry.PerUserNameEntries
106 CredentialSelectorUiState.Get.SingleEntry(passkeyCredentialEntryInfo) in On primary screen, just one account returns SingleEntry()
119 CredentialSelectorUiState.Get.MultipleEntryPrimaryScreen( in On primary screen, multiple accounts returns SingleEntryPerAccount()
137 CredentialSelectorUiState.Get.MultipleEntry( in On secondary screen, a MultipleEntry is returned()
156 CredentialSelectorUiState.Get.MultipleEntry( in Returned multiple entry is sorted by credentialType and lastUsedTimeMillis()
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/screens/multiple/
DMultiCredentialsFoldScreen.kt27 import com.android.credentialmanager.CredentialSelectorUiState in <lambda>()
51 credentialSelectorUiState: CredentialSelectorUiState.Get.MultipleEntryPrimaryScreen, in <lambda>()
DMultiCredentialsFlattenScreen.kt26 import com.android.credentialmanager.CredentialSelectorUiState.Get.MultipleEntry in <lambda>()