/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/ |
D | CredentialSelectorViewModel.kt | 76 var uiState by mutableStateOf(credManRepo.initState()) variable 92 uiState = uiState.copy(dialogState = DialogState.COMPLETE) in onUserCancel() 96 uiState = uiState.copy(isInitialRender = false) in onInitialRenderComplete() 100 uiState = uiState.copy(cancelRequestState = CancelUiRequestState(appDisplayName)) in onCancellationUiRequested() 108 uiState = uiState.copy(dialogState = DialogState.COMPLETE) in silentlyFinishActivity() 113 uiState = credManRepo.initState().copy(isInitialRender = false) in onNewCredentialManagerRepo() 125 val entry = uiState.selectedEntry in launchProviderUi() 126 val biometricState = uiState.biometricState in launchProviderUi() 130 uiState = uiState.copy(providerActivityState = ProviderActivityState.PENDING) in launchProviderUi() 132 entryIntent?.putExtra(Constants.IS_AUTO_SELECTED_KEY, uiState.isAutoSelectFlow) in launchProviderUi() [all …]
|
D | CredentialSelectorActivity.kt | 153 LaunchedEffect(viewModel.uiState.dialogState) { in CredentialManagerBottomSheet() 154 handleDialogState(viewModel.uiState.dialogState) in CredentialManagerBottomSheet() 157 val createCredentialUiState = viewModel.uiState.createCredentialUiState in CredentialManagerBottomSheet() 158 val getCredentialUiState = viewModel.uiState.getCredentialUiState in CredentialManagerBottomSheet() 159 val cancelRequestState = viewModel.uiState.cancelRequestState in CredentialManagerBottomSheet()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/ |
D | TaskSwitcherNotificationViewModelTest.kt | 53 val uiState by collectLastValue(viewModel.uiState) in uiState_notProjecting_emitsNotShowing() constant 57 assertThat(uiState).isEqualTo(TaskSwitcherNotificationUiState.NotShowing) in uiState_notProjecting_emitsNotShowing() 65 val uiState by collectLastValue(viewModel.uiState) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing() constant 71 assertThat(uiState).isEqualTo(TaskSwitcherNotificationUiState.NotShowing) in uiState_notProjecting_foregroundTaskChanged_emitsNotShowing() 77 val uiState by collectLastValue(viewModel.uiState) in uiState_projectingEntireScreen_emitsNotShowing() constant 81 assertThat(uiState).isEqualTo(TaskSwitcherNotificationUiState.NotShowing) in uiState_projectingEntireScreen_emitsNotShowing() 89 val uiState by collectLastValue(viewModel.uiState) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing() constant 95 assertThat(uiState).isEqualTo(TaskSwitcherNotificationUiState.NotShowing) in uiState_projectingEntireScreen_foregroundTaskChanged_emitsNotShowing() 103 val uiState by collectLastValue(viewModel.uiState) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing() constant 111 assertThat(uiState) in uiState_projectingTask_foregroundTaskChanged_different_emitsShowing() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/ui/ |
D | TaskSwitcherNotificationCoordinator.kt | 55 viewModel.uiState.collect { uiState -> in <lambda>() method 56 Log.d(TAG, "uiState -> $uiState") in <lambda>() 57 when (uiState) { in <lambda>() 58 is Showing -> showNotification(uiState) in <lambda>() 86 private fun showNotification(uiState: Showing) { in <lambda>() 87 notificationManager.notify(TAG, NOTIFICATION_ID, createNotification(uiState)) in <lambda>() 90 private fun createNotification(uiState: Showing): Notification { in <lambda>() 95 createActionPendingIntent(action = SWITCH_ACTION, task = uiState.foregroundTask) in <lambda>() 103 createActionPendingIntent(action = GO_BACK_ACTION, task = uiState.projectedTask) in <lambda>()
|
/frameworks/base/packages/CredentialManager/wear/robotests/src/com/android/credentialmanager/ |
D | CredentialSelectorViewModelTest.kt | 68 job = checkNotNull(mViewModel).uiState.launchIn(testScope) in setUp() 81 assertThat(mViewModel.uiState.value).isEqualTo(CredentialSelectorUiState.Idle) in Setting state to idle when receiving null request() 89 assertThat(mViewModel.uiState.value) 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() [all …]
|
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ui/ |
D | WearApp.kt | 63 val uiState by flowEngine.uiState.collectAsStateWithLifecycle() in WearApp() constant 74 entry = (remember { uiState } as SingleEntry).entry, in WearApp() 82 entry = (remember { uiState } as SingleEntry).entry, in WearApp() 90 entry = (remember { uiState } as SingleEntry).entry, in WearApp() 98 credentialSelectorUiState = (remember { uiState } as MultipleEntryPrimaryScreen), in WearApp() 106 credentialSelectorUiState = (remember { uiState } as MultipleEntry), in WearApp() 115 Log.d(TAG, "uiState change, state: $uiState") in WearApp() 116 when (val state = uiState) { in WearApp()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/taskswitcher/ui/viewmodel/ |
D | TaskSwitcherNotificationViewModel.kt | 42 val uiState: Flow<TaskSwitcherNotificationUiState> = in <lambda>() constant in com.android.systemui.mediaprojection.taskswitcher.ui.viewmodel.TaskSwitcherNotificationViewModel 59 .transformLatest { uiState -> in <lambda>() method 60 emit(uiState) in <lambda>() 61 if (uiState is TaskSwitcherNotificationUiState.Showing) { in <lambda>()
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/createflow/ |
D | CreateModel.kt | 104 uiState: CreateCredentialUiState in isFlowAutoSelectable() 106 return isFlowAutoSelectable(uiState.requestDisplayInfo, uiState.activeEntry, in isFlowAutoSelectable() 107 uiState.sortedCreateOptionsPairs) in isFlowAutoSelectable()
|
D | CreateCredentialComponents.kt | 89 when (viewModel.uiState.providerActivityState) { in <lambda>() 207 if (viewModel.uiState.isAutoSelectFlow) { in <lambda>() 214 LaunchedEffect(viewModel.uiState.providerActivityState) { in <lambda>() 222 if (viewModel.uiState.isAutoSelectFlow) { in <lambda>() 234 isInitialRender = viewModel.uiState.isInitialRender, in <lambda>() 235 isAutoSelectFlow = viewModel.uiState.isAutoSelectFlow, in <lambda>()
|
/frameworks/base/packages/CredentialManager/wear/src/com/android/credentialmanager/ |
D | CredentialSelectorViewModel.kt | 53 override val uiState: StateFlow<CredentialSelectorUiState> = in <lambda>() constant in com.android.credentialmanager.CredentialSelectorViewModel 86 when (uiState.value) { in <lambda>()
|
D | FlowEngine.kt | 32 val uiState: StateFlow<CredentialSelectorUiState> constant
|
/frameworks/base/packages/CredentialManager/src/com/android/credentialmanager/getflow/ |
D | GetCredentialComponents.kt | 121 when (viewModel.uiState.providerActivityState) { in <lambda>() 213 if (viewModel.uiState.isAutoSelectFlow) { in <lambda>() 220 LaunchedEffect(viewModel.uiState.providerActivityState) { in <lambda>() 227 if (viewModel.uiState.isAutoSelectFlow) { in <lambda>() 239 isInitialRender = viewModel.uiState.isInitialRender, in <lambda>() 240 isAutoSelectFlow = viewModel.uiState.isAutoSelectFlow, in <lambda>()
|