Home
last modified time | relevance | path

Searched refs:medicalResources (Results 1 – 6 of 6) sorted by relevance

/packages/modules/HealthFitness/tests/cts/src/android/healthconnect/cts/
DReadMedicalResourcesResponseTest.java60 List<MedicalResource> medicalResources = List.of(getMedicalResource()); in testReadMedicalResourcesResponse_constructor_singleton() local
61 ReadMedicalResourcesResponse response = new ReadMedicalResourcesResponse(medicalResources); in testReadMedicalResourcesResponse_constructor_singleton()
63 assertThat(response.getMedicalResources()).isEqualTo(medicalResources); in testReadMedicalResourcesResponse_constructor_singleton()
68 List<MedicalResource> medicalResources = in testReadMedicalResourcesResponse_constructor_multipleEntries() local
77 ReadMedicalResourcesResponse response = new ReadMedicalResourcesResponse(medicalResources); in testReadMedicalResourcesResponse_constructor_multipleEntries()
79 assertThat(response.getMedicalResources()).isEqualTo(medicalResources); in testReadMedicalResourcesResponse_constructor_multipleEntries()
84 List<MedicalResource> medicalResources = List.of(getMedicalResource()); in testReadMedicalResourcesResponse_equals() local
85 ReadMedicalResourcesResponse response1 = new ReadMedicalResourcesResponse(medicalResources); in testReadMedicalResourcesResponse_equals()
86 ReadMedicalResourcesResponse response2 = new ReadMedicalResourcesResponse(medicalResources); in testReadMedicalResourcesResponse_equals()
94 List<MedicalResource> medicalResources = List.of(getMedicalResource()); in testReadMedicalResourcesResponse_equals_comparesAllValues() local
[all …]
DHealthConnectManagerTest.java1949 List<MedicalResource> medicalResources = readMedicalResourcesByIds(List.of()); in testReadMedicalResources_emptyIds_returnsEmptyList() local
1951 assertThat(medicalResources).isEmpty(); in testReadMedicalResources_emptyIds_returnsEmptyList()
1970 List<MedicalResource> medicalResources = readMedicalResourcesByIds(ids); in testReadMedicalResources_byIds_returnsEmptyList() local
1972 assertThat(medicalResources).isEmpty(); in testReadMedicalResources_byIds_returnsEmptyList()
/packages/modules/HealthFitness/framework/java/android/health/connect/
DReadMedicalResourcesResponse.java42 public ReadMedicalResourcesResponse(@NonNull List<MedicalResource> medicalResources) { in ReadMedicalResourcesResponse() argument
43 requireNonNull(medicalResources); in ReadMedicalResourcesResponse()
44 mMedicalResources = medicalResources; in ReadMedicalResourcesResponse()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/datatypehelpers/
DMedicalResourceHelper.java197 List<MedicalResource> medicalResources = new ArrayList<>(); in getMedicalResources() local
200 medicalResources.add(getMedicalResource(cursor)); in getMedicalResources()
204 return medicalResources; in getMedicalResources()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/storage/
DTransactionManager.java376 List<MedicalResource> medicalResources; in readMedicalResourcesByIds() local
380 medicalResources = MedicalResourceHelper.getMedicalResources(cursor); in readMedicalResourcesByIds()
382 return medicalResources; in readMedicalResourcesByIds()
/packages/modules/HealthFitness/service/java/com/android/server/healthconnect/
DHealthConnectServiceImpl.java2275 List<MedicalResource> medicalResources = in readMedicalResources()
2277 logger.setNumberOfRecords(medicalResources.size()); in readMedicalResources()
2281 callback.onResult(new ReadMedicalResourcesResponse(medicalResources)); in readMedicalResources()