Home
last modified time | relevance | path

Searched refs:Failed (Results 1 – 25 of 56) sorted by relevance

123

/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/api/
DLoadMostRecentAggregationsUseCase.kt69 is UseCaseResults.Failed -> { in <lambda>()
70 return@withContext UseCaseResults.Failed( in <lambda>()
87 is UseCaseResults.Failed -> { in <lambda>()
88 return@withContext UseCaseResults.Failed( in <lambda>()
99 UseCaseResults.Failed(e) in <lambda>()
128 is UseCaseResults.Failed -> { in <lambda>()
147 is UseCaseResults.Failed -> { in <lambda>()
177 is UseCaseResults.Failed -> { in <lambda>()
DLoadPotentialPriorityListUseCase.kt65 if (appsWithDataResult is UseCaseResults.Failed) { in <lambda>()
66 UseCaseResults.Failed(appsWithDataResult.exception) in <lambda>()
67 } else if (appsWithWritePermissionResult is UseCaseResults.Failed) { in <lambda>()
68 UseCaseResults.Failed(appsWithWritePermissionResult.exception) in <lambda>()
69 } else if (appsOnPriorityListResult is UseCaseResults.Failed) { in <lambda>()
70 UseCaseResults.Failed(appsOnPriorityListResult.exception) in <lambda>()
112 UseCaseResults.Failed(e) in <lambda>()
148 UseCaseResults.Failed(e) in <lambda>()
DLoadLastDateWithPriorityDataUseCase.kt74 is UseCaseResults.Failed -> { in <lambda>()
75 return@withContext UseCaseResults.Failed(priorityAppsResult.exception) in <lambda>()
81 UseCaseResults.Failed(e) in <lambda>()
DLoadPriorityEntriesUseCase.kt61 is UseCaseResults.Failed -> { in <lambda>()
70 UseCaseResults.Failed(e) in <lambda>()
DSleepSessionHelper.kt96 return@withContext UseCaseResults.Failed(e) in <lambda>()
196 is UseCaseResults.Failed -> { in <lambda>()
/packages/modules/DnsResolver/doh/network/
Ddriver.rs63 Failed(Arc<anyhow::Error>), enumerator
71 matches!(self, Self::Failed(_)) in is_failed()
111 self.status_tx.send(Status::Failed(Arc::new(e)))? in drive()
154 Err(e) => self.status_tx.send(Status::Failed(Arc::new(anyhow!(e)))), in force_probe()
160 self.status_tx.send(Status::Failed(Arc::new(anyhow!("Empty response")))) in force_probe()
167 Err(time) => self.status_tx.send(Status::Failed(Arc::new(anyhow!( in force_probe()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DLoadMostRecentAggregationsUseCaseTest.kt284 assertThat(result is UseCaseResults.Failed).isTrue() in loadMostRecentAggregations_whenLoadLastDateWithPriorityDataFails_returnsFailure()
285 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in loadMostRecentAggregations_whenLoadLastDateWithPriorityDataFails_returnsFailure()
298 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
299 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in <lambda>()
311 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
312 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in <lambda>()
325 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
326 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in <lambda>()
DLoadLastDateWithPriorityDataUseCaseTest.kt430 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
431 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in <lambda>()
446 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
447 assertThat((result as UseCaseResults.Failed).exception is HealthConnectException).isTrue() in <lambda>()
459 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
460 assertThat((result as UseCaseResults.Failed).exception is HealthConnectException).isTrue() in <lambda>()
DLoadPriorityEntriesUseCaseTest.kt309 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
310 assertThat((result as UseCaseResults.Failed).exception.message).isEqualTo("Exception") in <lambda>()
324 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
325 assertThat((result as UseCaseResults.Failed).exception is HealthConnectException).isTrue() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DExportSettingsViewModel.kt74 is ExportImportUseCaseResult.Failed -> { in loadExportSettings()
89 is ExportImportUseCaseResult.Failed -> { in loadDocumentProviders()
142 is ExportImportUseCaseResult.Failed -> { in updateExportSettings()
DExportImportUseCaseResult.kt23 data class Failed(val exception: Exception) : ExportImportUseCaseResult<Nothing>() class in com.android.healthconnect.controller.exportimport.api.ExportImportUseCaseResult
/packages/modules/Virtualization/compos/composd_cmd/
Dcomposd_cmd.rs77 Failed(FailureReason, String), enumerator
90 self.0.set_outcome(Outcome::Failed(reason, message.to_owned())); in onFailure()
161 Ok(Outcome::Failed(reason, message)) => { in run_async_compilation()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/datasources/
DDataSourcesViewModel.kt148 is UseCaseResults.Failed -> { in <lambda>()
167 is UseCaseResults.Failed -> { in <lambda>()
190 is UseCaseResults.Failed -> { in <lambda>()
223 is UseCaseResults.Failed -> { in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/
DFakeComponents.kt152 UseCaseResults.Failed( in invoke()
157 UseCaseResults.Failed(IllegalStateException(exceptionMessage)) in invoke()
214 return if (forceFail) UseCaseResults.Failed(Exception(this.exceptionMessage)) in clusterSleepSessions()
235 return if (forceFail) UseCaseResults.Failed(Exception(this.exceptionMessage)) in invoke()
284 return if (forceFail) UseCaseResults.Failed(Exception(this.exceptionMessage)) in invoke()
398 if (forceFail) return UseCaseResults.Failed(Exception(this.exceptionMessage)) in invoke()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/autodelete/
DAutoDeleteViewModel.kt71 is UseCaseResults.Failed -> { in loadAutoDeleteRange()
85 is UseCaseResults.Failed -> { in updateAutoDeleteRange()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/
DUpdateExportSettingsUseCaseTest.kt78 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
79 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadExportSettingsUseCaseTest.kt72 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
73 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadImportStatusUseCaseTest.kt78 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
79 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DLoadScheduledExportStatusUseCaseTest.kt82 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
83 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
DQueryDocumentProvidersUseCaseTest.kt173 assertThat(result is ExportImportUseCaseResult.Failed).isTrue() in <lambda>()
174 assertThat((result as ExportImportUseCaseResult.Failed).exception is HealthConnectException) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/api/
DLoadAutoDeleteUseCaseTest.kt84 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
85 assertThat((result as UseCaseResults.Failed).exception is HealthConnectException).isTrue() in <lambda>()
DUpdateAutoDeleteUseCaseTest.kt112 assertThat(result is UseCaseResults.Failed).isTrue() in <lambda>()
113 assertThat((result as UseCaseResults.Failed).exception is HealthConnectException).isTrue() in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DDataEntriesFragmentViewModel.kt81 is UseCaseResults.Failed -> { in loadData()
115 is UseCaseResults.Failed -> { in addAggregation()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/appdata/
DAppDataUseCase.kt63 UseCaseResults.Failed(e) in <lambda>()
86 UseCaseResults.Failed(e) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/shared/usecase/
DUseCaseResult.kt21 data class Failed(val exception: Exception) : UseCaseResults<Nothing>() class in com.android.healthconnect.controller.shared.usecase.UseCaseResults

123