Home
last modified time | relevance | path

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

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DLoadImportStatusUseCase.kt39 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>
DImportUiStatus.kt25 data class WithData(val importUiState: ImportUiState) : ImportUiStatus()
DImportUiState.kt20 data class ImportUiState(val dataImportError: DataImportError, val isImportOngoing: Boolean) { class
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/backuprestore/
DBackupAndRestoreSettingsFragmentTest.kt39 import com.android.healthconnect.controller.exportimport.api.ImportUiState
89 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()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DImportStatusViewModelTest.kt20 import com.android.healthconnect.controller.exportimport.api.ImportUiState
69 ImportUiState( in <lambda>()
70 ImportUiState.DataImportError.DATA_IMPORT_ERROR_VERSION_MISMATCH, in <lambda>()
DLoadImportStatusUseCaseTest.kt24 import com.android.healthconnect.controller.exportimport.api.ImportUiState
67 .isEqualTo(ImportUiState.DataImportError.DATA_IMPORT_ERROR_NONE) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt48 import com.android.healthconnect.controller.exportimport.api.ImportUiState
534 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()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/backuprestore/
DBackupAndRestoreSettingsFragment.kt32 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>()