Home
last modified time | relevance | path

Searched refs:healthConnectManager (Results 1 – 25 of 52) sorted by relevance

123

/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/permissions/api/
DHealthPermissionManagerImplTest.kt35 private val healthConnectManager = Mockito.mock(HealthConnectManager::class.java) constant
42 healthPermissionManager = HealthPermissionManagerImpl(healthConnectManager) in setup()
49 verify(healthConnectManager, times(1)).getGrantedHealthPermissions("packageName") in getGrantedHealthPermissions_callsHealthConnectManager()
58 verify(healthConnectManager, times(1)).getHealthPermissionsFlags(packageName, permissions) in getHealthPermissionsFlags_callsHealthConnectManager()
69 verify(healthConnectManager, times(1)) in setHealthPermissionsUserFixedFlagValue_callsHealthConnectManager()
79 verify(healthConnectManager, times(1)).grantHealthPermission(packageName, permission) in grantHealthPermission_callsHealthConnectManager()
90 verify(healthConnectManager, times(1)) in revokeHealthPermission_callsHealthConnectManager()
100 verify(healthConnectManager, times(1)).revokeAllHealthPermissions(packageName, reason) in revokeAllHealthPermissions_callsHealthConnectManager()
108 verify(healthConnectManager, times(1)).getHealthDataHistoricalAccessStartDate(packageName) in loadStartAccessDate_callsHealthConnectManager()
/packages/modules/HealthFitness/tests/unittests/src/android/health/connect/
DHealthConnectManagerTest.java58 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getNoGrantedHealthPermissions_succeeds() local
61 healthConnectManager.getGrantedHealthPermissions("com.foo.bar"); in testHealthConnectManager_getNoGrantedHealthPermissions_succeeds()
70 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getSomeGrantedHealthPermissions_succeeds() local
78 healthConnectManager.getGrantedHealthPermissions("com.foo.bar"); in testHealthConnectManager_getSomeGrantedHealthPermissions_succeeds()
90 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_getGrantedHealthPermissionsException_rethrows() local
96 () -> healthConnectManager.getGrantedHealthPermissions("com.foo.bar")); in testHealthConnectManager_getGrantedHealthPermissionsException_rethrows()
102 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_upsertMedicalResources_throws() local
109 healthConnectManager.upsertMedicalResources( in testHealthConnectManager_upsertMedicalResources_throws()
116 HealthConnectManager healthConnectManager = newHealthConnectManager(context, mService); in testHealthConnectManager_deleteResources_notImplemented() local
126 healthConnectManager.deleteMedicalResources( in testHealthConnectManager_deleteResources_notImplemented()
/packages/modules/HealthFitness/tests/cts/hostsidetests/healthconnect/HealthConnectTestHelper/src/android/healthconnect/cts/testhelper/
DTestHelperUtils.java115 List<Record> records, HealthConnectManager healthConnectManager) in insertRecords() argument
119 assertThat(healthConnectManager).isNotNull(); in insertRecords()
121 healthConnectManager.insertRecords( in insertRecords()
143 HealthConnectManager healthConnectManager) in deleteRecords() argument
146 assertThat(healthConnectManager).isNotNull(); in deleteRecords()
157 healthConnectManager.deleteRecords( in deleteRecords()
178 public static List<AccessLog> queryAccessLogs(HealthConnectManager healthConnectManager) in queryAccessLogs() argument
182 assertThat(healthConnectManager).isNotNull(); in queryAccessLogs()
184 healthConnectManager.queryAccessLogs( in queryAccessLogs()
204 public static void deleteAllRecordsAddedByTestApp(HealthConnectManager healthConnectManager) in deleteAllRecordsAddedByTestApp() argument
[all …]
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/autodelete/api/
DUpdateAutoDeleteUseCaseTest.kt50 private val healthConnectManager: HealthConnectManager = in <lambda>() constant in com.android.healthconnect.controller.tests.autodelete.api.UpdateAutoDeleteUseCaseTest
61 updateAutoDeleteUseCase = UpdateAutoDeleteUseCase(healthConnectManager, Dispatchers.Main) in <lambda>()
67 .`when`(healthConnectManager) in <lambda>()
72 verify(healthConnectManager, times(1)) in <lambda>()
81 .`when`(healthConnectManager) in <lambda>()
86 verify(healthConnectManager, times(1)) in <lambda>()
95 .`when`(healthConnectManager) in <lambda>()
100 verify(healthConnectManager, times(1)) in <lambda>()
108 whenever(healthConnectManager.setRecordRetentionPeriodInDays(any(), any(), any())) in <lambda>()
DLoadAutoDeleteUseCaseTest.kt40 private val healthConnectManager: HealthConnectManager = constant in com.android.healthconnect.controller.tests.autodelete.api.LoadAutoDeleteUseCaseTest
48 loadAutoDeleteUseCase = LoadAutoDeleteUseCase(healthConnectManager, Dispatchers.Main) in setup()
53 whenever(healthConnectManager.recordRetentionPeriodInDays).thenReturn(90) in <lambda>()
62 whenever(healthConnectManager.recordRetentionPeriodInDays).thenReturn(540) in loadAutoDeleteUseCase_whenRecordRetention540days_returns18months()
71 whenever(healthConnectManager.recordRetentionPeriodInDays).thenReturn(0) in loadAutoDeleteUseCase_whenRecordRetention0days_returns0months()
80 whenever(healthConnectManager.recordRetentionPeriodInDays) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/service/
DUseCaseModule.kt146 healthConnectManager: HealthConnectManager, in providesLoadDataAggregationsUseCase()
156 healthConnectManager, in providesLoadDataAggregationsUseCase()
205 healthConnectManager: HealthConnectManager, in providesLoadPotentialPriorityListUseCase()
213 healthConnectManager, in providesLoadPotentialPriorityListUseCase()
222 healthConnectManager: HealthConnectManager, in providesLoadLastDateWithPriorityDataUseCase()
229 healthConnectManager, in providesLoadLastDateWithPriorityDataUseCase()
239 healthConnectManager: HealthConnectManager, in providesPriorityListUseCase()
242 return LoadPriorityListUseCase(healthConnectManager, appInfoReader, dispatcher) in providesPriorityListUseCase()
247 healthConnectManager: HealthConnectManager, in updatePriorityListUseCase()
250 return UpdatePriorityListUseCase(healthConnectManager, dispatcher) in updatePriorityListUseCase()
[all …]
DHealthMigrationManagerModule.kt32 healthConnectManager: HealthConnectManager in providesHealthMigrationManager()
34 return HealthMigrationManagerImpl(healthConnectManager) in providesHealthMigrationManager()
DHealthPermissionManagerModule.kt32 healthConnectManager: HealthConnectManager in providesHealthPermissionManager()
34 return HealthPermissionManagerImpl(healthConnectManager) in providesHealthPermissionManager()
DHealthDataExportManagerModule.kt32 healthConnectManager: HealthConnectManager in providesHealthDataExportManager()
34 return HealthDataExportManagerImpl(healthConnectManager) in providesHealthDataExportManager()
DHealthDataImportManagerModule.kt33 healthConnectManager: HealthConnectManager in providesHealthDataImportManager()
35 return HealthDataImportManagerImpl(healthConnectManager) in providesHealthDataImportManager()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/datasources/api/
DUpdatePriorityListUseCaseTest.kt36 private val healthConnectManager : HealthConnectManager = mock(HealthConnectManager::class.java) in <lambda>() constant
43 useCase = UpdatePriorityListUseCase(healthConnectManager, Dispatchers.Main) in <lambda>()
49 .`when`(healthConnectManager) in <lambda>()
61 verify(healthConnectManager, times(1)) in <lambda>()
DLoadLastDateWithPriorityDataUseCaseTest.kt66 private val healthConnectManager = Mockito.mock(HealthConnectManager::class.java) in <lambda>() constant
81 LoadEntriesHelper(context, healthDataEntryFormatter, healthConnectManager) in <lambda>()
84 healthConnectManager, in <lambda>()
104 verifyZeroInteractions(healthConnectManager) in <lambda>()
428 verifyZeroInteractions(healthConnectManager) in <lambda>()
429 Mockito.verify(healthConnectManager, times(0)).readRecords<StepsRecord>(any(), any(), any()) in <lambda>()
440 .`when`(healthConnectManager) in <lambda>()
492 .`when`(healthConnectManager) in <lambda>()
506 .`when`(healthConnectManager) in <lambda>()
513 .`when`(healthConnectManager) in <lambda>()
DLoadPotentialPriorityListUseCaseTest.kt70 private val healthConnectManager: HealthConnectManager = in <lambda>() constant in com.android.healthconnect.controller.tests.datasources.api.LoadPotentialPriorityListUseCaseTest
82 LoadPriorityListUseCase(healthConnectManager, appInfoReader, Dispatchers.Main) in <lambda>()
86 healthConnectManager, in <lambda>()
96 .`when`(healthConnectManager) in <lambda>()
108 .`when`(healthConnectManager) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/entries/api/
DLoadDataAggregationsUseCaseTest.kt52 private val healthConnectManager: HealthConnectManager = in <lambda>() constant in com.android.healthconnect.controller.tests.data.entries.api.LoadDataAggregationsUseCaseTest
76 healthConnectManager, in <lambda>()
85 .`when`(healthConnectManager) in <lambda>()
108 .`when`(healthConnectManager) in <lambda>()
130 .`when`(healthConnectManager) in <lambda>()
153 .`when`(healthConnectManager) in <lambda>()
DLoadDataEntriesUseCaseTest.kt50 private val healthConnectManager: HealthConnectManager = in <lambda>() constant in com.android.healthconnect.controller.tests.data.entries.api.LoadDataEntriesUseCaseTest
64 LoadEntriesHelper(context, healthDataEntryFormatter, healthConnectManager) in <lambda>()
82 .`when`(healthConnectManager) in <lambda>()
91 .`when`(healthConnectManager) in <lambda>()
112 .`when`(healthConnectManager) in <lambda>()
/packages/modules/HealthFitness/apk/tests/src/com/android/healthconnect/controller/tests/data/access/
DLoadPermissionTypeContributorAppsUseCaseTest.kt42 private val healthConnectManager: HealthConnectManager = in <lambda>() constant in com.android.healthconnect.controller.tests.data.access.LoadPermissionTypeContributorAppsUseCaseTest
56 appInfoReader, healthConnectManager, Dispatchers.Main) in <lambda>()
62 .`when`(healthConnectManager) in <lambda>()
92 .`when`(healthConnectManager) in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/selectabledeletion/api/
DDeleteAllDataUseCase.kt31 private val healthConnectManager: HealthConnectManager, constant in com.android.healthconnect.controller.selectabledeletion.api.DeleteAllDataUseCase
36 healthConnectManager.deleteRecords( in invoke()
DDeleteEntriesUseCase.kt32 private val healthConnectManager: HealthConnectManager, in <lambda>() constant in com.android.healthconnect.controller.selectabledeletion.api.DeleteEntriesUseCase
42 healthConnectManager.deleteRecords(recordIdFilters, Runnable::run) {} in <lambda>()
DDeletePermissionTypesUseCase.kt33 private val healthConnectManager: HealthConnectManager, in <lambda>() constant in com.android.healthconnect.controller.selectabledeletion.api.DeletePermissionTypesUseCase
49 healthConnectManager.deleteRecords(deleteRequest.build(), Runnable::run) {} in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/data/appdata/
DAppDataUseCase.kt40 private val healthConnectManager: HealthConnectManager, in <lambda>() constant in com.android.healthconnect.controller.data.appdata.AppDataUseCase
50 healthConnectManager.queryAllRecordTypesInfo( in <lambda>()
76 healthConnectManager.queryAllRecordTypesInfo( in <lambda>()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/deletion/api/
DDeleteAllDataUseCase.kt33 private val healthConnectManager: HealthConnectManager, constant in com.android.healthconnect.controller.deletion.api.DeleteAllDataUseCase
39 healthConnectManager.deleteRecords( in invoke()
DDeleteEntryUseCase.kt32 private val healthConnectManager: HealthConnectManager, constant in com.android.healthconnect.controller.deletion.api.DeleteEntryUseCase
40 healthConnectManager.deleteRecords(listOf(recordIdFilter), Runnable::run) {} in invoke()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/autodelete/api/
DLoadAutoDeleteUseCase.kt31 private val healthConnectManager: HealthConnectManager, constant in com.android.healthconnect.controller.autodelete.api.LoadAutoDeleteUseCase
44 healthConnectManager.recordRetentionPeriodInDays / DAYS_IN_MONTH in invoke()
DUpdateAutoDeleteUseCase.kt31 private val healthConnectManager: HealthConnectManager, constant in com.android.healthconnect.controller.autodelete.api.UpdateAutoDeleteUseCase
43 healthConnectManager.setRecordRetentionPeriodInDays( in invoke()
/packages/modules/HealthFitness/apk/src/com/android/healthconnect/controller/dataentries/
DLoadMenstruationDataUseCase.kt47 private val healthConnectManager: HealthConnectManager, in <lambda>() constant in com.android.healthconnect.controller.dataentries.LoadMenstruationDataUseCase
88 healthConnectManager.readRecords( in <lambda>()
118 healthConnectManager.readRecords( in <lambda>()

123