Searched refs:ImportUiState (Results 1 – 8 of 8) sorted by relevance
39 suspend fun execute(): ImportUiState { in <lambda>()43 val dataImportError: ImportUiState.DataImportError = in <lambda>()45 DATA_IMPORT_ERROR_UNKNOWN -> ImportUiState.DataImportError.DATA_IMPORT_ERROR_UNKNOWN in <lambda>()46 DATA_IMPORT_ERROR_NONE -> ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE in <lambda>()48 ImportUiState.DataImportError.DATA_IMPORT_ERROR_WRONG_FILE in <lambda>()50 ImportUiState.DataImportError.DATA_IMPORT_ERROR_VERSION_MISMATCH in <lambda>()52 ImportUiState.DataImportError.DATA_IMPORT_ERROR_UNKNOWN in <lambda>()55 return ImportUiState(dataImportError, importStatus.isImportOngoing) in <lambda>()58 override suspend fun invoke(): ExportImportUseCaseResult<ImportUiState> = in <lambda>()70 suspend fun invoke(): ExportImportUseCaseResult<ImportUiState>
25 data class WithData(val importUiState: ImportUiState) : ImportUiStatus()
20 data class ImportUiState(val dataImportError: DataImportError, val isImportOngoing: Boolean) { class
39 import com.android.healthconnect.controller.exportimport.api.ImportUiState89 ImportUiState( in setup()90 ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE, in setup()230 ImportUiState( in backupAndRestoreSettingsFragment_whenImportErrorIsWrongFileError_showsImportErrorBanner()231 ImportUiState.DataImportError.DATA_IMPORT_ERROR_WRONG_FILE, in backupAndRestoreSettingsFragment_whenImportErrorIsWrongFileError_showsImportErrorBanner()253 ImportUiState( in backupAndRestoreSettingsFragment_whenImportErrorIsNotWrongFileError_doesNotShowImportErrorBanner()254 ImportUiState.DataImportError.DATA_IMPORT_ERROR_UNKNOWN, in backupAndRestoreSettingsFragment_whenImportErrorIsNotWrongFileError_doesNotShowImportErrorBanner()
20 import com.android.healthconnect.controller.exportimport.api.ImportUiState69 ImportUiState( in <lambda>()70 ImportUiState.DataImportError.DATA_IMPORT_ERROR_VERSION_MISMATCH, in <lambda>()
24 import com.android.healthconnect.controller.exportimport.api.ImportUiState67 .isEqualTo(ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE) in <lambda>()
48 import com.android.healthconnect.controller.exportimport.api.ImportUiState534 private var importState: ImportUiState =535 ImportUiState(536 ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE,542 ImportUiState( in reset()543 ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE, in reset()548 fun updateExportStatus(importState: ImportUiState) { in updateExportStatus()552 override suspend fun invoke(): ExportImportUseCaseResult<ImportUiState> { in invoke()
32 import com.android.healthconnect.controller.exportimport.api.ImportUiState in <lambda>()194 private fun maybeShowImportErrorBanner(importUiState: ImportUiState) { in <lambda>()196 ImportUiState.DataImportError.DATA_IMPORT_ERROR_WRONG_FILE) { in <lambda>()