Searched refs:ExportImportUseCaseResult (Results 1 – 15 of 15) sorted by relevance
25 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult93 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>()
22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult60 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>()
22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult64 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>()
22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult66 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>()
22 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult62 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>()
71 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()
37 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>
40 ): ExportImportUseCaseResult<Unit> = in invoke()44 ExportImportUseCaseResult.Success(Unit) in invoke()47 ExportImportUseCaseResult.Failed(ex) in invoke()54 suspend fun invoke(settings: ScheduledExportSettings): ExportImportUseCaseResult<Unit>
65 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>
39 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>>
58 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>
20 sealed class ExportImportUseCaseResult<out T> { class21 data class Success<T>(var data: T) : ExportImportUseCaseResult<T>()23 data class Failed(val exception: Exception) : ExportImportUseCaseResult<Nothing>()
50 is ExportImportUseCaseResult.Success -> { in loadScheduledExportStatus()54 is ExportImportUseCaseResult.Failed -> { in loadScheduledExportStatus()
51 is ExportImportUseCaseResult.Success -> { in loadImportStatus()54 is ExportImportUseCaseResult.Failed -> { in loadImportStatus()
42 import com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult447 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 …]