/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/exportimport/ |
D | QueryDocumentProvidersTest.java | 102 List<ExportImportDocumentProvider> documentProviders = queryDocumentProviders(); in queryDocumentProviders_noSupportedDocumentProviders_returnsEmpty() local 104 assertThat(documentProviders).isEmpty(); in queryDocumentProviders_noSupportedDocumentProviders_returnsEmpty() 111 List<ExportImportDocumentProvider> documentProviders = queryDocumentProviders(); in queryDocumentProviders_throwsException_returnsEmpty() local 113 assertThat(documentProviders).isEmpty(); in queryDocumentProviders_throwsException_returnsEmpty() 128 List<ExportImportDocumentProvider> documentProviders = queryDocumentProviders(); in queryDocumentProviders_singleRoot_returnsRoot() local 130 assertThat(documentProviders).hasSize(1); in queryDocumentProviders_singleRoot_returnsRoot() 131 assertThat(documentProviders.get(0).getTitle()).isEqualTo(TEST_TITLE); in queryDocumentProviders_singleRoot_returnsRoot() 132 assertThat(documentProviders.get(0).getSummary()).isEqualTo(TEST_ACCOUNT_1_SUMMARY); in queryDocumentProviders_singleRoot_returnsRoot() 133 assertThat(documentProviders.get(0).getIconResource()).isEqualTo(0); in queryDocumentProviders_singleRoot_returnsRoot() 134 assertThat(documentProviders.get(0).getRootUri()).isEqualTo(Uri.parse(TEST_ROOT_URI)); in queryDocumentProviders_singleRoot_returnsRoot() [all …]
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/ |
D | ExportDestinationFragmentTest.kt | 177 val documentProviders = in <lambda>() constant 191 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 214 val documentProviders = in <lambda>() constant 228 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 247 val documentProviders = in <lambda>() constant 261 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 277 val documentProviders = in <lambda>() constant 291 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 313 val documentProviders = in <lambda>() constant 327 doAnswer(prepareAnswer(documentProviders)) in <lambda>() [all …]
|
D | ImportSourceLocationFragmentTest.kt | 166 val documentProviders = in <lambda>() constant 180 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 203 val documentProviders = in <lambda>() constant 217 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 236 val documentProviders = in <lambda>() constant 250 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 266 val documentProviders = in <lambda>() constant 280 doAnswer(prepareAnswer(documentProviders)) in <lambda>() 302 val documentProviders = in <lambda>() constant 316 doAnswer(prepareAnswer(documentProviders)) in <lambda>() [all …]
|
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/exportimport/ |
D | DocumentProvidersManager.java | 45 ArrayList<ExportImportDocumentProvider> documentProviders = new ArrayList<>(); in queryDocumentProviders() local 58 documentProviders, contentResolver, authority, /* attempt= */ 0); in queryDocumentProviders() 62 return documentProviders; in queryDocumentProviders() 66 ArrayList<ExportImportDocumentProvider> documentProviders, in readDocumentProviders() argument 77 readDocumentProvidersFromCursor(documentProviders, cursor, authority); in readDocumentProviders() 85 documentProviders, contentResolver, authority, /* attempt= */ 1); in readDocumentProviders() 97 ArrayList<ExportImportDocumentProvider> documentProviders, in readDocumentProvidersFromCursor() argument 122 documentProviders.add( in readDocumentProvidersFromCursor()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/utils/di/ |
D | FakeHealthDataExportManager.kt | 40 private var documentProviders = emptyList<ExportImportDocumentProvider>() variable in com.android.healthconnect.controller.tests.utils.di.FakeHealthDataExportManager 79 ?: run { outcomeReceiver.onResult(documentProviders) } in queryDocumentProviders() 94 fun setExportImportDocumentProviders(documentProviders: List<ExportImportDocumentProvider>) { in setExportImportDocumentProviders() 95 this.documentProviders = documentProviders in setExportImportDocumentProviders() 114 documentProviders = emptyList() in reset()
|
D | FakeComponents.kt | 498 private var documentProviders: List<DocumentProvider> = listOf() variable in com.android.healthconnect.controller.tests.utils.di.FakeQueryDocumentProvidersUseCase 501 documentProviders = listOf() in reset() 504 fun updateDocumentProviders(documentProviders: List<DocumentProvider>) { in updateDocumentProviders() 505 this.documentProviders = documentProviders in updateDocumentProviders() 509 return ExportImportUseCaseResult.Success(documentProviders) in invoke()
|
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/exportimport/api/ |
D | QueryDocumentProvidersUseCaseTest.kt | 94 val documentProviders = (result as ExportImportUseCaseResult.Success).data in <lambda>() constant 95 assertThat(documentProviders).hasSize(1) in <lambda>() 96 assertThat(documentProviders[0]) in <lambda>() 137 val documentProviders = (result as ExportImportUseCaseResult.Success).data in <lambda>() constant 138 assertThat(documentProviders).hasSize(2) in <lambda>() 139 assertThat(documentProviders[0]) in <lambda>() 153 assertThat(documentProviders[1]) in <lambda>()
|
D | ExportSettingsViewModelTest.kt | 109 viewModel.documentProviders.observeForever(testObserver) in <lambda>() 110 val documentProviders = in <lambda>() constant 120 queryDocumentProvidersUseCase.updateDocumentProviders(documentProviders) in <lambda>() 126 .isEqualTo(DocumentProviders.WithData(documentProviders)) in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/ |
D | DocumentProvidersViewBinder.kt | 38 documentProviders: List<DocumentProvider>, in <lambda>() 43 for (documentProvider in documentProviders) { in <lambda>() 70 if (documentProviders.size == 1) { in <lambda>() 83 if (documentProviders.size == 1) { in <lambda>()
|
D | ExportDestinationFragment.kt | 86 viewModel.documentProviders.observe(viewLifecycleOwner) { providers -> in <lambda>()
|
D | ImportSourceLocationFragment.kt | 87 viewModel.documentProviders.observe(viewLifecycleOwner) { providers -> in <lambda>()
|
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/ |
D | QueryDocumentProvidersUseCase.kt | 42 val documentProviders: List<DocumentProvider> = in <lambda>() constant 58 ExportImportUseCaseResult.Success(documentProviders) in <lambda>()
|
D | ExportSettingsViewModel.kt | 57 val documentProviders: LiveData<DocumentProviders> constant in com.android.healthconnect.controller.exportimport.api.ExportSettingsViewModel
|