Home
last modified time | relevance | path

Searched refs:documentProviders (Results 1 – 13 of 13) sorted by relevance

/packages/modules/HealthFitness/tests/integrationtests/src/android/healthconnect/tests/exportimport/
DQueryDocumentProvidersTest.java102 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/
DExportDestinationFragmentTest.kt177 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 …]
DImportSourceLocationFragmentTest.kt166 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/
DDocumentProvidersManager.java45 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/
DFakeHealthDataExportManager.kt40 private var documentProviders = emptyList<ExportImportDocumentProvider>() variable
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()
DFakeComponents.kt498 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/
DQueryDocumentProvidersUseCaseTest.kt94 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>()
DExportSettingsViewModelTest.kt109 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/
DDocumentProvidersViewBinder.kt38 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>()
DExportDestinationFragment.kt86 viewModel.documentProviders.observe(viewLifecycleOwner) { providers -> in <lambda>()
DImportSourceLocationFragment.kt87 viewModel.documentProviders.observe(viewLifecycleOwner) { providers -> in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/exportimport/api/
DQueryDocumentProvidersUseCase.kt42 val documentProviders: List<DocumentProvider> = in <lambda>() constant
58 ExportImportUseCaseResult.Success(documentProviders) in <lambda>()
DExportSettingsViewModel.kt57 val documentProviders: LiveData<DocumentProviders> constant in com.android.healthconnect.controller.exportimport.api.ExportSettingsViewModel