Home
last modified time | relevance | path

Searched refs:ExportImportUseCaseResult (Results 1 – 15 of 15) sorted by relevance

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DQueryDocumentProvidersUseCaseTest.kt25 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
93 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
94 val documentProviders = (result as ExportImportUseCaseResult.Success).data in <lambda>()
136 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
137 val documentProviders = (result as ExportImportUseCaseResult.Success).data in <lambda>()
173 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
174 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadExportSettingsUseCaseTest.kt22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
60 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
61 assertThat((result as ExportImportUseCaseResult.Success).data) in <lambda>()
72 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
73 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadImportStatusUseCaseTest.kt22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
64 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
65 val importStatusResult = (result as ExportImportUseCaseResult.Success).data in <lambda>()
78 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
79 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadScheduledExportStatusUseCaseTest.kt22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
66 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
67 val exportStatus = (result as ExportImportUseCaseResult.Success).data in <lambda>()
82 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
83 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DUpdateExportSettingsUseCaseTest.kt22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
62 assertThat(result is ExportImportUseCaseResult.Success).isTrue() in <lambda>()
78 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
79 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DExportSettingsViewModel.kt71 is ExportImportUseCaseResult.Success -> { in loadExportSettings()
74 is ExportImportUseCaseResult.Failed -> { in loadExportSettings()
86 is ExportImportUseCaseResult.Success -> { in loadDocumentProviders()
89 is ExportImportUseCaseResult.Failed -> { in loadDocumentProviders()
136 is ExportImportUseCaseResult.Success -> { in updateExportSettings()
142 is ExportImportUseCaseResult.Failed -> { in updateExportSettings()
DLoadExportSettingsUseCase.kt37 override suspend operator fun invoke(): ExportImportUseCaseResult<ExportFrequency> = in invoke()
42 ExportImportUseCaseResult.Success(frequency) in invoke()
45 ExportImportUseCaseResult.Failed(ex) in invoke()
52 suspend fun invoke(): ExportImportUseCaseResult<ExportFrequency>
DUpdateExportSettingsUseCase.kt40 ): ExportImportUseCaseResult<Unit> = in invoke()
44 ExportImportUseCaseResult.Success(Unit) in invoke()
47 ExportImportUseCaseResult.Failed(ex) in invoke()
54 suspend fun invoke(settings: ScheduledExportSettings): ExportImportUseCaseResult<Unit>
DLoadScheduledExportStatusUseCase.kt65 override suspend operator fun invoke(): ExportImportUseCaseResult<ScheduledExportUiState> = in <lambda>()
68 ExportImportUseCaseResult.Success(execute()) in <lambda>()
70 ExportImportUseCaseResult.Failed(exception) in <lambda>()
77 suspend fun invoke(): ExportImportUseCaseResult<ScheduledExportUiState>
DQueryDocumentProvidersUseCase.kt39 override suspend operator fun invoke(): ExportImportUseCaseResult<List<DocumentProvider>> = in <lambda>()
58 ExportImportUseCaseResult.Success(documentProviders) in <lambda>()
61 ExportImportUseCaseResult.Failed(ex) in <lambda>()
77 suspend fun invoke(): ExportImportUseCaseResult<List<DocumentProvider>>
DLoadImportStatusUseCase.kt58 override suspend fun invoke(): ExportImportUseCaseResult<ImportUiState> = in <lambda>()
61 ExportImportUseCaseResult.Success(execute()) in <lambda>()
63 ExportImportUseCaseResult.Failed(exception) in <lambda>()
70 suspend fun invoke(): ExportImportUseCaseResult<ImportUiState>
DExportImportUseCaseResult.kt20 sealed class ExportImportUseCaseResult<out T> { class
21 data class Success<T>(var data: T) : ExportImportUseCaseResult<T>()
23 data class Failed(val exception: Exception) : ExportImportUseCaseResult<Nothing>()
DExportStatusViewModel.kt50 is ExportImportUseCaseResult.Success -> { in loadScheduledExportStatus()
54 is ExportImportUseCaseResult.Failed -> { in loadScheduledExportStatus()
DImportStatusViewModel.kt51 is ExportImportUseCaseResult.Success -> { in loadImportStatus()
54 is ExportImportUseCaseResult.Failed -> { in loadImportStatus()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt42 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
447 override suspend fun invoke(): ExportImportUseCaseResult<ExportFrequency> { in invoke()
448 return ExportImportUseCaseResult.Success(exportFrequency) in invoke()
466 ): ExportImportUseCaseResult<Unit> { in invoke()
468 return ExportImportUseCaseResult.Success(Unit) in invoke()
492 override suspend fun invoke(): ExportImportUseCaseResult<ScheduledExportUiState> { in invoke()
493 return ExportImportUseCaseResult.Success(exportState) in invoke()
508 override suspend fun invoke(): ExportImportUseCaseResult<List<DocumentProvider>> { in invoke()
509 return ExportImportUseCaseResult.Success(documentProviders) in invoke()
552 override suspend fun invoke(): ExportImportUseCaseResult<ImportUiState> { in invoke()
[all …]